| Index: Source/core/inspector/PageRuntimeAgent.cpp
|
| diff --git a/Source/core/inspector/PageRuntimeAgent.cpp b/Source/core/inspector/PageRuntimeAgent.cpp
|
| index 201a18480b84dad12914cfe26f898310e16b8c02..9c1d5a2d6d0912b7907f10a6bb0e2972ec1027e8 100644
|
| --- a/Source/core/inspector/PageRuntimeAgent.cpp
|
| +++ b/Source/core/inspector/PageRuntimeAgent.cpp
|
| @@ -170,7 +170,7 @@ void PageRuntimeAgent::frameWindowDiscarded(LocalDOMWindow* window)
|
| Vector<RefPtr<ScriptState> > scriptStatesToRemove;
|
| for (ScriptStateToId::iterator it = m_scriptStateToId.begin(); it != m_scriptStateToId.end(); ++it) {
|
| RefPtr<ScriptState> scriptState = it->key;
|
| - if (scriptState->contextIsValid() || window == scriptState->domWindow()) {
|
| + if (!scriptState->contextIsValid() || window == scriptState->domWindow()) {
|
| scriptStatesToRemove.append(scriptState);
|
| m_frontend->executionContextDestroyed(it->value);
|
| }
|
|
|