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

Issue 683813004: Fewer focusable items in chrome://settings/searchEngines (Closed)

Created:
6 years, 1 month ago by bondd
Modified:
6 years, 1 month ago
Reviewers:
Lei Zhang, *Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fewer focusable items in chrome://settings/searchEngines Fixes https://code.google.com/p/chromium/issues/detail?id=428063 This CL is part of splitting https://codereview.chromium.org/664583006/ into several smaller CLs. All applicable reviewer comments from that CL have been addressed. The general approach of this CL is to set tabindex=0 on a list item's edit fields when it is the lead item, and set tabindex=-1 when it is not the lead item. Things are complicated by most fields having separate editable and static elements. When the list is focused the editable elements of the lead item are visible and should have tabindex=0. When the list is not focused the static elements of the lead item are visible and should have tabindex=0. The approach in the previous CL was to get rid of the static elements and instead change the CSS styling on the editable elements when they weren't focused. Unfortunately this did not work with editable elements that weren't simple text, for example the dropdown option boxes in content_settings_exception_area.js. That's why I switched to this new approach. The next CL will build on this one and preserve the columnIndex when changing list items with the up/down keys. BUG=428063 Committed: https://crrev.com/3df55f37eb3bcc896cbeab78f4769849d446b5c1 Cr-Commit-Position: refs/heads/master@{#303849}

Patch Set 1 #

Total comments: 40

Patch Set 2 : Incorporate reviewer comments from dbeam@ #

Total comments: 7

Patch Set 3 : Incorporate 2nd round of dbeam@ comments + re-add removeAttribute in set*ValuesFocusable #

Total comments: 3

Patch Set 4 : set*ValuesFocusable changes #

Total comments: 12

Patch Set 5 : Fix nits from dbeam@ comments on patch set #4 #

Total comments: 3

Patch Set 6 : Gah, change return -> continue #

Patch Set 7 : Add browser test. WIP, uploaded for discussion #

Total comments: 17

Patch Set 8 : Load test-only resources from browser_tests.pak #

Total comments: 6

Patch Set 9 : Fix nits #

Patch Set 10 : Rebase, fix failing browser_tests, add .pak file to GN #

Total comments: 6

Patch Set 11 : Add comment about weird behavior in autofill_options_browsertest.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -64 lines) Patch
M chrome/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/autofill_options_list.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/deletable_item_list.js View 1 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/resources/options/inline_editable_list.js View 1 2 3 4 5 7 chunks +115 lines, -29 lines 0 comments Download
M chrome/browser/resources/options/search_engine_manager_engine_list.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/resources/options_test_resources.grd View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_browsertest.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -1 line 0 comments Download
M chrome/browser_tests.isolate View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_resources.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/webui/inline_editable_list_test.html View 1 2 3 4 5 6 1 chunk +153 lines, -0 lines 0 comments Download
M chrome/test/data/webui/webui_resource_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +28 lines, -0 lines 0 comments Download
M tools/gritsettings/resource_ids View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M ui/webui/resources/js/cr/ui/list.js View 1 1 chunk +37 lines, -29 lines 0 comments Download

Messages

Total messages: 37 (6 generated)
bondd
Ready for review. https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/deletable_item_list.js File chrome/browser/resources/options/deletable_item_list.js (right): https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/deletable_item_list.js#newcode106 chrome/browser/resources/options/deletable_item_list.js:106: handleFocus: function() { Made this protected ...
6 years, 1 month ago (2014-10-28 22:29:58 UTC) #3
Dan Beam
https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/deletable_item_list.js File chrome/browser/resources/options/deletable_item_list.js (right): https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/deletable_item_list.js#newcode44 chrome/browser/resources/options/deletable_item_list.js:44: * @type {boolean} @protected https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/inline_editable_list.js#newcode227 ...
6 years, 1 month ago (2014-10-29 01:37:14 UTC) #4
bondd
Addressed reviewer comments from dbeam@. https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/deletable_item_list.js File chrome/browser/resources/options/deletable_item_list.js (right): https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/deletable_item_list.js#newcode44 chrome/browser/resources/options/deletable_item_list.js:44: * @type {boolean} On ...
6 years, 1 month ago (2014-10-29 17:19:09 UTC) #5
Dan Beam
https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/inline_editable_list.js#newcode242 chrome/browser/resources/options/inline_editable_list.js:242: if (wantFocusable && !editFields[i].disabled) On 2014/10/29 17:19:08, bondd wrote: ...
6 years, 1 month ago (2014-10-29 22:28:11 UTC) #6
bondd
Incorporate 2nd round of dbeam@ comments + re-add removeAttribute in set*ValuesFocusable. https://codereview.chromium.org/683813004/diff/1/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): ...
6 years, 1 month ago (2014-10-29 23:08:54 UTC) #7
Dan Beam
https://codereview.chromium.org/683813004/diff/40001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): https://codereview.chromium.org/683813004/diff/40001/chrome/browser/resources/options/inline_editable_list.js#newcode236 chrome/browser/resources/options/inline_editable_list.js:236: editFields[i].removeAttribute('tabindex'); On 2014/10/29 23:08:54, bondd wrote: > Re-added > ...
6 years, 1 month ago (2014-10-29 23:30:13 UTC) #8
bondd
Made changes to set*ValuesFocusable. https://codereview.chromium.org/683813004/diff/40001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): https://codereview.chromium.org/683813004/diff/40001/chrome/browser/resources/options/inline_editable_list.js#newcode236 chrome/browser/resources/options/inline_editable_list.js:236: editFields[i].removeAttribute('tabindex'); On 2014/10/29 23:30:13, Dan ...
6 years, 1 month ago (2014-10-30 01:25:33 UTC) #9
Dan Beam
https://codereview.chromium.org/683813004/diff/60001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): https://codereview.chromium.org/683813004/diff/60001/chrome/browser/resources/options/inline_editable_list.js#newcode233 chrome/browser/resources/options/inline_editable_list.js:233: editFields[i].tabIndex = focusable && !editFields[i].disabled ? 0 : -1; ...
6 years, 1 month ago (2014-10-30 01:45:49 UTC) #10
bondd
Fix nits and reply to dbeam@ reviewer comments. https://codereview.chromium.org/683813004/diff/60001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): https://codereview.chromium.org/683813004/diff/60001/chrome/browser/resources/options/inline_editable_list.js#newcode233 chrome/browser/resources/options/inline_editable_list.js:233: editFields[i].tabIndex ...
6 years, 1 month ago (2014-10-30 15:00:04 UTC) #11
Dan Beam
https://codereview.chromium.org/683813004/diff/80001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): https://codereview.chromium.org/683813004/diff/80001/chrome/browser/resources/options/inline_editable_list.js#newcode246 chrome/browser/resources/options/inline_editable_list.js:246: return; shouldn't this be continue...? do you have any ...
6 years, 1 month ago (2014-10-30 22:20:43 UTC) #12
bondd
https://codereview.chromium.org/683813004/diff/80001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): https://codereview.chromium.org/683813004/diff/80001/chrome/browser/resources/options/inline_editable_list.js#newcode246 chrome/browser/resources/options/inline_editable_list.js:246: return; On 2014/10/30 22:20:43, Dan Beam wrote: > shouldn't ...
6 years, 1 month ago (2014-10-30 22:45:29 UTC) #13
Dan Beam
https://codereview.chromium.org/683813004/diff/80001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): https://codereview.chromium.org/683813004/diff/80001/chrome/browser/resources/options/inline_editable_list.js#newcode246 chrome/browser/resources/options/inline_editable_list.js:246: return; On 2014/10/30 22:45:29, bondd wrote: > On 2014/10/30 ...
6 years, 1 month ago (2014-10-31 01:13:31 UTC) #14
bondd
Uploaded patch #7 for discussion of a few questions I have about it. This was ...
6 years, 1 month ago (2014-11-06 02:45:41 UTC) #15
Dan Beam
https://codereview.chromium.org/683813004/diff/120001/chrome/test/data/webui/inline_editable_list_test.html File chrome/test/data/webui/inline_editable_list_test.html (right): https://codereview.chromium.org/683813004/diff/120001/chrome/test/data/webui/inline_editable_list_test.html#newcode22 chrome/test/data/webui/inline_editable_list_test.html:22: function TestItem(name) { why do we need this class? ...
6 years, 1 month ago (2014-11-06 02:54:09 UTC) #16
Dan Beam
https://codereview.chromium.org/683813004/diff/120001/chrome/test/data/webui/webui_resource_browsertest.cc File chrome/test/data/webui/webui_resource_browsertest.cc (right): https://codereview.chromium.org/683813004/diff/120001/chrome/test/data/webui/webui_resource_browsertest.cc#newcode120 chrome/test/data/webui/webui_resource_browsertest.cc:120: AddLibrary(IDR_OPTIONS_INLINE_EDITABLE_LIST); On 2014/11/06 02:45:41, bondd wrote: > deletable_item_list.js and ...
6 years, 1 month ago (2014-11-06 02:56:13 UTC) #17
bondd
https://codereview.chromium.org/683813004/diff/120001/chrome/test/data/webui/webui_resource_browsertest.cc File chrome/test/data/webui/webui_resource_browsertest.cc (right): https://codereview.chromium.org/683813004/diff/120001/chrome/test/data/webui/webui_resource_browsertest.cc#newcode120 chrome/test/data/webui/webui_resource_browsertest.cc:120: AddLibrary(IDR_OPTIONS_INLINE_EDITABLE_LIST); On 2014/11/06 02:56:13, Dan Beam wrote: > On ...
6 years, 1 month ago (2014-11-06 03:02:36 UTC) #18
Dan Beam
https://codereview.chromium.org/683813004/diff/120001/chrome/test/data/webui/webui_resource_browsertest.cc File chrome/test/data/webui/webui_resource_browsertest.cc (right): https://codereview.chromium.org/683813004/diff/120001/chrome/test/data/webui/webui_resource_browsertest.cc#newcode120 chrome/test/data/webui/webui_resource_browsertest.cc:120: AddLibrary(IDR_OPTIONS_INLINE_EDITABLE_LIST); On 2014/11/06 03:02:36, bondd wrote: > On 2014/11/06 ...
6 years, 1 month ago (2014-11-07 05:38:40 UTC) #19
bondd
Okay so it's getting a bit comical how much is involved in adding this one ...
6 years, 1 month ago (2014-11-07 17:36:16 UTC) #20
Dan Beam
> If this test needs to run on Mac we certainly want to if possible, ...
6 years, 1 month ago (2014-11-07 19:43:59 UTC) #21
bondd
https://codereview.chromium.org/683813004/diff/120001/chrome/test/data/webui/inline_editable_list_test.html File chrome/test/data/webui/inline_editable_list_test.html (right): https://codereview.chromium.org/683813004/diff/120001/chrome/test/data/webui/inline_editable_list_test.html#newcode22 chrome/test/data/webui/inline_editable_list_test.html:22: function TestItem(name) { On 2014/11/07 19:43:58, Dan Beam wrote: ...
6 years, 1 month ago (2014-11-07 20:13:26 UTC) #22
Dan Beam
lgtm, but you'll probably need additional reviews now
6 years, 1 month ago (2014-11-07 20:16:18 UTC) #23
Lei Zhang
You need to do the GN version as well.
6 years, 1 month ago (2014-11-07 22:00:13 UTC) #25
bondd
Did the GN version as requested by thestig@. Fixed browser_tests failing on trybots. Rebased. https://codereview.chromium.org/683813004/diff/220001/chrome/browser/resources/options/autofill_options_list.js ...
6 years, 1 month ago (2014-11-11 23:43:24 UTC) #28
Dan Beam
https://codereview.chromium.org/683813004/diff/220001/chrome/browser/ui/webui/options/autofill_options_browsertest.js File chrome/browser/ui/webui/options/autofill_options_browsertest.js (right): https://codereview.chromium.org/683813004/diff/220001/chrome/browser/ui/webui/options/autofill_options_browsertest.js#newcode198 chrome/browser/ui/webui/options/autofill_options_browsertest.js:198: phoneList.blur(); On 2014/11/11 23:43:24, bondd wrote: > The way ...
6 years, 1 month ago (2014-11-11 23:59:29 UTC) #29
bondd
https://codereview.chromium.org/683813004/diff/220001/chrome/browser/ui/webui/options/autofill_options_browsertest.js File chrome/browser/ui/webui/options/autofill_options_browsertest.js (right): https://codereview.chromium.org/683813004/diff/220001/chrome/browser/ui/webui/options/autofill_options_browsertest.js#newcode198 chrome/browser/ui/webui/options/autofill_options_browsertest.js:198: phoneList.blur(); On 2014/11/11 23:59:29, Dan Beam wrote: > On ...
6 years, 1 month ago (2014-11-12 00:43:56 UTC) #30
Dan Beam
https://codereview.chromium.org/683813004/diff/220001/chrome/browser/ui/webui/options/autofill_options_browsertest.js File chrome/browser/ui/webui/options/autofill_options_browsertest.js (right): https://codereview.chromium.org/683813004/diff/220001/chrome/browser/ui/webui/options/autofill_options_browsertest.js#newcode198 chrome/browser/ui/webui/options/autofill_options_browsertest.js:198: phoneList.blur(); On 2014/11/12 00:43:56, bondd wrote: > On 2014/11/11 ...
6 years, 1 month ago (2014-11-12 01:02:28 UTC) #31
Lei Zhang
I'm ok with having a browser_tests only pak file, so gyp/gn changes lgtm.
6 years, 1 month ago (2014-11-12 01:41:40 UTC) #32
Dan Beam
https://codereview.chromium.org/683813004/diff/220001/chrome/browser/ui/webui/options/autofill_options_browsertest.js File chrome/browser/ui/webui/options/autofill_options_browsertest.js (right): https://codereview.chromium.org/683813004/diff/220001/chrome/browser/ui/webui/options/autofill_options_browsertest.js#newcode198 chrome/browser/ui/webui/options/autofill_options_browsertest.js:198: phoneList.blur(); On 2014/11/12 01:02:28, Dan Beam wrote: > On ...
6 years, 1 month ago (2014-11-12 02:23:11 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/683813004/240001
6 years, 1 month ago (2014-11-12 16:21:07 UTC) #35
commit-bot: I haz the power
Committed patchset #11 (id:240001)
6 years, 1 month ago (2014-11-12 17:21:13 UTC) #36
commit-bot: I haz the power
6 years, 1 month ago (2014-11-12 17:22:04 UTC) #37
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/3df55f37eb3bcc896cbeab78f4769849d446b5c1
Cr-Commit-Position: refs/heads/master@{#303849}

Powered by Google App Engine
This is Rietveld 408576698