fix closing of Composer windows (bug 174440) r=cmanske, sr=hewitt, a=Asa

This commit is contained in:
brade%netscape.com 2002-10-17 12:33:00 +00:00
parent 722fc73f98
commit 1d64a2ee98

View File

@ -2289,9 +2289,14 @@ function CloseWindow()
if (window.InsertCharWindow)
SwitchInsertCharToAnotherEditorOrClose();
//window.editorShell.CloseWindowWithoutSaving();
try {
document.documentElement.destroy();
var basewin = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigation)
.QueryInterface(Components.interfaces.nsIDocShellTreeItem)
.treeOwner
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIBaseWindow);
basewin.destroy();
} catch (e) {}
}
}