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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01.html

Issue 21789002: CSP: Deduplicate violation reports before sending. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests. Created 7 years, 4 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 | LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01.html b/LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01.html
new file mode 100644
index 0000000000000000000000000000000000000000..6465d602d42b9017642184a7434ebb7db0647bf0
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script src="resources/report-test.js"></script>
+ <meta http-equiv="Content-Security-Policy-Report-Only" content="img-src 'none'; report-uri resources/does-not-exist">
+</head>
+<body>
+ <p>This tests that multiple violations on a page trigger multiple reports.
+ The test passes if two PingLoader callbacks are visible in the output.</p>
+ <img src="../resources/abe.png">
+ <img src="../resources/eba.png">
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698