зеркало из https://github.com/mozilla/gecko-dev.git
Bug 460706 - Handle misplaced ContinueInterruptedParsing calls during synchronous XMLHttpRequest. r+sr=sicking
--HG-- extra : rebase_source : 2852f7f9f0283bc6971dab6dd2ec92234fab302a
This commit is contained in:
Родитель
dbf8cc51bc
Коммит
50dec62271
|
@ -1704,6 +1704,13 @@ nsParser::ContinueParsing()
|
|||
NS_IMETHODIMP
|
||||
nsParser::ContinueInterruptedParsing()
|
||||
{
|
||||
// If there are scripts executing, then the content sink is jumping the gun
|
||||
// (probably due to a synchronous XMLHttpRequest) and will re-enable us
|
||||
// later, see bug 460706.
|
||||
if (mScriptsExecuting) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// If the stream has already finished, there's a good chance
|
||||
// that we might start closing things down when the parser
|
||||
// is reenabled. To make sure that we're not deleted across
|
||||
|
|
Загрузка…
Ссылка в новой задаче