1

如何检测 Firefox 主窗口何时从扩展程序关闭?

4

2 回答 2

0

You can try the SDK's window module and listen for close events, but you'll have to determine which is the main window, since that's arbitrary

于 2013-08-04T18:04:52.203 回答
0

您可以收听一些不同的观察者通知来找出答案:

https://developer.mozilla.org/en-US/docs/Observer_Notifications

您可能想要的是退出应用程序。

于 2013-07-25T17:48:16.027 回答