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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/multiple-enforce-policies.php

Issue 1869063003: Check all CSPs rather than exiting early if a resource is blocked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix multiple-report-policies test Created 4 years, 7 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 | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/multiple-enforce-policies-expected.txt » ('j') | 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/multiple-enforce-policies.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/multiple-enforce-policies.php b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/multiple-enforce-policies.php
new file mode 100644
index 0000000000000000000000000000000000000000..553633740a226fd23145cea4f9437398b1a4ec12
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/multiple-enforce-policies.php
@@ -0,0 +1,15 @@
+<?php
+header("Content-Security-Policy: img-src http://* https://*; script-src 'self' 'unsafe-inline';, img-src http://*; script-src 'self' 'unsafe-inline';");
+?>
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+</head>
+<body>
+ <img src="ftp://blah.test" />
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/multiple-enforce-policies-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698