defaultPref, mozilla.cfg, browser.startup.homepage,FF #54
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
All Replies (5)
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");
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
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.
That didn't seem to do anything. This happens with completely new users with new profiles.
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.