Comment 116 for bug 233901

Revision history for this message
In , Jehan-procaccia (jehan-procaccia) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922

the defaultPref function define in
$MOZILLA_HOME/defaults/autoconfig/prefcalls.js doesn't work as expected for
setting the homepage.

I am using mozilla autoconfiguration as I decribed it in
http://www.int-evry.fr/s2ia/user/procacci/netscape/en/mozilla-autoconfig-en.html

I've tested in my autoconfig javascript this:

defaultPref("browser.startup.homepage", "http://www.int-evry.fr/");

Unfortunaltly I couldn't make it work -> set a default homepage without forcing
it ! it doesn't set it at all :-(
I've also tried to lockPref (which do successfully set the homepage):
lockPref("browser.startup.homepage", "http://www.int-evry.fr/");
then just after use unlockPref() to reanable modification -> no success :-(
I've also tried to use defaultpref and remove the
browser.startup.homepage
from the user's personnal prefs.js file, again no sucess :-( it wasn't set

Is the defaultPref function working correclty at least on setting the homepage ?

I used it on a different preferences with success though !
//Privacy & Security
defaultPref("signon.rememberSignons", false);
here it works fine.

Thanks.

Reproducible: Always
Steps to Reproduce:
1. configure the autoconfig script with a defaultPref "directive" on the
homepage setting
2. start mozilla
3.

Actual Results:
The default home page doesn't shows up

Expected Results:
See the default homepage, and let the user change it . the LockPref function do
set and shows the homepage but as expected the user cannot use it.