[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Title: GitLab

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:

Changes:

  • mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java
    ... ... @@ -850,7 +850,7 @@ public final class GeckoRuntimeSettings extends RuntimeSettings {
    850 850
             }
    
    851 851
           }
    
    852 852
         }
    
    853
    -    String acceptLanguages = locale != null ? locale.toString().replace('_', '-') : "en-US";
    
    853
    +    String acceptLanguages = locale != null ? locale.toLanguageTag().replace('_', '-') : "en-US";
    
    854 854
         if (acceptLanguages.equals("en-US")) {
    
    855 855
           // For consistency with spoof English.
    
    856 856
           acceptLanguages += ", en";
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits