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"] });
28 const cookies = await CookieXPCShellUtils.getCookieStringFromDocument(
31 Assert.equal(cookies, "foo=bar");
32 Services.prefs.clearUserPref("dom.security.https_first");