Closed Bug 1530076 Opened 6 years ago Closed 6 years ago

Add support for modifying the default referrer policy that is applied to third-party trackers when the cookie policy is set to reject third-party trackers

Categories

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

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

It would be nice to add a couple of prefs that would allow us to control the default referrer policy that is applied to trackers so that we can explore imposing limitations there. This patch adds the required capability but doesn't change the current behaviour.

This is more complex than merely modifying NS_GetDefaultReferrerPolicy()
because at the time most (all?) callers call nsIHttpChannel::SetReferrer/
nsIHttpChannel::SetReferrerWithPolicy before the channel is opened,
which means we won't know whether the channel is a tracking resource or
not yet. So we would need to re-evaluate this decision after that
information becomes available. For that, we need to remember the
original URI argument passed to these functions since that information
is currently destroyed and isn't persisted anywhere in the system.

Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bde30e08a003 Part 1: Add support for modifying the default referrer policy that is applied to third-party trackers when the cookie policy is set to reject third-party trackers; r=valentin https://hg.mozilla.org/integration/autoland/rev/6b2a08035ed5 Part 2: Add a test for modifying the default referrer policy that is applied to third-party trackers when the cookie policy is set to reject third-party trackers; r=baku
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Blocks: 1533763
Depends on: 1544131
Depends on: 1569996
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: