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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unload-sync.html

Issue 102353004: Allow resource loads inside page unload events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 <html>
2 <body>
3 <p>Test behavior of sync XHR during unload</p>
4 <script>
5 var consoleMessages = document.createElement("ul");
6 document.body.appendChild(consoleMessages);
7
8 if (window.testRunner) {
9 testRunner.waitUntilDone();
10 testRunner.dumpAsText();
11 }
12
13 function subframeLoaded()
14 {
15 document.getElementById('ifr').contentWindow.location.assign("data:text/html ,DONE");
16 }
17
18 function completed(msg)
19 {
20 log(msg);
21 if (window.testRunner)
22 testRunner.notifyDone();
23 }
24
25 function log(message)
26 {
27 var item = document.createElement("li");
28 item.appendChild(document.createTextNode(message));
29 consoleMessages.appendChild(item);
30 }
31 </script>
32 <div id="framediv">
33 <iframe id="ifr" src="resources/xmlhttprequest-in-unload-sync.html"></iframe>
34 </div>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698