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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/respond-with-allow-csp-from-multiple-headers.php

Issue 2431353002: Fixing allow_csp_from.html test and enabling it back in sit-per-process (Closed)
Patch Set: Style Created 4 years, 2 months 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/child-csp-test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/respond-with-allow-csp-from-multiple-headers.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/respond-with-allow-csp-from-multiple-headers.php b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/respond-with-allow-csp-from-multiple-headers.php
index c5ab3501bfd87273a7c0dd5864192258c41450c4..0bbfbf317b960ca207be265f39b5405796751f93 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/respond-with-allow-csp-from-multiple-headers.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/respond-with-allow-csp-from-multiple-headers.php
@@ -1,21 +1,26 @@
<?php
$allow_csp_from = isset($_GET['allow_csp_from']) ? $_GET['allow_csp_from'] : null;
if ($allow_csp_from)
- header('Allow-CSP-From: ' . $allow_csp_from, false);
+ header('Allow-CSP-From: ' . $allow_csp_from, false);
$allow_csp_from_2 = isset($_GET['allow_csp_from_2']) ? $_GET['allow_csp_from_2'] : null;
if ($allow_csp_from_2)
- header('Allow-CSP-From: ' . $allow_csp_from_2, false);
+ header('Allow-CSP-From: ' . $allow_csp_from_2, false);
?>
<!DOCTYPE html>
<html>
<head>
- <title>This page enforces embedder's policies</title>
+ <title>This page enforces embedder's policies</title>
</head>
<body>
- Hello World.
- <iframe src="/cross-site/b.com/title2.html"></iframe>
- <img src="green250x50.png" />
- <script> alert("Hello from iframe");</script>
- <script> window.top.postMessage('loaded', '*'); </script>
+ Hello World.
+ <iframe src="/cross-site/b.com/title2.html"></iframe>
+ <img src="green250x50.png" />
+ <script> alert("Hello from iframe");</script>
+ <script nonce="abc">
+ var response = {};
+ response["loaded"] = true;
+ response["id"] = "<?php echo $msg; ?>";
+ window.onload = window.top.postMessage(response, '*');
+ </script>
</body>
</html>
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/child-csp-test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698