Pier Angelo Vendrame pushed to branch tor-browser-115.11.0esr-13.5-1 at The Tor Project / Applications / Tor Browser

Commits:

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";