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

Issue 2163893003: Start sending auxclick instead of click for non-primary buttons (Closed)

Created:
4 years, 5 months ago by Navid Zolghadr
Modified:
4 years, 4 months ago
CC:
chromium-reviews, asanka, nzolghadr+blinkwatch_chromium.org, eae+blinkwatch, apavlov+blink_chromium.org, arv+watch_chromium.org, rwlbuis, caseq+blink_chromium.org, pfeldman+blink_chromium.org, blink-reviews-html_chromium.org, Patrick Dubroy, blink-reviews-dom_chromium.org, dglazkov+blink, devtools-reviews_chromium.org, blink-reviews, pedrosimonetti+watch_chromium.org, dbeam+watch-ntp_chromium.org, sof, lushnikov+blink_chromium.org, michaelpg+watch-md-ui_chromium.org, pam+watch_chromium.org, oshima+watch_chromium.org, dbeam+watch-downloads_chromium.org, dtapuska+blinkwatch_chromium.org, blink-reviews-events_chromium.org, dbeam+watch-history_chromium.org, 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

Start sending auxclick instead of click for non-primary buttons Stop sending dblclick and click evnt for non-primary buttons and send auxclick event for the click action of non-primary buttons. BUG=625847, 255 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation TBR=dglazkov@chromium.org, holte@chromium.org Committed: https://crrev.com/6efe6e4b42ab875fee4ed7029f693fefc04c2658 Cr-Commit-Position: refs/heads/master@{#412005}

Patch Set 1 #

Patch Set 2 : Start sending auxclick instead of click for non-primary buttons #

Total comments: 4

Patch Set 3 : Adding remote debugging auxclick polyfill #

Total comments: 11

Patch Set 4 : Removing auxclick polyfill for remote devtools #

Total comments: 9

Patch Set 5 : add test to stable and remove redundant auxclick listener #

Total comments: 4

Patch Set 6 : Fix right click issue when auxclick is off #

Patch Set 7 : Rebasing #

Patch Set 8 : Another rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -97 lines) Patch
M chrome/browser/resources/history/other_devices.js View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/resources/md_downloads/crisper.js View 1 2 3 4 5 6 2 chunks +26 lines, -24 lines 0 comments Download
M chrome/browser/resources/ntp4/apps_page.js View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -22 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.browser_tests.filter View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/mouse-click-events-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/script-tests/mouse-click-events.js View 2 chunks +3 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/virtual/stable/fast/events/mouse-click-events-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/element-instance-property-listing-expected.txt View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/GlobalEventHandlers.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/GlobalEventHandlers.idl View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTarget.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/EventTypeNames.in View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/webui/resources/js/util.js View 1 2 3 4 5 6 7 1 chunk +40 lines, -38 lines 0 comments Download

Messages

Total messages: 69 (33 generated)
Navid Zolghadr
4 years, 4 months ago (2016-07-27 18:01:09 UTC) #11
dgozman
https://codereview.chromium.org/2163893003/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js File third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js (right): https://codereview.chromium.org/2163893003/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js#newcode1078 third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js:1078: tabElement.addEventListener("auxclick", this._tabClicked.bind(this), false); Note that if you stop sending ...
4 years, 4 months ago (2016-07-27 20:30:43 UTC) #15
Navid Zolghadr
https://codereview.chromium.org/2163893003/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js File third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js (right): https://codereview.chromium.org/2163893003/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js#newcode1078 third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js:1078: tabElement.addEventListener("auxclick", this._tabClicked.bind(this), false); On 2016/07/27 20:30:43, dgozman wrote: > ...
4 years, 4 months ago (2016-07-27 20:39:09 UTC) #16
dgozman
https://codereview.chromium.org/2163893003/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js File third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js (right): https://codereview.chromium.org/2163893003/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js#newcode1078 third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js:1078: tabElement.addEventListener("auxclick", this._tabClicked.bind(this), false); On 2016/07/27 20:39:09, Navid Zolghadr wrote: ...
4 years, 4 months ago (2016-07-27 20:49:28 UTC) #17
Navid Zolghadr
On 2016/07/27 20:49:28, dgozman wrote: > https://codereview.chromium.org/2163893003/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js > File third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js (right): > > https://codereview.chromium.org/2163893003/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js#newcode1078 > ...
4 years, 4 months ago (2016-07-27 20:56:51 UTC) #18
dgozman
> Although right now I'm adding it to the web experimental flag however the intent ...
4 years, 4 months ago (2016-07-28 17:43:05 UTC) #19
Navid Zolghadr
On 2016/07/28 17:43:05, dgozman wrote: > > Although right now I'm adding it to the ...
4 years, 4 months ago (2016-07-28 18:00:49 UTC) #20
dgozman
On 2016/07/28 18:00:49, Navid Zolghadr wrote: > On 2016/07/28 17:43:05, dgozman wrote: > > > ...
4 years, 4 months ago (2016-07-28 19:54:09 UTC) #21
dtapuska
https://codereview.chromium.org/2163893003/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js File third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js (right): https://codereview.chromium.org/2163893003/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js#newcode1078 third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js:1078: tabElement.addEventListener("auxclick", this._tabClicked.bind(this), false); On 2016/07/27 20:49:27, dgozman wrote: > ...
4 years, 4 months ago (2016-07-28 23:41:11 UTC) #22
Navid Zolghadr
ptal. dgozman@ I added the polyfill change to devtool.js. Can you have a look and ...
4 years, 4 months ago (2016-08-03 18:13:04 UTC) #25
dgozman
https://codereview.chromium.org/2163893003/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js File third_party/WebKit/Source/devtools/front_end/devtools.js (right): https://codereview.chromium.org/2163893003/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js#newcode1092 third_party/WebKit/Source/devtools/front_end/devtools.js:1092: if (window.hasOwnProperty("onauxclick") && !window["InspectorFrontendAPI"].hasOwnProperty("onauxclick")) { This detection won't work: ...
4 years, 4 months ago (2016-08-03 20:54:28 UTC) #28
Navid Zolghadr
https://codereview.chromium.org/2163893003/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js File third_party/WebKit/Source/devtools/front_end/devtools.js (right): https://codereview.chromium.org/2163893003/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js#newcode1092 third_party/WebKit/Source/devtools/front_end/devtools.js:1092: if (window.hasOwnProperty("onauxclick") && !window["InspectorFrontendAPI"].hasOwnProperty("onauxclick")) { On 2016/08/03 20:54:28, dgozman ...
4 years, 4 months ago (2016-08-03 21:35:20 UTC) #29
dgozman
https://codereview.chromium.org/2163893003/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js File third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js (right): https://codereview.chromium.org/2163893003/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js#newcode1084 third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js:1084: tabElement.addEventListener("auxclick", this._tabClicked.bind(this), false); On 2016/08/03 21:35:20, Navid Zolghadr wrote: ...
4 years, 4 months ago (2016-08-03 22:31:50 UTC) #30
Navid Zolghadr
ptal. https://codereview.chromium.org/2163893003/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js File third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js (right): https://codereview.chromium.org/2163893003/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js#newcode367 third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js:367: this._listItemNode.addEventListener("auxclick", this._treeElementToggled.bind(this), false); On 2016/08/03 22:31:49, dgozman wrote: ...
4 years, 4 months ago (2016-08-04 14:42:05 UTC) #31
dgozman
On 2016/08/04 14:42:05, Navid Zolghadr wrote: > ptal. > > https://codereview.chromium.org/2163893003/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js > File third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js (right): ...
4 years, 4 months ago (2016-08-08 17:00:12 UTC) #32
Navid Zolghadr
4 years, 4 months ago (2016-08-09 00:42:10 UTC) #34
Dan Beam
this looks WAY better to me. has anybody else voice support for this? anyways, this ...
4 years, 4 months ago (2016-08-09 02:04:34 UTC) #35
Navid Zolghadr
https://codereview.chromium.org/2163893003/diff/60001/chrome/browser/resources/ntp4/nav_dot.js File chrome/browser/resources/ntp4/nav_dot.js (right): https://codereview.chromium.org/2163893003/diff/60001/chrome/browser/resources/ntp4/nav_dot.js#newcode58 chrome/browser/resources/ntp4/nav_dot.js:58: this.addEventListener('auxclick', this.onClick_); On 2016/08/09 02:04:34, Dan Beam wrote: > ...
4 years, 4 months ago (2016-08-09 13:34:47 UTC) #36
Dan Beam
lgtm https://codereview.chromium.org/2163893003/diff/60001/chrome/browser/resources/ntp4/nav_dot.js File chrome/browser/resources/ntp4/nav_dot.js (right): https://codereview.chromium.org/2163893003/diff/60001/chrome/browser/resources/ntp4/nav_dot.js#newcode58 chrome/browser/resources/ntp4/nav_dot.js:58: this.addEventListener('auxclick', this.onClick_); On 2016/08/09 13:34:46, Navid Zolghadr wrote: ...
4 years, 4 months ago (2016-08-09 16:22:54 UTC) #37
Navid Zolghadr
https://codereview.chromium.org/2163893003/diff/60001/chrome/browser/resources/ntp4/nav_dot.js File chrome/browser/resources/ntp4/nav_dot.js (right): https://codereview.chromium.org/2163893003/diff/60001/chrome/browser/resources/ntp4/nav_dot.js#newcode58 chrome/browser/resources/ntp4/nav_dot.js:58: this.addEventListener('auxclick', this.onClick_); On 2016/08/09 16:22:54, Dan Beam wrote: > ...
4 years, 4 months ago (2016-08-10 14:32:09 UTC) #38
Dan Beam
https://codereview.chromium.org/2163893003/diff/60001/chrome/browser/resources/ntp4/nav_dot.js File chrome/browser/resources/ntp4/nav_dot.js (right): https://codereview.chromium.org/2163893003/diff/60001/chrome/browser/resources/ntp4/nav_dot.js#newcode58 chrome/browser/resources/ntp4/nav_dot.js:58: this.addEventListener('auxclick', this.onClick_); On 2016/08/10 14:32:09, Navid Zolghadr wrote: > ...
4 years, 4 months ago (2016-08-10 22:35:27 UTC) #39
dtapuska
On 2016/08/10 22:35:27, Dan Beam wrote: > https://codereview.chromium.org/2163893003/diff/60001/chrome/browser/resources/ntp4/nav_dot.js > File chrome/browser/resources/ntp4/nav_dot.js (right): > > https://codereview.chromium.org/2163893003/diff/60001/chrome/browser/resources/ntp4/nav_dot.js#newcode58 ...
4 years, 4 months ago (2016-08-11 14:12:17 UTC) #40
Navid Zolghadr
I copied the click test to the stable test suite so that we are sure ...
4 years, 4 months ago (2016-08-11 16:11:03 UTC) #41
Navid Zolghadr
thestig@chromium.org: Please review changes in chrome/browser/ui/browser_browsertest.cc dglazkov@chromium.org: Please review changes in third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in
4 years, 4 months ago (2016-08-11 16:11:28 UTC) #43
Navid Zolghadr
4 years, 4 months ago (2016-08-12 14:34:53 UTC) #45
bokan
https://codereview.chromium.org/2163893003/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2163893003/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1155 third_party/WebKit/Source/core/input/EventHandler.cpp:1155: bool macContextMenuEvent = false; Is this a change in ...
4 years, 4 months ago (2016-08-12 15:29:17 UTC) #46
Navid Zolghadr
https://codereview.chromium.org/2163893003/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2163893003/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1155 third_party/WebKit/Source/core/input/EventHandler.cpp:1155: bool macContextMenuEvent = false; On 2016/08/12 15:29:17, bokan wrote: ...
4 years, 4 months ago (2016-08-12 15:39:16 UTC) #47
bokan
https://codereview.chromium.org/2163893003/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2163893003/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1155 third_party/WebKit/Source/core/input/EventHandler.cpp:1155: bool macContextMenuEvent = false; On 2016/08/12 15:39:16, Navid Zolghadr ...
4 years, 4 months ago (2016-08-12 15:42:20 UTC) #48
Navid Zolghadr
https://codereview.chromium.org/2163893003/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2163893003/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1155 third_party/WebKit/Source/core/input/EventHandler.cpp:1155: bool macContextMenuEvent = false; On 2016/08/12 15:42:20, bokan wrote: ...
4 years, 4 months ago (2016-08-12 16:01:18 UTC) #49
bokan
Source/core lgtm
4 years, 4 months ago (2016-08-12 16:02:27 UTC) #50
Navid Zolghadr
holte@chromium.org: Please review changes in tools/metrics/histograms/histograms.xml
4 years, 4 months ago (2016-08-12 16:49:54 UTC) #52
Lei Zhang
On 2016/08/11 16:11:28, Navid Zolghadr wrote: > mailto:thestig@chromium.org: Please review changes in > chrome/browser/ui/browser_browsertest.cc Still ...
4 years, 4 months ago (2016-08-13 02:15:30 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2163893003/140001
4 years, 4 months ago (2016-08-15 16:44:51 UTC) #64
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-15 18:57:03 UTC) #66
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/6efe6e4b42ab875fee4ed7029f693fefc04c2658 Cr-Commit-Position: refs/heads/master@{#412005}
4 years, 4 months ago (2016-08-15 19:00:02 UTC) #68
Steven Holte
4 years, 4 months ago (2016-08-15 22:00:18 UTC) #69
Message was sent while issue was closed.
histograms lgtm

Powered by Google App Engine
This is Rietveld 408576698