Chromium Code Reviews
DescriptionNotify nodes removal to Range/Selection after dispatching blur and mutation event
This patch changes notifying nodes removal to Range/Selection after dispatching blur and mutation event. In willRemoveChildren(), like willRemoveChild(); r115686 did same change, although it didn't change willRemoveChildren().
The issue 295010, use-after-free, is caused by setting removed node to Selection in mutation event handler.
BUG=295010
TEST=LayoutTests/fast/dom/Range/range-created-during-remove-children.html, LayoutTests/editing/selection/selection-change-in-mutation-event-by-remove-children.html, LayoutTests/editing/selection/selection-change-in-blur-event-by-remove-children.html
R=tkent@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159007
Patch Set 1 #
Total comments: 3
Patch Set 2 : 2013-10-04T16:49:38 #Patch Set 3 : 2013-10-07T14:24:36 #Messages
Total messages: 7 (0 generated)
|