Loading dom/media/MediaDevices.cpp +10 −2 Original line number Diff line number Diff line Loading @@ -689,9 +689,17 @@ void MediaDevices::OnDeviceChange() { // Do not fire event to content script when // privacy.resistFingerprinting is true. if (nsContentUtils::ShouldResistFingerprinting()) { if (nsContentUtils::ShouldResistFingerprinting( "Guarding the more expensive RFP check with a simple one")) { nsCOMPtr<nsIGlobalObject> global = xpc::NativeGlobal(GetWrapper()); nsCOMPtr<nsPIDOMWindowInner> owner = do_QueryInterface(global); Document* doc = owner->GetExtantDoc(); if (nsContentUtils::ShouldResistFingerprinting(doc)) { return; } } mHaveUnprocessedDeviceListChange = true; MaybeResumeDeviceExposure(); Loading Loading
dom/media/MediaDevices.cpp +10 −2 Original line number Diff line number Diff line Loading @@ -689,9 +689,17 @@ void MediaDevices::OnDeviceChange() { // Do not fire event to content script when // privacy.resistFingerprinting is true. if (nsContentUtils::ShouldResistFingerprinting()) { if (nsContentUtils::ShouldResistFingerprinting( "Guarding the more expensive RFP check with a simple one")) { nsCOMPtr<nsIGlobalObject> global = xpc::NativeGlobal(GetWrapper()); nsCOMPtr<nsPIDOMWindowInner> owner = do_QueryInterface(global); Document* doc = owner->GetExtantDoc(); if (nsContentUtils::ShouldResistFingerprinting(doc)) { return; } } mHaveUnprocessedDeviceListChange = true; MaybeResumeDeviceExposure(); Loading