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

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

Issue 2125523003: Rename setAlwaysAcceptCookies to setBlockThirdPartyCookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/img-crossorigin-cookies.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.setBlockThirdPartyCookies(false);
9 } 9 }
10 10
11 function log(message) 11 function log(message)
12 { 12 {
13 var consoleDiv = document.getElementById('console'); 13 var consoleDiv = document.getElementById('console');
14 consoleDiv.appendChild(document.createTextNode(message + '\n')); 14 consoleDiv.appendChild(document.createTextNode(message + '\n'));
15 } 15 }
16 16
17 function resourceURL(resourceName) 17 function resourceURL(resourceName)
18 { 18 {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 log(response.match(/WK\-xhr\-cookie\-storage: MySpecialValue/) ? "PASS: Cook ie set." : "FAIL: no cookie set.");
104 log("DONE"); 104 log("DONE");
105 endTesting(); 105 endTesting();
106 } 106 }
107 107
108 if (window.testRunner) 108 if (window.testRunner)
109 testSyncCookiesNoCredentials(); 109 testSyncCookiesNoCredentials();
110 </script> 110 </script>
111
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/img-crossorigin-cookies.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698