Skip to content
Snippets Groups Projects
Commit 00a1597e authored by Tom Schuster's avatar Tom Schuster
Browse files

Bug 1825233 - Cut Pointer Events over to RFPTarget. r=tjr

Depends on D173944

Differential Revision: https://phabricator.services.mozilla.com/D173945
parent 0c70ea0a
No related branches found
No related tags found
No related merge requests found
...@@ -272,7 +272,8 @@ bool PointerEvent::ShouldResistFingerprinting() { ...@@ -272,7 +272,8 @@ bool PointerEvent::ShouldResistFingerprinting() {
// 3. This event is a mouse pointer event. // 3. This event is a mouse pointer event.
// We don't need to check for the system group since pointer events won't be // We don't need to check for the system group since pointer events won't be
// dispatched to the system group. // dispatched to the system group.
if (!nsContentUtils::ShouldResistFingerprinting("Efficiency Check") || if (!nsContentUtils::ShouldResistFingerprinting("Efficiency Check",
RFPTarget::PointerEvents) ||
!mEvent->IsTrusted() || !mEvent->IsTrusted() ||
mEvent->AsPointerEvent()->mInputSource == mEvent->AsPointerEvent()->mInputSource ==
MouseEvent_Binding::MOZ_SOURCE_MOUSE) { MouseEvent_Binding::MOZ_SOURCE_MOUSE) {
...@@ -281,7 +282,7 @@ bool PointerEvent::ShouldResistFingerprinting() { ...@@ -281,7 +282,7 @@ bool PointerEvent::ShouldResistFingerprinting() {
// Pref is checked above, so use true as fallback. // Pref is checked above, so use true as fallback.
nsCOMPtr<Document> doc = GetDocument(); nsCOMPtr<Document> doc = GetDocument();
return doc ? doc->ShouldResistFingerprinting() : true; return doc ? doc->ShouldResistFingerprinting(RFPTarget::PointerEvents) : true;
} }
} // namespace mozilla::dom } // namespace mozilla::dom
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
ITEM_VALUE(TouchEvents, 0x0001) ITEM_VALUE(TouchEvents, 0x0001)
// Reserving 2-4 for Keyboard Events and Pointer Events ITEM_VALUE(PointerEvents, 0x0002)
// Reserving 3/4 for Keyboard Events
ITEM_VALUE(ScreenOrientation, 0x0005) ITEM_VALUE(ScreenOrientation, 0x0005)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment