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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/feature-policy/cross-origin-feature-disabled.php

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Get replication actually working; add 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/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>

Powered by Google App Engine
This is Rietveld 408576698