Fix assertion from bug 280725 - we now use weak references, so we don't need to explicitly unregister the windows, noted by WeirdAl

This commit is contained in:
bsmedberg%covad.net 2005-04-06 04:17:42 +00:00
parent 3e4e089504
commit 412b1f3b68

View File

@ -785,12 +785,7 @@ function BrowserFlushBookmarksAndHistory()
function Shutdown()
{
// remove remote support
if (XREMOTESERVICE_CONTRACTID in Components.classes) {
var remoteService;
remoteService = Components.classes[XREMOTESERVICE_CONTRACTID]
.getService(Components.interfaces.nsIXRemoteService);
remoteService.removeBrowserInstance(window);
if (REMOTESERVICE_CONTRACTID in Components.classes) {
var observerService = Components.classes["@mozilla.org/observer-service;1"]
.getService(Components.interfaces.nsIObserverService);
observerService.removeObserver(gTabOpenObserver, "open-new-tab-request", false);