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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 onconnect = function (event) {
2 var port = event.ports[0];
3 try {
4 var xhr = new XMLHttpRequest;
5 xhr.open("GET", "http://127.0.0.1:8000/xmlhttprequest/resources/get.txt" , true);
6 port.postMessage("xhr allowed");
7 } catch(e) {
8 port.postMessage("xhr blocked");
9 }
10 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698