很久以前,我为Firefox创建了配置文件。
“ autoconfig.js”:
pref("general.config.filename","mozilla.cfg");
pref("general.config.obscure_value",0);
“ mozilla.cfg”:
...
lockPref("autoadmin.global_config_url","file://///myserver/myconfig/path/firefox.cfg");
...
“ firefox.cfg”(在// myserver / myconfig / path上):
...
try {
var Cc = Components.Classes;
...
} catch(e) {
displayError("MyError", e);
}
...
现在,在Firefox 63上出现错误:"ReferenceError: Components is not defined"
。