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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/cross-origin-cookie-storage.html

Issue 329323002: Deprecate support for xhr.withCredentials for synchronous requests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698