2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

For #27111: disable TCP in beta and release

(cherry picked from commit 5c9a713512)
This commit is contained in:
MatthewTighe 2022-09-23 15:45:46 -07:00 committed by Mugurell
parent fbd956c285
commit f8690be7ba

View File

@ -595,14 +595,14 @@ class Settings(private val appContext: Context) : PreferencesHolder {
)
val enabledTotalCookieProtection: Boolean
get() = mr2022Sections[Mr2022Section.TCP_FEATURE] == true
get() = mr2022Sections[Mr2022Section.TCP_FEATURE] == true && Config.channel.isNightlyOrDebug
/**
* Indicates if the total cookie protection CRF should be shown.
*/
var shouldShowTotalCookieProtectionCFR by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_should_show_total_cookie_protection_popup),
default = mr2022Sections[Mr2022Section.TCP_CFR] == true,
default = mr2022Sections[Mr2022Section.TCP_CFR] == true && Config.channel.isNightlyOrDebug,
)
val blockCookiesSelectionInCustomTrackingProtection by stringPreference(