зеркало из https://github.com/mozilla/pjs.git
Bug 189384 Composer window slow to load r=brade sr=sfraser a=asa
This commit is contained in:
Родитель
51cd90fc90
Коммит
72fa92da10
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче