mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
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.
This commit is contained in:
parent
491a9eb409
commit
373ca6f2c9
@ -664,7 +664,7 @@ nsScriptLoader::OnStreamComplete(nsIStreamLoader* aLoader,
|
||||
// is one.
|
||||
nsCOMPtr<nsICharsetAlias> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user