OLD | NEW |
---|---|
(Empty) | |
1 <?php | |
2 Header("Feature-Policy: {\"docwrite\": [\"self\"]}"); | |
3 ?> | |
4 <html> | |
5 <head> | |
6 <script> | |
7 if (window.testRunner) { | |
8 testRunner.dumpAsText(); | |
9 testRunner.dumpChildFramesAsText(); | |
alexmos
2016/11/09 01:16:55
Are these two calls needed? Doesn't seem like you
| |
10 } | |
11 </script> | |
12 </head> | |
13 <body> | |
14 <p>This iframe should not return any errors:</p> | |
15 <iframe src="http://localhost:8000/feature-policy/resources/cross-origin-iframe- for-feature-disabled.html"></iframe> | |
16 <p>This iframe should not return any errors:</p> | |
17 <iframe src="http://127.0.0.1:8000/feature-policy/resources/cross-origin-iframe- for-feature-enabled.html"></iframe> | |
alexmos
2016/11/09 01:16:55
Did you intend for this second one to be a same-or
iclelland
2016/11/09 18:07:59
That is intentional, to ensure that the feature is
| |
18 </body> | |
19 </html> | |
OLD | NEW |