| 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", "*");
|
| }
|
|
|