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

Issue 209693003: Make mediaPlayerRequestFullscreen() user gesture bypass explicit (Closed)

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

Description

Make mediaPlayerRequestFullscreen() user gesture bypass explicit mediaPlayerRequestFullscreen() is only ever called from Chromium's BrowserMediaPlayerManager::OnProtectedSurfaceRequested() when the --disable-gesture-requirement-for-media-fullscreen flag is used. Make this behavior explicit, limiting it to just this case instead of disabling it even for script-initiated fullscreen requests. This will allow removing the mediaFullscreenRequiresUserGesture setting once Chromium has been updated. BUG=355439 TEST=LayoutTests/media/media-player-request-fullscreen.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170080

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -2 lines) Patch
A LayoutTests/media/media-player-request-fullscreen.html View 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/media/media-player-request-fullscreen-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 chunk +5 lines, -0 lines 5 comments Download
M Source/core/testing/Internals.h View 2 chunks +5 lines, -2 lines 0 comments Download
M Source/core/testing/Internals.cpp View 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
philipj_slow
6 years, 9 months ago (2014-03-24 06:02:19 UTC) #1
qinmin
https://codereview.chromium.org/209693003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/209693003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode2855 Source/core/html/HTMLMediaElement.cpp:2855: UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); will the gesture be consumed by FullscreenElementStack? ...
6 years, 9 months ago (2014-03-24 06:32:53 UTC) #2
philipj_slow
https://codereview.chromium.org/209693003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/209693003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode2855 Source/core/html/HTMLMediaElement.cpp:2855: UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); On 2014/03/24 06:32:54, qinmin wrote: > will ...
6 years, 9 months ago (2014-03-24 15:18:23 UTC) #3
qinmin
lgtm
6 years, 9 months ago (2014-03-24 16:03:32 UTC) #4
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/209693003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/209693003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode2855 Source/core/html/HTMLMediaElement.cpp:2855: UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); On 2014/03/24 15:18:23, philipj wrote: > On ...
6 years, 9 months ago (2014-03-25 22:14:42 UTC) #5
philipj_slow
https://codereview.chromium.org/209693003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/209693003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode2855 Source/core/html/HTMLMediaElement.cpp:2855: UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); On 2014/03/25 22:14:43, acolwell wrote: > On ...
6 years, 9 months ago (2014-03-26 07:48:17 UTC) #6
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/209693003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/209693003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode2855 Source/core/html/HTMLMediaElement.cpp:2855: UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); On 2014/03/26 07:48:17, philipj wrote: > ...
6 years, 9 months ago (2014-03-26 17:39:42 UTC) #7
philipj_slow
The CQ bit was checked by philipj@opera.com
6 years, 9 months ago (2014-03-26 17:41:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/209693003/1
6 years, 9 months ago (2014-03-26 17:41:43 UTC) #9
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 18:04:17 UTC) #10
Message was sent while issue was closed.
Change committed as 170080

Powered by Google App Engine
This is Rietveld 408576698