Open Bug 1433815 Opened 2 years ago Updated 9 months ago

Ensure EnableOrientationChangeListener respects privacy.resistFingerprinting

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: arthur, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [tor-mobile][fingerprinting][fp-triaged])

In nsGlobalWindowInner.cpp we now have:

void
nsGlobalWindowInner::EnableOrientationChangeListener()
{
  // XXX: mDocShell is never set on the inner window?
  nsIDocShell* docShell = nullptr;
  if (!nsContentUtils::ShouldResistFingerprinting(docShell) &&
      !mOrientationChangeObserver) {
    mOrientationChangeObserver =
      MakeUnique<WindowOrientationObserver>(this);
  }
}

In this case, nsContentUtils::ShouldResistFingerprinting always returns false, which is not useful. Instead we should be passed the a reference to the document so we know if fingerprinting resistance is appropriate.
This looks like Mobile only, right?
Priority: -- → P3
Whiteboard: [tor][fingerprinting] → [tor-mobile][fingerprinting]
Duplicate of this bug: 1461620
Whiteboard: [tor-mobile][fingerprinting] → [tor-mobile][fingerprinting][fp-triaged]
You need to log in before you can comment on or make changes to this bug.