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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unload-sync.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/xmlhttprequest/resources/xmlhttprequest-in-unload-sync.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/xmlhttprequest-in-unload-sync.html b/LayoutTests/http/tests/xmlhttprequest/resources/xmlhttprequest-in-unload-sync.html
new file mode 100644
index 0000000000000000000000000000000000000000..6efa496ae8627f382b047a74b70918e60059c2d7
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/xmlhttprequest-in-unload-sync.html
@@ -0,0 +1,22 @@
+<html>
+<head>
+<script>
+window.onunload = function () {
+ try {
+ var url = '1251.html';
+ var xhr = new XMLHttpRequest();
+ xhr.open('GET', url, false);
+ xhr.send(null);
+ window.parent.completed("PASS: sync XHR completed successfully");
+ } catch (e) {
+ window.parent.completed("FAIL: sync XHR during unload failed: " + e.message);
+ }
+};
+window.onload = function () {
+ window.parent.subframeLoaded();
+};
+</script>
+</head>
+<body>
+</body>
+</html>
« 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