diff --git a/mailnews/compose/src/nsMsgCompose.cpp b/mailnews/compose/src/nsMsgCompose.cpp index f8195a6b9c9d..c3a84691a3b5 100644 --- a/mailnews/compose/src/nsMsgCompose.cpp +++ b/mailnews/compose/src/nsMsgCompose.cpp @@ -522,7 +522,7 @@ nsMsgCompose::ConvertAndLoadComposeWindow(nsString& aPrefix, nsIDocShell *docshell = nsnull; nsCOMPtr globalObj = do_QueryInterface(m_window); if (globalObj && (docshell = globalObj->GetDocShell())) - docshell->SetAppType(nsIDocShell::APP_TYPE_MAIL); + docshell->SetAppType(nsIDocShell::APP_TYPE_EDITOR); if (aHTMLEditor && !mCiteReference.IsEmpty()) mailEditor->InsertAsCitedQuotation(aBuf, @@ -533,10 +533,6 @@ nsMsgCompose::ConvertAndLoadComposeWindow(nsString& aPrefix, mailEditor->InsertAsQuotation(aBuf, getter_AddRefs(nodeInserted)); - // XXX see bug #206793 - if (docshell) - docshell->SetAppType(nsIDocShell::APP_TYPE_EDITOR); - m_editor->EndOfDocument(); } @@ -2397,17 +2393,13 @@ QuotingOutputStreamListener::InsertToCompose(nsIEditor *aEditor, if (globalObj) docshell = globalObj->GetDocShell(); if (docshell) - docshell->SetAppType(nsIDocShell::APP_TYPE_MAIL); + docshell->SetAppType(nsIDocShell::APP_TYPE_EDITOR); if (aHTMLEditor) mailEditor->InsertAsCitedQuotation(mMsgBody, EmptyString(), PR_TRUE, getter_AddRefs(nodeInserted)); else mailEditor->InsertAsQuotation(mMsgBody, getter_AddRefs(nodeInserted)); - - // XXX see bug #206793 - if (docshell) - docshell->SetAppType(nsIDocShell::APP_TYPE_EDITOR); } }