From e89b1dda15fa712ee33c05c92499f886eb7e0aea Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 14 Jan 2015 13:32:21 -0800 Subject: [PATCH] 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 --- engine/core/html/parser/HTMLDocumentParser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/core/html/parser/HTMLDocumentParser.cpp b/engine/core/html/parser/HTMLDocumentParser.cpp index ae830ca6ead..eaf579302c4 100644 --- a/engine/core/html/parser/HTMLDocumentParser.cpp +++ b/engine/core/html/parser/HTMLDocumentParser.cpp @@ -388,6 +388,8 @@ void HTMLDocumentParser::resumeAfterWaitingForImports() m_scriptRunner.executePendingScripts(); ASSERT(!isExecutingScript()); ASSERT(!isWaitingForScripts()); + if (m_speculations.isEmpty()) + return; ASSERT(m_haveBackgroundParser); pumpPendingSpeculations(); }