Pier Angelo Vendrame pushed to branch tor-browser-140.3.0esr-15.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
b71d3c72
by Pier Angelo Vendrame at 2025-09-30T10:13:53+02:00
1 changed file:
Changes:
| ... | ... | @@ -609,7 +609,8 @@ public final class GeckoRuntimeSettings extends RuntimeSettings { |
| 609 | 609 | for (String tag : locales) {
|
| 610 | 610 | Locale locale = Locale.forLanguageTag(tag);
|
| 611 | 611 | getSettings().mSupportedLocales.put(locale, locale);
|
| 612 | - getSettings().mSupportedLocales.put(new Locale(locale.getLanguage()), locale);
|
|
| 612 | + Locale lang = new Locale.Builder().setLanguage(locale.getLanguage()).build();
|
|
| 613 | + getSettings().mSupportedLocales.put(lang, locale);
|
|
| 613 | 614 | }
|
| 614 | 615 | return this;
|
| 615 | 616 | }
|
| ... | ... | @@ -1384,7 +1385,7 @@ public final class GeckoRuntimeSettings extends RuntimeSettings { |
| 1384 | 1385 | if (mSupportedLocales.containsKey(exact)) {
|
| 1385 | 1386 | return exact;
|
| 1386 | 1387 | }
|
| 1387 | - Locale fallback = new Locale(exact.getLanguage());
|
|
| 1388 | + Locale fallback = new Locale.Builder().setLanguage(exact.getLanguage()).build();
|
|
| 1388 | 1389 | return mSupportedLocales.get(fallback);
|
| 1389 | 1390 | }
|
| 1390 | 1391 |