mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 05:45:33 +00:00
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:
parent
6b550507ec
commit
8ed9a296b2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user