Closed
Bug 1397611
Opened 7 years ago
Closed 7 years ago
Allow Web Extensions to control privacy.resistFingerprinting
Categories
(WebExtensions :: General, enhancement, P3)
WebExtensions
General
Tracking
(firefox57 fix-optional, firefox58 fixed)
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox57 | --- | fix-optional |
firefox58 | --- | fixed |
People
(Reporter: tjr, Assigned: tjr)
Details
(Keywords: dev-doc-complete, Whiteboard: [fingerprinting])
Attachments
(1 file)
We would like to expose the privacy.resistFingerprinting preference we are working on (https://wiki.mozilla.org/Security/Fingerprinting) to Web Extensions so privacy tools can toggle it on and take advantage of the work we've been doing.
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8905364 [details]
Bug 1397611 Expose a websites.resistFingerprinting pref that Web Extensions can toggle
https://reviewboard.mozilla.org/r/177158/#review182304
Thanks for taking the time to write this patch, Tom. It looks good but for a few minor issues. I figured I'd do an initial review when I saw it, but aswan will need to give it a final r? before it can land. r+ from me, with issues addressed.
::: toolkit/components/extensions/ext-privacy.js:242
(Diff revision 1)
> return Preferences.get("network.http.sendRefererHeader") !== 0;
> }),
> + resistFingerprinting: getPrivacyAPI(extension,
> + "websites.resistFingerprinting",
> + () => {
> + return Preferences.get("privacy.resistFingerprinting") !== 0;
This should just be `return Preferences.get("privacy.resistFingerprinting");` because it's a boolean pref, not a numeric pref.
Note that this module will likely be updated to use Services.prefs rather than Preferences.jsm in the future, but for now it's fine to use Preferences to keep the file consistent.
::: toolkit/components/extensions/test/xpcshell/test_ext_privacy.js:239
(Diff revision 1)
> },
> "websites.referrersEnabled": {
> "network.http.sendRefererHeader": 2,
> },
> + "websites.resistFingerprinting": {
> + "privacy.resistFingerprinting": 1,
This should be `"privacy.resistFingerprinting": true,` because it is a boolean pref.
::: toolkit/components/extensions/test/xpcshell/test_ext_privacy.js:347
(Diff revision 1)
> "network.http.sendRefererHeader": 2,
> });
>
> + await testSetting("websites.resistFingerprinting", false,
> + {
> + "privacy.resistFingerprinting": 0,
This should check for `false`, rather than `0`, once the change is made to ext-privacy.js.
::: toolkit/components/extensions/test/xpcshell/test_ext_privacy.js:351
(Diff revision 1)
> + {
> + "privacy.resistFingerprinting": 0,
> + });
> + await testSetting("websites.resistFingerprinting", true,
> + {
> + "privacy.resistFingerprinting": 1,
As above, this should check for `true` rather than `1`.
Attachment #8905364 -
Flags: review+
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Keywords: dev-doc-needed
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Attachment #8905364 -
Flags: review?(aswan)
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8905364 [details]
Bug 1397611 Expose a websites.resistFingerprinting pref that Web Extensions can toggle
https://reviewboard.mozilla.org/r/177158/#review190810
thanks!
Attachment #8905364 -
Flags: review?(aswan) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3bf4a8d9d126
Expose a websites.resistFingerprinting pref that Web Extensions can toggle r=aswan,bsilverberg
Keywords: checkin-needed
Comment 6•7 years ago
|
||
Nice work, thanks Tom!
Comment 7•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Comment 8•7 years ago
|
||
Tom, thanks for making this happen!
Comment 9•7 years ago
|
||
Is manual testing required on this bug? If Yes, please provide some STR and the proper webextension(if required), if No set the “qe-verify-“ flag.
Flags: needinfo?(tom)
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(tom) → qe-verify-
Comment 10•7 years ago
|
||
I've updated https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/privacy/websites for this, please let me know if this covers it.
Note that the compat data is updated, but not deployed to MDN at the time I write this.
Flags: needinfo?(tom)
Updated•7 years ago
|
Keywords: dev-doc-needed → dev-doc-complete
Updated•7 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•