Date.toLocaleDateString ignore regional settings with en-US Firefox on en-US Windows
Categories
(Core :: JavaScript: Internationalization API, defect)
Tracking
()
People
(Reporter: mozilla-bugzulla, Unassigned)
Details
| Reporter | ||
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Comment 2•7 years ago
|
||
| Reporter | ||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
| Reporter | ||
Comment 5•7 years ago
|
||
| Reporter | ||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
| Reporter | ||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Updated•7 years ago
|
| Reporter | ||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
The reason we do that is to avoid leaking your locale to the Web, which would be a fingerprint vector.
For that reason, we do not communicate to the Web that you chose to use different regional preferences locale than your browser's locale.
In result, all dates/times formatted within the browser UI will respect the en-ZA option, but when we communicate to a web page we'll use the app-locales, rather than regional-preferences-locales.
If someone wants to explore the depth of the fingerprint vector and convince the privacy team that it's ok to add one bit of leakage, then I'm happy to change that :)
Comment 13•7 years ago
|
||
Doesn't navigator.languages already leak my chosen locale (And fallbacks) to the web? As it stands now sites have to explicitly ask the browser for my locale to format any dates or times, before they could just ignore it.
And, isn't that what things like privacy.resistFingerprinting are for?
| Reporter | ||
Comment 14•7 years ago
|
||
If it is blocked for fingerprinting reasons, can the default be anything other than the en_US format please?
That date format is confusing to everyone else and seems to only used by around 6% of the world population.
Comment 15•7 years ago
|
||
If it is blocked for fingerprinting reasons, can the default be anything other than the en_US format please?
The default is matching your browser locale. If you download Firefox en-GB, it'll be en-GB. If you use en-US, it's en-US.
Comment 16•6 years ago
|
||
Zibi, is everything here working the best we can make it? It seems like the main complaints are UI complaints that were already being addressed in other bugs, and the remaining complaint about the behavior exposed to web sites is (for better or worse) by design.
I'm closing it -- but please reopen if there is work to do here.
Comment 17•6 years ago
|
||
-> RESO INVALID, which just means it's not really a bug
Comment 18•6 years ago
|
||
Based on Comment 6 the only remaining bit needed is ability to switch requested locales to en-ZA. This is UI request and should be handled in FIrefox Preferences bug if it's not already fixed.
Description
•