Firefox-未定义Components.classes

时间:2018-12-07 09:32:43

标签: firefox

很久以前,我为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"

0 个答案:

没有答案