1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
7 Services
.prefs
.setBoolPref("network.cookie.sameSite.schemeful", false);
8 Services
.prefs
.setBoolPref("dom.security.https_first", false);
10 var expiry
= (Date
.now() + 1000) * 1000;
12 // Test our handling of host names with a single character at the beginning
24 Ci
.nsICookie
.SAMESITE_NONE
,
25 Ci
.nsICookie
.SCHEME_HTTP
27 Assert
.equal(Services
.cookies
.countCookiesFromHost("e.com"), 1);
29 CookieXPCShellUtils
.createServer({ hosts
: ["e.com"] });
31 await CookieXPCShellUtils
.getCookieStringFromDocument("http://e.com/");
32 Assert
.equal(cookies
, "foo=bar");
33 Services
.prefs
.clearUserPref("dom.security.https_first");