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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/resources/xmlhttprequest-in-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
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unload-sync.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 window.onunload = function () {
5 try {
6 var url = '1251.html';
7 var xhr = new XMLHttpRequest();
8 xhr.open('GET', url, false);
9 xhr.send(null);
10 window.parent.completed("PASS: sync XHR completed successfully");
11 } catch (e) {
12 window.parent.completed("FAIL: sync XHR during unload failed: " + e.mess age);
13 }
14 };
15 window.onload = function () {
16 window.parent.subframeLoaded();
17 };
18 </script>
19 </head>
20 <body>
21 </body>
22 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unload-sync.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698