views:

64

answers:

1

In Firefox, if you go to Tools -> Add-ons, in the list of extensions each one has an "Options" button. I would like to enable this for my extension and navigate the browser to a webpage where they can set options relating to my extension. The extension is an XPCOM extension, so if I can just register for a callback when the button is pressed, that would be ideal.

Any advice is appreciated.

+1  A: 

The options (or preferences) button in the Firefox add-ons window is controlled by the <em:optionsURL/> tag (or the em:optionsURL attribute in <RDF:description/>) in the extension's install.rdf.

There is more information about em:optionsURL at developer.mozilla.org:

https://developer.mozilla.org/en/Install_Manifests#optionsURL
https://developer.mozilla.org/en/Adding_preferences_to_an_extension

Kendrick Erickson
Thank's a lot; I'll check it out.
jeffamaphone