зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1532402 - Part 4: Pass a docshell pointer to nsContentUtils::ShouldResistFingerprinting() for Navigator.maxTouchPoints; r=baku
Depends on D21992 Differential Revision: https://phabricator.services.mozilla.com/D21993 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
b9adb18a0b
Коммит
74f09670e6
|
@ -792,7 +792,7 @@ uint32_t Navigator::MaxTouchPoints(CallerType aCallerType) {
|
|||
// The maxTouchPoints is going to reveal the detail of users' hardware. So,
|
||||
// we will spoof it into 0 if fingerprinting resistance is on.
|
||||
if (aCallerType != CallerType::System &&
|
||||
nsContentUtils::ShouldResistFingerprinting()) {
|
||||
nsContentUtils::ShouldResistFingerprinting(GetDocShell())) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче