| Index: Source/core/inspector/PageRuntimeAgent.cpp
|
| diff --git a/Source/core/inspector/PageRuntimeAgent.cpp b/Source/core/inspector/PageRuntimeAgent.cpp
|
| index f0613cf0708005b32530b4a65c8904a241ea0a2a..5dfa79cafdb71e0c504308eab7381bd969973a02 100644
|
| --- a/Source/core/inspector/PageRuntimeAgent.cpp
|
| +++ b/Source/core/inspector/PageRuntimeAgent.cpp
|
| @@ -151,8 +151,7 @@ void PageRuntimeAgent::frameWindowDiscarded(DOMWindow* window)
|
| m_frontend->executionContextDestroyed(it->value);
|
| }
|
| }
|
| - for (size_t i = 0; i < scriptStatesToRemove.size(); i++)
|
| - m_scriptStateToId.remove(scriptStatesToRemove[i]);
|
| + m_scriptStateToId.removeAll(scriptStatesToRemove);
|
| }
|
|
|
| } // namespace WebCore
|
|
|