Partial fix for bug 42098 -- leakage of XUL doc and editor in composer window. This change fixes the doc leak, but the nsEditorShell still leaks. This fix is a band-aid until 42530 is fixed. r=hyatt

This commit is contained in:
sfraser%netscape.com 2000-06-16 06:01:19 +00:00
Родитель da5da43729
Коммит e3ba35f0ca
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -163,7 +163,8 @@ function EditorStartup(editorType, editorElement)
}
// store the editor shell in the window, so that child windows can get to it.
editorShell = editorElement.editorShell;
editorShell = editorElement.editorShell; // this pattern exposes a JS/XBL bug that causes leaks
// editorShell = editorElement.boxObject.QueryInterface(Components.interfaces.nsIEditorBoxObject).editorShell;
editorShell.Init();
editorShell.SetEditorType(editorType);