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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-enabledforall.php

Issue 2499373002: Implementation for feature policy - fullscreen (Closed)
Patch Set: Modified layout tests Created 4 years, 1 month 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/fullscreen-enabledforall.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-enabledforall.php b/third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-enabledforall.php
new file mode 100644
index 0000000000000000000000000000000000000000..8361a04927eae383e8341b321b96c13180e825f0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-enabledforall.php
@@ -0,0 +1,31 @@
+<?php
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This test ensures that fullscreen feature when enabled for all works across
+// origins when allowfullscreen is set. No iframe may call it when
+// allowfullscreen is not set.
+
+Header("Feature-Policy: {\"fullscreen\": [\"*\"]}");
+?>
+
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
+ }
+</script>
+</head>
+<body>
+<iframe id="f1" src="resources/feature-policy-fullscreen-enabled.html" allowfullscreen></iframe>
+<iframe id="f2" src="http://localhost:8000/feature-policy/resources/feature-policy-fullscreen-enabled.html" allowfullscreen></iframe>
+<iframe id="f3" src="resources/feature-policy-vibrate-enabled.html"></iframe>
+<iframe id="f4" src="http://localhost:8000/feature-policy/resources/feature-policy-fullscreen-enabled.html"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698