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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-multiple.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
Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-multiple.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-multiple.php b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-multiple.php
new file mode 100644
index 0000000000000000000000000000000000000000..159841cfeec6616cc9180b4ada9a29f892a364b0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-multiple.php
@@ -0,0 +1,14 @@
+<?php
+header("Content-Security-Policy: img-src http://*");
+header("Content-Security-Policy-Report-Only: img-src http://*; script-src 'self'; report-uri resources/save-report.php?test=report-uri-multiple.php");
+?>
+<!DOCTYPE html>
+<html>
+<head>
+ <script src="resources/report-test.js"></script>
+</head>
+<body>
+ <img src="ftp://blah.test" />
+ <script src="resources/go-to-echo-report.js"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698