Commit dc42afa4 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by morgan
Browse files

fixup! TB 43006: Disable RFP for Font Visibility on Android

TB 43943: Refactor fontvis exclusion on Android.

Rather than updating Document, we can use
nsRFPService::HandleExeptionalRFPTargets.
parent c02477fa
Loading
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -17308,12 +17308,6 @@ bool Document::RecomputeResistFingerprinting(bool aForceRefreshRTPCallerType) {
}
bool Document::ShouldResistFingerprinting(RFPTarget aTarget) const {
#ifdef ANDROID
  if (aTarget == RFPTarget::FontVisibilityBaseSystem ||
      aTarget == RFPTarget::FontVisibilityLangPack) {
    return false;
  }
#endif
  return mShouldResistFingerprinting &&
         nsRFPService::IsRFPEnabledFor(this->IsInPrivateBrowsing(), aTarget,
                                       mOverriddenFingerprintingSettings);
+7 −0
Original line number Diff line number Diff line
@@ -310,6 +310,13 @@ Maybe<bool> nsRFPService::HandleExeptionalRFPTargets(
  }
#endif

#ifdef ANDROID
  if (aTarget == RFPTarget::FontVisibilityBaseSystem ||
      aTarget == RFPTarget::FontVisibilityLangPack) {
    return Some(false);
  }
#endif

  return Nothing();
}