richard pushed to branch mullvad-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser
Commits:
- 
0daaf26b
by Pier Angelo Vendrame at 2024-02-07T12:25:35+00:00
- 
c2feed1c
by Pier Angelo Vendrame at 2024-02-07T12:25:35+00:00
- 
7f263eaf
by Pier Angelo Vendrame at 2024-02-07T12:25:35+00:00
1 changed file:
Changes:
| ... | ... | @@ -47,15 +47,13 @@ void ICUUtils::LanguageTagIterForContent::GetNext(nsACString& aBCP47LangTag) { | 
| 47 | 47 | |
| 48 | 48 |    if (mCurrentFallbackIndex < 2) {
 | 
| 49 | 49 |      mCurrentFallbackIndex = 2;
 | 
| 50 | -    // Else take the app's locale:
 | |
| 51 | - | |
| 50 | +    // Else take the app's locale (or en-US, if spoof English applies):
 | |
| 52 | 51 |      const bool spoofLocale = nsContentUtils::SpoofLocaleEnglish() &&
 | 
| 53 | 52 |                               !mContent->OwnerDoc()->AllowsL10n();
 | 
| 54 | 53 |      if (spoofLocale) {
 | 
| 55 | 54 |        aBCP47LangTag.AssignLiteral("en-US");
 | 
| 56 | 55 |        return;
 | 
| 57 | 56 |      }
 | 
| 58 | - | |
| 59 | 57 |      nsAutoCString appLocale;
 | 
| 60 | 58 |      LocaleService::GetInstance()->GetAppLocaleAsBCP47(aBCP47LangTag);
 | 
| 61 | 59 |      return;
 |