зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1459089 - Don't use OS Locale when resistFingerprinting is enabled. When the OS Locale is used, it leaks the OS language in the HTTP Accept-Language header. r=mcomella
--HG-- extra : rebase_source : 7b0dc69be25c5076696a6bd9db7611cd5b0abbad
This commit is contained in:
Родитель
4bb8f4f750
Коммит
cf8108e051
|
@ -2162,6 +2162,13 @@ var BrowserApp = {
|
|||
appLocale = appLocale.toLowerCase();
|
||||
}
|
||||
|
||||
try {
|
||||
const resistFingerprinting = Services.prefs.getBoolPref("privacy.resistFingerprinting");
|
||||
if (resistFingerprinting) {
|
||||
osLocale = null;
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
if (osLocale) {
|
||||
osLocale = osLocale.toLowerCase();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче