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

Side by Side 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 unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698