OLD | NEW |
1 <button onclick="testSyncCookiesNoCredentials();">Start</button> | 1 <button onclick="testSyncCookiesNoCredentials();">Start</button> |
2 <pre id="console"></pre> | 2 <pre id="console"></pre> |
3 <script> | 3 <script> |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 testRunner.setCanOpenWindows(); | 7 testRunner.setCanOpenWindows(); |
8 testRunner.setAlwaysAcceptCookies(1); | 8 testRunner.setAlwaysAcceptCookies(1); |
9 } | 9 } |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 clearCookies(); | 94 clearCookies(); |
95 | 95 |
96 var req = new XMLHttpRequest; | 96 var req = new XMLHttpRequest; |
97 req.open("GET", resourceURL("cross-origin-set-cookies.php"), false); | 97 req.open("GET", resourceURL("cross-origin-set-cookies.php"), false); |
98 req.withCredentials = true; | 98 req.withCredentials = true; |
99 req.send(); | 99 req.send(); |
100 log("PASS: Finished sync xhr."); | 100 log("PASS: Finished sync xhr."); |
101 | 101 |
102 var response = checkForCookie(); | 102 var response = checkForCookie(); |
103 log(response.match(/WK\-xhr\-cookie\-storage: MySpecialValue/) ? "PASS: Cook
ie set." : "FAIL: no cookie set."); | 103 // As per issue #383483 xhr.withCredentials for synchronous requests is depr
ecated. |
| 104 log(response.match(/WK\-xhr\-cookie\-storage: MySpecialValue/) ? "FAIL: Cook
ie set." : "PASS: no cookie set."); |
104 log("DONE"); | 105 log("DONE"); |
105 endTesting(); | 106 endTesting(); |
106 } | 107 } |
107 | 108 |
108 if (window.testRunner) | 109 if (window.testRunner) |
109 testSyncCookiesNoCredentials(); | 110 testSyncCookiesNoCredentials(); |
110 </script> | 111 </script> |
111 | 112 |
OLD | NEW |