如何调试阻止 Firefox 关闭的 Firefox 扩展?
当我关闭 Firefox 时,窗口消失,但进程会永远挂在内存中。问题肯定来自我的扩展(通过禁用/启用扩展进行测试)。
我没有与结束事件相关的任何具体操作/事件。我正在使用附加 SDK 1.4a0。工作人员、页面模块、上下文菜单等应该会很好地消亡。就像他们几天前所做的那样。
这个问题似乎与 Firefox 8.0 的到来同时发生。它也可以在 Firefox 11.0a1 上重现。我还没有在早期版本的 Firefox 上测试过它,但我认为这不相关。它一定来自我添加到扩展中的东西。
所以问题是: 如何调试 Firefox 关闭扩展程序的过程?是否有某种 Firefox 更新的关闭内容堆栈,我可以通过观察来了解问题出在哪里?
欢迎所有建议!
编辑:我通过将附加 SDK 中的分支从 master 切换到release 来解决我的问题。
我将保留这个问题,一般问题仍然相关。
When I close Firefox the window dies, but the process hangs forever in memory. The problem definitely comes from my extension (tested with disabling/enabling extensions).
I don't have any specific actions/events tied to closing events. I am using Add-on SDK 1.4a0. The workers, page-mods, context-menus etc. are supposed to simply die nicely. Like they did just a few days ago.
The problem seems to coincide with the coming of Firefox 8.0. It is also reproducible on Firefox 11.0a1. I haven't tested it on earlier version of Firefox, but I don't think is is relevant. It must have come from something I added to the extension.
So here is the question:
How can I debug the process of Firefox closing my extension? Is there some kind of stack of closing things Firefox updates, that I can watch to see where the problem is?
All suggestions are welcome!
EDIT: I fixed my problem by switching branches in the Add-on SDK from master to release.
I'll leave the question open, the general problem is still relevant.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论