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

Issue 196793021: Ignore MediaController in the video fullscreen button logic (Closed)

Created:
6 years, 9 months ago by philipj_slow
Modified:
6 years, 9 months ago
CC:
blink-reviews, nessy, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Visibility:
Public.

Description

Ignore MediaController in the video fullscreen button logic There were three problems: 1. When fullScreenEnabled() was false, HTMLMediaElement's enterFullscreen() was used as a fallback, but that function checks the setting and does nothing. This has been the case since cleanup from April 2013, r149489: https://codereview.chromium.org/14670004 2. MediaController's hasVideo() returned true if any of the slave elements had video, which could show the button for a video element with no video. 3. The fullscreen button didn't do anything for slaved media elements. The added tests verify that (1) no fullscreen button is shown when the fullscreen feature is disabled or (2) when there is no video track, and (3) that clicking the fullscreen button actually enters fullscreen. BUG=351661 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169429

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : move assertion that could happen after t.done() #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -38 lines) Patch
A LayoutTests/media/video-controls-fullscreen.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/media/video-controls-fullscreen.js View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A LayoutTests/media/video-controls-fullscreen-disabled.html View 1 chunk +15 lines, -0 lines 0 comments Download
A + LayoutTests/media/video-controls-fullscreen-disabled-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/media/video-controls-fullscreen-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/media/video-controls-fullscreen-with-controller.html View 1 chunk +15 lines, -0 lines 0 comments Download
A + LayoutTests/media/video-controls-fullscreen-with-controller-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/media/video-enter-fullscreen-without-user-gesture.html View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/MediaController.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/html/MediaController.cpp View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
M Source/core/html/MediaControllerInterface.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 2 chunks +4 lines, -14 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
philipj_slow
6 years, 9 months ago (2014-03-14 15:47:29 UTC) #1
adamk
I'd feel more comfortable leaving this for acolwell's return (which I believe should be on ...
6 years, 9 months ago (2014-03-14 23:45:22 UTC) #2
philipj_slow
On 2014/03/14 23:45:22, adamk wrote: > I'd feel more comfortable leaving this for acolwell's return ...
6 years, 9 months ago (2014-03-15 02:36:12 UTC) #3
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/196793021/diff/20001/LayoutTests/media/video-controls-fullscreen.js File LayoutTests/media/video-controls-fullscreen.js (right): https://codereview.chromium.org/196793021/diff/20001/LayoutTests/media/video-controls-fullscreen.js#newcode37 LayoutTests/media/video-controls-fullscreen.js:37: t.done(); nit: early return here since the test ...
6 years, 9 months ago (2014-03-17 23:57:55 UTC) #4
philipj_slow
https://codereview.chromium.org/196793021/diff/20001/LayoutTests/media/video-controls-fullscreen.js File LayoutTests/media/video-controls-fullscreen.js (right): https://codereview.chromium.org/196793021/diff/20001/LayoutTests/media/video-controls-fullscreen.js#newcode37 LayoutTests/media/video-controls-fullscreen.js:37: t.done(); On 2014/03/17 23:57:55, acolwell wrote: > nit: early ...
6 years, 9 months ago (2014-03-18 03:08:02 UTC) #5
philipj_slow
The CQ bit was checked by philipj@opera.com
6 years, 9 months ago (2014-03-18 07:16:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/196793021/60001
6 years, 9 months ago (2014-03-18 07:17:01 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 07:20:28 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on blink_presubmit
6 years, 9 months ago (2014-03-18 07:20:28 UTC) #9
philipj_slow
The CQ bit was checked by philipj@opera.com
6 years, 9 months ago (2014-03-18 07:40:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/196793021/60001
6 years, 9 months ago (2014-03-18 07:40:39 UTC) #11
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 08:29:22 UTC) #12
Message was sent while issue was closed.
Change committed as 169429

Powered by Google App Engine
This is Rietveld 408576698