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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user