在 firefox 中,是否可以在 WebExtensions 中使用 nsIStreamListener?

In firefox, is it possible to use nsIStreamListener in the WebExtensions?

Firefox 页面显示不再支持 XPCOM,但我想知道 WebExtensions 是否支持或具有 nsIStreamListener 的等效项。离不开它。

另外,知道有什么论坛可以讨论插件开发吗?当时一个问题是不够的。

另外,如何使用 XPCOM 打开一个新标签页,并用 html 填充它?我只知道 gBrowser.addTab,但它需要我有一个空的 html 文件,不是很漂亮。请问有没有更好的解决办法

请查看webRequests API if it suits your needs regarding nsIStreamListener. There's also a tutorial如何拦截 HTTP 请求。

您始终可以在 Mozilla Developer Network. To create a new tab for example you'd have to look at the tabs api and request the tabs permission in your add-ons manifest.json. You can then load an html file packaged with your add-on by specifying the absolute path to it in reference to the manifest.json in the url parameter passed to tabs.create().

中找到有关 WebExtension API 的开发技巧和信息

如需讨论附加组件开发,您可以写信并关注 dev-addons mailing list or join the #webextensions channel on IRC