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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/resources/insecure-xhr.js

Issue 594803002: Transfer SecurityOrigin overrides to Workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop separate 'overrides' type and transfer-by-origin instead Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 function finish() {
2 if (self.importScripts)
3 postMessage('done');
4 else if (window.opener)
5 window.opener.postMessage('done', '*');
6 }
7
8 var xhr = new XMLHttpRequest();
9 xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/echo-request-ori gin.php");
10 xhr.onload = function (e) {
11 console.log("PASS: " + xhr.responseText);
12 finish();
13 };
14 xhr.onerror = function (e) {
15 console.log("FAIL: " + xhr.status);
16 finish();
17 };
18 xhr.send();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698