nsiObserverService doesn't fire profile-before-change event

UNCONFIRMED
Unassigned

Status

()

Firefox
General
--
major
UNCONFIRMED
7 years ago
7 years ago

People

(Reporter: Lior Neudorfer, Unassigned)

Tracking

4.0 Branch
x86
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.3 Safari/534.24
Build Identifier: 4.0RC1

I'm trying to register an nsIObserverService observer to observe profile-before-change events, in order to cleanup my add-on's local data after it was uninstalled and the browser was about to be closed.
My observer never gets called.

Similar tries with other events (quit-application/-requested/-granted) have only succeeded with the quit-application-requested event.


Reproducible: Always

Steps to Reproduce:
1. Register an observer for profile-before-change events:
Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces["nsIObserverService"]).addObserver(ac_observer, "profile-before-change", false);
2. In the observer, do something (pop an alert box/update a localdata preference/...)
3. 
Actual Results:  
The observer never seems to be called.

Expected Results:  
The observer should be called.

Updated

7 years ago
Version: unspecified → 4.0 Branch
You need to log in before you can comment on or make changes to this bug.