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

Issue 1965493002: Add runtime setting to force passive event listeners. (Closed)

Created:
4 years, 7 months ago by dtapuska
Modified:
4 years, 7 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add runtime setting to force passive event listeners. Add the ability to set the default value for the 'passive' field in AddEventListenerOptions. The value can take on 4 values; 'false', 'true', 'documentonlytrue', 'forcetrue'. It can be set from the command line or by adjusting the chrome://flags. BUG=599611 Committed: https://crrev.com/f65650b0471dfd3d5fda67ae634a986148ad2d3e Cr-Commit-Position: refs/heads/master@{#393565}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix comments #

Patch Set 3 : Fix tests #

Total comments: 2

Patch Set 4 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -16 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/events/AddEventListenerOptionsDefaults.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTarget.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTarget.cpp View 1 2 3 3 chunks +43 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
dtapuska
PTAL; as both of you requested this feature. Hopefully it manages to achieve what you ...
4 years, 7 months ago (2016-05-09 19:07:34 UTC) #3
Rick Byers
Thanks, looks good - just a couple small suggestions. https://codereview.chromium.org/1965493002/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1965493002/diff/1/chrome/app/generated_resources.grd#newcode5653 chrome/app/generated_resources.grd:5653: ...
4 years, 7 months ago (2016-05-09 21:48:48 UTC) #4
aelias_OOO_until_Jul13
Could you write a unit test loading in some HTML with a touch listener and ...
4 years, 7 months ago (2016-05-10 01:22:59 UTC) #5
dtapuska
On 2016/05/10 01:22:59, aelias wrote: > Could you write a unit test loading in some ...
4 years, 7 months ago (2016-05-11 00:32:04 UTC) #6
aelias_OOO_until_Jul13
OK, makes sense, lgtm even without the test in that case. BTW, unit tests are ...
4 years, 7 months ago (2016-05-11 02:30:46 UTC) #7
dtapuska
https://codereview.chromium.org/1965493002/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1965493002/diff/1/chrome/app/generated_resources.grd#newcode5653 chrome/app/generated_resources.grd:5653: + Passive Event Listeners On 2016/05/09 21:48:48, Rick Byers ...
4 years, 7 months ago (2016-05-11 20:01:11 UTC) #8
Rick Byers
LGTM
4 years, 7 months ago (2016-05-12 01:19:04 UTC) #9
dtapuska
On 2016/05/12 01:19:04, Rick Byers wrote: > LGTM ping.
4 years, 7 months ago (2016-05-12 19:59:53 UTC) #11
Lei Zhang
On 2016/05/12 19:59:53, dtapuska wrote: > On 2016/05/12 01:19:04, Rick Byers wrote: > > LGTM ...
4 years, 7 months ago (2016-05-12 20:15:23 UTC) #12
dtapuska
On 2016/05/12 20:15:23, Lei Zhang wrote: > On 2016/05/12 19:59:53, dtapuska wrote: > > On ...
4 years, 7 months ago (2016-05-12 20:20:47 UTC) #13
Charlie Reis
content/ LGTM with nit. https://codereview.chromium.org/1965493002/diff/40001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://codereview.chromium.org/1965493002/diff/40001/content/public/common/content_switches.cc#newcode678 content/public/common/content_switches.cc:678: // Default for passive listeners ...
4 years, 7 months ago (2016-05-12 20:30:16 UTC) #14
Alexei Svitkine (slow)
lgtm
4 years, 7 months ago (2016-05-12 21:32:23 UTC) #15
Lei Zhang
lgtm
4 years, 7 months ago (2016-05-12 22:10:30 UTC) #16
dtapuska
https://codereview.chromium.org/1965493002/diff/40001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://codereview.chromium.org/1965493002/diff/40001/content/public/common/content_switches.cc#newcode678 content/public/common/content_switches.cc:678: // Default for passive listeners being added. Values are ...
4 years, 7 months ago (2016-05-13 15:52:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1965493002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1965493002/60001
4 years, 7 months ago (2016-05-13 15:52:29 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-13 17:21:47 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 17:24:09 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f65650b0471dfd3d5fda67ae634a986148ad2d3e
Cr-Commit-Position: refs/heads/master@{#393565}

Powered by Google App Engine
This is Rietveld 408576698