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 1807803002: [Media Router WebUI] Handle on dialog load focus on Mac. (Closed)

Created:
4 years, 9 months ago by apacible
Modified:
4 years, 9 months ago
Reviewers:
imcheng
CC:
chromium-reviews, media-router+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router WebUI] Handle on dialog load focus on Mac. This change better handles the non-user-triggered focus event that happens when the dialog loads. The behavior only appears on Mac and when the dialog initially is opened; however, it appears 100% of the time in these cases. This adds an element with the sole purpose of triggering focus on that element when the dialog is open rather than any of the other header elements. This prevents messing with the tabindex (whether elements are focusable and in what priority) of the other elements. The tabindex of this element is then updated to be unfocusable so that the user cannot accidentally tab to the element. BUG=594951 Committed: https://crrev.com/48d7378cc2e2cc76c9cf0bfcd05413f8678662cb Cr-Commit-Position: refs/heads/master@{#381851}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Changes per imcheng@'s comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -4 lines) Patch
M chrome/browser/resources/media_router/elements/media_router_header/media_router_header.html View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js View 1 2 chunks +19 lines, -3 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_elements_browsertest.js View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (22 generated)
apacible
PTAL, thanks!
4 years, 9 months ago (2016-03-16 23:47:59 UTC) #16
imcheng
lgtm + 1 comment https://codereview.chromium.org/1807803002/diff/180001/chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js File chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js (right): https://codereview.chromium.org/1807803002/diff/180001/chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js#newcode184 chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js:184: // this.$$('#focus-placeholder').setAttribute('tabindex', -1); Uncomment this ...
4 years, 9 months ago (2016-03-17 19:00:35 UTC) #17
apacible
https://codereview.chromium.org/1807803002/diff/180001/chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js File chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js (right): https://codereview.chromium.org/1807803002/diff/180001/chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js#newcode184 chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js:184: // this.$$('#focus-placeholder').setAttribute('tabindex', -1); On 2016/03/17 19:00:35, imcheng wrote: > ...
4 years, 9 months ago (2016-03-17 21:52:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1807803002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1807803002/220001
4 years, 9 months ago (2016-03-18 00:30:11 UTC) #24
commit-bot: I haz the power
Committed patchset #2 (id:220001)
4 years, 9 months ago (2016-03-18 00:36:38 UTC) #26
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 00:37:41 UTC) #28
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/48d7378cc2e2cc76c9cf0bfcd05413f8678662cb
Cr-Commit-Position: refs/heads/master@{#381851}

Powered by Google App Engine
This is Rietveld 408576698