| 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>
|
|
|