Readonly
isWhether the feature / service is enabled.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Get the domain preference of the given top-level URI. It will return the service mode if there is a site preference for the given URI. Otherwise, it will return MODE_UNSET.
Computes whether we have a rule for the given browsing context or any of its children. This takes the current cookie banner service mode into consideration and whether the BC is in private browsing mode.
This method only takes the global service mode into account. It will ignore any per-site mode overrides. It is meant for callers to find out whether an applicable rule exists, even if users have disabled the feature for the given site.
Clears all imported rules. They will be imported again on startup and when enabling the service. This is currently only used for testing.
doImport - Whether to import initial rule list after reset. Passing false will result in an empty rule list.
Set the domain preference of the given top-level URI. It will persist the domain preference for private browsing.
WARNING: setting permanent domain preference will leak data in private browsing. Only use if you understand the consequences and trade-offs. If you are unsure, |setDomainPref| is very likely what you want to use instead.
Generated using TypeDoc
Service singleton which owns the cookie banner feature. This service owns the cookie banner handling rules. It initializes both the component for importing rules (nsICookieBannerListService) and injecting cookies (nsICookieInjector).