commit 2e9363e66390ed1c7c8e36e35ee69400767a96dd
parent cccc001d2d31d800a9e6706a1c735fe5a71e229e
Author: Roger Yang <royang@mozilla.com>
Date: Tue, 9 Dec 2025 20:10:55 +0000
Bug 2005019 - Disable toolbar CFR when in performance testing. r=android-reviewers,kaya
Differential Revision: https://phabricator.services.mozilla.com/D275658
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/perf/Performance.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/perf/Performance.kt
@@ -38,6 +38,7 @@ object Performance {
disableTrackingProtectionPopups(context)
disableFirstTimePWAPopup(context)
disableOpenInApp(context)
+ disableCFRs(context)
}
/**
@@ -102,4 +103,11 @@ object Performance {
context.components.settings.openLinksInExternalApp =
context.getString(R.string.pref_key_open_links_in_apps_never)
}
+
+ /**
+ * Disables CFRs.
+ */
+ private fun disableCFRs(context: Context) {
+ context.components.settings.hasSeenBrowserToolbarCFR = true
+ }
}