Overview
mozilla.cfg is a JavaScript-based configuration file used by Firefox AutoConfig. It is not the same as mozconfig, which is used for building Firefox.
How it works
Firefox AutoConfig uses a loader file, commonly autoconfig.js, to identify the configuration file. The loader sets general.config.filename and can set general.config.obscure_value to 0 for plain text.
Important considerations
Always test your configuration in a separate Firefox installation before deploying it to managed machines.
Related CFG tools
Open Mozilla CFG Decoder · CFG Encoder · AutoConfig Generator
See also Mozilla Enterprise documentation.