Jump to content

Firefox 1.03 autoconfig


staples

Recommended Posts

I did a search and did not find anything on MSFN. I know that there are other topics for Firefox but they do not have this level of detail.

I am working on a centralizing the configuration settings for firefox via a script on a webserver and I am running into a issue. The configurations comes down for the first time but if the configuration file changes on the web server then the change does not occur on the cleint.

does anyone else have firefox 1.03 configed like this?

do you have the same issue?

How to configure firefox to use a web server script for configuration:

------change C:\Program Files\Mozilla Firefox\greprefs\all.js

lockpref("general.config.obscure_value", 0); // for MCD .cfg files

lockpref("general.config.filename", "firefox.cfg");

lockpref("general.config.vendor", "firefox");

------ (add filename and vendor line, change obscure_value)

------New file C:\Program Files\Mozilla Firefox\firefox.cfg

// firefox.cfg

lockPref("general.config.vendor", "firefox");

lockPref("autoadmin.global_config_url","http://webserver/firefox.js");

lockPref("autoadmin.append_emailaddr",false);

------

------New file at http://webserver/firefox.js

// Mozilla User Preferences

try {

lockPref("network.proxy.ftp", "proxy");

lockPref("network.proxy.ftp_port", 80);

lockPref("network.proxy.http", "proxy");

lockPref("network.proxy.http_port", 80);

lockPref("network.proxy.ssl", "proxy");

lockPref("network.proxy.ssl_port", 80);

lockPref("network.proxy.type", 1);

lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");

lockPref("startup.homepage_override_url", "http://homepage/");

lockPref("browser.startup.homepage", "http://homepage/");

lockPref("browser.startup.homepage_override", true);

lockPref("browser.startup.homepage_override.mstone", "rv:1.7");

}

catch(e){

displayError("lockedPref", e);

}

------

Link to comment
Share on other sites


I fix my own issue... i did not put the the excludion for the webserver. so it would only work once.

change line

lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");

to

lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, webserver");

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...