Skip to main content
Sign in
Snippets Groups Projects
Commit 1ea2e141 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

keepforreview! Bug 40309: Avoid using regional OS locales

ShouldResistFingerprinting-related changes.
parent 0908ad6a
No related branches found
No related tags found
1 merge request!1043Bug 42616: Rebased alpha onto Firefox 128.0b1
......@@ -485,7 +485,10 @@ LocaleService::GetAppLocaleAsBCP47(nsACString& aRetVal) {
NS_IMETHODIMP
LocaleService::GetRegionalPrefsLocales(nsTArray<nsCString>& aRetVal) {
if (nsContentUtils::ShouldResistFingerprinting()) {
if (nsContentUtils::ShouldResistFingerprinting(
"This is probably a patch that should be refined. But to get the "
"build going, we just keep applying this generic check.",
RFPTarget::JSLocale)) {
GetAppLocalesAsBCP47(aRetVal);
return NS_OK;
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment