зеркало из https://github.com/mozilla/gecko-dev.git
#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:
Родитель
18aeb54e38
Коммит
c9ffcb6499
|
@ -292,9 +292,11 @@ function BrowserSetForcedCharacterSet(aCharset)
|
||||||
BrowserReloadWithFlags(nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);
|
BrowserReloadWithFlags(nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
function BrowserSetForcedDetector()
|
function BrowserSetForcedDetector(doReload)
|
||||||
{
|
{
|
||||||
getBrowser().documentCharsetInfo.forcedDetector = true;
|
getBrowser().documentCharsetInfo.forcedDetector = true;
|
||||||
|
if (doReload)
|
||||||
|
BrowserReloadWithFlags(nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
function BrowserFind()
|
function BrowserFind()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче