Chromium Code Reviews| Index: sky/engine/core/html/parser/HTMLDocumentParser.cpp |
| diff --git a/sky/engine/core/html/parser/HTMLDocumentParser.cpp b/sky/engine/core/html/parser/HTMLDocumentParser.cpp |
| index ae830ca6ead3148e55477d73357d35ff94b44158..7398c90c77a90dd44b540ec65531853d54f80e0d 100644 |
| --- a/sky/engine/core/html/parser/HTMLDocumentParser.cpp |
| +++ b/sky/engine/core/html/parser/HTMLDocumentParser.cpp |
| @@ -383,11 +383,15 @@ bool HTMLDocumentParser::isWaitingForScripts() const |
| void HTMLDocumentParser::resumeAfterWaitingForImports() |
| { |
| + if (isStopped()) |
| + return; |
|
esprehn
2015/01/14 19:00:47
Why don't we always detach the parser when stoppin
abarth-chromium
2015/01/14 19:04:11
Oops. This branch shouldn't be here. That was ju
|
| RefPtr<HTMLDocumentParser> protect(this); |
| if (m_scriptRunner.hasPendingScripts()) |
| m_scriptRunner.executePendingScripts(); |
| ASSERT(!isExecutingScript()); |
| ASSERT(!isWaitingForScripts()); |
| + if (m_speculations.isEmpty()) |
| + return; |
| ASSERT(m_haveBackgroundParser); |
| pumpPendingSpeculations(); |
| } |