r/firefox•
Inubito

Preferences set in policies.json not showing up in about:policies

💻 Help

Like the title says, all my other policies show up correctly and I don't get any syntax errors.

Example:

{

"policies": {

	"DisableTelemetry": true,

	"Preferences": {

		"browser.search.update": {

"Value": false,

"Status": "locked"

		}

	}

}

}

​

With the above config, DisableTelemetry shows up as "True" in the about:policies page, but I can't get the preferences to show. This is also a Linux machine. Any ideas?

Posted Apr 5, 2022, 9:15 PM UTC

05
jscher2000Firefox Windows•

Hmm, this works for me in Firefox Developer Edition on Win10 (I can't mess with my regular release):

{
    "policies": {
        "DisableTelemetry": true,
        "Preferences": {
            "browser.search.update": {
                "Value": false,
                "Status": "locked"
            }
        }
    }
}

I get two rows on the Active list for about:policies.

3
panoptigram•

Works for me with Firefox 99 release on Ubuntu 21.10.

2
InubitoOP•

Thanks, this is 91 ESR, so maybe that makes a difference.

1
InubitoOP•

Update on this, so I also have a "FirefoxHome" line that removes things like the highlights, snippets, etc. So anything below that is getting removed. If I switch those lines with the preferences so preferences shows up first, then the FirefoxHome settings go away in about:policies.

1
panoptigram•

Works for me on 91.8.0esr with a FirefoxHome section. Make sure you are up to date, versions less than 91.4.0esr do not support SponsoredTopSites or SponsoredPocket.

{
  "policies": {
    "FirefoxHome": {
      "Search": false,
      "TopSites": false,
      "SponsoredTopSites": false,
      "Highlights": false,
      "Pocket": false,
      "SponsoredPocket": false,
      "Snippets": false,
      "Locked": false
    },
    "DisableTelemetry": true,
    "Preferences": {
      "browser.search.update": {
        "Value": false,
        "Status": "locked"
      }
    }
  }
}
1