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

Unified Diff: Source/core/inspector/PageRuntimeAgent.cpp

Issue 622333002: Flip the true/false result of ScriptState::contextIsValid (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | « Source/core/inspector/InspectorOverlay.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « Source/core/inspector/InspectorOverlay.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698