Firefox/EnterprisePolicies/Testing

From MozillaWiki
< Firefox‎ | EnterprisePolicies
Revision as of 21:05, 4 January 2018 by Felipc (talk | contribs) (Created page with "This page documents how to test the Enterprise Policies Manager == Prefs to enable == Please set these two prefs to test this feature: <pre>browser.policies.enabled = true...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page documents how to test the Enterprise Policies Manager

Prefs to enable

Please set these two prefs to test this feature:

browser.policies.enabled = true
devtools.chrome.enabled = true

Note: the browser.policies.enabled pref doesn't exist and will need to be created (as a Boolean pref).

Adding the policies.json file

To test this feature (once enabled), you'll need to create a policies.json file (example files are given below), and to put it in a specific location in the installation directory of Firefox (not the profile directory).

Since this location varies by platform and by install type (local build, try build, installed with the installer, etc.), the easier way to figure out the location is by running the following code Snippet in the Browser Console:

Services.dirsvc.get("XREAppDist", Ci.nsIFile).path

Per-platform examples

(these may be different depending on how you installed the try build, so I recommend running the snippet above). These are for illustration purposes only.

  • Mac: /Applications/FirefoxNightly.app/Contents/Resources/distribution
  • Windows: C:\Program Files (x86)\Mozilla Firefox\distribution