X
Tap here to go to the mobile version of the site.

Support Forum

mozila.cfg: lock setting

Posted

How can we lock the following setiing:

In the setting Browser Privacy Settings:

Trackers, option Always

Third Party Cookies, option all cookies of third parties.. ( something like this in English)

With kind regards, Ben Raben

How can we lock the following setiing: In the setting Browser Privacy Settings: Trackers, option Always Third Party Cookies, option all cookies of third parties.. ( something like this in English) With kind regards, Ben Raben

Chosen solution

This setting will be changing in Firefox version 65, due to be released in less than two weeks. As of right now, you need the following options:

lockPref("browser.privacy.trackingprotection.menu","always");

This preference controls the mode of the Tracking option and should be set to a string value of either always or private, depending on the setting that you want. If you want to disable that option completely, you should instead use:

lockPref("privacy.trackingprotection.pbmode.enabled",false);

As for the cookies option, you should use the following option if you want to set that to enabled:

lockPref("network.cookie.cookieBehavior",4);

The value will match to the following option from the dropdown menu in the upcoming version of Firefox:

  1. All third party cookies
  2. All cookies
  3. Cookies from unvisited sites
  4. Third party trackers

I believe that the current version of Firefox only has access to two options (either 1 or 4), but I may be mistaken.

If you want to disable this option, you simply need to remove the preference from Firefox using:

clearPref("network.cookie.cookieBehavior");

In the future Firefox, you will have the option to use three different presets for the settings that you want to change. You will be able to set and lock this option in the future by using:

lockPref("browser.contentblocking.category","strict");

The string value can be either "standard", "strict" or "custom". The custom option will allow you to set the preferences that I listed above, but it sounds to me like the strict option is what you are looking for.

Hopefully this helps you out.

Read this answer in context 1
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

More Information

Wesley Branton
  • Top 10 Contributor
535 solutions 4637 answers

Chosen Solution

This setting will be changing in Firefox version 65, due to be released in less than two weeks. As of right now, you need the following options:

lockPref("browser.privacy.trackingprotection.menu","always");

This preference controls the mode of the Tracking option and should be set to a string value of either always or private, depending on the setting that you want. If you want to disable that option completely, you should instead use:

lockPref("privacy.trackingprotection.pbmode.enabled",false);

As for the cookies option, you should use the following option if you want to set that to enabled:

lockPref("network.cookie.cookieBehavior",4);

The value will match to the following option from the dropdown menu in the upcoming version of Firefox:

  1. All third party cookies
  2. All cookies
  3. Cookies from unvisited sites
  4. Third party trackers

I believe that the current version of Firefox only has access to two options (either 1 or 4), but I may be mistaken.

If you want to disable this option, you simply need to remove the preference from Firefox using:

clearPref("network.cookie.cookieBehavior");

In the future Firefox, you will have the option to use three different presets for the settings that you want to change. You will be able to set and lock this option in the future by using:

lockPref("browser.contentblocking.category","strict");

The string value can be either "standard", "strict" or "custom". The custom option will allow you to set the preferences that I listed above, but it sounds to me like the strict option is what you are looking for.

Hopefully this helps you out.

This setting will be changing in Firefox version 65, due to be released in less than two weeks. As of right now, you need the following options: <code>lockPref("browser.privacy.trackingprotection.menu","always");</code> This preference controls the mode of the Tracking option and should be set to a string value of either ''always'' or ''private'', depending on the setting that you want. If you want to disable that option completely, you should instead use: <code>lockPref("privacy.trackingprotection.pbmode.enabled",false);</code> As for the cookies option, you should use the following option if you want to set that to enabled: <code>lockPref("network.cookie.cookieBehavior",4);</code> The value will match to the following option from the dropdown menu in the upcoming version of Firefox: # All third party cookies # All cookies # Cookies from unvisited sites # Third party trackers I believe that the current version of Firefox only has access to two options (either 1 or 4), but I may be mistaken. If you want to disable this option, you simply need to remove the preference from Firefox using: <code>clearPref("network.cookie.cookieBehavior");</code> In the future Firefox, you will have the option to use three different presets for the settings that you want to change. You will be able to set and lock this option in the future by using: <code>lockPref("browser.contentblocking.category","strict");</code> The string value can be either "standard", "strict" or "custom". The custom option will allow you to set the preferences that I listed above, but it sounds to me like the strict option is what you are looking for. Hopefully this helps you out.
Was this helpful to you? 1
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17179 solutions 155259 answers

Note that you can do this more easily via policies.

See Cookies:

Note that you can do this more easily via policies. See Cookies: *https://github.com/mozilla/policy-templates/blob/master/README.md
Was this helpful to you? 0
Quote

Question owner

Thanks for the replies/answers, We don't use domain based policies for this specialized FF portable edition. That was not clear enough in my question i guess. With kind regards.

Thanks for the replies/answers, We don't use domain based policies for this specialized FF portable edition. That was not clear enough in my question i guess. With kind regards.
Was this helpful to you?
Quote
Wesley Branton
  • Top 10 Contributor
535 solutions 4637 answers

rabeb00 said

We don't use domain based policies for this specialized FF portable edition.

That's fine. The original response will work exactly the way that you want, but I just wanted to clarify that you can use group policy (sort of) without using the Windows-based group policy management.

You could use a policies.json file, which behaves identical to Windows group policy. It's not really related to the thread (since the response I already mentioned already works), but I figured I'd mention it so that you know for the future if you ever want to consider using group policy for Firefox.

''rabeb00 [[#answer-1189903|said]]'' <blockquote>We don't use domain based policies for this specialized FF portable edition.</blockquote> That's fine. The original response will work exactly the way that you want, but I just wanted to clarify that you can use group policy (sort of) without using the Windows-based group policy management. You could use a [[Customizing Firefox Using policies.json|policies.json file]], which behaves identical to Windows group policy. It's not really related to the thread (since the response I already mentioned already works), but I figured I'd mention it so that you know for the future if you ever want to consider using group policy for Firefox.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17179 solutions 155259 answers

With policies, Firefox figures out what prefs need to be changed. In current releases there are a lot of prefs available that are set or reset in clusters when you make specific changes in Options/Preferences for third-party cookies and content blocking.

See cookies:

With policies, Firefox figures out what prefs need to be changed. In current releases there are a lot of prefs available that are set or reset in clusters when you make specific changes in Options/Preferences for third-party cookies and content blocking. See cookies: *https://dxr.mozilla.org/mozilla-release/source/browser/components/enterprisepolicies/Policies.jsm#196
Was this helpful to you? 0
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.