创建新选项卡而不是面板
我已经浏览了 Add-on SDK 1.5 的示例,但还没有看到任何类似网页的东西,插件可以与用户交互并从他那里获取输入。只有名为 panel
的对话框,我真的很想在选项卡中拥有一个真实的页面,就像 google-chrome 插件一样。
是否可以通过附加 SDK (1.5) 实现?
I have gone through the examples of Add-on SDK 1.5 yet haven't seen anything like a web page which the addon can interact with the user and get input from him. There are only dialogs called panel
s and I really would like to have a real page in a tab like in google-chrome addons.
Is it even possible with the Add-on SDK (1.5)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然你可以创建一个选项卡,你使用
tabs.open()
。至于与此选项卡交互 - 您可能需要在打开选项卡之前注册内容脚本。就像使用 Google Chrome 一样。Of course you can create a tab, you use
tabs.open()
. As to interacting with this tab - you probably want to register a content script before opening the tab. Just like you would do it with Google Chrome.