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

Issue 2011653003: Only allow link clicks on single click. (Closed)

Created:
4 years, 7 months ago by dtapuska
Modified:
4 years, 7 months ago
Reviewers:
tkent, esprehn, Rick Byers
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only allow link clicks on single click. When double clicking a link it would cause a double load. Ensure link click only occurs on when the detail is 1. BUG=614467 Committed: https://crrev.com/e46f8fbfd5d2d3408d09d4262fb0f4f99c93a98f Cr-Commit-Position: refs/heads/master@{#396116}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add test and adjust comment #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/fast/html/a-click.html View 1 1 chunk +13 lines, -0 lines 2 comments Download
M third_party/WebKit/LayoutTests/fast/loader/repeat-same-document-navigation.html View 1 chunk +1 line, -3 lines 1 comment Download
M third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 22 (8 generated)
dtapuska
On 2016/05/25 14:13:42, dtapuska wrote: > mailto:dtapuska@chromium.org changed reviewers: > + mailto:rbyers@chromium.org, mailto:tkent@chromium.org tkent@ this ...
4 years, 7 months ago (2016-05-25 14:14:12 UTC) #3
Rick Byers
On 2016/05/25 14:14:12, dtapuska wrote: > On 2016/05/25 14:13:42, dtapuska wrote: > > mailto:dtapuska@chromium.org changed ...
4 years, 7 months ago (2016-05-25 14:30:06 UTC) #4
dtapuska
On 2016/05/25 14:30:06, Rick Byers wrote: > On 2016/05/25 14:14:12, dtapuska wrote: > > On ...
4 years, 7 months ago (2016-05-25 14:57:21 UTC) #5
Rick Byers
(I forgot to publish this nit before, sorry) https://codereview.chromium.org/2011653003/diff/1/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp File third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp (right): https://codereview.chromium.org/2011653003/diff/1/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp#newcode376 third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp:376: // ...
4 years, 7 months ago (2016-05-25 17:25:14 UTC) #6
Rick Byers
On 2016/05/25 14:57:21, dtapuska wrote: > On 2016/05/25 14:30:06, Rick Byers wrote: > > On ...
4 years, 7 months ago (2016-05-25 17:26:26 UTC) #7
dtapuska
PTAL https://codereview.chromium.org/2011653003/diff/1/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp File third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp (right): https://codereview.chromium.org/2011653003/diff/1/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp#newcode376 third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp:376: // Allow detail <= 1 so that synthetic ...
4 years, 7 months ago (2016-05-25 19:25:47 UTC) #8
Rick Byers
LGTM
4 years, 7 months ago (2016-05-25 20:18:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011653003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2011653003/20001
4 years, 7 months ago (2016-05-25 20:21:15 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/176078) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 7 months ago (2016-05-25 20:43:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011653003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2011653003/20001
4 years, 7 months ago (2016-05-25 22:54:38 UTC) #15
tkent
lgtm https://codereview.chromium.org/2011653003/diff/20001/third_party/WebKit/LayoutTests/fast/html/a-click.html File third_party/WebKit/LayoutTests/fast/html/a-click.html (right): https://codereview.chromium.org/2011653003/diff/20001/third_party/WebKit/LayoutTests/fast/html/a-click.html#newcode2 third_party/WebKit/LayoutTests/fast/html/a-click.html:2: <body/> nit: Closing body tag here looks weird ...
4 years, 7 months ago (2016-05-25 22:57:45 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-26 04:11:04 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/e46f8fbfd5d2d3408d09d4262fb0f4f99c93a98f Cr-Commit-Position: refs/heads/master@{#396116}
4 years, 7 months ago (2016-05-26 04:12:46 UTC) #20
esprehn
4 years, 7 months ago (2016-05-26 05:40:09 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/2011653003/diff/20001/third_party/WebKit/Layo...
File third_party/WebKit/LayoutTests/fast/html/a-click.html (right):

https://codereview.chromium.org/2011653003/diff/20001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/fast/html/a-click.html:2: <body/>
On 2016/05/25 at 22:57:45, tkent wrote:
> nit: Closing body tag here looks weird :)

Dave: Can you fix this? the / doesn't do anything. You should actually just
remove the body entirely. The parser will insert one for you when it hits the
<a> below.

https://codereview.chromium.org/2011653003/diff/20001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/fast/loader/repeat-same-document-navigation.html
(left):

https://codereview.chromium.org/2011653003/diff/20001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/fast/loader/repeat-same-document-navigation.html:13:
eventSender.mouseUp();
why did you change this? ::click() is different than going through eventSender.

Powered by Google App Engine
This is Rietveld 408576698