Closed Bug 1741597 Opened 4 years ago Closed 3 years ago

dFPI rollout pref set to false should not always set cookie behavior to BEHAVIOR_REJECT_TRACKER

Categories

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

defect

Tracking

()

VERIFIED FIXED
101 Branch
Tracking Status
firefox99 --- wontfix
firefox100 --- verified
firefox101 --- verified

People

(Reporter: emz, Assigned: emz)

References

Details

(Whiteboard: [fxatps-tcp])

Attachments

(1 file)

Setting privacy.restrict3rdpartystorage.rollout.enabledByDefault to false explicitly will always set cookie behavior to BEHAVIOR_REJECT_TRACKER. This is unexpected for release channels which have a different default cookie behavior.
Instead we should revert the cookie behavior to its initial default value.

https://searchfox.org/mozilla-central/rev/df18dd52da04ee2bad434b0ba2d9fcb196d4d15e/browser/components/BrowserGlue.jsm#1757

This behavior isn't problematic for now, since Beta and Release use BEHAVIOR_REJECT_TRACKER as the default. However, we should keep it in mind when we want to switch over to BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN by default. In that case opted-out users would get BEHAVIOR_REJECT_TRACKER.

Feel free to raise up the priority if you feel needed.

Severity: -- → S3
Priority: -- → P3
Assignee: nobody → pbz
Attachment #9251118 - Attachment description: WIP: Bug 1741597 - Revert cookie behavior to initial default value when dFPI rollout pref is set to false. r=#anti-tracking! → Bug 1741597 - Revert cookie behavior to initial default value when dFPI rollout pref is set to false. r=timhuang!
Status: NEW → ASSIGNED
Severity: S3 → S2
Priority: P3 → P1
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/40580eaf2289 Revert cookie behavior to initial default value when dFPI rollout pref is set to false. r=timhuang

Backed out for causing mochitest failures in browser_contentblocking_standard_tcp_toggle

Backout link: https://hg.mozilla.org/integration/autoland/rev/5e4fb69d25c44a6b06cba30c86fb6bf1ce068c95

Push with failures

Failure log

Flags: needinfo?(pbz)
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/429acbc4647f Revert cookie behavior to initial default value when dFPI rollout pref is set to false. r=timhuang
Flags: needinfo?(pbz)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

The patch landed in nightly and beta is affected.
:pbz, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(pbz)

Comment on attachment 9251118 [details]
Bug 1741597 - Revert cookie behavior to initial default value when dFPI rollout pref is set to false. r=timhuang!

Beta/Release Uplift Approval Request

  • User impact if declined: This is part of the TCP / dFPI rollout. This bug impairs the rollout for specific users. If we want to switch users over to have dFPI enabled by default, but they still have an opt-out choice stored in their profile from the experiment, they'll not be switched over to dFPI until we remove the experiment / opt-in code.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: On Nightly:
  1. Go to about:config and verify network.cookie.cookieBehavior is set to 5 initially
  2. Add a bool pref privacy.restrict3rdpartystorage.rollout.enabledByDefault and set it to true. => network.cookie.cookieBehavior is still set to 5
  3. Update privacy.restrict3rdpartystorage.rollout.enabledByDefault to false => network.cookie.cookieBehavior is still set to 5

On Beta:

  1. Go to about:config and verify network.cookie.cookieBehavior is set to 4 initially
  2. Add a bool pref privacy.restrict3rdpartystorage.rollout.enabledByDefault and set it to true. => network.cookie.cookieBehavior has changed to 5
  3. Update privacy.restrict3rdpartystorage.rollout.enabledByDefault to false => network.cookie.cookieBehavior is back on 4
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small code change with good test coverage.
  • String changes made/needed:
Flags: needinfo?(pbz)
Attachment #9251118 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9251118 [details]
Bug 1741597 - Revert cookie behavior to initial default value when dFPI rollout pref is set to false. r=timhuang!

Approved for 100.0b8

Attachment #9251118 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

Verified as fixed in our latest Beta 100.0b8 (64-bit) as well as our latest Nightly 101.0a1 (2022-04-19).

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Whiteboard: [fxatps-tcp]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: