[tbb-commits] [Git][tpo/applications/firefox-android][firefox-android-115.2.1-13.0-1] Bug 42652: Pass the list of supported languages to GeckoView.

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Mon May 13 09:46:58 UTC 2024



Pier Angelo Vendrame pushed to branch firefox-android-115.2.1-13.0-1 at The Tor Project / Applications / firefox-android


Commits:
f7d9fabc by Pier Angelo Vendrame at 2024-05-13T11:46:53+02:00
Bug 42652: Pass the list of supported languages to GeckoView.

It will be used to prevent leaks about regional preferences.

- - - - -


1 changed file:

- fenix/app/src/main/java/org/mozilla/fenix/gecko/GeckoProvider.kt


Changes:

=====================================
fenix/app/src/main/java/org/mozilla/fenix/gecko/GeckoProvider.kt
=====================================
@@ -14,6 +14,7 @@ import mozilla.components.concept.storage.LoginsStorage
 import mozilla.components.lib.crash.handler.CrashHandlerService
 import mozilla.components.service.sync.autofill.GeckoCreditCardsAddressesStorageDelegate
 import mozilla.components.service.sync.logins.GeckoLoginStorageDelegate
+import org.mozilla.fenix.BuildConfig
 import org.mozilla.fenix.Config
 import org.mozilla.fenix.ext.components
 import org.mozilla.fenix.ext.settings
@@ -58,6 +59,7 @@ object GeckoProvider {
             .contentBlocking(policy.toContentBlockingSetting())
             .debugLogging(Config.channel.isDebug || context.components.settings.enableGeckoLogs)
             .aboutConfigEnabled(Config.channel.isBeta || Config.channel.isNightlyOrDebug)
+            .supportedLocales(BuildConfig.SUPPORTED_LOCALE_ARRAY.toList())
             .build()
 
         val settings = context.components.settings



View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/f7d9fabc22741e4ce60fd246dcbde874e18e02cb

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/f7d9fabc22741e4ce60fd246dcbde874e18e02cb
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240513/2e918d74/attachment-0001.htm>


More information about the tbb-commits mailing list