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

Issue 2022503002: Add ability to toggle passive state on an individual event listener. (Closed)

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

Description

Add ability to toggle passive state on an individual event listener. Add a button to allow the toggle of the passive state on a listener. It is not implemented for framework listeners yet since this will likely interfere with the dipsatching of events in jquery if it was enabled. BUG=615480 Committed: https://crrev.com/d589e0426d993a07c1d12ae685152b756e8fd3ff Cr-Commit-Position: refs/heads/master@{#397643}

Patch Set 1 #

Patch Set 2 : Limit Toggle Passive to touchstart, touchmove, mousewheel, wheel #

Total comments: 18

Patch Set 3 : Move RemoteObject onto EventListener #

Total comments: 6

Patch Set 4 : Fix nits #

Patch Set 5 : Fix layout tests #

Messages

Total messages: 40 (15 generated)
dtapuska
4 years, 6 months ago (2016-05-27 19:22:40 UTC) #3
Rick Byers
This shows up on all listeners? To avoid UI that isn't really useful (potentially confusing) ...
4 years, 6 months ago (2016-05-27 19:46:46 UTC) #5
dtapuska
On 2016/05/27 19:46:46, Rick Byers wrote: > This shows up on all listeners? To avoid ...
4 years, 6 months ago (2016-05-27 19:55:49 UTC) #6
Rick Byers
On 2016/05/27 19:55:49, dtapuska wrote: > On 2016/05/27 19:46:46, Rick Byers wrote: > > This ...
4 years, 6 months ago (2016-05-27 19:58:17 UTC) #7
dtapuska
On 2016/05/27 19:58:17, Rick Byers wrote: > On 2016/05/27 19:55:49, dtapuska wrote: > > On ...
4 years, 6 months ago (2016-05-31 19:20:57 UTC) #8
dtapuska
On 2016/05/31 19:20:57, dtapuska wrote: > On 2016/05/27 19:58:17, Rick Byers wrote: > > On ...
4 years, 6 months ago (2016-05-31 19:21:18 UTC) #9
caseq
https://codereview.chromium.org/2022503002/diff/20001/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js File third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js (right): https://codereview.chromium.org/2022503002/diff/20001/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js#newcode13 third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js:13: * @param {function(!WebInspector.Event)} changeListener This should either be a ...
4 years, 6 months ago (2016-06-01 17:48:11 UTC) #10
dtapuska
https://codereview.chromium.org/2022503002/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/2022503002/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js#newcode579 third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js:579: this.callFunctionPromise(nodeTogglePassiveEventListener).then(storeTogglePassiveFunction.bind(this)); On 2016/06/01 17:48:11, caseq wrote: > I think ...
4 years, 6 months ago (2016-06-01 17:54:37 UTC) #13
caseq
+kozyatinskiy for real now.
4 years, 6 months ago (2016-06-01 17:55:00 UTC) #14
kozy
https://codereview.chromium.org/2022503002/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/2022503002/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js#newcode579 third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js:579: this.callFunctionPromise(nodeTogglePassiveEventListener).then(storeTogglePassiveFunction.bind(this)); On 2016/06/01 17:54:37, dtapuska wrote: > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 19:05:02 UTC) #16
dtapuska
https://codereview.chromium.org/2022503002/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/2022503002/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js#newcode579 third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js:579: this.callFunctionPromise(nodeTogglePassiveEventListener).then(storeTogglePassiveFunction.bind(this)); On 2016/06/01 19:05:01, kozyatinskiy wrote: > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 20:22:59 UTC) #17
caseq
On 2016/06/01 20:22:59, dtapuska wrote: > https://codereview.chromium.org/2022503002/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/2022503002/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js#newcode579 > ...
4 years, 6 months ago (2016-06-01 21:11:25 UTC) #18
dtapuska
On 2016/06/01 21:11:25, caseq wrote: > On 2016/06/01 20:22:59, dtapuska wrote: > > > https://codereview.chromium.org/2022503002/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js ...
4 years, 6 months ago (2016-06-01 21:18:10 UTC) #19
dtapuska
On 2016/06/01 21:18:10, dtapuska wrote: > On 2016/06/01 21:11:25, caseq wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-02 15:59:00 UTC) #20
dtapuska
https://codereview.chromium.org/2022503002/diff/20001/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js File third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js (right): https://codereview.chromium.org/2022503002/diff/20001/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js#newcode13 third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js:13: * @param {function(!WebInspector.Event)} changeListener On 2016/06/01 17:48:10, caseq wrote: ...
4 years, 6 months ago (2016-06-02 16:02:11 UTC) #21
kozy
On 2016/06/01 21:11:25, caseq wrote: > Alexey, you seem to imply that remove should be ...
4 years, 6 months ago (2016-06-02 17:54:23 UTC) #22
caseq
lgtm % nits https://codereview.chromium.org/2022503002/diff/40001/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js File third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js (right): https://codereview.chromium.org/2022503002/diff/40001/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js#newcode312 third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js:312: passiveButton.title = WebInspector.UIString("Toggle passive event listener ...
4 years, 6 months ago (2016-06-02 19:40:27 UTC) #23
dtapuska
https://codereview.chromium.org/2022503002/diff/40001/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js File third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js (right): https://codereview.chromium.org/2022503002/diff/40001/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js#newcode312 third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js:312: passiveButton.title = WebInspector.UIString("Toggle passive event listener field"); On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 20:10:35 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2022503002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2022503002/60001
4 years, 6 months ago (2016-06-02 20:11:50 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/238122)
4 years, 6 months ago (2016-06-02 22:13:44 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2022503002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2022503002/80001
4 years, 6 months ago (2016-06-03 00:52:45 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/224005)
4 years, 6 months ago (2016-06-03 02:38:21 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2022503002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2022503002/80001
4 years, 6 months ago (2016-06-03 02:45:45 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-03 05:55:24 UTC) #38
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 05:56:32 UTC) #40
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d589e0426d993a07c1d12ae685152b756e8fd3ff
Cr-Commit-Position: refs/heads/master@{#397643}

Powered by Google App Engine
This is Rietveld 408576698