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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cookies/resources/resetCookies.js

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
OLDNEW
1 function resetCookies() 1 function resetCookies()
2 { 2 {
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.setAlwaysAcceptCookies(true); 4 testRunner.setBlockThirdPartyCookies(false);
5 5
6 // Due to cross-origin restrictions, we can only (simply) reset cookies for our current origin. 6 // Due to cross-origin restrictions, we can only (simply) reset cookies for our current origin.
7 var url = "http://" + window.location.hostname +":8000/cookies/resources/coo kie-utility.php?queryfunction=deleteCookies"; 7 var url = "http://" + window.location.hostname +":8000/cookies/resources/coo kie-utility.php?queryfunction=deleteCookies";
8 var req = new XMLHttpRequest(); 8 var req = new XMLHttpRequest();
9 try { 9 try {
10 req.open('GET', url, false); 10 req.open('GET', url, false);
11 req.send(); 11 req.send();
12 } catch (e) { 12 } catch (e) {
13 alert("Attempt to clear " + url + " cookies might have failed. Test res ults might be off from here on out. (" + e + ")"); 13 alert("Attempt to clear " + url + " cookies might have failed. Test res ults might be off from here on out. (" + e + ")");
14 } 14 }
15 15
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.setAlwaysAcceptCookies(false); 17 testRunner.setBlockThirdPartyCookies(true);
18 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698