1 function resetCookies()
4 testRunner
.setAlwaysAcceptCookies(true);
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/cookie-utility.php?queryfunction=deleteCookies";
8 var req
= new XMLHttpRequest();
10 req
.open('GET', url
, false);
13 alert("Attempt to clear " + url
+ " cookies might have failed. Test results might be off from here on out. (" + e
+ ")");
16 if (window
.testRunner
)
17 testRunner
.setAlwaysAcceptCookies(false);