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

Issue 428633004: Webkit setting for embedders that do not support fullscreen. (Closed)

Created:
6 years, 4 months ago by Ignacio Solla
Modified:
6 years, 4 months ago
CC:
abarth-chromium, benm (inactive), blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, jamesr, Nate Chapin, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Webkit setting for embedders that do not support fullscreen. The new setting is fullscreenEnabled, but in this change we have also added tests for disallowFullscreenForNonMediaElements. The motivation for this change is to support Android WebView apps that do not implement WebChromeClient.onShowCustomView. onShowCustomView is required to support fullscreen. When not supported, we need to stop going fullscreen at the beginning of FullscreenElementStack::requestFullScreenForElement to avoid side effects and changes to the layout. This failure to enter fullscreen falls into the following condition on the living standard: "There is a previously-established user preference, security risk, or platform limitation." http://fullscreen.spec.whatwg.org/ BUG=389496 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179470

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added tests #

Patch Set 3 : nits #

Total comments: 16

Patch Set 4 : Address review comments #

Patch Set 5 : Review comments and nits #

Total comments: 12

Patch Set 6 : nits #

Patch Set 7 : Rename to fullscreenSupported #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -7 lines) Patch
A LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fullscreen/full-screen-request-not-supported.html View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/fullscreen/full-screen-request-not-supported-expected.txt View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/FullscreenElementStack.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/frame/Settings.in View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M Source/web/FullscreenController.cpp View 1 1 chunk +0 lines, -3 lines 0 comments Download
M Source/web/WebSettingsImpl.h View 1 2 3 4 5 6 3 chunks +1 line, -2 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download
M public/web/WebSettings.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Ignacio Solla
6 years, 4 months ago (2014-07-28 17:36:40 UTC) #1
Ignacio Solla
dglazkov@chromium.org: Please review changes in
6 years, 4 months ago (2014-07-28 17:44:15 UTC) #2
philipj_slow
Thanks for following up on this! https://codereview.chromium.org/428633004/diff/1/Source/core/dom/FullscreenElementStack.cpp File Source/core/dom/FullscreenElementStack.cpp (right): https://codereview.chromium.org/428633004/diff/1/Source/core/dom/FullscreenElementStack.cpp#newcode151 Source/core/dom/FullscreenElementStack.cpp:151: if (!document()->frameHost()->chrome().client().fullscreenEnabled(&element)) { ...
6 years, 4 months ago (2014-07-29 11:22:53 UTC) #3
philipj_slow
+falken, who has been doing a lot of fullscreen reviewing lately.
6 years, 4 months ago (2014-07-29 11:23:28 UTC) #4
Ignacio Solla
Please hold on the review until I upload a new version, which will also add ...
6 years, 4 months ago (2014-07-29 12:43:31 UTC) #5
Ignacio Solla
PTAL. Thanks https://codereview.chromium.org/428633004/diff/1/Source/core/dom/FullscreenElementStack.cpp File Source/core/dom/FullscreenElementStack.cpp (right): https://codereview.chromium.org/428633004/diff/1/Source/core/dom/FullscreenElementStack.cpp#newcode151 Source/core/dom/FullscreenElementStack.cpp:151: if (!document()->frameHost()->chrome().client().fullscreenEnabled(&element)) { On 2014/07/29 11:22:53, philipj ...
6 years, 4 months ago (2014-07-29 18:05:58 UTC) #6
philipj_slow
The description links to https://code.google.com/p/chromium/issues/detail?id=387898 but that doesn't seem right, did you paste the wrong ...
6 years, 4 months ago (2014-07-30 11:53:13 UTC) #7
philipj_slow
Since you said "W3C spec" it sounds like you've found a stable spec. This is ...
6 years, 4 months ago (2014-07-30 11:54:26 UTC) #8
Ignacio Solla
On 2014/07/30 11:53:13, philipj wrote: > The description links to > https://code.google.com/p/chromium/issues/detail?id=387898 but that doesn't ...
6 years, 4 months ago (2014-07-30 12:09:00 UTC) #9
Ignacio Solla
On 2014/07/30 11:54:26, philipj wrote: > Since you said "W3C spec" it sounds like you've ...
6 years, 4 months ago (2014-07-30 12:10:17 UTC) #10
philipj_slow
I think this is a sound approach... https://codereview.chromium.org/428633004/diff/40001/LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html File LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html (right): https://codereview.chromium.org/428633004/diff/40001/LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html#newcode11 LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html:11: // Bail ...
6 years, 4 months ago (2014-07-30 12:11:18 UTC) #11
philipj_slow
On 2014/07/30 12:10:17, Ignacio Solla wrote: > On 2014/07/30 11:54:26, philipj wrote: > > Since ...
6 years, 4 months ago (2014-07-30 12:17:03 UTC) #12
Ignacio Solla
https://codereview.chromium.org/428633004/diff/40001/LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html File LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html (right): https://codereview.chromium.org/428633004/diff/40001/LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html#newcode11 LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html:11: // Bail out early if the full screen API ...
6 years, 4 months ago (2014-07-30 14:40:00 UTC) #13
philipj_slow
https://codereview.chromium.org/428633004/diff/40001/Source/core/frame/Settings.in File Source/core/frame/Settings.in (right): https://codereview.chromium.org/428633004/diff/40001/Source/core/frame/Settings.in#newcode272 Source/core/frame/Settings.in:272: # The following two settings are only exposed for ...
6 years, 4 months ago (2014-07-30 15:47:18 UTC) #14
Ignacio Solla
https://codereview.chromium.org/428633004/diff/40001/Source/core/frame/Settings.in File Source/core/frame/Settings.in (right): https://codereview.chromium.org/428633004/diff/40001/Source/core/frame/Settings.in#newcode272 Source/core/frame/Settings.in:272: # The following two settings are only exposed for ...
6 years, 4 months ago (2014-07-31 10:30:51 UTC) #15
philipj_slow
This now LGTM, thanks for taking the time to explain everything to me! You'll need ...
6 years, 4 months ago (2014-07-31 13:15:03 UTC) #16
falken
lgtm with nits https://codereview.chromium.org/428633004/diff/80001/LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html File LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html (right): https://codereview.chromium.org/428633004/diff/80001/LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html#newcode1 LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html:1: <body> <body> is usually omitted in ...
6 years, 4 months ago (2014-07-31 14:53:10 UTC) #17
Ignacio Solla
https://codereview.chromium.org/428633004/diff/80001/LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html File LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html (right): https://codereview.chromium.org/428633004/diff/80001/LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html#newcode1 LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.html:1: <body> On 2014/07/31 14:53:10, falken wrote: > <body> is ...
6 years, 4 months ago (2014-08-01 10:02:44 UTC) #18
philipj_slow
OWNERS review for web/ and this should be ready to go.
6 years, 4 months ago (2014-08-01 10:39:13 UTC) #19
aelias_OOO_until_Jul13
lgtm for Source/web, but this still needs public/web OWNERS. dglazkov@, could you take a look?
6 years, 4 months ago (2014-08-01 19:29:32 UTC) #20
dglazkov
lgtm
6 years, 4 months ago (2014-08-01 20:30:48 UTC) #21
philipj_slow
Since this hasn't landed yet I'd suggest calling the setting fullscreenSupported or fullscreenIsSupported to match ...
6 years, 4 months ago (2014-08-02 04:42:43 UTC) #22
Ignacio Solla
On 2014/08/02 04:42:43, philipj wrote: > Since this hasn't landed yet I'd suggest calling the ...
6 years, 4 months ago (2014-08-04 08:49:54 UTC) #23
Ignacio Solla
The CQ bit was checked by igsolla@chromium.org
6 years, 4 months ago (2014-08-04 08:50:44 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/igsolla@chromium.org/428633004/120001
6 years, 4 months ago (2014-08-04 08:50:55 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-04 09:44:28 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-04 10:44:30 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/19354)
6 years, 4 months ago (2014-08-04 10:44:30 UTC) #28
Ignacio Solla
The CQ bit was checked by igsolla@chromium.org
6 years, 4 months ago (2014-08-04 11:44:42 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/igsolla@chromium.org/428633004/120001
6 years, 4 months ago (2014-08-04 11:46:06 UTC) #30
commit-bot: I haz the power
6 years, 4 months ago (2014-08-04 12:44:05 UTC) #31
Message was sent while issue was closed.
Change committed as 179470

Powered by Google App Engine
This is Rietveld 408576698