Skip to content

Commit

Permalink
Backed out changeset c3355d01fddd (bug 1875313) for causing build bus…
Browse files Browse the repository at this point in the history
…tages on CUUtils.cpp. CLOSED TREE
Iulian Moraru committed Jan 31, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 15ff5d4 commit 76cb3ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions intl/unicharutil/util/ICUUtils.cpp
Original file line number Diff line number Diff line change
@@ -41,10 +41,7 @@ already_AddRefed<nsAtom> ICUUtils::LanguageTagIterForContent::GetNext() {

if (mCurrentFallbackIndex < 2) {
mCurrentFallbackIndex = 2;
// Else take the app's locale (or en-US, if spoof English applies):
if (mContent->OwnerDoc->ShouldResistFingerprinting(RFPTarget::JSLocale)) {
return NS_Atomize("en-US");
}
// Else take the app's locale:
nsAutoCString appLocale;
LocaleService::GetInstance()->GetAppLocaleAsBCP47(appLocale);
return NS_Atomize(appLocale);

0 comments on commit 76cb3ef

Please sign in to comment.