Closed Bug 640952 Opened 13 years ago Closed 1 year ago

nsiObserverService doesn't fire profile-before-change event

Categories

(Firefox :: General, defect)

4.0 Branch
x86
Windows 7
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: liornoy, Unassigned)

Details

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.
Version: unspecified → 4.0 Branch
QA Whiteboard: qa-not-actionable

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: major → --

XUL addons no longer exist, which means it's no longer possible for them to try to register nsIObserver's, so we're going to close this one out as INCOMPLETE.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.