Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

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

Learn More

Configuring AddOn Parameters using `policy.json`?

  • 2 个回答
  • 0 人有此问题
  • 1 次查看
  • 最后回复者为 Mike Kaply

more options

I'm setting up addon installation through `policy.json`. Below is an example. I am wondering howto configure addons thus installed using the same file. Is it possible? If yes: where to find addon-specific keys/options? As an example: when providing below `policy.json`, starting any fresh firefox profile/installation produces the dialog "Startpage.com - Private Search Engine would like to change your default search engine from Google to Startpage.com - English. Is that OK?", followed by yes/no buttons. I would like to be able to just make the addon do so forgoing the dialog.

Thanks for any pointers.

{

 "policies": {
   "ExtensionSettings": {
     "*": {
       "blocked_install_message": "Installation of extensions only allowed from 'policy.json'.",
       "installation_mode": "blocked"
     },
     "{20fc2e06-e3e4-4b2b-812b-ab431220cada}": {
       "installation_mode": "force_installed",
       "install_url": "https://addons.mozilla.org/firefox/downloads/latest/startpage-private-search/latest.xpi"
     }
   },
   "ExtensionUpdate": true
 }

}

I'm setting up addon installation through `policy.json`. Below is an example. I am wondering howto configure addons thus installed using the same file. Is it possible? If yes: where to find addon-specific keys/options? As an example: when providing below `policy.json`, starting any fresh firefox profile/installation produces the dialog "Startpage.com - Private Search Engine would like to change your default search engine from Google to Startpage.com - English. Is that OK?", followed by yes/no buttons. I would like to be able to just make the addon do so forgoing the dialog. Thanks for any pointers. { "policies": { "ExtensionSettings": { "*": { "blocked_install_message": "Installation of extensions only allowed from 'policy.json'.", "installation_mode": "blocked" }, "{20fc2e06-e3e4-4b2b-812b-ab431220cada}": { "installation_mode": "force_installed", "install_url": "https://addons.mozilla.org/firefox/downloads/latest/startpage-private-search/latest.xpi" } }, "ExtensionUpdate": true } }

所有回复 (2)

more options

@Dropa: that's exactly what I started out with, and configuring FF itself, as well as installing the AddOns/extensions is a breeze. What I am struggling with is the configuration of the extensions themselves...

more options

It's up to the extension developer to add support for being managed by policies:

https://extensionworkshop.com/documentation/publish/add-on-policies/

And then you would use 3rdparty to manage them:

https://github.com/mozilla/policy-templates/blob/master/README.md#3rdparty

Specifically with the Startpage extension, though, you can not use policy to allow an extension to change the search engine.

There are policies to manage search engines:

https://github.com/mozilla/policy-templates/blob/master/README.md#searchengines-this-policy-is-only-available-on-the-esr

but they only work on the ESR.