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

Issue 392283002: Always remove registered handlers for deleted node (Closed)

Created:
6 years, 5 months ago by Sami
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

Always remove registered handlers for deleted node When a Node is about to get deleted from the Document, we should always remove any event handlers it has registered to the EventHandlerRegistry -- regardless of whether the Node has EventTargetData or not. This is because native code may register nodes as having handlers without actually inserting any handlers in in the node's event target data. BUG=393312, 393154 TEST=WebViewTest.DeleteElementWithRegisteredHandler Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178366

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Clarifying comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -2 lines) Patch
M Source/core/dom/Node.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
A Source/web/tests/data/simple_div.html View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Sami
6 years, 5 months ago (2014-07-16 14:53:38 UTC) #1
Rick Byers
How does this change effect the behavior when a touched node is temporarily removed from ...
6 years, 5 months ago (2014-07-16 16:42:29 UTC) #2
Sami
On 2014/07/16 16:42:29, Rick Byers wrote: > How does this change effect the behavior when ...
6 years, 5 months ago (2014-07-16 17:00:28 UTC) #3
Rick Byers
On 2014/07/16 17:00:28, Sami wrote: > On 2014/07/16 16:42:29, Rick Byers wrote: > > How ...
6 years, 5 months ago (2014-07-16 21:15:01 UTC) #4
Sami
Thanks Rick. Jochen, can I persuade you to rubberstamp the tests here?
6 years, 5 months ago (2014-07-17 10:24:55 UTC) #5
jochen (gone - plz use gerrit)
lgtm
6 years, 5 months ago (2014-07-17 10:48:52 UTC) #6
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 5 months ago (2014-07-17 10:49:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/392283002/40001
6 years, 5 months ago (2014-07-17 10:50:38 UTC) #8
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 12:43:59 UTC) #9
Message was sent while issue was closed.
Change committed as 178366

Powered by Google App Engine
This is Rietveld 408576698