diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index a38b0b47790..a86c2d34734 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -630,8 +630,11 @@ nsWebShell::ReloadDocument(const char* aCharset, { muDV->SetHintCharacterSet(NS_ConvertASCIItoUCS2(aCharset).get()); muDV->SetHintCharacterSetSource((PRInt32)aSource); - mCharsetReloadState = eCharsetReloadRequested; - return Reload(LOAD_FLAGS_CHARSET_CHANGE); + if(eCharsetReloadRequested != mCharsetReloadState) + { + mCharsetReloadState = eCharsetReloadRequested; + return Reload(LOAD_FLAGS_CHARSET_CHANGE); + } } } }