我正在开发 Firefox 插件,我已经成功构建了该插件,但在提交时出现验证错误:“警告:您的插件使用的接口(interface)绕过了插件的高级保护SDK。应避免使用此接口(interface),它的使用可能会使您的审核过程显着复杂化。”在这些方面。
const { Cc, Ci } = require("chrome"),
nsIIOService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService),
nsIStyleSheetService = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService);
我可以在我的计算机上运行该插件,但由于此标记的验证检查而无法提交。
还有其他方法吗?
最佳答案
使用它是完全可以接受的。 SDK 中的某些 API 无法替代。该验证是一个警告,因为这些功能不会被卡住,并且可以随时更改。您可以发布阻止您提交的验证的屏幕截图吗?应该允许它通过。
关于Firefox Addon 开发 - 使用低级或非 SDK 接口(interface),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34877450/