搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Policies.json

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 Theknee

more options

Hello,

I am trying to control a whitelist add-on installation in firefox Quantum 61.0.2 (64-bit). I am using the policies.json file (located under C:\Program Files\Mozilla Firefox\distribution). Problem is if I use the following syntax, Firefox allow me to install any add-on other than the two listed.

{

 "policies": {

"InstallAddonsPermission": {

     		"Allow": ["https://addons.mozilla.org/en-US/firefox/addon/exif-viewer/?src=search",
                               "https://addons.mozilla.org/en-US/firefox/addon/video-downloadhelper/?src=search"],			  

"Default": false

      }
  }

}


But, if I use the following code, all add-on are blocked. Anyone can tell me what is the correct syntax to control specific add-on to be installed on the computer?

{

 "policies": {
   "InstallAddonsPermission": {
     "Allow": ["http://example.org/",
                     "http://example.edu/"],
     "Default": false
   }
 }

}


Thank you.

Hello, I am trying to control a whitelist add-on installation in firefox Quantum 61.0.2 (64-bit). I am using the policies.json file (located under C:\Program Files\Mozilla Firefox\distribution). Problem is if I use the following syntax, Firefox allow me to install any add-on other than the two listed. { "policies": { "InstallAddonsPermission": { "Allow": ["https://addons.mozilla.org/en-US/firefox/addon/exif-viewer/?src=search", "https://addons.mozilla.org/en-US/firefox/addon/video-downloadhelper/?src=search"], "Default": false } } } But, if I use the following code, all add-on are blocked. Anyone can tell me what is the correct syntax to control specific add-on to be installed on the computer? { "policies": { "InstallAddonsPermission": { "Allow": ["http://example.org/", "http://example.edu/"], "Default": false } } } Thank you.

所有回覆 (2)

more options

What happens if those are blank?

more options

It seem to allow to install any add-on. Problem is I do want to allow only specific list of add-on. It seems that I soon as I put a valid url it opens the installation to any add-on(nothing is blocked).