Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnableTrackingProtection should have an option to whether set it to strict or standard #1066

Open
nyabinary opened this issue Dec 2, 2023 · 4 comments

Comments

@nyabinary
Copy link

Every time I turn everyone of the polices on it always puts me in custom, would there be a way to make it go into strict instead?

@mkaply
Copy link
Collaborator

mkaply commented Dec 4, 2023

Unfortunately the UI in preferences isn't tied to the policy, but you are "strict"

You can try setting:

browser.contentblocking.category

to "strict"

Using the Preferences policy.

@blkeller
Copy link

blkeller commented Dec 4, 2023

I don't know if this will help you or not, @nyabinary, but I encountered this problem myself just the other day, and I couldn't satisfactorily solve it with the "Preferences" policy. At our organization, we want to set Enhanced Tracking Protection to "Strict" as the default value (not locked) with the user having the ability to change it. We also want to inherit as default any new changes to the meaning of "Strict" in the future (since that has historically changed over time), rather than explicitly custom-defining the individual settings that happen to map to "Strict" today but might not in the future.

I had to fall back to using AutoConfig instead of the policy engine to achieve what we were after, but I do believe the following works, though only for new profiles, not existing ones. Just as @mkaply said, the browser.contentblocking.category preference really only affects what the UI shows and not the underlying privacy settings, though I found that the exception to this is if the value is set on first run before any of the other values exist. In that particular case, then the individual privacy preferences do follow from the UI pref. I have these lines in our firefox.cfg:

// Instead of configuring every little micro-setting related to cookie & tracking protection,
// we just want to set Enhanced Tracking Protection to "Strict" and accept whatever the
// latest defaults for that macro-setting are from Mozilla, since it evolves over time.
// We don't want to lock the value, but setting a default value by "Preferences" policy
// doesn't work, since Firefox always treats this as a value set by the user with no default.
// The preference has a null value on first run, so we check for that and explicitly set
// our preferred default value as a user preference in that case.  The user can still
// override our value if they so choose.
if (!getPref("browser.contentblocking.category")) {
  pref("browser.contentblocking.category", "strict");
}

@mkaply
Copy link
Collaborator

mkaply commented Dec 4, 2023

So this has come up before and it's probably time for me to just update the policy to allow you to set strict or standard.

@nyabinary
Copy link
Author

So this has come up before and it's probably time for me to just update the policy to allow you to set strict or standard.

That would be very nice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants