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