Bug 620832 - Web console attempts to remove its observers multiple times; f=ddahl,rcampbell r=sdwilsh,rcampbell

This commit is contained in:
Mihai Sucan 2011-04-13 19:04:12 +03:00
parent 4ae7ec1498
commit 967ea20a1d

View File

@ -3527,7 +3527,7 @@ let ConsoleAPIObserver = {
HUDService.logConsoleAPIMessage(hudId, aMessage.level, aMessage.arguments);
}
else if (aTopic == "quit-application-granted") {
this.shutdown();
HUDService.shutdown();
}
},
@ -5845,7 +5845,7 @@ HUDWindowObserver = {
uninit: function HWO_uninit()
{
Services.obs.removeObserver(this, "content-document-global-created");
HUDService.shutdown();
Services.obs.removeObserver(this, "xpcom-shutdown");
this.initialConsoleCreated = false;
},