Comment 57 for bug 233901

Revision history for this message
In , Topalg (topalg) wrote :

I think I solved the mystery. The problem seems to be with (PrefConfig)
directive.

I have simplified my vendor.cfg, and autoconfig.jsc (which is a CGI output in
our environment) and it seems to be working now.
I'd appreciate if people can try this and report the results.

----- vendor.jsc --- below should be hashed using moz-byteshift.pl and saved
as vendor.cfg under mozilla home------------
lockPref("general.config.vendor", "vendor");
lockPref("autoadmin.global_config_url","http://server/mcontrol/mconfig.cgi");
lockPref("autoadmin.append_emailaddr",true);
-------------
------ all.js should have the following : ------
pref("general.config.filename", "vendor.cfg");
pref("general.config.vendor", "vendor");
---------------------------------------------------

---------- Output of the mconfig.cgi should generate something like this ------
Content-type: application/x-javascript-config

defaultPref("browser.search.defaultengine", "engine://C%3A%5CProgram%20Files%
5Cmozilla%5Cbin%5Csearchplugins%5Cgoogle.src");
defaultPref("browser.search.opensidebarsearchpanel", false);
lockPref("browser.startup.homepage", "http://www.google.com");
lockPref("startup.homepage_override_url", "http://www.google.com");
lockPref("browser.startup.homepage_override", true);
lockPref("editor.author", "Your Name");
------------------------------------------

Whatever you choose as the vendor, filename should agree with that. (e.g.: x,
x.cfg )

Right now I am able to change homepages etc by pushing the config from the
server. This also works with FireBird. Haven't tested thunderbird yet.