Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: sky/engine/core/html/parser/HTMLDocumentParser.cpp

Issue 852043003: lowlevel/img.sky flaky crashes (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698