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

Issue 1240573005: Make video.webkitSupportsFullscreen an alias of document.fullscreenEnabled (Closed)

Created:
5 years, 5 months ago by philipj_slow
Modified:
5 years, 5 months ago
Reviewers:
falken
CC:
blink-reviews, blink-reviews-html_chromium.org, vivekg, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, vivekg_samsung, Inactive
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make video.webkitSupportsFullscreen an alias of document.fullscreenEnabled The removed checks both originate from the earliest revision of this code, for ChromeClient::supportsFullscreenForNode() and MediaPlayer::supportsFullscren() calls respectively: http://trac.webkit.org/changeset/49136 Both were conservatively left in later cleanup: https://codereview.chromium.org/13851023 https://codereview.chromium.org/139943006 Fullscreen requests in detached documents will instead fail silently in Fullscreen::requestFullscreen() due to the document()->isActive() check. As for the webMediaPlayer() check, this will change the value of video.webkitSupportsFullscreen before a video is loaded, as seen in LayoutTests/media/video-prefixed-fullscreen.html. However, at worst this ought to cause custom fullscreen buttons to be shown too early, just as they would if using one of the other fullscreen APIs without checking that the video is ready to play. Overall risk ought to be low given the low usage of these APIs: https://www.chromestatus.com/metrics/feature/timeline/popularity/166 https://www.chromestatus.com/metrics/feature/timeline/popularity/168 https://www.chromestatus.com/metrics/feature/timeline/popularity/170 BUG=496637 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199362

Patch Set 1 #

Patch Set 2 : hide fullscreen button in <video controls> #

Total comments: 5

Patch Set 3 : move comments to assert descriptions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -72 lines) Patch
M LayoutTests/fullscreen/full-screen-iframe-legacy.html View 1 chunk +7 lines, -11 lines 0 comments Download
M LayoutTests/fullscreen/full-screen-iframe-legacy-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/media/video-controls-fullscreen.js View 1 2 4 chunks +31 lines, -19 lines 0 comments Download
A + LayoutTests/media/video-controls-fullscreen-iframe-allowed.html View 1 2 chunks +3 lines, -2 lines 0 comments Download
A + LayoutTests/media/video-controls-fullscreen-iframe-not-allowed.html View 1 2 chunks +3 lines, -2 lines 0 comments Download
M LayoutTests/media/video-controls-fullscreen-not-supported.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/media/video-prefixed-fullscreen.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/media/video-prefixed-fullscreen-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLVideoElement.h View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/html/HTMLVideoElement.cpp View 4 chunks +5 lines, -22 lines 0 comments Download
M Source/core/html/HTMLVideoElement.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 1 3 chunks +18 lines, -9 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240573005/1
5 years, 5 months ago (2015-07-14 14:35:25 UTC) #2
philipj_slow
PTAL
5 years, 5 months ago (2015-07-14 14:37:33 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/71026) (exceeded global ...
5 years, 5 months ago (2015-07-14 14:37:53 UTC) #6
falken
On 2015/07/14 14:37:53, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years, 5 months ago (2015-07-15 10:16:46 UTC) #7
philipj_slow
Looks like running the bots with dependent patchsets didn't work, I guess the first will ...
5 years, 5 months ago (2015-07-15 10:24:18 UTC) #8
falken
On 2015/07/15 10:24:18, philipj wrote: > Looks like running the bots with dependent patchsets didn't ...
5 years, 5 months ago (2015-07-16 04:54:36 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240573005/40001
5 years, 5 months ago (2015-07-22 11:07:35 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-22 12:28:52 UTC) #14
philipj_slow
Matt, can you take another look at this? I forgot to update the media controls ...
5 years, 5 months ago (2015-07-22 13:58:25 UTC) #15
falken
lgtm https://codereview.chromium.org/1240573005/diff/40001/LayoutTests/media/video-controls-fullscreen.js File LayoutTests/media/video-controls-fullscreen.js (right): https://codereview.chromium.org/1240573005/diff/40001/LayoutTests/media/video-controls-fullscreen.js#newcode57 LayoutTests/media/video-controls-fullscreen.js:57: // allowfullscreen attribute Would this comment be better ...
5 years, 5 months ago (2015-07-22 23:14:56 UTC) #16
falken
lgtm
5 years, 5 months ago (2015-07-22 23:14:57 UTC) #17
philipj_slow
https://codereview.chromium.org/1240573005/diff/40001/LayoutTests/media/video-controls-fullscreen.js File LayoutTests/media/video-controls-fullscreen.js (right): https://codereview.chromium.org/1240573005/diff/40001/LayoutTests/media/video-controls-fullscreen.js#newcode57 LayoutTests/media/video-controls-fullscreen.js:57: // allowfullscreen attribute On 2015/07/22 23:14:56, falken wrote: > ...
5 years, 5 months ago (2015-07-23 07:02:55 UTC) #18
philipj_slow
move comments to assert descriptions
5 years, 5 months ago (2015-07-23 07:24: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/1240573005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1240573005/60001
5 years, 5 months ago (2015-07-23 07:30:34 UTC) #22
commit-bot: I haz the power
5 years, 5 months ago (2015-07-23 08:44:08 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199362

Powered by Google App Engine
This is Rietveld 408576698