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

Unified Diff: LayoutTests/http/tests/cookies/resources/third-party-cookie-relaxing-iframe.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
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html
diff --git a/LayoutTests/http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html b/LayoutTests/http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html
index 9eae81a85676c018529634dce07558c3fa9fc937..1f2ca217136ec8e9f7a6826ef9ddb5249c631897 100644
--- a/LayoutTests/http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html
+++ b/LayoutTests/http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html
@@ -30,6 +30,11 @@ function showCookies()
function sendXHR(queryCommand)
{
+ if (window.testRunner) {
+ // setAlwaysAcceptCookies() takes effect asynchronously (IPC is involved).
+ testRunner.setAlwaysAcceptCookies(true);
+ }
+
var baseurl = "http://localhost:8000/cookies/resources/cookie-utility.php";
var url = queryCommand ? baseurl + "?queryfunction=" + queryCommand : baseurl;
alert(url);
@@ -41,6 +46,10 @@ function sendXHR(queryCommand)
alert("XHR response - " + req.responseText);
else
alert("xhr error");
+
+ if (window.testRunner) {
+ testRunner.setAlwaysAcceptCookies(false);
+ }
parent.window.postMessage("done", "*");
}
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698