Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Deploying Firefox 60ESR with policies.json doesn't appear to do anything.

more options

Extracted setup installer, created "distribution" directory within core, and added a policies.json file. Installed Firefox 60.1.0esr 64-bit, and created a new firefox profile for testing. Doesn't appear any policies actually apply, including bookmarks, cookies, DisableTelemetry,DisplayBookmarksToolbar,DisplayMenuBar.

Tested individual policies as listed within the README.md file within GitHub, and also tested creating of new policies.json files with the help of a niftly little add-on called "Enterprise Policy Generator".

In troubleshooting, I've done the following: -Uninstall all instances of Firefox, and removed their existing installer directories in Program Files and Program Files (x86) -Removed Mozilla directories from AppData\Local, AppData\LocalLow, and AppData\Roaming -Removed registry keys from HKCU\Software\Mozilla*, and HKLM\Software\Mozilla* -Reinstalled a freshly customized install with only one policy to isolate the issue -Tested other versions of Firefox 60, including Firefox 60.0esr, 60.0rr

Extracted setup installer, created "distribution" directory within core, and added a policies.json file. Installed Firefox 60.1.0esr 64-bit, and created a new firefox profile for testing. Doesn't appear any policies actually apply, including bookmarks, cookies, DisableTelemetry,DisplayBookmarksToolbar,DisplayMenuBar. Tested individual policies as listed within the README.md file within GitHub, and also tested creating of new policies.json files with the help of a niftly little add-on called "Enterprise Policy Generator". In troubleshooting, I've done the following: -Uninstall all instances of Firefox, and removed their existing installer directories in Program Files and Program Files (x86) -Removed Mozilla directories from AppData\Local, AppData\LocalLow, and AppData\Roaming -Removed registry keys from HKCU\Software\Mozilla*, and HKLM\Software\Mozilla* -Reinstalled a freshly customized install with only one policy to isolate the issue -Tested other versions of Firefox 60, including Firefox 60.0esr, 60.0rr

被采纳的解决方案

We have a lot more information on using the policies.json file in the Customize Firefox using policies.json documentation.

For test purposes, try making a policies.json file with the following code:

{ "policies": { "BlockAboutConfig": true } }

This file should be located in the Firefox ESR installation directory under a folder called distribution, which you will likely need to create.

To test if it's working, open Firefox and enter about:config in the Firefox address bar. You should then get a page that says it was blocked.

Let us know if this works for you. If it's blocked, there is likely an issue with the code that you created within your policies.json file originally.

NOTE: The policies.json file will not work if your system(s) has Windows Group Policy for Firefox configured.
定位到答案原位置 👍 0

所有回复 (1)

more options

选择的解决方案

We have a lot more information on using the policies.json file in the Customize Firefox using policies.json documentation.

For test purposes, try making a policies.json file with the following code:

{ "policies": { "BlockAboutConfig": true } }

This file should be located in the Firefox ESR installation directory under a folder called distribution, which you will likely need to create.

To test if it's working, open Firefox and enter about:config in the Firefox address bar. You should then get a page that says it was blocked.

Let us know if this works for you. If it's blocked, there is likely an issue with the code that you created within your policies.json file originally.

NOTE: The policies.json file will not work if your system(s) has Windows Group Policy for Firefox configured.