Bug 620106 - Allow chardet (if enabled) reload the page during load. r=sicking, a=blocking2.0-final.
This commit is contained in:
@@ -764,7 +764,8 @@ nsHtml5TreeOpExecutor::Start()
|
||||
}
|
||||
|
||||
void
|
||||
nsHtml5TreeOpExecutor::NeedsCharsetSwitchTo(const char* aEncoding)
|
||||
nsHtml5TreeOpExecutor::NeedsCharsetSwitchTo(const char* aEncoding,
|
||||
PRInt32 aSource)
|
||||
{
|
||||
EndDocUpdate();
|
||||
|
||||
@@ -780,7 +781,7 @@ nsHtml5TreeOpExecutor::NeedsCharsetSwitchTo(const char* aEncoding)
|
||||
|
||||
// ask the webshellservice to load the URL
|
||||
if (NS_SUCCEEDED(wss->StopDocumentLoad())) {
|
||||
wss->ReloadDocument(aEncoding, kCharsetFromMetaTag);
|
||||
wss->ReloadDocument(aEncoding, aSource);
|
||||
}
|
||||
// if the charset switch was accepted, wss has called Terminate() on the
|
||||
// parser by now
|
||||
|
||||
Reference in New Issue
Block a user