Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing Firefox Addon prefs when a user uninstalls

I'm working on a firefox addon and one thing i'm unsure on is how to remove user preferences related to my addon when the user uninstalls it. The preferences get set, and if the user uninstalls and reinstalls the preferences are all still there. Some settings also relate to a first time install, so that breaks if the user has installed it previously.

Is there something I can setup that will be called when a user uninstalls, or a process to remove preferences on uninstall?

Thanks!

like image 500
jpcamara Avatar asked Nov 24 '09 14:11

jpcamara


1 Answers

You'll want to take a look at this page which shows you how to register an observer to get the right events. Note that it's not always 100% reliable, but there should be a way to do this in Firefox 3.7 (Gecko 1.9.3).

like image 51
sdwilsh Avatar answered Oct 15 '22 17:10

sdwilsh