From 373ca6f2c965ec39996615a50527841b32f40354 Mon Sep 17 00:00:00 2001 From: "nhotta%netscape.com" Date: Fri, 2 Nov 2001 02:07:08 +0000 Subject: [PATCH] Fixed a problem of a charset attribute for Script element is ignored, request->mElement->GetCharset(charset) succeeded but the returned value 'charset' was ignored, fixed that problem, bug 106360, r=ftang, sr=jst. --- content/base/src/nsScriptLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/base/src/nsScriptLoader.cpp b/content/base/src/nsScriptLoader.cpp index e6b1ba1b24e8..14ccd61dd6ea 100644 --- a/content/base/src/nsScriptLoader.cpp +++ b/content/base/src/nsScriptLoader.cpp @@ -664,7 +664,7 @@ nsScriptLoader::OnStreamComplete(nsIStreamLoader* aLoader, // is one. nsCOMPtr calias(do_GetService(kCharsetAliasCID,&rv)); if (NS_SUCCEEDED(rv)) { - rv = calias->GetPreferred(characterSet, preferred); + rv = calias->GetPreferred(charset, preferred); if(NS_SUCCEEDED(rv)) { characterSet = preferred;