Bug 189384 Composer window slow to load r=brade sr=sfraser a=asa

This commit is contained in:
neil%parkwaycc.co.uk 2003-01-24 13:33:32 +00:00
Родитель 51cd90fc90
Коммит 72fa92da10
1 изменённых файлов: 6 добавлений и 6 удалений

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

@ -226,12 +226,12 @@ function GetCurrentEditorElement()
var tmpWindow = window;
do {
// Get the <editor> element(s)
var editorList = tmpWindow.document.getElementsByTagName("editor");
// This will change if we support > 1 editor element
if (editorList && editorList.length > 0)
return editorList[0];
// We want the equivalent of document.commandDispatcher.focusedWindow.frameElementInternal
// or even document.FindContentForSubDocument(document.commandDispatcher.focusedWindow.document)
// but those aren't scriptable, so hardcode in the id for now
var editor = tmpWindow.document.getElementById("content-frame");
if (editor)
return editor;
tmpWindow = tmpWindow.opener;
}