Bug 1838415 - Introduce RFPTarget::DeviceSensors. r=tjr

Differential Revision: https://phabricator.services.mozilla.com/D181237
This commit is contained in:
Tom Schuster 2023-06-26 07:17:38 +00:00
Родитель 8d1f238787
Коммит 6036dbf12d
2 изменённых файлов: 2 добавлений и 1 удалений

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

@ -553,5 +553,5 @@ bool nsDeviceSensors::IsSensorAllowedByPref(uint32_t aType,
return true; return true;
} }
return !nsGlobalWindowInner::Cast(window)->ShouldResistFingerprinting( return !nsGlobalWindowInner::Cast(window)->ShouldResistFingerprinting(
RFPTarget::Unknown); RFPTarget::DeviceSensors);
} }

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

@ -65,6 +65,7 @@ ITEM_VALUE(MouseEventScreenPoint, 1llu << 41)
// Visibility level of font families available to CSS font-matching // Visibility level of font families available to CSS font-matching
ITEM_VALUE(FontVisibilityBaseSystem, 1llu << 42) ITEM_VALUE(FontVisibilityBaseSystem, 1llu << 42)
ITEM_VALUE(FontVisibilityLangPack, 1llu << 43) ITEM_VALUE(FontVisibilityLangPack, 1llu << 43)
ITEM_VALUE(DeviceSensors, 1llu << 44)
// !!! Don't forget to update kDefaultFingerintingProtections in nsRFPService.cpp // !!! Don't forget to update kDefaultFingerintingProtections in nsRFPService.cpp
// if necessary. // if necessary.