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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async.html

Issue 312653002: ResourceLoaderOptions also must be updated by updateRequestForAccessControl() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed #5 Created 6 years, 6 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: 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>

Powered by Google App Engine
This is Rietveld 408576698