| Index: third_party/WebKit/Source/core/dom/ScriptRunner.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/ScriptRunner.cpp b/third_party/WebKit/Source/core/dom/ScriptRunner.cpp
|
| index fb555bb84a994ab8f448a185439f469790da6d49..1629e39120af7e36432d41915bb47701a3453b4d 100644
|
| --- a/third_party/WebKit/Source/core/dom/ScriptRunner.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ScriptRunner.cpp
|
| @@ -206,14 +206,15 @@ void ScriptRunner::notifyScriptLoadError(ScriptLoader* scriptLoader, ExecutionTy
|
| RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(m_numberOfInOrderScriptsWithPendingNotification > 0);
|
| m_numberOfInOrderScriptsWithPendingNotification--;
|
|
|
| - auto it = m_pendingInOrderScripts.begin();
|
| - for (; it != m_pendingInOrderScripts.end(); ++it) {
|
| + bool foundPendingScript = false;
|
| + for (auto it = m_pendingInOrderScripts.begin(); it != m_pendingInOrderScripts.end(); ++it) {
|
| if (*it == scriptLoader) {
|
| m_pendingInOrderScripts.remove(it);
|
| + foundPendingScript = true;
|
| break;
|
| }
|
| }
|
| - RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(it != m_pendingInOrderScripts.end());
|
| + RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(foundPendingScript);
|
| break;
|
| }
|
| scriptLoader->detach();
|
|
|