From a8a8c271ab9c34eaf0143423c0b754af79f532d9 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 1 Feb 2024 01:06:07 +0000 Subject: [PATCH] Bug 1875313 - Use en-US as a fallback when spoof English is enabled in ICUUtils. r=timhuang,tjr Differential Revision: https://phabricator.services.mozilla.com/D198967 UltraBlame original commit: c3355d01fddd88418fbc1cd812370953743ffb73 --- intl/unicharutil/util/ICUUtils.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/intl/unicharutil/util/ICUUtils.cpp b/intl/unicharutil/util/ICUUtils.cpp index 473e07aedfa5..c143d3d412c9 100644 --- a/intl/unicharutil/util/ICUUtils.cpp +++ b/intl/unicharutil/util/ICUUtils.cpp @@ -213,6 +213,34 @@ mCurrentFallbackIndex = 2 ; +if +( +mContent +- +> +OwnerDoc +- +> +ShouldResistFingerprinting +( +RFPTarget +: +: +JSLocale +) +) +{ +return +NS_Atomize +( +" +en +- +US +" +) +; +} nsAutoCString appLocale ;