Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

Prevent users from editing browser settings (policies.json, mozilla.cfg, local-settings.js not working)

  • Inga svar
  • 0 har detta problem
  • 11 visningar
more options

On the operating system of windows where the Mozilla browser is installed, we desire to disable user access to all settings so that they can't be accessed. I already generated a working policies.json file but user can still access settings.

Then I put the file local-settings.js in the "firefox_application_folder/defaults/prefs/" with the following text // pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13 pref("general.config.filename", "mozilla.cfg");

Then I put the file mozilla.cfg in the firefox application folder with the following text // lockPref(); // lock pref, disallow changes

Firefox (v. 113.0.2) returns the following error message: Netscape.cfg/AutoConfig failed. Please contact system administrator. Error: lockPref failed: [Exception... "Component returned failure code 0x80070057] (NS_ERROR_ILLEGALVALUE) [nslPrefBranch.preflsLocked]" nsresult: "0x80070057 (NS_ERROR_ILLEGALVALUE)" location: "JS frame :: prefcalls.js :: lockPref ::line 61" data:no]


See also: http://kb.mozillazine.org/Locking_preferences

On the operating system of windows where the Mozilla browser is installed, we desire to disable user access to all settings so that they can't be accessed. I already generated a working policies.json file but user can still access settings. Then I put the file local-settings.js in the "firefox_application_folder/defaults/prefs/" with the following text // pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13 pref("general.config.filename", "mozilla.cfg"); Then I put the file mozilla.cfg in the firefox application folder with the following text // lockPref(); // lock pref, disallow changes Firefox (v. 113.0.2) returns the following error message: Netscape.cfg/AutoConfig failed. Please contact system administrator. Error: lockPref failed: [Exception... "Component returned failure code 0x80070057] (NS_ERROR_ILLEGALVALUE) [nslPrefBranch.preflsLocked]" nsresult: "0x80070057 (NS_ERROR_ILLEGALVALUE)" location: "JS frame :: prefcalls.js :: lockPref ::line 61" data:no] See also: http://kb.mozillazine.org/Locking_preferences

Ändrad av straccia.giulio