[Project_owners] Initialising an extension once per session

Myk Melez myk at mozilla.org
Tue Jul 15 11:09:08 PDT 2008


Eric H. Jung wrote:
> To follow-up on my own suggestion:
> http://mxr.mozilla.org/seamonkey/source/browser/components/sessionstore/src/nsSessionStore.js
> shows a few dispatchEvent() calls, dispatching SSTabRestoring, SSTabRestored, SSTabClosing, etc.
>
> Would observing one or more of these suffice?
>   
If you want to wait until session store is finished restoring windows 
and tabs, you can observe the sessionstore-windows-restored 
notification.  A variety of other startup notifications are also available:

http://developer.mozilla.org/en/docs/Observer_Notifications#Application_startup

-myk



More information about the Project_owners mailing list