网页 Firefox 插件或扩展
我正在构建一个小型网络应用程序,当用户浏览网络时,它应该在后台运行, 动态添加的 Iframe 不是一个选项,因为我无法在用户刷新或切换页面时重新加载它。
虽然在 Google Chrome 上这很容易实现,但我在任何地方都找不到关于如何在 Firefox 上实现这一点的示例或文档,
我想我真正想要的是一种打开不依赖的完全无铬框架的方法(它将运行我的网络应用程序并保留在那里,即使用户切换或刷新页面)
有什么想法吗?
I'm building a small web app that should run in the background while the user browse the web,
a dynamically added Iframe isn't an option since I can't reload it anytime the user refresh or switch page.
while on Google Chrome this is pretty easy to accomplish, I can't find anywhere an example or documentation on how to implement that on Firefox
I guess what I'm really after is a method to open a non depended totally chrome-less frame (which will run my web app and stays there even if the users switch or refresh pages)
Any Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最好的方法是在浏览器更改 url 时添加一个侦听器,然后与 ajax 通信您想要的数据。
The best way would be to add a listener for when the browser changes the url and then communicate with ajax the data you want.
与您的描述最相符的是hiddenWindow,这是一种未记录且不受支持的方式,可以在窗口中随机显示webby内容,而不会在UI中的任何位置显示。
如果你说出你到底想做什么,你会得到更有用的答案。
The closest thing that matches your description is hiddenWindow, which is an undocumented and unsupported way to have random webby content in a window not displayed anywhere in UI.
If you said what exactly you're trying to do, you'd get more useful answers.