Locale information is leaking even when resist.fingerprinting is turned on
Categories
(Core :: Privacy: Anti-Tracking, defect)
Tracking
()
People
(Reporter: qwerty098, Unassigned)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Steps to reproduce:
- Visit browserleaks website
- Click on JavaScript section
Actual results:
It display my actual locale, en-AU.
Expected results:
It should be displayed as en-US
Even the support article on Firefox website says the following-
The locale is reported as en-US.
Updated•3 months ago
|
(In reply to Tom Schuster (MoCo) from comment #2)
Do you have
privacy.spoof_english
set?
I haven't touched any settings other than setting privacy.resistFingerprinting to true. For spoof_english, it is 0.
A user on reddit told me to check navigator.language(s) in the console and it displayed "en-US" , "en" but for some reason browserleaks shows my true value en-AU.
Comment 4•3 months ago
|
||
When flipping privacy.resistFingerprinting
you are shown a confirmation dialog about whether you'd like to spoof your locale to websites (german version attached).
It is this string. You need to confirm by clicking "Yes" to also spoof the language. privacy.spoof_english
will be set to 2 by doing so (at least for me when I tested this now). Clicking on "No" leads the the result you screenshotted of language leaking to website (https://browserleaks.com/javascript)
Comment 5•3 months ago
|
||
spoof_english only prompts if locale is not en*
- so en-NZ, en-CA, en-GB etc users are never prompted. I opened Bug 1671850 5 years ago. If OP manually enables spoof_english then it works.
Note, ignoring spoof_english... if your language is xx, xx-YY and your system language's xx
part matches, then your system's language will be used as locale. So in this case, if the app is en-US, all english systems will report the system's locale, and there are over 100 of them for english alone (at least in Intl)
This is not an issue at Tor Project since we only ship a single english app language (en-US), and enforce languages (intl.accept_languages
- we even took away the UI) and enforce locales to match languages
Updated•3 months ago
|
Description
•