зеркало из https://github.com/mozilla/pjs.git
One more followup change to the fix for bug 69070. Make sure to set the appType on the root docshell in editor.js.
This commit is contained in:
Родитель
996f842851
Коммит
41b441f124
|
@ -538,7 +538,11 @@ function SetFocusOnStartup()
|
||||||
|
|
||||||
function EditorStartup()
|
function EditorStartup()
|
||||||
{
|
{
|
||||||
GetCurrentEditorElement().docShell.appType =
|
var ds = GetCurrentEditorElement().docShell;
|
||||||
|
var root = ds.QueryInterface(Components.interfaces.nsIDocShellTreeItem).
|
||||||
|
rootTreeItem.QueryInterface(Components.interfaces.nsIDocShell);
|
||||||
|
|
||||||
|
root.QueryInterface(Components.interfaces.nsIDocShell).appType =
|
||||||
Components.interfaces.nsIDocShell.APP_TYPE_EDITOR;
|
Components.interfaces.nsIDocShell.APP_TYPE_EDITOR;
|
||||||
|
|
||||||
var is_HTMLEditor = IsHTMLEditor();
|
var is_HTMLEditor = IsHTMLEditor();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче