fix 40739 (dup as 45048. the fix is in 45048)

Change do_QueryInterface to do_QueryReference for mContenWindow for SetDocumentCharacterSet
method.


git-svn-id: svn://10.0.0.236/trunk@74001 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ftang%netscape.com 2000-07-11 07:50:00 +00:00
parent 028fc724dc
commit b852b1dc76
2 changed files with 2 additions and 2 deletions

View File

@ -3062,7 +3062,7 @@ nsEditorShell::SetDocumentCharacterSet(const PRUnichar* characterSet)
res = editor->SetDocumentCharacterSet(characterSet);
if(NS_SUCCEEDED(res)) {
nsCOMPtr<nsIScriptGlobalObject> globalObj( do_QueryInterface(mContentWindow));
nsCOMPtr<nsIScriptGlobalObject> globalObj( do_QueryReferent(mContentWindow));
if (!globalObj) {
return NS_ERROR_FAILURE;
}

View File

@ -3062,7 +3062,7 @@ nsEditorShell::SetDocumentCharacterSet(const PRUnichar* characterSet)
res = editor->SetDocumentCharacterSet(characterSet);
if(NS_SUCCEEDED(res)) {
nsCOMPtr<nsIScriptGlobalObject> globalObj( do_QueryInterface(mContentWindow));
nsCOMPtr<nsIScriptGlobalObject> globalObj( do_QueryReferent(mContentWindow));
if (!globalObj) {
return NS_ERROR_FAILURE;
}