Search code examples
firefoxxpcom

How to listen to profile-after-change in XPCOM component for FF4


This blog post mentions that XPCOM components will no longer be able to observe 'app-startup' notifications and they will have to listen to 'profile-after-change' notifications now.

My changes don't seem to work however; any idea what I did wrong?


Solution

  • Add the following to chrome.manifest:

    category profile-after-change CONTRACTID CONTRACTID