Closed Bug 1658578 Opened 4 years ago Closed 3 years ago

Refine third-party API

Categories

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

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: dimi, Assigned: pbz)

References

Details

Attachments

(1 file)

Right now, we has three different third-party APIs:
ThirdPartyUtil::IsThirdPartyFoo, AntiTrackingUtils:ThirdPartyFoo and nsContentUtils:IsThirdPartyWindowOrChannel

The plan is:
For ThirdPartyUtil::IsThirdPartyFoo, it should consider the whole chain
For AntiTrackingUtils::IsThirdPartyFoo, it should consider top-level.
For anti-tracking project, use AntiTrackingUtils::IsThirdPartyFoo, as for other places in gecko, use ThirdPartyUtil::IsThirdPartyFoo.

So what we need to do is:

  1. Make sure the behavior is sync for channel and window for ThirdPartyUtil::IsThirdPartyFoo and AntiTrackingUtils::IsThirdPartyFoo
  2. Remove using nsContentUtils:IsThirdPartyWindowOrChannel, replace it with either ThirdPartyUtils or AntiTrackingUtils, depending on the use case (in anti-tracking project or not)
  3. Examine the current usage of those third-party APIs, make sure we only use AntiTrackingUtils one in anti-tracking project.
Priority: -- → P3

Dimi, unassigning you because someone from our team might pick this up. Let me know if you were still working on this.

Assignee: dlee → nobody
Status: ASSIGNED → NEW
Priority: P3 → P2
Blocks: dfpi-hq
Assignee: nobody → pbz
Status: NEW → ASSIGNED
Attachment #9235662 - Attachment description: WIP: Bug 1658578 - Remove nsContentUtils::IsThirdPartyWindowOrChannel. r=timhuang! → Bug 1658578 - Remove nsContentUtils::IsThirdPartyWindowOrChannel. r=timhuang!
Pushed by pzuhlcke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/aa071b03d212
Remove nsContentUtils::IsThirdPartyWindowOrChannel. r=timhuang
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: