Bug 1834737 - Make RFPTarget parameter of Document::ShouldResistFingerprinting non-optional. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D178925
This commit is contained in:
@@ -280,7 +280,7 @@ nsDOMAttributeMap* Element::Attributes() {
|
||||
}
|
||||
|
||||
void Element::SetPointerCapture(int32_t aPointerId, ErrorResult& aError) {
|
||||
if (OwnerDoc()->ShouldResistFingerprinting() &&
|
||||
if (OwnerDoc()->ShouldResistFingerprinting(RFPTarget::Unknown) &&
|
||||
aPointerId != PointerEventHandler::GetSpoofedPointerIdForRFP()) {
|
||||
aError.ThrowNotFoundError("Invalid pointer id");
|
||||
return;
|
||||
@@ -309,7 +309,7 @@ void Element::SetPointerCapture(int32_t aPointerId, ErrorResult& aError) {
|
||||
}
|
||||
|
||||
void Element::ReleasePointerCapture(int32_t aPointerId, ErrorResult& aError) {
|
||||
if (OwnerDoc()->ShouldResistFingerprinting() &&
|
||||
if (OwnerDoc()->ShouldResistFingerprinting(RFPTarget::Unknown) &&
|
||||
aPointerId != PointerEventHandler::GetSpoofedPointerIdForRFP()) {
|
||||
aError.ThrowNotFoundError("Invalid pointer id");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user