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

Unified Diff: Source/core/dom/ScriptRunner.cpp

Issue 1271443002: Revert of Upon load failure, remove sync script from execution queue. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | « LayoutTests/fast/dom/HTMLScriptElement/script-sync-onerror-not-repeated-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ScriptRunner.cpp
diff --git a/Source/core/dom/ScriptRunner.cpp b/Source/core/dom/ScriptRunner.cpp
index a79adbca74937515055495d9e6da56f0deaee485..bf1d254109b5e31a144b5a34c76757f11e28ef42 100644
--- a/Source/core/dom/ScriptRunner.cpp
+++ b/Source/core/dom/ScriptRunner.cpp
@@ -132,17 +132,14 @@
// to detach).
RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(m_pendingAsyncScripts.contains(scriptLoader));
m_pendingAsyncScripts.remove(scriptLoader);
+ scriptLoader->detach();
+ m_document->decrementLoadEventDelayCount();
break;
case IN_ORDER_EXECUTION:
RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(!m_scriptsToExecuteInOrder.isEmpty());
- // Remove; script failed to load and error event has been dispatched.
- ScriptLoader* script = m_scriptsToExecuteInOrder.takeFirst();
- ASSERT_UNUSED(script, script == scriptLoader);
- break;
- }
- scriptLoader->detach();
- m_document->decrementLoadEventDelayCount();
+ break;
+ }
}
void ScriptRunner::movePendingAsyncScript(Document& oldDocument, Document& newDocument, ScriptLoader* scriptLoader)
« no previous file with comments | « LayoutTests/fast/dom/HTMLScriptElement/script-sync-onerror-not-repeated-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698