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

Issue 2096733002: Fix the bug where focus jumps around on the media router sink list (Closed)

Created:
4 years, 6 months ago by takumif
Modified:
4 years, 5 months ago
Reviewers:
imcheng, apacible, btolsch
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

Fix the bug where focus jumps around on the media router sink list The bug occurs when you are navigating the MR dialog on your keyboard. When you search for a sink, focus on it using tab/arrow keys, and return to the sink list with esc, the same sink ostensibly remains in focus, but when you press up or down, the focus jumps to an unexpected place because the focus had not been recognized on the Polymer side. This CL fixes that by calling selectIndex, a Polymer paper-menu method for changing the focus. This CL also modifies a MR container filter test to check that the appropriate sink not only remains in focus but also stays as the selected item in the Polymer logic. BUG=608578 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/b20972c25ec11167e6cb77bf81a1573ea930d96a Cr-Commit-Position: refs/heads/master@{#402866}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address imcheng@ and apacible@'s comments; modify a test #

Total comments: 3

Patch Set 3 : Address btolsch@ and apacible@'s comments #

Patch Set 4 : Add selectIndex to externs.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -22 lines) Patch
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js View 1 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/resources/media_router/externs.js View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_container_filter_tests.js View 1 2 1 chunk +30 lines, -16 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
takumif
Please take a look. Thank you!
4 years, 6 months ago (2016-06-23 17:02:35 UTC) #3
imcheng
lgtm Thanks for looking into this! I'd like Jennifer to take a look as well. ...
4 years, 6 months ago (2016-06-23 23:21:35 UTC) #4
apacible
Thanks for looking into this! Can we add a test for this, so we don't ...
4 years, 6 months ago (2016-06-24 05:11:10 UTC) #5
takumif
I've modified a test so that it doesn't pass without the fix in this CL. ...
4 years, 5 months ago (2016-06-28 18:08:11 UTC) #8
btolsch
lgtm + nit. Thanks for updating the test. https://codereview.chromium.org/2096733002/diff/20001/chrome/test/data/webui/media_router/media_router_container_filter_tests.js File chrome/test/data/webui/media_router/media_router_container_filter_tests.js (right): https://codereview.chromium.org/2096733002/diff/20001/chrome/test/data/webui/media_router/media_router_container_filter_tests.js#newcode197 chrome/test/data/webui/media_router/media_router_container_filter_tests.js:197: // ...
4 years, 5 months ago (2016-06-28 21:21:43 UTC) #9
apacible
lgtm+nits https://codereview.chromium.org/2096733002/diff/20001/chrome/test/data/webui/media_router/media_router_container_filter_tests.js File chrome/test/data/webui/media_router/media_router_container_filter_tests.js (right): https://codereview.chromium.org/2096733002/diff/20001/chrome/test/data/webui/media_router/media_router_container_filter_tests.js#newcode195 chrome/test/data/webui/media_router/media_router_container_filter_tests.js:195: // remains both focused and selected - focused ...
4 years, 5 months ago (2016-06-28 21:40:59 UTC) #10
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/2096733002/40001
4 years, 5 months ago (2016-06-28 21:58:33 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/236094)
4 years, 5 months ago (2016-06-28 22:54:58 UTC) #15
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/2096733002/40001
4 years, 5 months ago (2016-06-28 23:16:12 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: closure_compilation on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/closure_compilation/builds/729)
4 years, 5 months ago (2016-06-29 00:09:10 UTC) #19
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/2096733002/60001
4 years, 5 months ago (2016-06-29 16:50:41 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-29 17:56:48 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 17:59:17 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b20972c25ec11167e6cb77bf81a1573ea930d96a
Cr-Commit-Position: refs/heads/master@{#402866}

Powered by Google App Engine
This is Rietveld 408576698