From f9f9f04078a03b0fd252e4fb05ff36ec0675504b Mon Sep 17 00:00:00 2001 From: "jst%mozilla.jstenback.com" Date: Thu, 14 Oct 2004 04:54:03 +0000 Subject: [PATCH] One more followup change to the fix for bug 69070. Make sure to set the appType on the root docshell in editor.js. --- editor/ui/composer/content/editor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index ca56bfb353b2..c161fd342a5d 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -538,7 +538,11 @@ function SetFocusOnStartup() 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; var is_HTMLEditor = IsHTMLEditor();