Verified Commit 0ab4dc85 authored by Matthew Finkel's avatar Matthew Finkel Committed by aguestuser
Browse files

Modify Tracking Protection configuration

Bug 40020: Disable third-party cookies

Bug 40024: Disable tracking protection by default
parent bc91d115
...@@ -9,6 +9,7 @@ import android.graphics.Bitmap ...@@ -9,6 +9,7 @@ import android.graphics.Bitmap
import androidx.annotation.CallSuper import androidx.annotation.CallSuper
import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy.CookiePolicy.ACCEPT_ALL import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy.CookiePolicy.ACCEPT_ALL
import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy.CookiePolicy.ACCEPT_NON_TRACKERS import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy.CookiePolicy.ACCEPT_NON_TRACKERS
import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy.CookiePolicy.ACCEPT_ONLY_FIRST_PARTY
import mozilla.components.concept.engine.content.blocking.Tracker import mozilla.components.concept.engine.content.blocking.Tracker
import mozilla.components.concept.engine.history.HistoryItem import mozilla.components.concept.engine.history.HistoryItem
import mozilla.components.concept.engine.manifest.WebAppManifest import mozilla.components.concept.engine.manifest.WebAppManifest
...@@ -405,7 +406,9 @@ abstract class EngineSession( ...@@ -405,7 +406,9 @@ abstract class EngineSession(
companion object { companion object {
fun none() = TrackingProtectionPolicy( fun none() = TrackingProtectionPolicy(
trackingCategories = arrayOf(TrackingCategory.NONE), trackingCategories = arrayOf(TrackingCategory.NONE),
cookiePolicy = ACCEPT_ALL useForPrivateSessions = false,
useForRegularSessions = false,
cookiePolicy = ACCEPT_ONLY_FIRST_PARTY
) )
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment