Closed
Bug 110902
Opened 23 years ago
Closed 23 years ago
defaultPref not setting startup.homepage preference
Categories
(Core :: Preferences: Backend, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 109932
People
(Reporter: rvelasco, Assigned: bnesse)
Details
Attachments
(1 file)
116 bytes,
application/octet-stream
|
Details |
Using the preference in a hashed CFG....
defaultPref("browser.startup.homepage", "http://www.yahoo.com");
...does not allow browser to startup with with specified homepage. Blank page
appears. Only a lockPref will allow the startup.homepage to appear.
i.e.
lockPref("browser.startup.homepage", "http://www.yahoo.com");
Reporter | ||
Comment 1•23 years ago
|
||
download attachment as netscape.cfg and activate CFG via all.js (mozilla) or
all-ns.js (netscape 6.2) with the lines...
pref("general.config.filename", "netscape.cfg);
pref("general.config.vendor", "netscape);
Reporter | ||
Updated•23 years ago
|
QA Contact: sairuh → rvelasco
Assignee | ||
Comment 2•23 years ago
|
||
This is because you can't set a default preference on a LocalizedUnicharPref.
Its default value comes from a properties file. Please see bug 109902 and bug
109932 for additional info.
Reporter | ||
Comment 3•23 years ago
|
||
What syntax can we use to set this preference if an IT administrator wants to
customize this field, but not have it locked?
pref("browser.startup.homepage", "http://www.yahoo.com"); /* Doesn't work */
user_pref("browser.startup.homepage", "http://www.yahoo.com"); /* doesn't work
and also incorrect since user_pref syntax is only defined in the prefs.js */
So is the lockPref function the only way to customize this field?
Historical aside:
in the 4.x days defaultPref("browser.startup.homepage", "blah"); was the correct
way to set this field without having it locked...but I guess we are living in
new times now.
Reporter | ||
Comment 4•23 years ago
|
||
*** This bug has been marked as a duplicate of 109932 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 5•23 years ago
|
||
pref("browser.startup.homepage", "http://www.yahoo.com");
should work, it might have failed if the preference was set to the locked state.
You need to log in
before you can comment on or make changes to this bug.
Description
•