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

Issue 484383002: Disable the focus moves to an element which doesn't satisfy the spec. (Closed)

Created:
6 years, 4 months ago by yanagawa
Modified:
6 years, 3 months ago
Reviewers:
hayato, yurina
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Disable the focus moves to an element which doesn't satisfy the spec. The current behavior, if there are some elements that are set ‘ tabindex="negative integer" ', and then, when one of them is focused on, the next focus moves to the others. however, it does not match the spec. This patch disallow them. The spec: http://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribute BUG=395761 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182040

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 2

Patch Set 3 : Ver.2 #

Total comments: 3

Patch Set 4 : Ver.2+ #

Patch Set 5 : Ver.2 Patch Test. #

Patch Set 6 : Test for Ver.2 Patch #

Total comments: 4

Patch Set 7 : Two Tests for Ver.2 Patch. #

Total comments: 2

Patch Set 8 : use document.activeElement #

Total comments: 6

Patch Set 9 : no png #

Patch Set 10 : remove png #

Patch Set 11 : Fix Test #

Patch Set 12 : Fix Test #

Total comments: 12

Patch Set 13 : Use shouldBe and so on #

Total comments: 14

Patch Set 14 : Fix indent and add space after ', #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -8 lines) Patch
A LayoutTests/fast/events/tabindex-no-focusable.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/tabindex-no-focusable-all-negative.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/tabindex-no-focusable-all-negative-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/tabindex-no-focusable-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/page/FocusController.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 37 (5 generated)
yanagawa
Hello. Could you please review this my patch.
6 years, 4 months ago (2014-08-20 03:25:51 UTC) #1
hayato
Thank you for the first contribution! You might want to update the description of this ...
6 years, 4 months ago (2014-08-20 06:10:15 UTC) #2
yanagawa
We added test code for this patch.
6 years, 4 months ago (2014-08-22 04:11:21 UTC) #3
hayato
Thank you for adding the test. Looks your patch includes #tabindex-focus-chain-expected.txt#, which might be a ...
6 years, 4 months ago (2014-08-25 06:52:16 UTC) #4
yanagawa
Patchset #3 (id:40001) has been deleted
6 years, 4 months ago (2014-08-26 05:22:12 UTC) #5
yanagawa
Patchset #3 (id:60001) has been deleted
6 years, 4 months ago (2014-08-26 05:22:23 UTC) #6
yanagawa
Patchset #3 (id:80001) has been deleted
6 years, 4 months ago (2014-08-26 05:22:31 UTC) #7
yanagawa
I fixed error. Could you please review this.
6 years, 4 months ago (2014-08-26 05:24:16 UTC) #8
hayato
Thank you for fixing that. The fix looks promising. I think you might want to ...
6 years, 4 months ago (2014-08-26 07:34:56 UTC) #9
yanagawa
I fixed ver.2 patch's Test. Could you see it.
6 years, 3 months ago (2014-09-02 07:29:03 UTC) #10
hayato
Thank you for updating the test. It seems you've added a test for the scenario ...
6 years, 3 months ago (2014-09-03 05:25:26 UTC) #11
yanagawa
Thanks for your advice. I fixed my Test.
6 years, 3 months ago (2014-09-05 06:23:33 UTC) #13
hayato
Thank you for updating the test. Please update the description of this patch also. You ...
6 years, 3 months ago (2014-09-05 07:08:11 UTC) #14
yanagawa
Sorry, I overlooked your advice. I use the function.
6 years, 3 months ago (2014-09-05 07:39:22 UTC) #15
yanagawa
I upload this patch again. Could you look this. https://codereview.chromium.org/484383002/diff/200001/LayoutTests/fast/events/tabindex-no-focusable.html File LayoutTests/fast/events/tabindex-no-focusable.html (right): https://codereview.chromium.org/484383002/diff/200001/LayoutTests/fast/events/tabindex-no-focusable.html#newcode19 LayoutTests/fast/events/tabindex-no-focusable.html:19: ...
6 years, 3 months ago (2014-09-10 05:26:33 UTC) #17
hayato
Thank you for uploading the test. As general tips, I recommend you to run your ...
6 years, 3 months ago (2014-09-10 05:56:40 UTC) #18
hayato
Could you remove LayoutTests/platform/linux/fast/events/tabindex-no-focusable-expected.png? I guess it's accidentally added.
6 years, 3 months ago (2014-09-10 06:00:11 UTC) #19
yanagawa
On 2014/09/10 06:00:11, hayato wrote: > Could you remove > LayoutTests/platform/linux/fast/events/tabindex-no-focusable-expected.png? > I guess it's ...
6 years, 3 months ago (2014-09-10 06:56:47 UTC) #20
yanagawa
I remove abindex-no-focusable-expected.png
6 years, 3 months ago (2014-09-10 06:57:50 UTC) #21
hayato
On 2014/09/10 06:57:50, yanagawa wrote: > I remove abindex-no-focusable-expected.png Thank you. I guess you missed ...
6 years, 3 months ago (2014-09-12 00:49:34 UTC) #22
yanagawa
I think I fixed all problem. Could you look it? https://codereview.chromium.org/484383002/diff/240001/LayoutTests/fast/events/tabindex-no-focusable-all-negative.html File LayoutTests/fast/events/tabindex-no-focusable-all-negative.html (right): https://codereview.chromium.org/484383002/diff/240001/LayoutTests/fast/events/tabindex-no-focusable-all-negative.html#newcode5 ...
6 years, 3 months ago (2014-09-12 03:10:56 UTC) #23
hayato
Thanks. I think this patch is very close to be ready to land. https://codereview.chromium.org/484383002/diff/320001/LayoutTests/fast/events/tabindex-no-focusable-all-negative.html File ...
6 years, 3 months ago (2014-09-12 04:37:13 UTC) #24
yanagawa
I done all. I didn't use shuldBe,But use shouldBeEqualToString. It is okay? https://codereview.chromium.org/484383002/diff/320001/LayoutTests/fast/events/tabindex-no-focusable-all-negative.html File LayoutTests/fast/events/tabindex-no-focusable-all-negative.html ...
6 years, 3 months ago (2014-09-12 06:04:48 UTC) #25
hayato
> I done all. > I didn't use shuldBe,But use shouldBeEqualToString. > It is okay? ...
6 years, 3 months ago (2014-09-12 06:24:14 UTC) #26
yanagawa
I fixed it. Please confirm. https://codereview.chromium.org/484383002/diff/340001/LayoutTests/fast/events/tabindex-no-focusable-all-negative.html File LayoutTests/fast/events/tabindex-no-focusable-all-negative.html (right): https://codereview.chromium.org/484383002/diff/340001/LayoutTests/fast/events/tabindex-no-focusable-all-negative.html#newcode14 LayoutTests/fast/events/tabindex-no-focusable-all-negative.html:14: shouldBeEqualToString('document.activeElement.id','focusMe'); On 2014/09/12 06:24:13, ...
6 years, 3 months ago (2014-09-12 07:09:46 UTC) #27
hayato
Thank you. You are close to goal. I recommend you to follow the change list ...
6 years, 3 months ago (2014-09-12 07:41:25 UTC) #28
yanagawa
I rewrite description. Is this okay?
6 years, 3 months ago (2014-09-12 10:03:38 UTC) #29
hayato
The description still needs to be improved. Please remember that the description of the patch ...
6 years, 3 months ago (2014-09-16 02:39:15 UTC) #30
yanagawa
Yurina helps me. I think it got better dive than my statement. This starts with ...
6 years, 3 months ago (2014-09-16 06:33:28 UTC) #31
hayato
LGTM Congratulations and thank you for your first patch. > Disable the focus moves to ...
6 years, 3 months ago (2014-09-16 07:49:51 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/484383002/360001
6 years, 3 months ago (2014-09-16 08:31:06 UTC) #36
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 08:36:59 UTC) #37
Message was sent while issue was closed.
Committed patchset #14 (id:360001) as 182040

Powered by Google App Engine
This is Rietveld 408576698