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 <[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
____________________________________________________________________________________
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