зеркало из https://github.com/mozilla/gecko-dev.git
Don't assume that the parser is still enabled after we've returned to the event loop. bug 380590, r+sr=sicking
This commit is contained in:
Родитель
070e2f3286
Коммит
6a6101e0b6
|
@ -1528,11 +1528,19 @@ nsContentSink::ContinueInterruptedParsing()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsContentSink::ContinueInterruptedParsingIfEnabled()
|
||||
{
|
||||
if (mParser && mParser->IsParserEnabled()) {
|
||||
mParser->ContinueInterruptedParsing();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsContentSink::ContinueInterruptedParsingAsync()
|
||||
{
|
||||
nsCOMPtr<nsIRunnable> ev = new nsRunnableMethod<nsContentSink>(this,
|
||||
&nsContentSink::ContinueInterruptedParsing);
|
||||
&nsContentSink::ContinueInterruptedParsingIfEnabled);
|
||||
|
||||
NS_DispatchToCurrentThread(ev);
|
||||
}
|
||||
|
|
|
@ -218,6 +218,7 @@ private:
|
|||
protected:
|
||||
|
||||
void ContinueInterruptedParsingAsync();
|
||||
void ContinueInterruptedParsingIfEnabled();
|
||||
void ContinueInterruptedParsing();
|
||||
|
||||
nsCOMPtr<nsIDocument> mDocument;
|
||||
|
|
Загрузка…
Ссылка в новой задаче