Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/feature-policy/cross-origin-feature-disabled.php |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/cross-origin-feature-disabled.php b/third_party/WebKit/LayoutTests/http/tests/feature-policy/cross-origin-feature-disabled.php |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cf84fb15af504f548ea67f21481223746ec2d926 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/feature-policy/cross-origin-feature-disabled.php |
| @@ -0,0 +1,19 @@ |
| +<?php |
| +Header("Feature-Policy: {\"docwrite\": [\"self\"]}"); |
| +?> |
| +<html> |
| +<head> |
| +<script> |
| +if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + testRunner.dumpChildFramesAsText(); |
|
alexmos
2016/11/09 01:16:55
Are these two calls needed? Doesn't seem like you
|
| +} |
| +</script> |
| +</head> |
| +<body> |
| +<p>This iframe should not return any errors:</p> |
| +<iframe src="http://localhost:8000/feature-policy/resources/cross-origin-iframe-for-feature-disabled.html"></iframe> |
| +<p>This iframe should not return any errors:</p> |
| +<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
|
| +</body> |
| +</html> |