mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 04:03:47 +00:00
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:
parent
070e2f3286
commit
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user