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:
Ehsan Akhgari 2019-03-05 15:53:59 +00:00
Родитель b9adb18a0b
Коммит 74f09670e6
1 изменённых файлов: 1 добавлений и 1 удалений

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

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