Closed Bug 2074830 Opened 12 days ago Closed 10 days ago

Partitioned tracker cookie reads are reported as allowed tracker cookies with the ContentClassifier

Categories

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

defect

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: timhuang, Assigned: timhuang)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

A tracker that reads cookies from its partitioned jar gets a STATE_COOKIES_LOADED_TRACKER event in the content blocking log, as if its cookies had been allowed unpartitioned.

The root cause of the behavior change for the ContentClassifier is that the ContentBlockingNotifier emits ContentBlocking events according to the tracking sub-category flags. However, the ContentClassifier only sets the generic tracking flag because we use a combined tracker list for the ContentClassifier.

We should change our ContentBlocking notification code path to emit STATE_COOKIES_LOADED event when a tracker reads partitioned cookies. This aligns with the current behavior of URLClassifier. To do so, we need to let the ContentBlockingNotifier know it's a tracker that reads partitioned cookies.

Assignee: nobody → tihuang
Status: NEW → ASSIGNED

This patch changes the cookie service to pass the partition reason to the
accepted-cookie notification, and changes NotifyBlockingDecision to treat
an allow decision carrying STATE_COOKIES_PARTITIONED_TRACKER as partitioned
access, so it no longer emits STATE_COOKIES_LOADED_TRACKER.

Pushed by tihuang@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/96b92d51b1a1 https://hg.mozilla.org/integration/autoland/rev/a65ceb68db96 Stop reporting partitioned tracker cookie reads as allowed tracker cookies. r=emz,cookie-reviewers,valentin
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3e28c5a0e5f0 https://hg.mozilla.org/integration/autoland/rev/d233359870dd Revert "Bug 2074830 - Stop reporting partitioned tracker cookie reads as allowed tracker cookies. r=emz,cookie-reviewers,valentin" for causing bc failures @ browser_socialtracking.js
Flags: needinfo?(tihuang)
Pushed by tihuang@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b641180e6138 https://hg.mozilla.org/integration/autoland/rev/e838f550771d Stop reporting partitioned tracker cookie reads as allowed tracker cookies. r=emz,cookie-reviewers,valentin
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7b83edd9b350 https://hg.mozilla.org/integration/autoland/rev/af56a4add9f5 Revert "Bug 2074830 - Stop reporting partitioned tracker cookie reads as allowed tracker cookies. r=emz,cookie-reviewers,valentin" for causing bc failures @ browser_protectionsUI_socialtracking.js
Pushed by tihuang@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e14aade4c733 https://hg.mozilla.org/integration/autoland/rev/cce1dd8f1d7a Stop reporting partitioned tracker cookie reads as allowed tracker cookies. r=emz,cookie-reviewers,valentin
Flags: needinfo?(tihuang)
Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: