[Project_owners] XPCOM help
Eric H. Jung
eric.jung at yahoo.com
Tue Apr 15 06:30:49 PDT 2008
You don't need an XPCOM component to execute code at startup and shutdown. But to answer your question, you can use mozIJSSubScriptLoader to load the 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?
Thanks
Trevor
____________________________________________________________________________________
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/bfe66955/attachment.html
More information about the Project_owners
mailing list