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

Issue 240343002: Track event handlers on windows (Closed)

Created:
6 years, 8 months ago by Sami
Modified:
6 years, 7 months ago
CC:
blink-reviews, sof, eae+blinkwatch, dglazkov+blink, adamk+blink_chromium.org, Inactive, rwlbuis
Visibility:
Public.

Description

Track event handlers on windows This patch makes EventHandlerRegistry keep track of event handlers registered on the window object. TEST=fast/events/scroll-event-handler-count.html,fast/events/scroll-event-handler-reused-window.html BUG=359566 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173552

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Reworked against refactorings, WIP. #

Patch Set 4 : Improved test coverage and implemented remaining bits. #

Patch Set 5 : Fixed assertions not to go through the document. #

Total comments: 11

Patch Set 6 : Simplification. #

Patch Set 7 : Better description for window reuse test. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -23 lines) Patch
A + LayoutTests/fast/events/resources/conclude-test-in-parent.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/events/scroll-event-handler-count.html View 1 2 3 8 chunks +51 lines, -12 lines 0 comments Download
M LayoutTests/fast/events/scroll-event-handler-count-expected.txt View 1 2 3 3 chunks +16 lines, -3 lines 0 comments Download
A LayoutTests/fast/events/scroll-event-handler-reused-window.html View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
A + LayoutTests/fast/events/scroll-event-handler-reused-window-expected.txt View 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/frame/DOMWindow.cpp View 1 2 3 4 5 5 chunks +11 lines, -0 lines 1 comment Download
M Source/core/frame/EventHandlerRegistry.cpp View 1 2 3 4 5 4 chunks +22 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Sami
6 years, 7 months ago (2014-05-06 19:16:41 UTC) #1
Rick Byers
Seems reasonable overall. Just a few questions. https://codereview.chromium.org/240343002/diff/80001/LayoutTests/fast/events/scroll-event-handler-reused-window.html File LayoutTests/fast/events/scroll-event-handler-reused-window.html (right): https://codereview.chromium.org/240343002/diff/80001/LayoutTests/fast/events/scroll-event-handler-reused-window.html#newcode1 LayoutTests/fast/events/scroll-event-handler-reused-window.html:1: <!DOCTYPE html> ...
6 years, 7 months ago (2014-05-06 20:54:39 UTC) #2
Sami
Thanks Rick, all comments addressed. https://codereview.chromium.org/240343002/diff/80001/LayoutTests/fast/events/scroll-event-handler-reused-window.html File LayoutTests/fast/events/scroll-event-handler-reused-window.html (right): https://codereview.chromium.org/240343002/diff/80001/LayoutTests/fast/events/scroll-event-handler-reused-window.html#newcode1 LayoutTests/fast/events/scroll-event-handler-reused-window.html:1: <!DOCTYPE html> On 2014/05/06 ...
6 years, 7 months ago (2014-05-07 10:36:40 UTC) #3
Rick Byers
lgtm https://codereview.chromium.org/240343002/diff/80001/LayoutTests/fast/events/scroll-event-handler-reused-window.html File LayoutTests/fast/events/scroll-event-handler-reused-window.html (right): https://codereview.chromium.org/240343002/diff/80001/LayoutTests/fast/events/scroll-event-handler-reused-window.html#newcode4 LayoutTests/fast/events/scroll-event-handler-reused-window.html:4: description('Test tracking event handlers with a reused DOMWindow.'); ...
6 years, 7 months ago (2014-05-07 13:28:20 UTC) #4
Sami
Thanks Rick. +Adam for owners' review.
6 years, 7 months ago (2014-05-07 14:37:03 UTC) #5
abarth-chromium
https://codereview.chromium.org/240343002/diff/110001/Source/core/frame/DOMWindow.cpp File Source/core/frame/DOMWindow.cpp (right): https://codereview.chromium.org/240343002/diff/110001/Source/core/frame/DOMWindow.cpp#newcode1515 Source/core/frame/DOMWindow.cpp:1515: lifecycleNotifier().notifyAddEventListener(this, eventType); We can't listen for this notification via ...
6 years, 7 months ago (2014-05-07 17:14:01 UTC) #6
Sami
On 2014/05/07 17:14:01, abarth wrote: > We can't listen for this notification via this pathway? ...
6 years, 7 months ago (2014-05-07 17:16:30 UTC) #7
abarth-chromium
I see, the problem is that LifecycleObserver only lets you observe one thing at a ...
6 years, 7 months ago (2014-05-07 17:36:03 UTC) #8
abarth-chromium
Ok LGTM. Hopefully we can move the other special cases in these functions into EventRegistry ...
6 years, 7 months ago (2014-05-07 17:38:26 UTC) #9
Sami
On 2014/05/07 17:38:26, abarth wrote: > Ok LGTM. Hopefully we can move the other special ...
6 years, 7 months ago (2014-05-07 17:42:08 UTC) #10
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 7 months ago (2014-05-07 17:42:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/240343002/110001
6 years, 7 months ago (2014-05-07 17:42:51 UTC) #12
Rick Byers
On 2014/05/07 17:42:08, Sami wrote: > On 2014/05/07 17:38:26, abarth wrote: > > Ok LGTM. ...
6 years, 7 months ago (2014-05-07 17:45:25 UTC) #13
Sami
On 2014/05/07 17:45:25, Rick Byers wrote: > Hah hah, you mean: "some of us already ...
6 years, 7 months ago (2014-05-07 17:51:36 UTC) #14
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 18:48:31 UTC) #15
Message was sent while issue was closed.
Change committed as 173552

Powered by Google App Engine
This is Rietveld 408576698