Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Issue 25389004: Notify nodes removal to Range/Selection after dispatching blur and mutation event (Closed)

Created:
7 years, 2 months ago by yosin_UTC9
Modified:
7 years, 2 months ago
Reviewers:
tkent
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Notify 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)
yosin_UTC9
Could you review this patch? Thanks in advance.
7 years, 2 months ago (2013-10-04 04:36:26 UTC) #1
tkent
https://codereview.chromium.org/25389004/diff/1/Source/core/dom/ContainerNode.cpp File Source/core/dom/ContainerNode.cpp (right): https://codereview.chromium.org/25389004/diff/1/Source/core/dom/ContainerNode.cpp#newcode414 Source/core/dom/ContainerNode.cpp:414: container->document().nodeChildrenWillBeRemoved(container); // e.g. mutation event listener can create a ...
7 years, 2 months ago (2013-10-04 05:21:34 UTC) #2
yosin_UTC9
PTAL https://codereview.chromium.org/25389004/diff/1/Source/core/dom/ContainerNode.cpp File Source/core/dom/ContainerNode.cpp (right): https://codereview.chromium.org/25389004/diff/1/Source/core/dom/ContainerNode.cpp#newcode414 Source/core/dom/ContainerNode.cpp:414: container->document().nodeChildrenWillBeRemoved(container); // e.g. mutation event listener can create ...
7 years, 2 months ago (2013-10-04 08:09:30 UTC) #3
tkent
https://codereview.chromium.org/25389004/diff/1/Source/core/dom/ContainerNode.cpp File Source/core/dom/ContainerNode.cpp (right): https://codereview.chromium.org/25389004/diff/1/Source/core/dom/ContainerNode.cpp#newcode414 Source/core/dom/ContainerNode.cpp:414: container->document().nodeChildrenWillBeRemoved(container); // e.g. mutation event listener can create a ...
7 years, 2 months ago (2013-10-06 23:46:54 UTC) #4
yosin_UTC9
PTAL
7 years, 2 months ago (2013-10-07 05:53:51 UTC) #5
tkent
lgtm
7 years, 2 months ago (2013-10-07 05:55:13 UTC) #6
yosin_UTC9
7 years, 2 months ago (2013-10-07 06:09:29 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r159007 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698