DescriptionAvoid using cross RenderView selection rendering
This patch makes sure we pass |RenderObject| belong to RenderView in
|RenderView::setSelection|, which takes two |RenderObject|s for start and end of
selection, in |FrameSeleciton::updateAppearance|.
The bug is caused by |VisibleSelection::base| and |VisibleSelection::start|
are in different document, |base| points to IFRAME and |start| points |TextNode|
in IFRAME. This causes |RenderView|, which holds |RenderObject|s of selection
start points and end points, have dangling |RenderObject|'s. Because,
|RenderView| doesn't know destructed |RenderObject| belongs to another
|RenderView|.
BUG=356690
TEST=LayoutTests/undo/execCommand/crash-redo-with-iframes.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171440
Patch Set 1 #
Total comments: 1
Patch Set 2 : 2014-04-11T06:58:52 #Patch Set 3 : 2014-04-14T01:01:05 #
Total comments: 2
Messages
Total messages: 8 (0 generated)
|