3 <p>Test behavior of sync XHR during unload
</p>
5 var consoleMessages
= document
.createElement("ul");
6 document
.body
.appendChild(consoleMessages
);
8 if (window
.testRunner
) {
9 testRunner
.waitUntilDone();
10 testRunner
.dumpAsText();
13 function subframeLoaded()
15 document
.getElementById('ifr').contentWindow
.location
.assign("data:text/html,DONE");
18 function completed(msg
)
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
27 var item
= document
.createElement("li");
28 item
.appendChild(document
.createTextNode(message
));
29 consoleMessages
.appendChild(item
);
33 <iframe id=
"ifr" name=
"ifr" src=
"resources/xmlhttprequest-in-unload-sync.html"></iframe>