--- Nickolay Ponomarev wrote:

> On Nov 24, 2007 7:04 PM, dou W wrote:
> > When user disable an Extension in Firefox, how can the Extesnion get a
> > signal or a notification before the Extension is actually disabled?

> http://www.xulplanet.com/tutorials/m...serverserv.php
> notification: "em-action-requested"
> aData: "item-disabled"
> This notification is broadcast when the user disables the extension,
> but before it's actually disabled. The user can cancel his action
> before the restart, in which case the extension won't be disabled.
> Some people suggested setting a flag when receiving this notification
> (and unsetting it if the user canceled the action) and only doing the
> clean up at the shutdown. The downside is that your code won't run if
> Firefox shuts down improperly.

Added this info here:
Feel free to edit.