Index: LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async.html |
diff --git a/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async.html b/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async.html |
index faca8478db51a2bc5d155486a6e3d22cf625b0a8..ba707d2d58b8410fc2dd8b0f6cad3965ca11cdc4 100644 |
--- a/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async.html |
+++ b/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async.html |
@@ -10,32 +10,9 @@ function log(message) |
if (window.testRunner) { |
testRunner.dumpAsText(); |
testRunner.waitUntilDone(); |
- testRunner.setAlwaysAcceptCookies(true); |
-} |
- |
-var cookieSet = false; |
- |
-window.onmessage = function(evt) |
-{ |
- if (evt.data != "done") { |
- alert("Unexpected message: " + evt.data); |
- return; |
- } |
- |
- if (!cookieSet) { |
- cookieSet = true; |
- runTest(); |
- } |
-} |
- |
-function startTest() { |
- // Set a cookie for localhost:8000. |
- window.frames[0].postMessage("sendXHR setFooCookie", "*"); |
} |
function stopTest() { |
- // Clean up all cookies for localhost:8000. |
- window.frames[0].postMessage("resetCookiesAndNotifyDone", "*"); |
if (window.testRunner) |
testRunner.notifyDone(); |
} |
@@ -63,11 +40,8 @@ function runTest() { |
</script> |
</head> |
-<body onload="startTest();"> |
+<body onload="runTest();"> |
<p>Test case for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=37781">37781</a>: [XHR] Cross-Origin asynchronous request with credential raises NETWORK_ERR</p> |
<pre id='console'></pre> |
- |
-<iframe id='testFrame' src="http://localhost:8000/cookies/resources/third-party-cookie-relaxing-iframe.html"></iframe> |
- |
</body> |
</html> |