Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/service-worker-blocked-expected.txt

Issue 1861253004: Check CSP before registering ServiceWorkers (Closed) Base URL:
Patch Set: Created 4 years, 8 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/service-worker-blocked-expected.txt
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/service-worker-blocked-expected.txt b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/service-worker-blocked-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c13ecd8b5cb514b03dcf12573b424914e04f3ca7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/service-worker-blocked-expected.txt
@@ -0,0 +1,6 @@
+CONSOLE ERROR: Refused to create a child context containing '' because it violates the following Content Security Policy directive: "child-src 'none'".
+This is a testharness.js-based test.
+PASS Test that a service worker cannot be registered if the CSP does not allow it
+Harness: the test ran to completion.

Powered by Google App Engine
This is Rietveld 408576698