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

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

Issue 314953005: Add an ASSERT about cross-world wrapper leakage into ScriptValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
Index: Source/core/inspector/InjectedScript.cpp
diff --git a/Source/core/inspector/InjectedScript.cpp b/Source/core/inspector/InjectedScript.cpp
index 3f8b63c87dc6a5cfd3b1c4c527d2a0901b633041..507988c1954296f6253853cf4e5a614001fbf650 100644
--- a/Source/core/inspector/InjectedScript.cpp
+++ b/Source/core/inspector/InjectedScript.cpp
@@ -221,7 +221,7 @@ Node* InjectedScript::nodeForObjectId(const String& objectId)
ScriptValue resultValue = callFunctionWithEvalEnabled(function, hadException);
ASSERT(!hadException);
- return InjectedScriptHost::scriptValueAsNode(resultValue);
+ return InjectedScriptHost::scriptValueAsNode(scriptState(), resultValue);
}
void InjectedScript::releaseObject(const String& objectId)

Powered by Google App Engine
This is Rietveld 408576698