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:
Родитель
b55b6b953c
Коммит
7f42daa56d
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче