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

Issue 1845493004: Modify devtools to show passive event listeners. (Closed)

Created:
4 years, 8 months ago by dtapuska
Modified:
4 years, 8 months ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, dtapuska+blinkwatch_chromium.org, blink-reviews-events_chromium.org, eae+blinkwatch, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, kinuko+watch, kozyatinskiy+blink_chromium.org, Rick Byers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modify devtools to show passive event listeners. Add the ability to filter out what event listeners based on dispatch type; [All, Passive, Blocking]. Add the listing of passive in the event listener list similar to how useCapture is shown. BUG=601756 Committed: https://crrev.com/ed3f93d1f6149e0861bd9df3dedabc84f2d28d33 Cr-Commit-Position: refs/heads/master@{#386281}

Patch Set 1 #

Patch Set 2 : Fix remove #

Total comments: 15

Patch Set 3 : Fix Layout Tests #

Total comments: 2

Patch Set 4 : Minor change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -36 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/elements/event-listeners-framework-with-service-worker-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/command-line-api-getEventListeners.html View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/command-line-api-getEventListeners-expected.txt View 1 2 8 chunks +29 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar-custom-framework.html View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar-custom-framework-expected.txt View 1 2 5 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar-expected.txt View 1 2 1 chunk +19 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar-jquery1-expected.txt View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar-jquery2-expected.txt View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/event-listeners-about-blank.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/event-listeners-about-blank-expected.txt View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/components/EventListenersUtils.js View 9 chunks +16 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js View 3 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js View 1 2 3 chunks +39 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js View 1 2 3 3 chunks +20 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js View 1 2 3 3 chunks +17 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/protocol.json View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js View 1 2 3 1 chunk +26 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8EventListenerInfo.h View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 22 (7 generated)
dtapuska
4 years, 8 months ago (2016-03-30 17:36:39 UTC) #3
dtapuska
On 2016/03/30 17:36:39, dtapuska wrote: I'm no JS developer so please tell me if I ...
4 years, 8 months ago (2016-03-30 17:38:28 UTC) #4
pfeldman
Overall looks good. Some nits below. This also needs a test. https://codereview.chromium.org/1845493004/diff/20001/third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js File third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js (right): ...
4 years, 8 months ago (2016-03-30 17:43:05 UTC) #6
dtapuska
https://codereview.chromium.org/1845493004/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js File third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js (right): https://codereview.chromium.org/1845493004/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js#newcode612 third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js:612: return useCapture; On 2016/03/30 17:43:04, pfeldman wrote: > JSDoc ...
4 years, 8 months ago (2016-03-30 17:47:16 UTC) #7
pfeldman
> We might temporarily disable passive event listeners in stable due to some other > ...
4 years, 8 months ago (2016-03-30 17:52:33 UTC) #8
dtapuska
https://codereview.chromium.org/1845493004/diff/20001/third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js File third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js (right): https://codereview.chromium.org/1845493004/diff/20001/third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js#newcode69 third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js:69: function addDispatchFilterOption(name, value) { On 2016/03/30 17:43:04, pfeldman wrote: ...
4 years, 8 months ago (2016-03-30 20:59:48 UTC) #9
dtapuska
On 2016/03/30 17:52:33, pfeldman wrote: > > We might temporarily disable passive event listeners in ...
4 years, 8 months ago (2016-03-30 21:01:19 UTC) #10
pfeldman
> I don't know if we should block the devtools work on that. If there ...
4 years, 8 months ago (2016-03-30 21:11:15 UTC) #11
dtapuska
On 2016/03/30 21:11:15, pfeldman wrote: > > I don't know if we should block the ...
4 years, 8 months ago (2016-03-30 21:14:41 UTC) #12
pfeldman
the code looks good, pending the spec change. https://codereview.chromium.org/1845493004/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js File third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js (right): https://codereview.chromium.org/1845493004/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js#newcode608 third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js:608: // ...
4 years, 8 months ago (2016-03-30 21:20:06 UTC) #13
dtapuska
PTAL today as I'd like to get this into 51. https://codereview.chromium.org/1845493004/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js File third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js (right): https://codereview.chromium.org/1845493004/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js#newcode608 ...
4 years, 8 months ago (2016-04-08 13:42:37 UTC) #15
dgozman
lgtm
4 years, 8 months ago (2016-04-09 00:23:49 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1845493004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1845493004/60001
4 years, 8 months ago (2016-04-09 02:28:38 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-09 03:28:20 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-09 03:29:44 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ed3f93d1f6149e0861bd9df3dedabc84f2d28d33
Cr-Commit-Position: refs/heads/master@{#386281}

Powered by Google App Engine
This is Rietveld 408576698