commit d97599b58cb1b5cca8e9f4b145e2d648f0d5a96e
parent edbdedea9df1ea0d5b9354bcf52525169871bab3
Author: Matthew Finkel <sysrqb@torproject.org>
Date: Tue, 20 Oct 2020 00:28:50 +0000
[android] Modify Tracking Protection configuration
android-components#40020: Disable third-party cookies
android-components#40024: Disable tracking protection by default
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/mobile/android/android-components/components/concept/engine/src/main/java/mozilla/components/concept/engine/EngineSession.kt b/mobile/android/android-components/components/concept/engine/src/main/java/mozilla/components/concept/engine/EngineSession.kt
@@ -9,6 +9,7 @@ import androidx.annotation.CallSuper
import mozilla.components.concept.engine.EngineSession.BounceTrackingProtectionMode
import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy.CookiePolicy.ACCEPT_ALL
import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy.CookiePolicy.ACCEPT_FIRST_PARTY_AND_ISOLATE_OTHERS
+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.history.HistoryItem
import mozilla.components.concept.engine.manifest.WebAppManifest
@@ -569,7 +570,9 @@ abstract class EngineSession(
companion object {
fun none() = TrackingProtectionPolicy(
trackingCategories = arrayOf(TrackingCategory.NONE),
- cookiePolicy = ACCEPT_ALL,
+ useForPrivateSessions = false,
+ useForRegularSessions = false,
+ cookiePolicy = ACCEPT_ONLY_FIRST_PARTY,
bounceTrackingProtectionMode = BounceTrackingProtectionMode.ENABLED_STANDBY,
)