diff --git a/mozilla/content/html/document/src/nsHTMLDocument.cpp b/mozilla/content/html/document/src/nsHTMLDocument.cpp
index 1f2b255981c..4829196330d 100644
--- a/mozilla/content/html/document/src/nsHTMLDocument.cpp
+++ b/mozilla/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