Pier Angelo Vendrame pushed to branch tor-browser-115.11.0esr-13.5-1 at The Tor
Project / Applications / Tor Browser
Commits:
66370dbe by Pier Angelo Vendrame at 2024-05-15T10:59:36+02:00
fixup! Bug 42562: Normalized the Accepted Languages on Android.
Bug 42582: Use toLanguageTag() instead of toString()
- - - - -
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
=====================================
@@ -850,7 +850,7 @@ public final class GeckoRuntimeSettings extends
RuntimeSettings {
}
}
}
- String acceptLanguages = locale != null ? locale.toString().replace('_',
'-') : "en-US";
+ String acceptLanguages = locale != null ?
locale.toLanguageTag().replace('_', '-') : "en-US";
if (acceptLanguages.equals("en-US")) {
// For consistency with spoof English.
acceptLanguages += ", en";
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/66370dbe12f0d7101138e09d699d20f28d159455
--
This project does not include diff previews in email notifications.
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/66370dbe12f0d7101138e09d699d20f28d159455
You're receiving this email because of your account on gitlab.torproject.org.
_______________________________________________
tbb-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-commits