Pier Angelo Vendrame pushed to branch base-browser-140.3.0esr-15.0-1 at The Tor
Project / Applications / Tor Browser
Commits:
1ded752a by Pier Angelo Vendrame at 2025-09-30T10:32:15+02:00
fixup! BB 42562: Normalized the Accepted Languages on Android.
BB 43401: Replace Locale constructors with Locale.Builder.
- - - - -
1 changed file:
-
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java
Changes:
=====================================
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java
=====================================
@@ -609,7 +609,8 @@ public final class GeckoRuntimeSettings extends
RuntimeSettings {
for (String tag : locales) {
Locale locale = Locale.forLanguageTag(tag);
getSettings().mSupportedLocales.put(locale, locale);
- getSettings().mSupportedLocales.put(new Locale(locale.getLanguage()),
locale);
+ Locale lang = new
Locale.Builder().setLanguage(locale.getLanguage()).build();
+ getSettings().mSupportedLocales.put(lang, locale);
}
return this;
}
@@ -1384,7 +1385,7 @@ public final class GeckoRuntimeSettings extends
RuntimeSettings {
if (mSupportedLocales.containsKey(exact)) {
return exact;
}
- Locale fallback = new Locale(exact.getLanguage());
+ Locale fallback = new
Locale.Builder().setLanguage(exact.getLanguage()).build();
return mSupportedLocales.get(fallback);
}
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/1ded752a3d8e46f2a2d0999c61753cedcb1ebb98
--
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/1ded752a3d8e46f2a2d0999c61753cedcb1ebb98
You're receiving this email because of your account on gitlab.torproject.org.
_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]