Closed Bug 1902319 Opened 4 months ago Closed 3 months ago

Separate BTP user interaction tracking from ContentBlockingUserInteraction

Categories

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

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: pbz, Assigned: pbz)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

We have RecordUserActivationForBTP on PWindowGlobal now so it should be relatively easy to add our own call coming from the Document on user activation.
Separating the messages makes the code more maintainable and easier to read. It also allows us to solve a shortcoming of the existing user interaction code which doesn't correctly record user activation for the top level if the user interacts with the iframe.
The spec describes this attribution to the top level site host in the algorithm here: https://privacycg.github.io/nav-tracking-mitigations/#bounce-tracking-mitigations-activation-monkey-patch

Assignee: nobody → pbz
Status: NEW → ASSIGNED
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/530b43559b31 Separate BTP user interaction tracking from ContentBlockingUserInteraction and record user interaction for iframes. r=anti-tracking-reviewers,manuel https://hg.mozilla.org/integration/autoland/rev/b2f40abb0309 Add tests for updated BTP user activation tracking. r=anti-tracking-reviewers,manuel

Backed out for causing bustages on BounceTrackingProtection.h

Backout link

Push with failures

Failure log

Flags: needinfo?(pbz)

Thanks! That's a non-unified build failure. I think BounceTrackingProtection.h is missing a forward declaration of WindowContext. Should be easy to fix.

Flags: needinfo?(pbz)
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c0c1a4858111 Separate BTP user interaction tracking from ContentBlockingUserInteraction and record user interaction for iframes. r=anti-tracking-reviewers,manuel https://hg.mozilla.org/integration/autoland/rev/38f8fb84e7c2 Add tests for updated BTP user activation tracking. r=anti-tracking-reviewers,manuel
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: