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

Issue 2898503002: Reenable feature policy control over fullscreen (Closed)

Created:
3 years, 7 months ago by iclelland
Modified:
3 years, 4 months ago
Reviewers:
loonybear, alexmos, foolip
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reenable feature policy control over fullscreen This CL also changes test expectations to bring the fullscreen tests in line with the new behaviour prescribed by Feature Policy. Specifically: - Same origin iframes by default have the same ability to use fullscreen as their parent frame. Tests which previously only used same-origin frame have been changed to verify the new behaviour, and new tests in LayoutTests/http/tests have been added to test the same situation with cross-origin frames. - Dynamic modification of the allowfullscreen flag has no effect until the iframe contents are navigated/reloaded. - Web platform tests are marked as failing, and should remain so until the fullscreen spec is updated fo include the new behaviour. - A new Browser test class is created which explicitly disables feature policy so that we don't lose coverage for the old behaviour when FP is disabled. BUG=718155, 623682 Review-Url: https://codereview.chromium.org/2898503002 Cr-Commit-Position: refs/heads/master@{#495331} Committed: https://chromium.googlesource.com/chromium/src/+/5d8010e1fc081481d0646618e700b51a4699ab4c

Patch Set 1 #

Patch Set 2 : Remove failing test expectations #

Patch Set 3 : Rebase, update tests #

Patch Set 4 : Update test expectations #

Patch Set 5 : Disable tests which fail because header parsing is currently disabled #

Patch Set 6 : Rebase, adding cross-origin versions of fullscreen tests #

Patch Set 7 : Fix layout test for HTMLVideoElement.webkitEnterFullScreen cross-origin #

Total comments: 8

Patch Set 8 : Get WPT tests passing by testing cross-origin frames #

Patch Set 9 : Fix WPT automation with -manual.sub.html files #

Patch Set 10 : Reinstate original (same-origin) wpt tests with failing expectations #

Total comments: 29

Patch Set 11 : Reworking tests a bit #

Total comments: 12

Patch Set 12 : Fixing last test nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -120 lines) Patch
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +25 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/element-ready-check-allowed-cross-origin-manual.sub.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +30 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/element-ready-check-enabled-flag-not-set-manual.html View 1 2 3 4 5 6 7 10 1 chunk +0 lines, -19 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/element-ready-check-not-allowed-cross-origin-manual.sub.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +31 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/element-ready-check-not-allowed-manual.html View 1 2 3 4 5 6 7 8 9 10 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/element-ready-check-not-allowed-manual-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/resources/attempt-fullscreen.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/resources/report-fullscreen-enabled.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt_automation/fullscreen/auto-click.js View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fullscreen/full-screen-enabled.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/fullscreen/full-screen-enabled-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fullscreen/full-screen-iframe-legacy.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/fullscreen/full-screen-iframe-legacy-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -8 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-allowed-by-container-policy-expected.txt View 1 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-allowed-by-container-policy-relocate-expected.txt View 1 1 chunk +0 lines, -9 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-disabled-expected.txt View 1 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-enabledforall-expected.txt View 1 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-enabledforself-expected.txt View 1 1 chunk +0 lines, -7 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/fullscreen/resources/inner.html View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/fullscreen/resources/legacy.html View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/fullscreen/resources/media-file.js View 1 2 3 4 5 1 chunk +72 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/resources/testharnessreport.js View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 70 (52 generated)
iclelland
+r foolip -- can you take a look at this? I'd like to get the ...
3 years, 4 months ago (2017-08-08 15:24:17 UTC) #31
iclelland
Also +r looneybear, can you PTAL?
3 years, 4 months ago (2017-08-08 15:43:15 UTC) #33
loonybear
Hi Ian, Thanks for doing this. This lgtm. At some point, do we want to ...
3 years, 4 months ago (2017-08-08 17:55:55 UTC) #34
iclelland
> At some point, do we want to create some wpt tests for fullscreen > ...
3 years, 4 months ago (2017-08-08 20:14:26 UTC) #35
foolip
https://codereview.chromium.org/2898503002/diff/120001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2898503002/diff/120001/third_party/WebKit/LayoutTests/TestExpectations#newcode2879 third_party/WebKit/LayoutTests/TestExpectations:2879: # Feature Policy changes fullscreen behaviour, tests need updating ...
3 years, 4 months ago (2017-08-09 09:00:49 UTC) #36
iclelland
https://codereview.chromium.org/2898503002/diff/120001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2898503002/diff/120001/third_party/WebKit/LayoutTests/TestExpectations#newcode2879 third_party/WebKit/LayoutTests/TestExpectations:2879: # Feature Policy changes fullscreen behaviour, tests need updating ...
3 years, 4 months ago (2017-08-09 15:10:36 UTC) #37
iclelland
https://codereview.chromium.org/2898503002/diff/120001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2898503002/diff/120001/third_party/WebKit/LayoutTests/TestExpectations#newcode2879 third_party/WebKit/LayoutTests/TestExpectations:2879: # Feature Policy changes fullscreen behaviour, tests need updating ...
3 years, 4 months ago (2017-08-09 15:12:38 UTC) #38
foolip
https://codereview.chromium.org/2898503002/diff/120001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2898503002/diff/120001/third_party/WebKit/LayoutTests/TestExpectations#newcode2879 third_party/WebKit/LayoutTests/TestExpectations:2879: # Feature Policy changes fullscreen behaviour, tests need updating ...
3 years, 4 months ago (2017-08-09 15:38:43 UTC) #39
iclelland
On 2017/08/09 15:38:43, foolip wrote: > https://codereview.chromium.org/2898503002/diff/120001/third_party/WebKit/LayoutTests/TestExpectations > File third_party/WebKit/LayoutTests/TestExpectations (right): > > https://codereview.chromium.org/2898503002/diff/120001/third_party/WebKit/LayoutTests/TestExpectations#newcode2879 > ...
3 years, 4 months ago (2017-08-14 18:11:11 UTC) #50
foolip
https://codereview.chromium.org/2898503002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html File third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html (right): https://codereview.chromium.org/2898503002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html#newcode6 third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html:6: <!-- iframe src="resources/report-full-screen-enabled.html" name="same-origin-default"></iframe --> Why is this test ...
3 years, 4 months ago (2017-08-15 09:44:23 UTC) #53
iclelland
https://codereview.chromium.org/2898503002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html File third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html (right): https://codereview.chromium.org/2898503002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html#newcode6 third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html:6: <!-- iframe src="resources/report-full-screen-enabled.html" name="same-origin-default"></iframe --> On 2017/08/15 09:44:22, foolip ...
3 years, 4 months ago (2017-08-16 13:31:56 UTC) #56
iclelland
https://codereview.chromium.org/2898503002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/resources/attempt-full-screen.html File third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/resources/attempt-full-screen.html (right): https://codereview.chromium.org/2898503002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/resources/attempt-full-screen.html#newcode21 third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/resources/attempt-full-screen.html:21: document.body.requestFullscreen(); On 2017/08/16 13:31:55, iclelland wrote: > On 2017/08/15 ...
3 years, 4 months ago (2017-08-16 14:20:57 UTC) #57
iclelland
Also +r alexmos@ -- can you approve the change in site_per_process_browsertest.cc? Essentially, I want a ...
3 years, 4 months ago (2017-08-16 15:12:35 UTC) #61
foolip
lgtm % nits https://codereview.chromium.org/2898503002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html File third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html (right): https://codereview.chromium.org/2898503002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html#newcode6 third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html:6: <!-- iframe src="resources/report-full-screen-enabled.html" name="same-origin-default"></iframe --> On ...
3 years, 4 months ago (2017-08-16 21:43:15 UTC) #62
alexmos
site_per_process_browsertest.cc LGTM https://codereview.chromium.org/2898503002/diff/200001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2898503002/diff/200001/content/browser/site_per_process_browsertest.cc#newcode8923 content/browser/site_per_process_browsertest.cc:8923: // the change is replicated to the ...
3 years, 4 months ago (2017-08-16 22:12:16 UTC) #63
iclelland
https://codereview.chromium.org/2898503002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html File third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html (right): https://codereview.chromium.org/2898503002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html#newcode6 third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html:6: <!-- iframe src="resources/report-full-screen-enabled.html" name="same-origin-default"></iframe --> On 2017/08/16 21:43:14, foolip ...
3 years, 4 months ago (2017-08-17 20:01:56 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2898503002/220001
3 years, 4 months ago (2017-08-17 20:02:22 UTC) #67
commit-bot: I haz the power
3 years, 4 months ago (2017-08-17 21:47:39 UTC) #70
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/5d8010e1fc081481d0646618e700...

Powered by Google App Engine
This is Rietveld 408576698