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

Issue 2798223006: MD Settings: Remove tabindex from container after it is blurred. (Closed)

Created:
3 years, 8 months ago by dpapad
Modified:
3 years, 8 months ago
Reviewers:
Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Remove tabindex from container after it is blurred. Clicking on non-focusable elements (for example the "Show home button" row) would transfer the focus to the container accidentally, now that it has a tabindex. Removing the tabindex from the container as soon as the container is blurred addresses the problem. BUG=709359 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2798223006 Cr-Commit-Position: refs/heads/master@{#463118} Committed: https://chromium.googlesource.com/chromium/src/+/3a2e5144ab506f18ae56a2bbe4eb23f43ddd5dcd

Patch Set 1 #

Patch Set 2 : Better approach #

Patch Set 3 : Address case #

Patch Set 4 : pointer down #

Total comments: 2

Patch Set 5 : remove event parameter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M chrome/browser/resources/settings/settings_ui/settings_ui.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_ui/settings_ui.js View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (17 generated)
dpapad
The solution got a bit more involved than I expected. Here are the 3 cases ...
3 years, 8 months ago (2017-04-07 20:50:21 UTC) #12
dpapad
Uploaded simplified approach, based on discussion with @dbeam. Tested that all 3 cases mentioned before ...
3 years, 8 months ago (2017-04-08 01:32:14 UTC) #15
Dan Beam
booyah! lgtm \o/ https://codereview.chromium.org/2798223006/diff/60001/chrome/browser/resources/settings/settings_ui/settings_ui.js File chrome/browser/resources/settings/settings_ui/settings_ui.js (right): https://codereview.chromium.org/2798223006/diff/60001/chrome/browser/resources/settings/settings_ui/settings_ui.js#newcode275 chrome/browser/resources/settings/settings_ui/settings_ui.js:275: listenOnce(this.$.container, ['blur', 'pointerdown'], function(e) { nit: ...
3 years, 8 months ago (2017-04-08 01:34:16 UTC) #16
dpapad
https://codereview.chromium.org/2798223006/diff/60001/chrome/browser/resources/settings/settings_ui/settings_ui.js File chrome/browser/resources/settings/settings_ui/settings_ui.js (right): https://codereview.chromium.org/2798223006/diff/60001/chrome/browser/resources/settings/settings_ui/settings_ui.js#newcode275 chrome/browser/resources/settings/settings_ui/settings_ui.js:275: listenOnce(this.$.container, ['blur', 'pointerdown'], function(e) { On 2017/04/08 at 01:34:16, ...
3 years, 8 months ago (2017-04-08 01:35:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2798223006/70001
3 years, 8 months ago (2017-04-08 01:36:31 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-08 03:09:47 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:70001) as
https://chromium.googlesource.com/chromium/src/+/3a2e5144ab506f18ae56a2bbe4eb...

Powered by Google App Engine
This is Rietveld 408576698