|
|
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. #
Messages
Total messages: 28 (22 generated)
Description was changed from ========== asdf BUG= ========== to ========== asdf BUG=594951 ==========
Description was changed from ========== asdf BUG=594951 ========== to ========== [Media Router WebUI] Handle on dialog load focus on Mac. BUG=594951 ==========
Description was changed from ========== [Media Router WebUI] Handle on dialog load focus on Mac. BUG=594951 ========== to ========== [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 ==========
Patchset #4 (id:60001) has been deleted
Patchset #3 (id:40001) has been deleted
Patchset #2 (id:20001) has been deleted
Patchset #1 (id:1) has been deleted
Patchset #3 (id:120001) has been deleted
Patchset #2 (id:100001) has been deleted
Patchset #1 (id:80001) has been deleted
Patchset #1 (id:140001) has been deleted
Patchset #1 (id:160001) has been deleted
apacible@chromium.org changed reviewers: + imcheng@chromium.org
apacible@chromium.org changed reviewers: - imcheng@chromium.org
apacible@chromium.org changed reviewers: + imcheng@chromium.org
PTAL, thanks!
lgtm + 1 comment https://codereview.chromium.org/1807803002/diff/180001/chrome/browser/resourc... File chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js (right): https://codereview.chromium.org/1807803002/diff/180001/chrome/browser/resourc... chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js:184: // this.$$('#focus-placeholder').setAttribute('tabindex', -1); Uncomment this line? Also it sounds like we are setting tabIndex to -1 without removing the element itself?
Patchset #2 (id:200001) has been deleted
https://codereview.chromium.org/1807803002/diff/180001/chrome/browser/resourc... File chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js (right): https://codereview.chromium.org/1807803002/diff/180001/chrome/browser/resourc... 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: > Uncomment this line? Also it sounds like we are setting tabIndex to -1 without > removing the element itself? Removed. We're just removing the element, not updating the attribute.
Patchset #3 (id:240001) has been deleted
Patchset #3 (id:260001) has been deleted
The CQ bit was checked by apacible@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from imcheng@chromium.org Link to the patchset: https://codereview.chromium.org/1807803002/#ps220001 (title: "Changes per imcheng@'s comments.")
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
Message was sent while issue was closed.
Description was changed from ========== [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 ========== to ========== [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 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:220001)
Message was sent while issue was closed.
Description was changed from ========== [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 ========== to ========== [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} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/48d7378cc2e2cc76c9cf0bfcd05413f8678662cb Cr-Commit-Position: refs/heads/master@{#381851} |