Intl.DisplayNames/Collator().resolvedOptions() exposes actual locale
Summary
Running new Intl.DisplayNames(undefined, {type: "region"}).resolvedOptions().locale
or new Intl.Collator().resolvedOptions().locale
exposes locale in resistFingerprint mode.
Steps to reproduce:
- Enable privacy.resistFingerprinting
- Run
new Intl.DisplayNames(undefined, {type: "region"}).resolvedOptions().locale
ornew Intl.Collator().resolvedOptions().locale
What is the current bug behavior?
I get en-CA
What is the expected behavior?
It should be spoofed.
Environment
Mac OS 14.4.1 (23E224), Firefox 126.0.1 (64-bit), installed through official Firefox website