Closed Bug 1903559 Opened 1 year ago Closed 1 year ago

ShouldResistFingerprinting_dangerous computes private browsing state wrongly

Categories

(Core :: Privacy: Anti-Tracking, defect)

defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox127 --- wontfix
firefox128 --- fixed
firefox129 --- fixed

People

(Reporter: emz, Assigned: timhuang)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

The condition here is wrong: https://searchfox.org/mozilla-central/rev/b11735b86bb4d416c918e2b2413456561beff50c/dom/base/nsContentUtils.cpp#2629-2630
We end up with a flipped logic where isPBM is true for normal browsing. That's because nsIScriptSecurityManager::DEFAULT_PRIVATE_BROWSING_ID=0 is normal browsing.

Set release status flags based on info from the regressing bug 1851816

Assignee: nobody → tihuang
Status: NEW → ASSIGNED
Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/86ebfa1aeae2 Fix the isPBM check in nsContentUtils::ShouldResistFingerprinting_dangerous(). r=tschuster
See Also: → 1904004
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

The patch landed in nightly and beta is affected.
:timhuang, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox128 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(tihuang)
Flags: needinfo?(tihuang)

Apparently, we need to uplift this fix to beta so that the next ESR version won't miss this.

Attachment #9409781 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Users will have incorrect fingerprinting resistances for private browsing windows
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: None
  • Risk associated with taking this patch: Low risk
  • Explanation of risk level: We only change one line in the patch
  • String changes made/needed: nope
  • Is Android affected?: yes
Attachment #9409781 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: