diff --git a/dom/system/nsDeviceSensors.cpp b/dom/system/nsDeviceSensors.cpp index 54918768376c..c7fc67b52cc3 100644 --- a/dom/system/nsDeviceSensors.cpp +++ b/dom/system/nsDeviceSensors.cpp @@ -553,5 +553,5 @@ bool nsDeviceSensors::IsSensorAllowedByPref(uint32_t aType, return true; } return !nsGlobalWindowInner::Cast(window)->ShouldResistFingerprinting( - RFPTarget::Unknown); + RFPTarget::DeviceSensors); } diff --git a/toolkit/components/resistfingerprinting/RFPTargets.inc b/toolkit/components/resistfingerprinting/RFPTargets.inc index 17ab95968fe0..7378e5f9094b 100644 --- a/toolkit/components/resistfingerprinting/RFPTargets.inc +++ b/toolkit/components/resistfingerprinting/RFPTargets.inc @@ -65,6 +65,7 @@ ITEM_VALUE(MouseEventScreenPoint, 1llu << 41) // Visibility level of font families available to CSS font-matching ITEM_VALUE(FontVisibilityBaseSystem, 1llu << 42) ITEM_VALUE(FontVisibilityLangPack, 1llu << 43) +ITEM_VALUE(DeviceSensors, 1llu << 44) // !!! Don't forget to update kDefaultFingerintingProtections in nsRFPService.cpp // if necessary.