Bug 308384 - Move BrowserGlue shutdown tasks from 'profile-before-change' to 'profile-change-teardown'. patch from Giorgio Maone <g.maone@informaction.com>, r=mconnor.

This commit is contained in:
mozilla.mano%sent.com 2005-09-19 17:40:48 +00:00
parent d90ee4ad91
commit d7a08bfe08

View File

@ -57,7 +57,7 @@ BrowserGlue.prototype = {
case "xpcom-shutdown":
this._dispose();
break;
case "profile-before-change":
case "profile-change-teardown":
this._onProfileShutdown();
break;
case "profile-after-change":
@ -72,7 +72,7 @@ BrowserGlue.prototype = {
// observer registration
const osvr = Components.classes['@mozilla.org/observer-service;1']
.getService(Components.interfaces.nsIObserverService);
osvr.addObserver(this, "profile-before-change", false);
osvr.addObserver(this, "profile-change-teardown", false);
osvr.addObserver(this, "xpcom-shutdown", false);
osvr.addObserver(this, "profile-after-change", false);
},
@ -83,7 +83,7 @@ BrowserGlue.prototype = {
// observer removal
const osvr = Components.classes['@mozilla.org/observer-service;1']
.getService(Components.interfaces.nsIObserverService);
osvr.removeObserver(this, "profile-before-change");
osvr.removeObserver(this, "profile-change-teardown");
osvr.removeObserver(this, "xpcom-shutdown");
osvr.removeObserver(this, "profile-after-change");
},