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

Issue 619613005: The link should be activated by enter key on focusing the child element inside the anchor(relanding) (Closed)

Created:
6 years, 2 months ago by Miyoung Shin(g)
Modified:
6 years, 1 month ago
Reviewers:
pdr., robwu
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

The link should be activated by enter key on focusing the child element inside the anchor. The handing of Enter key has moved from keydown to keypress in anchor element. And this makes behavior consistent with Firefox and IE. BUG=350738, 425859 R=pdr@chromium.org R=rob@robwu.nl TEST=LayoutTests/fast/events/press-enter-key-on-focused-element-inside-link.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184783

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : rebase #

Patch Set 9 #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -8 lines) Patch
A LayoutTests/fast/events/press-enter-key-on-focused-element-inside-link.html View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/press-enter-key-on-focused-element-inside-link-expected.txt View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/simulated-key-state.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLAnchorElement.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLAnchorElement.cpp View 1 2 3 4 2 chunks +8 lines, -5 lines 0 comments Download
M Source/core/svg/SVGAElement.cpp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 69 (13 generated)
Miyoung Shin(g)
6 years, 2 months ago (2014-10-01 05:58:08 UTC) #1
pdr.
I've cc'e Rob Wu just as an FYI, as he was in this code recently ...
6 years, 2 months ago (2014-10-01 20:32:37 UTC) #3
robwu
FYI: Even after fixing the bug that is associated with this CL, there will still ...
6 years, 2 months ago (2014-10-01 21:25:54 UTC) #4
pdr.
On 2014/10/01 at 21:25:54, rob wrote: > On 2014/10/01 20:32:37, pdr wrote: > > This ...
6 years, 2 months ago (2014-10-01 21:43:40 UTC) #5
Miyoung Shin(g)
On 2014/10/01 21:43:40, pdr wrote: > On 2014/10/01 at 21:25:54, rob wrote: > > On ...
6 years, 2 months ago (2014-10-02 05:12:45 UTC) #6
pdr.
On 2014/10/02 at 05:12:45, myid.o.shin wrote: > On 2014/10/01 21:43:40, pdr wrote: > > On ...
6 years, 2 months ago (2014-10-03 00:35:11 UTC) #7
Miyoung Shin(g)
1. I removed to use contains() at PatchSet2. I realized I didn't need to use ...
6 years, 2 months ago (2014-10-03 11:54:46 UTC) #8
robwu
On 2014/10/03 11:54:46, Miyoung Shin(g) wrote: > I'm not sure which one is right, I ...
6 years, 2 months ago (2014-10-03 13:28:40 UTC) #9
Miyoung Shin(g)
Thank you for your comment. > Read the HTML5 specification Sure, I read the specification ...
6 years, 2 months ago (2014-10-06 06:31:38 UTC) #10
Miyoung Shin(g)
Test case1. <a href="javascript:alert('a')"> <form action="javascript:alert('form')"> <xxxxx onclick="alert('click')"> </form></a> if xxxxx is one of input ...
6 years, 2 months ago (2014-10-06 06:32:03 UTC) #11
robwu
It turns out that there is a reason for this inconsistency between browsers. The markup ...
6 years, 2 months ago (2014-10-06 09:33:09 UTC) #12
Miyoung Shin(g)
pdr@, Could you give me your opinion?
6 years, 2 months ago (2014-10-06 13:35:21 UTC) #13
pdr.
On 2014/10/06 at 13:35:21, myid.o.shin wrote: > pdr@, Could you give me your opinion? Excellent ...
6 years, 2 months ago (2014-10-08 03:30:02 UTC) #14
Miyoung Shin(g)
> Do you think > we could fix some of the cross-browser inconsistencies you found ...
6 years, 2 months ago (2014-10-08 05:19:12 UTC) #15
pdr.
On 2014/10/08 at 05:19:12, myid.o.shin wrote: > > Do you think > > we could ...
6 years, 2 months ago (2014-10-08 06:28:58 UTC) #16
robwu
On 2014/10/08 03:30:02, pdr wrote: > I disagree with Rob. Specs exist to facilitate interoperability ...
6 years, 2 months ago (2014-10-08 08:46:19 UTC) #17
Miyoung Shin(g)
> 1. Implementing the new behavior for <a><xxx tabindex> (bug 350738). > 2. Not change ...
6 years, 2 months ago (2014-10-09 15:37:56 UTC) #18
Miyoung Shin(g)
I've uploaded the patch. My major change is to replace keydown event to keypress event ...
6 years, 2 months ago (2014-10-13 06:05:18 UTC) #19
robwu
We're getting close! Could you add a <textarea> test case to avoid regressions, and a ...
6 years, 2 months ago (2014-10-13 09:19:48 UTC) #20
Miyoung Shin(g)
https://codereview.chromium.org/619613005/diff/40001/LayoutTests/fast/events/keydown-enter-key-on-focused-element-inside-link.html File LayoutTests/fast/events/keydown-enter-key-on-focused-element-inside-link.html (right): https://codereview.chromium.org/619613005/diff/40001/LayoutTests/fast/events/keydown-enter-key-on-focused-element-inside-link.html#newcode1 LayoutTests/fast/events/keydown-enter-key-on-focused-element-inside-link.html:1: <!DOCTYPE html> On 2014/10/13 09:19:48, robwu wrote: > This ...
6 years, 2 months ago (2014-10-13 11:05:01 UTC) #21
robwu
https://codereview.chromium.org/619613005/diff/40001/LayoutTests/fast/events/keydown-enter-key-on-focused-element-inside-link.html File LayoutTests/fast/events/keydown-enter-key-on-focused-element-inside-link.html (right): https://codereview.chromium.org/619613005/diff/40001/LayoutTests/fast/events/keydown-enter-key-on-focused-element-inside-link.html#newcode16 LayoutTests/fast/events/keydown-enter-key-on-focused-element-inside-link.html:16: document.activeElement.dispatchEvent(event); On 2014/10/13 11:05:01, Miyoung Shin(g) wrote: > On ...
6 years, 2 months ago (2014-10-13 11:29:33 UTC) #22
Miyoung Shin(g)
> Could you add a <textarea> test case to avoid regressions? I can't create keypress ...
6 years, 2 months ago (2014-10-13 15:55:59 UTC) #23
robwu
https://codereview.chromium.org/619613005/diff/210001/LayoutTests/fast/events/press-enter-key-on-focused-element-inside-link.html File LayoutTests/fast/events/press-enter-key-on-focused-element-inside-link.html (right): https://codereview.chromium.org/619613005/diff/210001/LayoutTests/fast/events/press-enter-key-on-focused-element-inside-link.html#newcode13 LayoutTests/fast/events/press-enter-key-on-focused-element-inside-link.html:13: <svg width="200" height="50" onclick="debug(eventInfo(event))">> Remove the trailing >. https://codereview.chromium.org/619613005/diff/210001/LayoutTests/fast/events/press-enter-key-on-focused-element-inside-link.html#newcode25 ...
6 years, 2 months ago (2014-10-13 21:57:04 UTC) #24
Miyoung Shin(g)
Rob, thank you for your kindly review. I've upload the patch to apply your comment. ...
6 years, 2 months ago (2014-10-14 05:11:22 UTC) #25
robwu
Looks good to me. Star https://crbug.com/423270 to be notified when the event_sender bug is fixed. ...
6 years, 2 months ago (2014-10-14 09:27:24 UTC) #26
Miyoung Shin(g)
> Star https://crbug.com/423270 to be notified when the event_sender bug is fixed. > This takes ...
6 years, 2 months ago (2014-10-14 11:50:18 UTC) #27
pdr.
On 2014/10/14 at 11:50:18, myid.o.shin wrote: > > Star https://crbug.com/423270 to be notified when the ...
6 years, 2 months ago (2014-10-20 17:28:34 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/619613005/320001
6 years, 2 months ago (2014-10-20 17:29:37 UTC) #30
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-20 17:30:00 UTC) #32
robwu
https://codereview.chromium.org/619613005/diff/320001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/619613005/diff/320001/LayoutTests/TestExpectations#newcode1462 LayoutTests/TestExpectations:1462: crbug.com/423270 fast/events/press-enter-key-on-focused-element-inside-link.html [ Pass Failure ] Put these three ...
6 years, 2 months ago (2014-10-20 19:05:21 UTC) #33
Miyoung Shin(g)
> https://codereview.chromium.org/619613005/diff/320001/LayoutTests/TestExpectations#newcode1462 > LayoutTests/TestExpectations:1462: crbug.com/423270 > fast/events/press-enter-key-on-focused-element-inside-link.html [ Pass Failure ] > Put these three ...
6 years, 2 months ago (2014-10-21 03:37:41 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/619613005/340001
6 years, 2 months ago (2014-10-21 03:46:45 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/17868) linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/29841) mac_blink_compile_dbg ...
6 years, 2 months ago (2014-10-21 03:50:43 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/619613005/380001
6 years, 2 months ago (2014-10-21 06:42:22 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/30119)
6 years, 2 months ago (2014-10-21 07:44:25 UTC) #43
Miyoung Shin(g)
I've added fragment-activation-focuses-target.html in TestExpectations The reason is the same problem with eventSender.keyDown("\r");
6 years, 2 months ago (2014-10-21 08:57:02 UTC) #44
robwu
On 2014/10/21 08:57:02, Miyoung Shin(g) wrote: > I've added fragment-activation-focuses-target.html in TestExpectations > The reason ...
6 years, 2 months ago (2014-10-21 09:12:53 UTC) #45
Miyoung Shin(g)
On 2014/10/21 09:12:53, robwu wrote: > On 2014/10/21 08:57:02, Miyoung Shin(g) wrote: > > I've ...
6 years, 2 months ago (2014-10-21 09:50:54 UTC) #46
robwu
On 2014/10/21 09:50:54, Miyoung Shin(g) wrote: > On 2014/10/21 09:12:53, robwu wrote: > > On ...
6 years, 2 months ago (2014-10-21 09:58:30 UTC) #47
Miyoung Shin(g)
> src/third_party/WebKit/LayoutTests/fast/dom/fragment-activation-focuses-target.html > The failing part is > > <a href="#fragment1" id="link1" tabindex="0">link1</a> > <div ...
6 years, 2 months ago (2014-10-21 10:12:14 UTC) #48
robwu
On 2014/10/21 10:12:14, Miyoung Shin(g) wrote: > > > src/third_party/WebKit/LayoutTests/fast/dom/fragment-activation-focuses-target.html > > The failing part ...
6 years, 2 months ago (2014-10-21 10:18:55 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/619613005/360002
6 years, 2 months ago (2014-10-21 10:22:20 UTC) #51
commit-bot: I haz the power
Committed patchset #9 (id:360002) as 184074
6 years, 2 months ago (2014-10-21 11:38:22 UTC) #52
Miyoung Shin(g)
I got a mail that sheriff reverted this patch. I will investigate it. Reviewers: Miyoung ...
6 years, 2 months ago (2014-10-22 08:48:37 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/619613005/360002
6 years, 1 month ago (2014-10-26 02:16:57 UTC) #57
commit-bot: I haz the power
Committed patchset #9 (id:360002) as 184411
6 years, 1 month ago (2014-10-26 02:17:51 UTC) #58
kochi
On 2014/10/26 02:17:51, I haz the power (commit-bot) wrote: > Committed patchset #9 (id:360002) as ...
6 years, 1 month ago (2014-10-27 04:32:08 UTC) #59
robwu
Miyoung, could you edit the issue description and mention that the handing of Enter has ...
6 years, 1 month ago (2014-10-27 10:56:20 UTC) #60
pdr.
On 2014/10/27 at 04:32:08, kochi wrote: > On 2014/10/26 02:17:51, I haz the power (commit-bot) ...
6 years, 1 month ago (2014-10-27 18:54:51 UTC) #61
Miyoung Shin(g)
pdr@, Thank you for your nomination. Now I can run tryjob by myid.shin@samsung account. But ...
6 years, 1 month ago (2014-11-02 16:41:50 UTC) #62
pdr.
On 2014/11/02 at 16:41:50, myid.o.shin wrote: > pdr@, > > Thank you for your nomination. ...
6 years, 1 month ago (2014-11-02 19:10:37 UTC) #63
robwu
The Blink patch that disabled the failing tests (https://codereview.chromium.org/641233004/) has been merged with Chromium (https://codereview.chromium.org/699533002), ...
6 years, 1 month ago (2014-11-02 20:18:28 UTC) #64
Miyoung Shin(g)
@pdr, > I added a bunch of tryjobs but please double-check that these run > ...
6 years, 1 month ago (2014-11-03 01:20:18 UTC) #65
robwu
On 2014/11/03 01:20:18, Miyoung Shin(g) wrote: > @pdr, > > I added a bunch of ...
6 years, 1 month ago (2014-11-03 01:22:25 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/619613005/410001
6 years, 1 month ago (2014-11-03 06:45:34 UTC) #68
commit-bot: I haz the power
6 years, 1 month ago (2014-11-03 07:58:12 UTC) #69
Message was sent while issue was closed.
Committed patchset #10 (id:410001) as 184783

Powered by Google App Engine
This is Rietveld 408576698