Fix for bug #37543, a=ftang, r=nhotta.
git-svn-id: svn://10.0.0.236/trunk@75618 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -752,6 +752,19 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
|
||||
}
|
||||
}
|
||||
|
||||
if (kCharsetFromParentFrame > charsetSource) {
|
||||
if (dcInfo) {
|
||||
nsCOMPtr<nsIAtom> csAtom;
|
||||
dcInfo->GetParentCharset(getter_AddRefs(csAtom));
|
||||
if (csAtom) {
|
||||
csAtom->ToString(charset);
|
||||
charsetSource = kCharsetFromParentFrame;
|
||||
|
||||
// printf("### 0 >>> Having parent CS = %s\n", charset.ToNewCString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if((kCharsetFromAutoDetection > charsetSource ) && gPlugDetector)
|
||||
{
|
||||
nsCOMPtr <nsICharsetDetector> cdet = do_CreateInstance(g_detector_progid,
|
||||
|
||||
Reference in New Issue
Block a user