Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <?php | |
| 2 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 3 // Use of this source code is governed by a BSD-style license that can be | |
| 4 // found in the LICENSE file. | |
| 5 | |
| 6 // This test ensures that fullscreen feature when enabled for self only works | |
| 7 // in the same orgin but not cross origins when allowfullscreen is set. No | |
| 8 // iframe may call it when allowfullscreen is not set. | |
| 9 | |
| 10 Header("Feature-Policy: {\"fullscreen\": [\"self\"]}"); | |
| 11 ?> | |
| 12 | |
| 13 <!DOCTYPE html> | |
| 14 <html> | |
| 15 <head> | |
| 16 <script src="../../resources/testharness.js"></script> | |
| 17 <script src="../../resources/testharnessreport.js"></script> | |
| 18 <script> | |
| 19 if (window.testRunner) { | |
| 20 testRunner.dumpAsText(); | |
| 21 testRunner.dumpChildFramesAsText(); | |
| 22 } | |
| 23 </script> | |
| 24 </head> | |
| 25 <body> | |
| 26 <iframe id="f1" src="resources/feature-policy-fullscreen-enabled.html" allowfull screen></iframe> | |
| 27 <iframe id="f2" src="http://localhost:8000/feature-policy/resources/feature-poli cy-fullscreen-disabled.html" allowfullscreen></iframe> | |
| 28 <iframe id="f3" src="resources/feature-policy-vibrate-enabled.html"></iframe> | |
|
foolip
2016/11/28 23:18:30
typo here?
lunalu1
2016/12/01 20:10:07
Done.
| |
| 29 <iframe id="f4" src="http://localhost:8000/feature-policy/resources/feature-poli cy-fullscreen-disabled.html"></iframe> | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |