#172402 Change auto-detection option in POST form page with frame will cause page be reloaded

Let detector charset reload be handled the same way as charset reload.
r=naoki, sr=alecf
This commit is contained in:
shanjian%netscape.com 2006-09-14 06:06:42 +00:00
Родитель 18aeb54e38
Коммит c9ffcb6499
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -292,9 +292,11 @@ function BrowserSetForcedCharacterSet(aCharset)
BrowserReloadWithFlags(nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);
}
function BrowserSetForcedDetector()
function BrowserSetForcedDetector(doReload)
{
getBrowser().documentCharsetInfo.forcedDetector = true;
if (doReload)
BrowserReloadWithFlags(nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);
}
function BrowserFind()