Chromium Code Reviews
DescriptionMake "InsertHTML" and "Indent" commands to handle DOM tree modification during processing
This patch makes "InsertHTML" and "Indent" commands to handle DOM tree modification during processing. When calling Node::insertBefore(), JavaScript may be executed, e.g. <iframe src="javascript:...">, and it modifies DOM tree.
On issue 314469, use-after-free is caused at |startBlock| variable which holds raw Node pointer removed during script execution in ReplaceSelectionCommand::doApply().
Changes for CompositeEditCommand::cloneParagraphUnderNewElement() is similar to ReplaceSelectionCommand::doApply(). |outerNode| is removed during CompositeEditCommand::appendNode(), which inserts <iframe src="javascript:...">.
BUG=314469
TEST=LayoutTests/editing/inserting/insert-with-javascript-protocol-crash.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161598
Patch Set 1 : 2013-11-08T13:02:58 #
Messages
Total messages: 9 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||