Add new prefs for defining features in content blocking categories
Categories
(Firefox :: Protections UI, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: johannh, Assigned: ewright)
References
(Blocks 1 open bug)
Details
(Whiteboard: [anti-tracking])
Attachments
(1 file)
When introducing or promoting new content blocking features (like Fingerprinting and Cryptomining), we would like to be able to add them to content blocking categories (Standard, Strict or Custom) simply by changing prefs, without having to do front-end work every time. The front-end should look at the relevant prefs to decide how to display things to the user.
I'm imagining a pref structure similar to this:
browser.contentblocking.features.standard = "tpPrivate, 3rdPartyTrackingCookiesBasic";
browser.contentblocking.features.strict = "tp, 3rdPartyTrackingCookiesStrict";
Where "tpPrivate" etc. are magic strings that we internally map to the pref names and some other meta data and UI info like strings.
And whatever is not mentioned there would go into "Custom" and not be selected by default or shown as detected by default in the control center (but shown as an option in custom on about:preferences).
That's my idea, happy to talk about it if someone thinks we can improve on it.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Add prefs for definining expected values in each content blocking category, depend on those prefs to set expectations.
Comment 2•6 years ago
|
||
I'm curious why we're using prefs like this. Is it so that we can make changes via Normandy for experiments?
Reporter | ||
Comment 3•6 years ago
|
||
(In reply to Nihanth Subramanya [:nhnt11] from comment #2)
I'm curious why we're using prefs like this. Is it so that we can make changes via Normandy for experiments?
I think I mentioned why in comment 0, but let me elaborate. The idea is that we want to be able to modify the features that are in Standard and Strict without updating the front-end every time. Currently, this is a problem for Shield studies, pref flip uplifts, etc., and it goes in both directions. When we want to uplift enabling a feature then we don't have the appropriate UI for it, and if we want to uplift disabling a feature then we have inaccurate UI that shows the feature is part of e.g. Standard when it really isn't anymore.
Previously we've dealt with this by implementing an atrocious number of conditional UI ahead of time, controlled by separate prefs. It's always a waste of time (because we need to implement at least two UIs and only end up shipping one) and we remain really inflexible.
Updated•6 years ago
|
Comment 4•6 years ago
|
||
I need to verify that ongoing Shield studies are compatible with this change. Needinfo'ing myself to track.
Comment 6•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Description
•