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

Issue 15238002: Disallow tabsToLinks setting to prevent tabbing to anchor with tabIndex. (Closed)

Created:
7 years, 7 months ago by rchl
Modified:
7 years, 3 months ago
CC:
blink-reviews, eae+blinkwatch, adamk+blink_chromium.org, ojan
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Allow tabbing to anchors with explicit tabIndex even when tabsToLinks is disabled With tabsToLinks setting enabled, browser focuses all links on pressing tab. With it disabled, it does not focus any. This patch changes behavior when the option is disabled so that links with explicit tabIndex are focusable. When author has specified tabIndex, he most likely wants the element to be keyboard accessible. This option is by default enabled but only Mac exposes it in the settings so it only affects Mac users who have changed default settings. BUG=240678 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157684

Patch Set 1 #

Patch Set 2 : Tests update #

Total comments: 6

Patch Set 3 : Address review issues #

Patch Set 4 : rebase on master #

Patch Set 5 : Update tests #

Patch Set 6 : More minimal changes to existing test & add new test #

Patch Set 7 : Actually add new test #

Total comments: 1

Patch Set 8 : Update new test to use modern framework #

Patch Set 9 : rebase #

Patch Set 10 : Add missing line break in frame-tab-focus. Remove accidentally commited line in tab-focus-anchor-ex… #

Patch Set 11 : And update expected result after removing accidentally added line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -54 lines) Patch
M LayoutTests/fast/events/frame-tab-focus.html View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/events/frame-tab-focus-expected.txt View 1 2 3 4 5 6 7 8 9 10 5 chunks +30 lines, -48 lines 0 comments Download
M LayoutTests/fast/events/tab-focus-anchor.html View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
M LayoutTests/fast/events/tab-focus-anchor-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/tab-focus-anchor-tab-to-links.html View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/tab-focus-anchor-tab-to-links-expected.txt View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/html/HTMLAnchorElement.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
rchl
7 years, 7 months ago (2013-05-16 22:33:58 UTC) #1
eseidel
I'm not familiar with the "tabs to links" setting?
7 years, 7 months ago (2013-05-16 22:44:23 UTC) #2
rchl
On 2013/05/16 22:44:23, eseidel wrote: > I'm not familiar with the "tabs to links" setting? ...
7 years, 7 months ago (2013-05-16 22:56:16 UTC) #3
rchl
7 years, 6 months ago (2013-05-29 20:11:52 UTC) #4
Daniel Bratell
eseidel, do you think rchl's comment covers your questions?
7 years, 4 months ago (2013-08-01 14:04:27 UTC) #5
eseidel
It seems you want an AX review. :)
7 years, 4 months ago (2013-08-01 21:11:27 UTC) #6
eseidel
if the AX peeps like it, it's fine with me.
7 years, 4 months ago (2013-08-01 21:11:51 UTC) #7
dmazzoni
What platforms will this affect, and how do other browsers behave? I'm only aware of ...
7 years, 4 months ago (2013-08-01 21:48:15 UTC) #8
Rafał Chłodnicki
7 years, 4 months ago (2013-08-09 12:54:04 UTC) #9
Rafał Chłodnicki
08/01 21:48:15, Dominic Mazzoni wrote: > What platforms will this affect, and how do other ...
7 years, 4 months ago (2013-08-09 12:58:38 UTC) #10
rchl
https://chromiumcodereview.appspot.com/15238002/diff/2001/LayoutTests/fast/events/tab-focus-anchor.html File LayoutTests/fast/events/tab-focus-anchor.html (right): https://chromiumcodereview.appspot.com/15238002/diff/2001/LayoutTests/fast/events/tab-focus-anchor.html#newcode6 LayoutTests/fast/events/tab-focus-anchor.html:6: function print(result) On 2013/08/01 21:48:15, Dominic Mazzoni wrote: > ...
7 years, 4 months ago (2013-08-20 17:58:09 UTC) #11
rchl
Someone from Google must submit try jobs. I don't have permissions to do it.
7 years, 4 months ago (2013-08-20 18:03:33 UTC) #12
rchl
On 2013/08/20 18:03:33, rchl wrote: > Someone from Google must submit try jobs. I don't ...
7 years, 3 months ago (2013-09-05 10:05:22 UTC) #13
dmazzoni
Sorry, I missed that this was updated. I just added try jobs. Feel free to ...
7 years, 3 months ago (2013-09-05 14:54:45 UTC) #14
Rafał Chłodnicki
On 2013/09/05 14:54:45, Dominic Mazzoni wrote: > Sorry, I missed that this was updated. I ...
7 years, 3 months ago (2013-09-05 16:23:02 UTC) #15
Rafał Chłodnicki
I've rebased and updated patch description, clarifying few things. Could you please try requesting bots ...
7 years, 3 months ago (2013-09-05 17:34:14 UTC) #16
Rafał Chłodnicki
webkit_tests webkit_tests 291 fixable (0 skipped) failed 2 tab-focus-anchor.html - my fault, forgot to update ...
7 years, 3 months ago (2013-09-06 13:26:27 UTC) #17
dmazzoni
On 2013/09/06 13:26:27, Rafał Chłodnicki wrote: > frame-tab-focus.html - not sure I quite understand this ...
7 years, 3 months ago (2013-09-09 05:51:48 UTC) #18
rchl
On 2013/09/09 05:51:48, Dominic Mazzoni wrote: > On 2013/09/06 13:26:27, Rafał Chłodnicki wrote: > > ...
7 years, 3 months ago (2013-09-09 07:59:50 UTC) #19
Rafał Chłodnicki
Apart from that, test is not testing what it describes. It uses synthetic events to ...
7 years, 3 months ago (2013-09-09 11:48:08 UTC) #20
Rafał Chłodnicki
To describe the changes I've done in the tests: In frame-tab-focus.html: - Removed tests for ...
7 years, 3 months ago (2013-09-09 12:26:10 UTC) #21
dmazzoni
On 2013/09/09 07:59:50, rchl wrote: > Yes, but the test expects that links are not ...
7 years, 3 months ago (2013-09-09 14:47:56 UTC) #22
rchl
On 2013/09/09 14:47:56, Dominic Mazzoni wrote: > Outside of that I'd prefer you make minimal ...
7 years, 3 months ago (2013-09-09 15:31:03 UTC) #23
dmazzoni
On 2013/09/09 15:31:03, rchl wrote: > On 2013/09/09 14:47:56, Dominic Mazzoni wrote: > > Outside ...
7 years, 3 months ago (2013-09-09 15:45:06 UTC) #24
rchl
On 2013/09/09 15:45:06, Dominic Mazzoni wrote: > > OK, I can revert most changes from ...
7 years, 3 months ago (2013-09-09 16:01:58 UTC) #25
dmazzoni
OK, I just took a closer look at the test history. The test is 7 ...
7 years, 3 months ago (2013-09-10 21:03:05 UTC) #26
rchl
On 2013/09/10 21:03:05, Dominic Mazzoni wrote: > To capture the spirit of the original test, ...
7 years, 3 months ago (2013-09-10 21:09:54 UTC) #27
dmazzoni
On 2013/09/10 21:09:54, rchl wrote: > You might be forgetting that my change makes the ...
7 years, 3 months ago (2013-09-10 21:33:14 UTC) #28
dmazzoni
https://chromiumcodereview.appspot.com/15238002/diff/32001/LayoutTests/fast/events/tab-focus-anchor-tab-to-links.html File LayoutTests/fast/events/tab-focus-anchor-tab-to-links.html (right): https://chromiumcodereview.appspot.com/15238002/diff/32001/LayoutTests/fast/events/tab-focus-anchor-tab-to-links.html#newcode6 LayoutTests/fast/events/tab-focus-anchor-tab-to-links.html:6: function pass() One last thing - since this is ...
7 years, 3 months ago (2013-09-10 21:35:47 UTC) #29
rchl
On 2013/09/10 21:33:14, Dominic Mazzoni wrote: > One other question - doesn't have to be ...
7 years, 3 months ago (2013-09-10 21:40:14 UTC) #30
rchl
On 2013/09/10 21:40:14, rchl wrote: > On 2013/09/10 21:33:14, Dominic Mazzoni wrote: > > One ...
7 years, 3 months ago (2013-09-10 22:30:49 UTC) #31
rchl
(Previous comment contains no input - accidental submit) I hate frame-tab-focus.html. I can't make its ...
7 years, 3 months ago (2013-09-10 22:34:28 UTC) #32
dmazzoni
lgtm
7 years, 3 months ago (2013-09-10 22:38:48 UTC) #33
dmazzoni
On 2013/09/10 22:34:28, rchl wrote: > I hate frame-tab-focus.html. I can't make its description have ...
7 years, 3 months ago (2013-09-10 22:39:48 UTC) #34
rchl
Darn, someone changed the code... I'm submitting rebase but haven't put much thought into it. ...
7 years, 3 months ago (2013-09-10 23:06:41 UTC) #35
dmazzoni
Try bots running again. Hopefully we're close. On Tue, Sep 10, 2013 at 4:06 PM, ...
7 years, 3 months ago (2013-09-10 23:11:15 UTC) #36
rchl
Lets try bots again please. :)
7 years, 3 months ago (2013-09-11 20:06:11 UTC) #37
Rafał Chłodnicki
On 2013/09/11 20:06:11, rchl wrote: > Lets try bots again please. :) Thanks. Linux failure ...
7 years, 3 months ago (2013-09-12 09:15:40 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rchl@opera.com/15238002/74001
7 years, 3 months ago (2013-09-12 15:08:58 UTC) #39
commit-bot: I haz the power
7 years, 3 months ago (2013-09-12 17:51:02 UTC) #40
Message was sent while issue was closed.
Change committed as 157684

Powered by Google App Engine
This is Rietveld 408576698