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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/resources/multiple-send.html

Issue 23005006: Fix XMLHttpRequest leak document when send() is called multiple times. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: check readyState == 4 to comply with change made in r156212 Created 7 years, 4 months 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
Index: LayoutTests/http/tests/xmlhttprequest/resources/multiple-send.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/multiple-send.html b/LayoutTests/http/tests/xmlhttprequest/resources/multiple-send.html
new file mode 100644
index 0000000000000000000000000000000000000000..fbe0204478c0963a3d31c19b56bdf48ee03def4e
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/multiple-send.html
@@ -0,0 +1,11 @@
+<script>
+ var xhr = new XMLHttpRequest();
+ xhr.open("GET", "./get.txt", true);
+ xhr.onreadystatechange = function () {
+ if (xhr.readyState != 4)
+ return;
+ xhr.open("GET", "./get.txt", true);
+ xhr.send(null);
+ };
+ xhr.send(null);
+</script>

Powered by Google App Engine
This is Rietveld 408576698