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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-in-body-onload-sync-to-invalid-preflight-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-preflight-handling.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-in-body-onload-sync-to-invalid-preflight-handling.html b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-in-body-onload-sync-to-invalid-preflight-handling.html
deleted file mode 100644
index 697f4015f5f302aab5db3e6900728a93e6c0c7cd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-in-body-onload-sync-to-invalid-preflight-handling.html
+++ /dev/null
@@ -1,34 +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 an invalid preflight response.');
-
-var xhr = new XMLHttpRequest;
-var count = 10; // The crash doesn't always happen. Repeat to capture it.
-
-function openXHR() {
- xhr.open('GET', '/');
- openAndSendCrossOriginNonSimpleXHR();
-}
-
-function openAndSendCrossOriginNonSimpleXHR() {
- xhr.open("PUT", "http://localhost:8000/xmlhttprequest/");
- xhr.send();
-}
-
-xhr.onerror = function() {
- --count;
- if (count <= 0) {
- setTimeout(finishJSTest, 0);
- } else {
- openAndSendCrossOriginNonSimpleXHR();
- }
-}
-
-openAndSendCrossOriginNonSimpleXHR();
-</script>

Powered by Google App Engine
This is Rietveld 408576698