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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js

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/resources/shared-worker-make-xhr.js
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js
deleted file mode 100644
index dfada0d6c842b5b4a061662527a1a46a2e7c6a1c..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js
+++ /dev/null
@@ -1,10 +0,0 @@
-onconnect = function (event) {
- var port = event.ports[0];
- try {
- var xhr = new XMLHttpRequest;
- xhr.open("GET", "http://127.0.0.1:8000/xmlhttprequest/resources/get.txt", true);
- port.postMessage("xhr allowed");
- } catch(e) {
- port.postMessage("xhr blocked");
- }
-};

Powered by Google App Engine
This is Rietveld 408576698