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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html

Issue 2662443004: Use FeaturePolicy to implement iframe[allowfullscreen] (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html b/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html
index 1fe1b741d740393cd21accdaa2cee1311349f305..2516b8cb56a9bd639f0327e27a070a84c986f663 100644
--- a/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html
+++ b/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html
@@ -7,8 +7,10 @@ document.onwebkitfullscreenerror = function() {
};
document.onwebkitfullscreenchange = function() {
- document.webkitExitFullscreen();
- parent.postMessage({ type: 'change', enabled: document.webkitFullscreenEnabled }, '*');
+ if (document.webkitFullscreenElement) {
+ document.webkitExitFullscreen();
+ parent.postMessage({ type: 'change', enabled: document.webkitFullscreenEnabled }, '*');
+ }
};
document.addEventListener('keypress', function() {

Powered by Google App Engine
This is Rietveld 408576698