Zotero

Zotero is a citation/reference manager implemented as a firefox plugin.

There is standalone XUL version, and a chrome connector plugin.

https://developer.mozilla.org/en/Components.utils.reportError

https://developer.mozilla.org/en/Troubleshooting_XPCOM_components_registration

There source code is on github; https://github.com/zotero/zotero