From 6bcb180b10f2600819e10fd0e97b0867327d8880 Mon Sep 17 00:00:00 2001 From: "shanjian%netscape.com" Date: Fri, 20 Sep 2002 09:24:54 +0000 Subject: [PATCH] #169858 Browser--Can not login CMB website. Populate frameset charset source of post doc to disable autodetection. r=jkeiser, jebak, sr=jst. --- content/html/document/src/nsHTMLDocument.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/html/document/src/nsHTMLDocument.cpp b/content/html/document/src/nsHTMLDocument.cpp index 1f2b255981c..4829196330d 100644 --- a/content/html/document/src/nsHTMLDocument.cpp +++ b/content/html/document/src/nsHTMLDocument.cpp @@ -628,6 +628,9 @@ nsHTMLDocument::TryParentCharset(nsIDocumentCharsetInfo* aDocInfo, aDocInfo->GetParentCharsetSource(&parentSource); if (kCharsetFromParentForced <= parentSource) source = kCharsetFromParentForced; + else if (kCharsetFromHintPrevDoc == parentSource) + // if parent is posted doc, set this prevent autodections + source = kCharsetFromHintPrevDoc; else if (kCharsetFromCache <= parentSource) source = kCharsetFromParentFrame; else