Closed Bug 1532402 Opened 6 years ago Closed 6 years ago

Avoid using the no-argument version of nsContentUtils::ShouldResistFingerprinting() in Navigator.cpp

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

(4 files)

No description provided.

We can use this variant in cases where we don't know anything about the
provenant source of the check except its principal.

The principal may not be enough information in the future but at least
porting call sites to this variant will allow us to have a small number
of functions to extend in the future when we want to enable enabling
fingerprinting resistance in certain frames (e.g. third-party tracking
frames.)

Depends on D21990

Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/589d985b3cfe Part 1: Pass a docshell pointer to nsContentUtils::ShouldResistFingerprinting() in the user-agent spoofing code for the Navigator properties; r=baku https://hg.mozilla.org/integration/autoland/rev/ed1e303084c4 Part 2: Add a variant of nsContentUtils::ShouldResistFingerprinting() which accepts an nsIPrincipal* argument; r=baku https://hg.mozilla.org/integration/autoland/rev/6df23def6c36 Part 3: Pass a principal pointer nsContentUtils::ShouldResistFingerprinting() in the user-agent spoofing code for the rest of the Navigator properties; r=baku https://hg.mozilla.org/integration/autoland/rev/135025f2d2c0 Part 4: Pass a docshell pointer to nsContentUtils::ShouldResistFingerprinting() for Navigator.maxTouchPoints; r=baku
Flags: needinfo?(ehsan)
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/975cde7ee79a Part 1: Pass a docshell pointer to nsContentUtils::ShouldResistFingerprinting() in the user-agent spoofing code for the Navigator properties; r=baku https://hg.mozilla.org/integration/autoland/rev/ae40b04ca98b Part 2: Add a variant of nsContentUtils::ShouldResistFingerprinting() which accepts an nsIPrincipal* argument; r=baku https://hg.mozilla.org/integration/autoland/rev/53f514ed4989 Part 3: Pass a principal pointer nsContentUtils::ShouldResistFingerprinting() in the user-agent spoofing code for the rest of the Navigator properties; r=baku https://hg.mozilla.org/integration/autoland/rev/152b9d59cb29 Part 4: Pass a docshell pointer to nsContentUtils::ShouldResistFingerprinting() for Navigator.maxTouchPoints; r=baku
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: