firefox加载项使用“组件”全局引导测试失败
我使用JPM为firefox插件构建xpi包,但JPM会自动将bootstrap.js文件插入xpi包。当我向插件开发者中心提交插件时,它将导致测试失败。扩展测试信息如下: Access to the `Components` global Warning: Access to the `Components` property is deprecated for security or other reasons. bootstrap.js const { utils: Cu } = Components; const rootURI = __SCRIPT_URI_SPEC__.replace("bootstrap.js", ""); 访问“组件”全球数据库 警告:出于安全或其他原因,不推荐访问“Components”属性。 bootstrap.js const{utils:Cu}=组件; const rootURI=_脚本_URI_规范_;.replace(“bootstrap.js”,”);firefox加载项使用“组件”全局引导测试失败,firefox,components,jpm,Firefox,Components,Jpm,我使用JPM为firefox插件构建xpi包,但JPM会自动将bootstrap.js文件插入xpi包。当我向插件开发者中心提交插件时,它将导致测试失败。扩展测试信息如下: Access to the `Components` global Warning: Access to the `Components` property is deprecated for security or other reasons. bootstrap.js const { utils