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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html

Issue 1128813003: Give shared workers their own content security policies (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 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: LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html b/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html
index 97412f29ca9e980a80fdd5bb9f7bbc6c9dce3add..77626ba3f5220d52b5df43bb52d0e4b83c6770d8 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html
@@ -12,7 +12,8 @@ if (window.testRunner) {
<body>
<script>
try {
- var worker = new SharedWorker('http://127.0.0.1:8000/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js');
+ var worker = new SharedWorker('http://127.0.0.1:8000/security/contentSecurityPolicy/resources/worker.php?type=shared-make-xhr&csp=' +
+ encodeURIComponent("connect-src 'none'"));
worker.port.onmessage = function (event) {
alert(event.data);
if (window.testRunner)

Powered by Google App Engine
This is Rietveld 408576698