Closed Bug 1839919 Opened 1 year ago Closed 8 months ago

Persistence of user agent globals in BounceTrackingProtection singleton

Categories

(Core :: Privacy: Anti-Tracking, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: pbz, Assigned: pbz)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(3 files)

The bounce tracking map and user activation maps in the BounceTrackingProtection need to be persisted across restarts. This is needed so we can also run purging after a browser restart. While extended navigations don't span across browser sessions, the bounce tracking timer period does.

We can store both of these maps in SQLite tables.
Any entries for Private Browsing need to stay in memory and must not be written to disk. Ideally we would also prune these entries on last-pb-context-exited.

The storage needs a cleaner implementation for nsIClearDataService.

Blocks: btp-nightly
Assignee: nobody → pbz
Status: NEW → ASSIGNED
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e1f7b77f841b Move BounceTrackingProtection user agent globals to dedicated storage class. r=bvandersloot,anti-tracking-reviewers https://hg.mozilla.org/integration/autoland/rev/325f849a24df Update BounceTrackingProtection tests for new getter/setter format. r=bvandersloot,anti-tracking-reviewers https://hg.mozilla.org/integration/autoland/rev/df1f8aa6637f Add tests for persistence and OA separation. r=bvandersloot,anti-tracking-reviewers
Backout by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e535f2555616 Backed out 8 changesets (bug 1839919, bug 1876579, bug 1878915) for causing non-unified build bustages on nsCOMPtr.h.
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/96bf0ee8cb16 Move BounceTrackingProtection user agent globals to dedicated storage class. r=bvandersloot,anti-tracking-reviewers https://hg.mozilla.org/integration/autoland/rev/c9e0596d156e Update BounceTrackingProtection tests for new getter/setter format. r=bvandersloot,anti-tracking-reviewers https://hg.mozilla.org/integration/autoland/rev/b2ba9f681e48 Add tests for persistence and OA separation. r=bvandersloot,anti-tracking-reviewers
Regressions: 1880344
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Duplicate of this bug: 1844566
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: