fix 51432. r=cata while we set the document charset, we also set the force charset so it

will stronger than the charset in the cache.


git-svn-id: svn://10.0.0.236/trunk@78563 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ftang%netscape.com
2000-09-09 01:23:36 +00:00
parent 127fc5823f
commit 08d32fdd8b
2 changed files with 2 additions and 0 deletions

View File

@@ -3142,6 +3142,7 @@ nsEditorShell::SetDocumentCharacterSet(const PRUnichar* characterSet)
nsCOMPtr<nsIMarkupDocumentViewer> markupCV = do_QueryInterface(childCV);
if (markupCV) {
NS_ENSURE_SUCCESS(markupCV->SetDefaultCharacterSet(characterSet), NS_ERROR_FAILURE);
NS_ENSURE_SUCCESS(markupCV->SetForceCharacterSet(characterSet), NS_ERROR_FAILURE);
}
}
}