DescriptionFixing a crash in InsertListCommand.
There are two crash causes: 1.Range and 2.InsertListCommand.
1. Range:
In processAncestorsAndThierSiblings, it iterates siblings and remove each sibling.
Because removeChild might kick a “SubtreeModified” event which might change the tree structure,
ancestor might be not a parent of child at a next iteration. We should check it.
2. InsertListCommand:
The doApply function does nothing when endingSelection().rootEditableElement() is Null.
Because L124 setEndingSelection might change endingSelection(), we should check again.
BUG=344280
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168006
Patch Set 1 #
Total comments: 10
Patch Set 2 : Update #
Messages
Total messages: 11 (0 generated)
|