Closed Bug 1812030 Opened 1 year ago Closed 1 year ago

nsCookieInjector does not observe detect-only pref

Categories

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

defect

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox109 --- unaffected
firefox110 --- unaffected
firefox111 --- fixed

People

(Reporter: pbz, Assigned: pbz)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

In Bug 1809700 I didn't add an observer for the new (separate) detectOnly pref. We should add one so that the cookie injector can react to pref changes.
https://searchfox.org/mozilla-central/rev/cf3af6bb6657278880f8baf38435eeb8f2d5d86c/toolkit/components/cookiebanners/nsCookieInjector.cpp#40-48

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

  • Fix typo in IsEnabledForCurrentPrefState leading to component not enabling if
    one of the service modes was set to disabled.
  • Clean up pref observer code by moving list of prefs to array.
Pushed by pzuhlcke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/115ffcd85a81
Fix pref observers in nsCookieInjector. r=timhuang

Backed out for causing bustages in nsCookieInjector.cpp.

Flags: needinfo?(pbz)
Flags: needinfo?(pbz)
Pushed by pzuhlcke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1067822de638
Fix pref observers in nsCookieInjector. r=timhuang
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: