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

Issue 23060022: Don't turn middleclicks into click events. (Closed)

Created:
7 years, 4 months ago by Daniel Bratell
Modified:
3 years, 5 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Don't turn middleclicks into click events. The specs are fuzzy on when click events should be generated. It's bad if they are generated together with some other action since many scripts just listen to onclick without checking button. For that reason right clicks are already treated differently and this patch changes the code to also not turn middle clicks into click events. This makes us more compatible with Gecko, Presto and MSIE/Trident though there is undocumented interaction with various pan-to-scroll features that makes this not the whole truth. BUG=255

Patch Set 1 #

Patch Set 2 : Now with updated LayoutTests #

Patch Set 3 : After multi-browser analysis and with testcases. #

Total comments: 2

Patch Set 4 : Going back to simple fix: No click events. Done. #

Total comments: 1

Patch Set 5 : Removed tests that no longer added any value. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -53 lines) Patch
M LayoutTests/editing/pasteboard/paste-when-over-link.html View 1 2 3 4 1 chunk +0 lines, -37 lines 0 comments Download
D LayoutTests/editing/pasteboard/paste-when-over-link-expected.txt View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
A LayoutTests/fast/events/mid-button-link-click.html View 1 2 1 chunk +72 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/mid-button-link-click-expected.txt View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/mouse-click-events-expected.txt View 1 3 1 chunk +1 line, -3 lines 0 comments Download
M LayoutTests/fast/events/script-tests/mouse-click-events.js View 1 3 2 chunks +5 lines, -2 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
abarth-chromium
@pkasting: I seem to remember that you looked at this issue before. Any thoughts about ...
7 years, 4 months ago (2013-08-22 19:22:24 UTC) #1
Peter Kasting
On 2013/08/22 19:22:24, abarth wrote: > @pkasting: I seem to remember that you looked at ...
7 years, 4 months ago (2013-08-22 19:31:29 UTC) #2
Daniel Bratell
On 2013/08/22 19:31:29, Peter Kasting wrote: > On 2013/08/22 19:22:24, abarth wrote: > > @pkasting: ...
7 years, 4 months ago (2013-08-23 06:28:19 UTC) #3
Peter Kasting
I'm not qualified to review this change. Linking to the other bug and hoping the ...
7 years, 4 months ago (2013-08-23 18:49:37 UTC) #4
Daniel Bratell
Found an existing LayoutTest (after writing my own test that I then discarded) that I ...
7 years, 3 months ago (2013-08-26 14:35:59 UTC) #5
Daniel Bratell
On 2013/08/26 14:35:59, Daniel Bratell wrote: > Found an existing LayoutTest (after writing my own ...
7 years, 3 months ago (2013-08-26 16:09:10 UTC) #6
Daniel Bratell
On 2013/08/26 16:09:10, Daniel Bratell wrote: > On 2013/08/26 14:35:59, Daniel Bratell wrote: > > ...
7 years, 3 months ago (2013-08-26 16:29:20 UTC) #7
Daniel Bratell
Spreadsheet that probably will be blocked: https://docs.google.com/a/opera.com/spreadsheet/pub?key=0AscKoSknuFdjdHVTRjhGNmdHZXlSNnZOQXVhR2NfZlE&output=html
7 years, 3 months ago (2013-08-26 16:30:13 UTC) #8
Daniel Bratell
On 2013/08/26 16:30:13, Daniel Bratell wrote: > Spreadsheet that probably will be blocked: > https://docs.google.com/a/opera.com/spreadsheet/pub?key=0AscKoSknuFdjdHVTRjhGNmdHZXlSNnZOQXVhR2NfZlE&output=html ...
7 years, 3 months ago (2013-08-27 18:22:15 UTC) #9
Daniel Bratell
On 2013/08/27 18:22:15, Daniel Bratell wrote: > Phew! abarth, Peter Kasting - your turn. :-) ...
7 years, 3 months ago (2013-09-05 11:17:52 UTC) #10
abarth-chromium
Maybe this CL is right, but I'm not sure. It would require a significant amount ...
7 years, 3 months ago (2013-09-06 05:01:25 UTC) #11
Daniel Bratell
On 2013/09/06 05:01:25, abarth wrote: > Maybe this CL is right, but I'm not sure. ...
7 years, 3 months ago (2013-09-06 07:03:24 UTC) #12
abarth-chromium
On 2013/09/06 07:03:24, Daniel Bratell wrote: > What can I do to make these 15 ...
7 years, 3 months ago (2013-09-06 16:04:24 UTC) #13
abarth-chromium
Your best path forward here is probably to find another reviewer who's willing to dedicate ...
7 years, 3 months ago (2013-09-06 16:06:46 UTC) #14
ojan
I think I might be misunderstanding the patch, but I think we should make middle-clicks ...
7 years, 3 months ago (2013-09-13 00:59:48 UTC) #15
ojan
7 years, 3 months ago (2013-09-13 01:06:35 UTC) #16
Daniel Bratell
On 2013/09/13 00:59:48, ojan wrote: > I think I might be misunderstanding the patch, but ...
7 years, 3 months ago (2013-09-13 06:44:28 UTC) #17
Daniel Bratell
On 2013/09/13 06:44:28, Daniel Bratell wrote: > On 2013/09/13 00:59:48, ojan wrote: > > I ...
7 years, 3 months ago (2013-09-13 06:54:48 UTC) #18
ojan
On 2013/09/13 06:54:48, Daniel Bratell wrote: > On 2013/09/13 06:44:28, Daniel Bratell wrote: > > ...
7 years, 3 months ago (2013-09-13 16:43:26 UTC) #19
Daniel Bratell
On 2013/09/13 16:43:26, ojan wrote: > Thanks for doing all the requisite legwork here. My ...
7 years, 2 months ago (2013-10-11 12:56:16 UTC) #20
ojan
https://codereview.chromium.org/23060022/diff/29001/LayoutTests/editing/pasteboard/paste-when-over-link.html File LayoutTests/editing/pasteboard/paste-when-over-link.html (right): https://codereview.chromium.org/23060022/diff/29001/LayoutTests/editing/pasteboard/paste-when-over-link.html#newcode6 LayoutTests/editing/pasteboard/paste-when-over-link.html:6: focuses a textarea does not paste into the textarea. ...
7 years, 2 months ago (2013-10-11 20:39:21 UTC) #21
Daniel Bratell
On 2013/10/11 20:39:21, ojan wrote: > https://codereview.chromium.org/23060022/diff/29001/LayoutTests/editing/pasteboard/paste-when-over-link.html > File LayoutTests/editing/pasteboard/paste-when-over-link.html (right): > > https://codereview.chromium.org/23060022/diff/29001/LayoutTests/editing/pasteboard/paste-when-over-link.html#newcode6 > ...
7 years, 2 months ago (2013-10-14 15:00:44 UTC) #22
ojan
lgtm
7 years, 2 months ago (2013-10-14 22:23:17 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bratell@opera.com/23060022/35001
7 years, 2 months ago (2013-10-14 22:23:40 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=8178
7 years, 2 months ago (2013-10-14 23:33:13 UTC) #25
esprehn
What happened here? Can we land this?
6 years, 7 months ago (2014-04-29 22:06:52 UTC) #26
Daniel Bratell
6 years, 7 months ago (2014-04-30 07:46:34 UTC) #27
On 2014/04/29 22:06:52, esprehn wrote:
> What happened here? Can we land this?

I discovered that the UI command "open in new window" depends on this code so
the scope of the fix grew beyond what I was prepared to invest into this issue
at the time. I don't know if it's better to let it linger as a reminder for me
(I see it on my list all the time) or to close it to keep lists clear.

The plan forward is to split the code so that "open in new window" is an
explicit instruction, not caring how it was initiated.

so right now this is not lgtm.

Powered by Google App Engine
This is Rietveld 408576698