4 <script src=
"../../resources/js-test.js"></script>
7 description("Performing mixed content checks in a detached setting shouldn't crash.");
9 window
.jsTestIsAsync
= true;
13 function processMessage(event
) {
14 if (event
.data
== "opened") {
15 xhr
= new w
.XMLHttpRequest();
16 xhr
.open('GET', 'http://user:pass@127.0.0.1:8000/doesNotExist', false);
18 } else if (event
.data
== "closed") {
19 shouldThrow("xhr.send()");
24 if (window
.testRunner
) {
25 testRunner
.dumpAsText();
26 testRunner
.setCanOpenWindows();
28 w
= window
.open('../../resources/window-postmessage-open-close.html');
29 window
.addEventListener("message", processMessage
, false);