Files
tubestation/toolkit/components/extensions/ext-privacy.js
Bob Silverberg dd4dd43f81 Bug 1363860 - Allow WebExtensions to control cookie behaviour, r=mixedpuppy
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
2017-11-30 09:31:21 -05:00

9.0 KiB