I have a firefox extension that listens when the firefox has launched using
observe: function(subject, topic, data)
{
if(topic == "app-startup")
{
}
similarly how to listen the firefox quit/restart event using javascript.
Please help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Register to observe
quit-application-requested(self-explanatory) orquit-application(the app is about to quit, either in response to a shutdown or a restart).You can find a big list of observer topics on this page:
Note: As of Firefox 4 you should no longer be using
app-startupto register a startup notification. Useprofile-after-changeinstead.