lowlevel/img.sky flaky crashes

We don't need to pump pending speculations if we don't have any.

R=esprehn@chromium.org, eseidel@chromium.org
BUG=447763

Review URL: https://codereview.chromium.org/852043003
This commit is contained in:
Adam Barth 2015-01-14 13:32:21 -08:00
parent 22bc13f2cf
commit e89b1dda15

View File

@ -388,6 +388,8 @@ void HTMLDocumentParser::resumeAfterWaitingForImports()
m_scriptRunner.executePendingScripts();
ASSERT(!isExecutingScript());
ASSERT(!isWaitingForScripts());
if (m_speculations.isEmpty())
return;
ASSERT(m_haveBackgroundParser);
pumpPendingSpeculations();
}