Use nsIObserver interface for Firefox 3.6 and older