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

Issue 2585363002: Use FeaturePolicy to implement iframe[allowfullscreen] (Closed)

Created:
4 years ago by iclelland
Modified:
3 years, 10 months ago
Reviewers:
foolip, lunalu1
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use FeaturePolicy to implement iframe[allowfullscreen] The previous CL (https://crrev.com/719a425c) tried to handle this in fullscreenIsSupported(), which misses the important case where the Feature Policy API is enabled, but the site uses 'allowfullscreen' iframe attributes. This CL roughly mimics the intended behaviour of feature-policy allowfullscreen, by allowing access to fullscreen in same-origin iframes, and in cross-origin iframes where either a Feature-Policy header or an 'allowfullscreen' attribute is used, and the parent frame allows fullscreen. BUG=666761 Review-Url: https://codereview.chromium.org/2585363002 Cr-Commit-Position: refs/heads/master@{#446393} Committed: https://chromium.googlesource.com/chromium/src/+/39d97d6645829da8b4c402b3112c81ebbe53004d

Patch Set 1 #

Patch Set 2 : Remove FP code in fullscreenIsSupported #

Patch Set 3 : Update test expectations #

Total comments: 3

Patch Set 4 : Rebase #

Patch Set 5 : Avoid extra change event notification #

Messages

Total messages: 49 (30 generated)
iclelland
+r foolip, lulalu -- PTAL, thanks!
4 years ago (2016-12-20 16:14:11 UTC) #12
iclelland
On 2016/12/20 16:14:11, iclelland wrote: > +r foolip, lulalu -- PTAL, thanks! s/lulalu/lunalu/, oops
4 years ago (2016-12-20 16:14:34 UTC) #13
lunalu1
lgtm Thanks for doing that Ian. LGTM to me!
4 years ago (2016-12-20 19:00:01 UTC) #16
iclelland
On 2016/12/20 19:00:01, loonybear (OOO until Jan 6) wrote: > lgtm > > Thanks for ...
3 years, 11 months ago (2017-01-03 17:05:11 UTC) #17
lunalu1
-lgtm https://codereview.chromium.org/2585363002/diff/40001/third_party/WebKit/Source/core/dom/Fullscreen.cpp File third_party/WebKit/Source/core/dom/Fullscreen.cpp (left): https://codereview.chromium.org/2585363002/diff/40001/third_party/WebKit/Source/core/dom/Fullscreen.cpp#oldcode140 third_party/WebKit/Source/core/dom/Fullscreen.cpp:140: JSMessageSource, WarningMessageLevel, Do we want to be more ...
3 years, 11 months ago (2017-01-10 18:14:57 UTC) #18
lunalu1
I also noticed that the comments in LayoutTests/http/tests/feature-policy/fullscreen-enabledforself.php // This test ensures that fullscreen feature ...
3 years, 11 months ago (2017-01-11 18:51:04 UTC) #19
iclelland
On 2017/01/03 17:05:11, iclelland wrote: > On 2016/12/20 19:00:01, loonybear (OOO until Jan 6) wrote: ...
3 years, 11 months ago (2017-01-19 14:59:01 UTC) #20
foolip
On 2017/01/19 14:59:01, iclelland wrote: > On 2017/01/03 17:05:11, iclelland wrote: > > On 2016/12/20 ...
3 years, 11 months ago (2017-01-19 17:10:38 UTC) #21
foolip
https://codereview.chromium.org/2585363002/diff/40001/third_party/WebKit/Source/core/dom/Fullscreen.cpp File third_party/WebKit/Source/core/dom/Fullscreen.cpp (right): https://codereview.chromium.org/2585363002/diff/40001/third_party/WebKit/Source/core/dom/Fullscreen.cpp#newcode92 third_party/WebKit/Source/core/dom/Fullscreen.cpp:92: // 2. Otherwise, if the embedding frame's document is ...
3 years, 11 months ago (2017-01-19 17:14:18 UTC) #22
iclelland
On 2017/01/19 17:10:38, foolip_slow_very_sorry wrote: > On 2017/01/19 14:59:01, iclelland wrote: > > On 2017/01/03 ...
3 years, 11 months ago (2017-01-19 19:31:56 UTC) #23
iclelland
https://codereview.chromium.org/2585363002/diff/40001/third_party/WebKit/Source/core/dom/Fullscreen.cpp File third_party/WebKit/Source/core/dom/Fullscreen.cpp (right): https://codereview.chromium.org/2585363002/diff/40001/third_party/WebKit/Source/core/dom/Fullscreen.cpp#newcode92 third_party/WebKit/Source/core/dom/Fullscreen.cpp:92: // 2. Otherwise, if the embedding frame's document is ...
3 years, 11 months ago (2017-01-19 19:32:15 UTC) #24
foolip
lgtm, sorry for the delay. I would like to think about this again before FP ...
3 years, 11 months ago (2017-01-24 11:02:36 UTC) #25
iclelland
On 2017/01/24 11:02:36, foolip_UTC7 wrote: > lgtm, sorry for the delay. I would like to ...
3 years, 11 months ago (2017-01-24 14:06:53 UTC) #26
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/2585363002/40001
3 years, 11 months ago (2017-01-24 14:07:06 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/141122) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-24 14:08:44 UTC) #30
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/2585363002/60001
3 years, 11 months ago (2017-01-24 16:10:36 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/377083)
3 years, 11 months ago (2017-01-24 18:55:22 UTC) #39
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/2585363002/80001
3 years, 10 months ago (2017-01-26 18:30:55 UTC) #46
commit-bot: I haz the power
3 years, 10 months ago (2017-01-26 19:34:53 UTC) #49
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/39d97d6645829da8b4c402b3112c...

Powered by Google App Engine
This is Rietveld 408576698