Well, having said that I looked at an extension of mine where I have custom 
startup and shutdown code, and I do have it in an XPCOM object. You need to 
observe one or more of the topics listed here:
http://developer.mozilla.org/en/docs/Observer_Notifications
The shutdown topics I am certain you can observe from a browser.xul overlay, 
but some or all of the application startup topics might be broadcast before the 
initial browser.xul is displayed.

----- Original Message ----
From: Trevor Hobson <[EMAIL PROTECTED]>
To: Mozdev Project Owners List <[email protected]>
Sent: Tuesday, April 15, 2008 11:07:53 AM
Subject: Re: [Project_owners] XPCOM help

  Eric

I would prefer not to have to do the XPCOM, can you point me to someexamples of 
how to do it another way.

Thanks

Eric H. Jung wrote:      Youdon't need an XPCOM component to execute code at 
startup and shutdown.But to answer your question, you can use 
mozIJSSubScriptLoader to loadthe JS which has the functions you're already 
written.
  
  
  -----Original Message ----
From: Trevor Hobson <[EMAIL PROTECTED]>
To: Mozdev Project Owners List <[email protected]>
Sent: Monday, April 14, 2008 10:55:09 PM
Subject: [Project_owners] XPCOM help
  
Greetings all
  
I would like my extension to have the ability do some tasks when thefirst 
browser window is opened and when the last is closed. As part ofthe current 
functionality of the extension these tasks are donemanually when when the user 
requests them, this functionality will notbe changed.
  
I have created a simple XPCOM component that runs code on first loadand last 
close. What I want to know is what is the best way to achievethe desired 
functionality without duplicating the current code?
  
Thanks
  
Trevor
  
  
  
  
  
  
between 0000-00-00 and 9999-99-99    
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners
  





      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to