检测Firefox扩展卸载事件

时间:2012-06-26 07:13:03

标签: firefox-addon

我有一个自举扩展程序,在bootstrap.js中有一个卸载事件:

function uninstall(data, reason) {
     console.log('uninstall event');
}

但是当我卸载我的扩展程序uninstall时,函数没有在控制台上写'卸载事件'。

我已使用extensions.logging.enabledtrue设置为about:config。在卸载时,它将在控制台上打印:

  

LOG addons.xpi:在user@example.com版本1.4上调用bootstrap方法卸载

但我在uninstall事件中写的自定义消息无法打印。

0 个答案:

没有答案
相关问题