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

defaultPref, mozilla.cfg, browser.startup.homepage,FF #54

  • 5 replies
  • 1 has this problem
  • 1 view
  • Last reply by cor-el

more options

I'm trying to set the default homepage in mozilla.cfg in the usual way, but it doesn't seem to take in a recent version of Firefox (54). Has something changed?

How would you debug processing the settings files? Is there a log file?

I'm trying to set the default homepage in mozilla.cfg in the usual way, but it doesn't seem to take in a recent version of Firefox (54). Has something changed? How would you debug processing the settings files? Is there a log file?

Modified by jsiii2010

All Replies (5)

more options

What do you mean with the usual way?

The home page setting is a complex (localized) pref and needs special treatment when you use defaultPref().

defaultPref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=http://www.bbc.co.uk");
more options

Yes, that's what I'm doing. In C:\Program Files (x86)\Mozilla Firefox\defaults\pref\local-settings.js I have:

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

I've tried putting it in autoconfig.js too. Then in C:\Program Files (x86)\Mozilla Firefox\mozilla.cfg I have a defaultPref entry just like yours. In older versions of Firefox (50), it would work. Now a new user's Firefox (54) starts with a blank page.

Modified by jsiii2010

more options

Did you check the home page setting in "Options/Preferences -> General" and click "Restore to Default"?

This only sets the default home page, so if you would override this any way then you won't get the default home page.

more options

That didn't seem to do anything. This happens with completely new users with new profiles.

more options

What code do you use for this specific setting.

Note that mozilla.cfg is run as a JavaScript file with full chrome privileges. Any error in this file will throw an exception and abort the execution.