搜尋 Mozilla 技術支援網站

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

Learn More

Security Exceptions

  • 5 回覆
  • 1 有這個問題
  • 16 次檢視
  • 最近回覆由 cor-el

more options

We need to use a 32 bit Firefox ESR 38.5.1 because of an outdated crucial app in our organizaton

We are in the process of upgrading from Windows7 to Windows10 and now the policies.js file, located in "c:\program files (x86)\Mozilla Firefox\defaults\pref" does not work on the windows 10 computers.

We need to add a couple of url:// security exceptions to all Firefox browsers on these new machines and Icannot find what config file has these exceptions.

Can you tell me where there security exceptions are written to in windows 10 so that we can deploy them as part of the installation?

We need to use a 32 bit Firefox ESR 38.5.1 because of an outdated crucial app in our organizaton We are in the process of upgrading from Windows7 to Windows10 and now the policies.js file, located in "c:\program files (x86)\Mozilla Firefox\defaults\pref" does not work on the windows 10 computers. We need to add a couple of url:// security exceptions to all Firefox browsers on these new machines and Icannot find what config file has these exceptions. Can you tell me where there security exceptions are written to in windows 10 so that we can deploy them as part of the installation?

所有回覆 (5)

more options

Usually a whatever.js file in --

C:\Program Files (x86)\Mozilla Firefox\defaults\pref

-- will point to a second file, located in the program folder --

C:\Program Files (x86)\Mozilla Firefox

-- often named mozilla.cfg.

Is the problem that your pref() or lockPref() commands in mozilla.cfg (or whatever your file is called) are not working?

Ref. http://kb.mozillazine.org/Locking_preferences

more options

Both files are there, but the add on sites, do not load in the options, security, exceptions window. After you copied over the policies.js file you would see the exceptions in the list.

Kat

more options

Hi Kat, I can't think of any reason for the files to work differently on Windows 7 and Windows 10.

What is the code you are using to give sites permission to install extensions? As far as I know, the "install" permissions end up being saved in a SQLite database named permissions.sqlite in the user's profile folder. Of course, I can't check Firefox 38.

more options

pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg");


/* Add-on Installation allowed sites */ {

 "policies": {
   "InstallAddonsPermission": {
     "Allow": ["http://cfaov3prd2.carpenterfunds.com/",
               "http://cfaov3tst.carpenterfunds.com/"]
     "Default": [true], /* If this is set to false, add-ons cannot be installed by the user */
   }
 }

}

Here is the script that is in the default/pref folder.

Kat

more options

A policies.json file with policies in JSON format like you posted needs to be in the distribution folder. The two pref lines do not have to be in the policies.json file.

  • pref("general.config.obscure_value", 0);
  • pref("general.config.filename", "mozilla.cfg");

The autoconfig file with the file name set via a .js file in the defaults/pref folder that can store pref() calls to set or lock prefs needs to be in the main Firefox program folder where the .exe file is located.

About policies, see also: