'extensions.update.enabled' option not working
I am using firefox 31.4.0-1.el5_11.i386 in Red Hat Enterprise Linux 5.
I have applied the following line to /usr/lib/firefox/mozilla.cfg:
lockPref("extensions.update.enabled", false);
However, when navigating to about:config, the selected option 'extensions.update.enabled' is not set to false and is not locked.
Chosen solution
Does the mozilla.cfg start with a comment line?
// lockPref("extensions.update.enabled", false);
This is necessary because the first line of the file is skipped.
Did you create a settings.js file?
Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);
These functions can be used in the mozilla.cfg file:
defaultPref(); // set new default value pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changes
See also:
- http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
- http://mike.kaply.com/2014/01/08/can-firefox-do-this/
All Replies (4)
Hi, and in /usr/lib/firefox/pref
the next
pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg");
thank you
This does not answer my question.
I am aware of how to configure locked values. I have many other settings applied and locked, which do define properly.
My question is why the specific preference indicated "extensions.update.enabled" does not apply properly like all other values do?
Modified
Chosen Solution
Does the mozilla.cfg start with a comment line?
// lockPref("extensions.update.enabled", false);
This is necessary because the first line of the file is skipped.
Did you create a settings.js file?
Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);
These functions can be used in the mozilla.cfg file:
defaultPref(); // set new default value pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changes
See also:
Modified
thenefield said
I am using firefox 31.4.0-1.el5_11.i386 in Red Hat Enterprise Linux 5. I have applied the following line to /usr/lib/firefox/mozilla.cfg: lockPref("extensions.update.enabled", false); However, when navigating to about:config, the selected option 'extensions.update.enabled' is not set to false and is not locked.
cor-el said
Does the mozilla.cfg start with a comment line?// lockPref("extensions.update.enabled", false);This is necessary because the first line of the file is skipped.
Did you create a settings.js file?
Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);These functions can be used in the mozilla.cfg file:
defaultPref(); // set new default value pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changesSee also:
Forgive my ignorance. I was missing the blank line at the top. The setting in question was located on the first line. Adding a blank line at the top resolved my issue. Thanks!