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

Issue 692643002: Don't show media controls on "focusin" when controls are disabled. (Closed)

Created:
6 years, 1 month ago by watk
Modified:
6 years, 1 month ago
Reviewers:
philipj_slow, *fs
CC:
blink-reviews, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Don't show media controls on focus if 'controls' is not set. Previously when an HTMLMediaElement received focus, the media controls would be shown regardless of whether 'controls' was set. It's possible for an HTMLMediaElement to receive focus despite not having 'controls' set, if it has a 'tabindex'. BUG=424625 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184803

Patch Set 1 #

Patch Set 2 : Added a test #

Patch Set 3 : Fix whitespace in test expected output #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -11 lines) Patch
A + LayoutTests/media/video-controls-dont-show-on-focus-when-disabled.html View 1 2 chunks +5 lines, -9 lines 0 comments Download
A LayoutTests/media/video-controls-dont-show-on-focus-when-disabled-expected.txt View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
watk
fs@: I don't yet have access to the try server, but I'll try this change ...
6 years, 1 month ago (2014-10-30 00:52:51 UTC) #3
fs
LGTM, thanks. I had to think about which side the predicate check should be on ...
6 years, 1 month ago (2014-10-30 12:47:40 UTC) #5
philipj_slow
LGTM too. I also think it's a little bit odd to use mediaElement().shouldShowControls() in MediaControls, ...
6 years, 1 month ago (2014-10-30 14:12:10 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/692643002/40001
6 years, 1 month ago (2014-11-03 21:42:52 UTC) #8
watk
Thanks for the reviews! The try failure was unrelated, so I enabled the CQ.
6 years, 1 month ago (2014-11-03 21:51:47 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-11-03 21:56:26 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 184803

Powered by Google App Engine
This is Rietveld 408576698