Index: LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-sync.html |
diff --git a/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-sync.html b/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-sync.html |
index 54a8edcbc3348aa5188db74abbf1ec01cd77f713..acdc41a9ffb170df0ad429f2cf834ea477ce90d3 100644 |
--- a/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-sync.html |
+++ b/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-sync.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 synchronous 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> |