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

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

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
Index: LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01-expected.txt
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01-expected.txt b/LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..baf36676b84b4eef804374bc31e9f4984ba3c19e
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/report-multiple-violations-01-expected.txt
@@ -0,0 +1,9 @@
+CONSOLE MESSAGE: [Report Only] Refused to load the image 'http://127.0.0.1:8000/security/resources/abe.png' because it violates the following Content Security Policy directive: "img-src 'none'".
+
+PingLoader dispatched to 'http://127.0.0.1:8000/security/contentSecurityPolicy/resources/does-not-exist'.
+CONSOLE MESSAGE: [Report Only] Refused to load the image 'http://127.0.0.1:8000/security/resources/eba.png' because it violates the following Content Security Policy directive: "img-src 'none'".
+
+PingLoader dispatched to 'http://127.0.0.1:8000/security/contentSecurityPolicy/resources/does-not-exist'.
+This tests that multiple violations on a page trigger multiple reports. The test passes if two PingLoader callbacks are visible in the output.
+
+

Powered by Google App Engine
This is Rietveld 408576698