2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] Fix safe browsing API breaking change. (https://github.com/mozilla-mobile/fenix/pull/4946)

This commit is contained in:
Arturo Mejia 2019-08-27 11:43:22 -07:00 committed by Colin Lee
parent da02c6f228
commit eb53d10047

View File

@ -21,9 +21,6 @@ import mozilla.components.browser.storage.sync.PlacesHistoryStorage
import mozilla.components.concept.engine.DefaultSettings
import mozilla.components.concept.engine.Engine
import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy
import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy.SafeBrowsingCategory
import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy.Companion.select
import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy.TrackingCategory
import mozilla.components.concept.engine.mediaquery.PreferredColorScheme
import mozilla.components.concept.fetch.Client
import mozilla.components.feature.media.MediaFeature
@ -179,10 +176,7 @@ class Core(private val context: Context) {
normalMode && privateMode -> trackingProtectionPolicy
normalMode && !privateMode -> trackingProtectionPolicy.forRegularSessionsOnly()
!normalMode && privateMode -> trackingProtectionPolicy.forPrivateSessionsOnly()
else -> select(
trackingCategories = arrayOf(TrackingCategory.NONE),
safeBrowsingCategories = arrayOf(SafeBrowsingCategory.RECOMMENDED)
)
else -> TrackingProtectionPolicy.none()
}
}