Commit a32f732f authored by Kouhei Ueno's avatar Kouhei Ueno Committed by Commit Bot

Don't execute scripts on stopped parser.

Test: interactive_ui_tests OobeTest.NewUser
Bug: 742695
Change-Id: I1779bc181f4c393ec74e523e346da601d1da6eef
Reviewed-on: https://chromium-review.googlesource.com/571525Reviewed-by: default avatarHayato Ito <hayato@chromium.org>
Commit-Queue: Kouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486692}
parent 93275f7d
...@@ -1131,6 +1131,9 @@ void HTMLDocumentParser::NotifyScriptLoaded(PendingScript* pending_script) { ...@@ -1131,6 +1131,9 @@ void HTMLDocumentParser::NotifyScriptLoaded(PendingScript* pending_script) {
} }
void HTMLDocumentParser::ExecuteScriptsWaitingForResources() { void HTMLDocumentParser::ExecuteScriptsWaitingForResources() {
if (IsStopped())
return;
DCHECK(GetDocument()->IsScriptExecutionReady()); DCHECK(GetDocument()->IsScriptExecutionReady());
if (is_waiting_for_stylesheets_) if (is_waiting_for_stylesheets_)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment