// Test our handling of host names with a single character at the beginning // followed by a dot. const cv = Services.cookies.add( "e.com", "/", "foo", "bar", false, false, true,
expiry,
{},
Ci.nsICookie.SAMESITE_UNSET,
Ci.nsICookie.SCHEME_HTTP
); Assert.equal(cv.result, Ci.nsICookieValidation.eOK, "Valid cookie"); Assert.equal(Services.cookies.countCookiesFromHost("e.com"), 1);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.