Skip to content

Commit

Permalink
Make nsXMLHttpRequest use AsyncOpen2.
Browse files Browse the repository at this point in the history
  • Loading branch information
sicking authored and jgraham committed Oct 21, 2015
1 parent 42488e9 commit 010e723
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -18,7 +18,13 @@
try {
var xhr = new XMLHttpRequest;
xhr.open("GET", "http://www1.{{host}}:{{ports[http][0]}}/content-security-policy/support/fail.png", true);
log("Fail");
xhr.send();
xhr.onload = function() {
log("Fail");
}
xhr.onerror = function() {
log("Pass");
}
} catch (e) {
log("Pass");
}
Expand Down

0 comments on commit 010e723

Please sign in to comment.