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!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

why mozilla.cfg file is not working with Firefox 21

  • 1 reply
  • 5 have this problem
  • 10 views
  • Last reply by cor-el

more options
//@line 2 "e:\builds\moz2_slave\rel-m-rel-w32-bld\build\browser\app\profile\channel-prefs.js"
user_pref("browser.startup.homepage","https://www.mytest.com");
lockpref("browser.shell.checkDefaultBrowser", false);
lockpref("app.update.enabled", false);
lockpref("browser.rights.3.shown", true);
lockpref("startup.homepage_welcome_url", "https://www.mytste.com");
lockpref("network.automatic-ntlm-auth.trusted-uris", "https://www.mytest.com");
lockpref("extensions.checkCompatibility.nightly", false);
<pre><nowiki>//@line 2 "e:\builds\moz2_slave\rel-m-rel-w32-bld\build\browser\app\profile\channel-prefs.js" user_pref("browser.startup.homepage","https://www.mytest.com"); lockpref("browser.shell.checkDefaultBrowser", false); lockpref("app.update.enabled", false); lockpref("browser.rights.3.shown", true); lockpref("startup.homepage_welcome_url", "https://www.mytste.com"); lockpref("network.automatic-ntlm-auth.trusted-uris", "https://www.mytest.com"); lockpref("extensions.checkCompatibility.nightly", false);</nowiki></pre>

Modified by cor-el

All Replies (1)

more options

user_pref doesn't work in mozilla.cfg
Also the proper name of the function is lockPref() and not lockpref().

See:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes

Modified by cor-el