[Project_owners] XPCOM help

Eric H. Jung eric.jung at yahoo.com
Tue Apr 15 09:09:52 PDT 2008

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:
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 <trevorhemail-mozdev at yahoo.com.au>
To: Mozdev Project Owners List <project_owners at mozdev.org>
Sent: Tuesday, April 15, 2008 11:07:53 AM
Subject: Re: [Project_owners] XPCOM help


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


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 <trevorhemail-mozdev at yahoo.com.au>
To: Mozdev Project Owners List <project_owners at mozdev.org>
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?
between 0000-00-00 and 9999-99-99    
Project_owners mailing list
Project_owners at mozdev.org

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/project_owners/attachments/20080415/d02deaaa/attachment-0001.html 

More information about the Project_owners mailing list