This introduces a new setting to the privacy API, browser.privacy.websites.cookieConfig, which controls both the network.cookie.cookieBehavior pref, and the network.cookie.lifetimePolicy pref. The former controls which types of cookies are accepted, while the latter which controls the expiration date of cookies. This setting accepts an object as its value with properties for "behavior" and "nonPersistentCookies", which control the prefs discussed above. Each of these properties is optional. nonPersistentCookies defaults to false, and an object without a value for the behavior property will result in the network.cookie.cookieBehavior pref being reset to its default value. MozReview-Commit-ID: KKE1dMCzTt6
9.0 KiB
9.0 KiB