Commit 7c524b96 authored by Matthew Finkel's avatar Matthew Finkel Committed by Pier Angelo Vendrame
Browse files

[android] Modify Tracking Protection configuration

Bug 40020: Disable third-party cookies

Bug 40024: Disable tracking protection by default
parent d79f9298
Loading
Loading
Loading
Loading
+4 −1
Changes for mobile/android/android-components/components/concept/engine/src/main/java/mozilla/components/concept/engine/EngineSession.kt: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ import android.content.Intent
import androidx.annotation.CallSuper
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
@@ -543,7 +544,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,
            )

            /**