[ Current Firefox Version: 0.9.1 | Current Thunderbird Version: 0.7.1 ]

Firebird Locker - Maintainers > Autoconfig

Purpose

Mozilla Autoconfig allows locker maintainers to lock user profile settings and set defaults. Unlike the defaults setup when a user's Initial profile is created, settings specified via autoconfig can be changed at any time and are automatically applied when Mozilla Firefox starts up. These settings also apply to all of a user's profiles, including any profiles they create themselves.

Files & Tools

Mozilla Firefox

Startup Sequence

When Firefox starts up, the following steps occur:

  1. The /mit/firebird/arch/@sys/.build/MozillaFirefox-${version}/greprefs/all.js file is read. This file has had the pref('general.config.filename', 'mit.cfg'); preference added to the end. This preference indicates that the the config file named mit.cfg should be read.
  2. The config file /mit/firebird/arch/@sys/.build/MozillaFirefox-${version}/mit.cfg is read by Firefox. This is a symlink to the file /mit/firebird/arch/share/bin/MozillaFirefox/autoconfig/mit.cfg, which is a bit shifted version of the file /mit/firebird/arch/share/bin/MozillaFirefox/autoconfig/mit.cfg.js This file tells Firefox the url of the file containing the configuration information.
  3. The configuration info is read from the file at /mit/firebird/arch/share/bin/MozillaFirefox/autoconfig/athena.js and applied to mozilla

Files

mit.cfg
This file tell Firefox the URL of the file containing configuration information for Athena. This is a bit shifted version of the file below.
mit.cfg.js
This is the unencoded version of the above file, which tells Firefox the URL of the file containing configuration information for Athena.
athena.js
This file contains the configuration information to apply to Mozilla Firefox when it starts up.

Tools

For autoconfig to work, the all.js file include the pref('general.config.filename', 'mit.cfg'); preference, and the Firefox binary directory must contain a symling to the mit.cfg file. To simplify this process, a couple of tools are availible in the /mit/firebird/arch/share/bin/MozillaFirefox/tools directory

setup-autocfg.sh
This tool should be run whenever a new Firefox binary is added to the locker. This tool adds the pref('general.config.filename', 'mit.cfg'); preference to the all.js file for all installed versions of firefox. For this to work, the Firefox binary directories must be in the appropriate .build directory, and the directory names must begin with MozillaFirefox.
update-callfile.sh
This tool should be run whenever the mit.cfg.js file is changed. This tool automatically generates the mit.cfg file from mit.cfg.js, and puts it in the format Firefox expects.

Mozilla Thunderbird

Unfortunately, autoconfig is not currently working in Mozilla Thunderbird. See bugzilla bug 225288. As such, the setting that would be placed in autoconfig are configured by the init scripts when new profiles are created. Documentation is availible for this process.