[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-115.11.0esr-13.5-1] fixup! Bug 42562: Normalized the Accepted Languages on Android.

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Wed May 15 20:16:29 UTC 2024



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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240515/85dcf26e/attachment.htm>


More information about the tbb-commits mailing list