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

Issue 1234613004: Only execute default actions on trusted events. (Closed)

Created:
5 years, 5 months ago by dtapuska
Modified:
5 years, 5 months ago
Reviewers:
tkent
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master_event_trusted_main3
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Only execute default actions on trusted events. Add a RuntimeFeature to try out only allowing default actions to execute on trusted events. This was previously tried in https://codereview.chromium.org/894913002 in a slightly different approach; this attempt is based on the isTrusted support. Also this time it is hidden behind a feature flag that isn't enabled as it has some web compatibility issues that needs to be quantified. BUG=334015 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199346 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199380

Patch Set 1 #

Total comments: 5

Patch Set 2 : Adjust LayoutTests as the virtual tests weren't properly run before. #

Patch Set 3 : Rebase #

Patch Set 4 : Fix mac build bot #

Patch Set 5 : Rebase #

Total comments: 32

Patch Set 6 : Fix issues in tests; too much copy and pasting other bad test code. #

Patch Set 7 : Add Yosemite exceptions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -91 lines) Patch
M LayoutTests/NeverFixTests View 1 2 3 4 3 chunks +12 lines, -0 lines 0 comments Download
M LayoutTests/TestExpectations View 1 2 3 4 5 6 4 chunks +5 lines, -0 lines 0 comments Download
M LayoutTests/VirtualTestSuites View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/HTMLSelectElement/remove-element-from-within-focus-handler-crash.html View 1 chunk +6 lines, -3 lines 0 comments Download
A LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action-expected.txt View 1 1 chunk +12 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/frame-tab-focus.html View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M LayoutTests/fast/events/option-tab.html View 1 2 3 4 5 2 chunks +8 lines, -6 lines 0 comments Download
M LayoutTests/fast/events/wheelevent-in-scrolling-div.html View 1 2 chunks +7 lines, -14 lines 0 comments Download
M LayoutTests/fast/events/wheelevent-in-scrolling-div-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/forms/listbox-onchange.html View 1 2 3 4 5 1 chunk +31 lines, -33 lines 0 comments Download
M LayoutTests/fast/forms/range/slider-transformed.html View 2 chunks +6 lines, -11 lines 0 comments Download
M LayoutTests/fast/forms/range/slider-zoomed.html View 2 chunks +6 lines, -11 lines 0 comments Download
M LayoutTests/fast/forms/select-list-box-mouse-focus.html View 1 chunk +8 lines, -5 lines 0 comments Download
A LayoutTests/virtual/trustedeventsdefaultaction/fast/events/README.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/virtual/trustedeventsdefaultaction/fast/events/dispatch-synthetic-keyboardevent-no-action-expected.txt View 1 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/virtual/trustedeventsdefaultaction/fast/events/simulated-key-state-expected.txt View 1 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/events/EventDispatcher.cpp View 1 chunk +5 lines, -1 line 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
dtapuska
5 years, 5 months ago (2015-07-15 23:20:58 UTC) #2
tkent
https://codereview.chromium.org/1234613004/diff/1/Source/platform/RuntimeEnabledFeatures.in File Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/1234613004/diff/1/Source/platform/RuntimeEnabledFeatures.in#newcode160 Source/platform/RuntimeEnabledFeatures.in:160: TrustedEventsDefaultAction Do we need a separated runtime flag?
5 years, 5 months ago (2015-07-16 23:39:45 UTC) #3
dtapuska
https://codereview.chromium.org/1234613004/diff/1/Source/platform/RuntimeEnabledFeatures.in File Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/1234613004/diff/1/Source/platform/RuntimeEnabledFeatures.in#newcode160 Source/platform/RuntimeEnabledFeatures.in:160: TrustedEventsDefaultAction On 2015/07/16 23:39:45, tkent wrote: > Do we ...
5 years, 5 months ago (2015-07-17 02:46:10 UTC) #4
tkent
https://codereview.chromium.org/1234613004/diff/1/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html File LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html (right): https://codereview.chromium.org/1234613004/diff/1/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html#newcode17 LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html:17: var event = new KeyboardEvent('keydown', { keyIdentifier: 'Down' } ...
5 years, 5 months ago (2015-07-17 05:50:42 UTC) #5
dtapuska
https://codereview.chromium.org/1234613004/diff/1/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html File LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html (right): https://codereview.chromium.org/1234613004/diff/1/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html#newcode17 LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html:17: var event = new KeyboardEvent('keydown', { keyIdentifier: 'Down' } ...
5 years, 5 months ago (2015-07-21 21:30:05 UTC) #6
dtapuska
On 2015/07/21 21:30:05, Dave Tapuska wrote: > https://codereview.chromium.org/1234613004/diff/1/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html > File LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html > (right): > > ...
5 years, 5 months ago (2015-07-22 21:01:50 UTC) #7
tkent
https://codereview.chromium.org/1234613004/diff/80001/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html File LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html (right): https://codereview.chromium.org/1234613004/diff/80001/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html#newcode12 LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html:12: function test() You don't need to define the function ...
5 years, 5 months ago (2015-07-22 23:15:03 UTC) #8
dtapuska
https://codereview.chromium.org/1234613004/diff/80001/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html File LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html (right): https://codereview.chromium.org/1234613004/diff/80001/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html#newcode12 LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html:12: function test() On 2015/07/22 23:15:02, tkent wrote: > You ...
5 years, 5 months ago (2015-07-23 01:28:10 UTC) #9
tkent
lgtm
5 years, 5 months ago (2015-07-23 01:42:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234613004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1234613004/100001
5 years, 5 months ago (2015-07-23 01:42:44 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199346
5 years, 5 months ago (2015-07-23 02:55:09 UTC) #13
alancutter (OOO until 2018)
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1251043004/ by alancutter@chromium.org. ...
5 years, 5 months ago (2015-07-23 07:23:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234613004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1234613004/120001
5 years, 5 months ago (2015-07-23 15:07:39 UTC) #17
commit-bot: I haz the power
5 years, 5 months ago (2015-07-23 16:21:53 UTC) #18
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199380

Powered by Google App Engine
This is Rietveld 408576698