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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-in-body-onload-sync-to-invalid-cross-origin-response-handling.html

Issue 1475863005: [Async][WIP] Call FrameLoader::checkCompleted() asynchronously to avoid sync body.onload() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-in-body-onload-sync-to-invalid-cross-origin-response-handling.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-in-body-onload-sync-to-invalid-cross-origin-response-handling.html b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-in-body-onload-sync-to-invalid-cross-origin-response-handling.html
deleted file mode 100644
index 130f87f8d06b7251b37ceba8e5a0fb94bc50b46e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-in-body-onload-sync-to-invalid-cross-origin-response-handling.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!doctype html>
-<script src="/js-test-resources/js-test.js"></script>
-<body onload="openXHR();">
-<!-- This embed is necessary to cause the synchronous invocation of onload -->
-<embed type="text/html; charset=utf-8">
-<script>
-window.jsTestIsAsync = true;
-description('XMLHttpRequest doesn\'t crash even when open() is invoked ' +
- 'synchronously to handling of a response to a cross-origin ' +
- 'request.');
-
-var xhr = new XMLHttpRequest;
-var count = 10; // The crash doesn't always happen. Repeat to capture it.
-
-function openXHR() {
- xhr.open('GET', '/');
- openAndSendCrossOriginSimpleXHR();
-}
-
-function openAndSendCrossOriginSimpleXHR() {
- xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/test.html");
- xhr.send();
-}
-
-xhr.onerror = function() {
- --count;
- if (count <= 0) {
- setTimeout(finishJSTest, 0);
- } else {
- openAndSendCrossOriginSimpleXHR();
- }
-}
-
-openAndSendCrossOriginSimpleXHR();
-</script>

Powered by Google App Engine
This is Rietveld 408576698