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:
Igor Oliveira 2018-05-03 18:28:00 +03:00
Родитель 4bb8f4f750
Коммит cf8108e051
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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();
}