mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1495030 - [1.0] Add third-party tracker cookies blocking setting. r=snorp,baku
This commit is contained in:
parent
4043c15374
commit
d3ba71da85
@ -587,7 +587,8 @@ public final class GeckoRuntimeSettings implements Parcelable {
|
||||
// Sync values with nsICookieService.idl.
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef({ COOKIE_ACCEPT_ALL, COOKIE_ACCEPT_FIRST_PARTY,
|
||||
COOKIE_ACCEPT_NONE, COOKIE_ACCEPT_VISITED })
|
||||
COOKIE_ACCEPT_NONE, COOKIE_ACCEPT_VISITED,
|
||||
COOKIE_ACCEPT_NON_TRACKERS })
|
||||
/* package */ @interface CookieBehavior {}
|
||||
|
||||
/**
|
||||
@ -608,6 +609,12 @@ public final class GeckoRuntimeSettings implements Parcelable {
|
||||
* sites previously visited in a first-party context.
|
||||
*/
|
||||
public static final int COOKIE_ACCEPT_VISITED = 3;
|
||||
/**
|
||||
* Accept only first-party and non-tracking third-party cookies and site data
|
||||
* to block cookies which are not associated with the domain of the visited
|
||||
* site set by known trackers.
|
||||
*/
|
||||
public static final int COOKIE_ACCEPT_NON_TRACKERS = 4;
|
||||
|
||||
/**
|
||||
* Get the assigned cookie storage behavior.
|
||||
|
Loading…
Reference in New Issue
Block a user