#92473 Overwrite character set does not work inside Text and Textarea.
r = radha, sr=blizzard git-svn-id: svn://10.0.0.236/trunk@101156 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ea219971a6
commit
ba3583e6ab
@ -3558,6 +3558,7 @@ nsDocShell::Embed(nsIContentViewer * aContentViewer,
|
||||
|
||||
// Determine if this type of load should update history
|
||||
switch (mLoadType) {
|
||||
case LOAD_RELOAD_CHARSET_CHANGE: //don't perserve history in charset reload
|
||||
case LOAD_NORMAL_REPLACE:
|
||||
case LOAD_RELOAD_BYPASS_CACHE:
|
||||
case LOAD_RELOAD_BYPASS_PROXY:
|
||||
|
||||
@ -788,7 +788,7 @@ function BrowserSetForcedCharacterSet(aCharset)
|
||||
var docCharset = getBrowser().docShell.QueryInterface(
|
||||
Components.interfaces.nsIDocCharset);
|
||||
docCharset.charset = aCharset;
|
||||
BrowserReload();
|
||||
BrowserReloadWithFlags(nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);
|
||||
}
|
||||
|
||||
function BrowserSetForcedDetector()
|
||||
|
||||
@ -483,7 +483,11 @@ nsSHistory::Reload(PRUint32 aReloadFlags)
|
||||
{
|
||||
loadType = nsIDocShellLoadInfo::loadReloadBypassCache;
|
||||
}
|
||||
else
|
||||
else if (aReloadFlags & nsIWebNavigation::LOAD_FLAGS_CHARSET_CHANGE)
|
||||
{
|
||||
loadType = nsIDocShellLoadInfo::loadReloadCharsetChange;
|
||||
}
|
||||
else
|
||||
{
|
||||
loadType = nsIDocShellLoadInfo::loadReloadNormal;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user