Index: third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-disabled.php |
diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-disabled.php b/third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-disabled.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..289d6c28e9dfb7e138f3fffc9269352dee2eef7d |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/feature-policy/fullscreen-disabled.php |
@@ -0,0 +1,30 @@ |
+<?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 disabled may not be called by |
+// any iframe even when allowfullscreen is set. |
+ |
+Header("Feature-Policy: {\"fullscreen\": []}"); |
+?> |
+ |
+<!DOCTYPE html> |
+<html> |
foolip
2016/11/28 23:33:22
Tests can omit html, head and body.
lunalu1
2016/12/01 20:10:07
Done.
|
+<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-disabled.html"></iframe> |
+<iframe id="f2" src="http://localhost:8000/feature-policy/resources/feature-policy-fullscreen-disabled.html"></iframe> |
+<iframe id="f3" src="resources/feature-policy-fullscreen-disabled.html" allowfullscreen></iframe> |
+<iframe id="f4" src="http://localhost:8000/feature-policy/resources/feature-policy-fullscreen-disabled.html" allowfullscreen></iframe> |
+</body> |
+</html> |