Bug 1084979 - Use removeMessageListener instead of addMessageListener in SpecialPowers.unregisterProcessCrashObservers. r=jmaher

This commit is contained in:
Birunthan Mohanathas 2014-10-22 06:28:02 +03:00
parent f71975b256
commit aacad5508f

View File

@ -71,7 +71,7 @@ SpecialPowers.prototype.registerProcessCrashObservers = function() {
};
SpecialPowers.prototype.unregisterProcessCrashObservers = function() {
addMessageListener("SPProcessCrashService", this._messageListener);
removeMessageListener("SPProcessCrashService", this._messageListener);
sendSyncMessage("SPProcessCrashService", { op: "unregister-observer" });
};