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

Unified Diff: Source/bindings/v8/ScriptFunctionCall.cpp

Issue 24758003: ScriptController: limit script execution API to executeScript and callFunction, pass valid ScriptEx… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: w/ ScheduledAction executing in given context. Created 7 years, 3 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/bindings/v8/ScriptFunctionCall.h ('k') | Source/bindings/v8/V8Callback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptFunctionCall.cpp
diff --git a/Source/bindings/v8/ScriptFunctionCall.cpp b/Source/bindings/v8/ScriptFunctionCall.cpp
index 5a3a6f6df6b60081b126c3f0f054bc950641d00b..87a48a9db7d74fe4a23b3c0d285880a9a25bdfde 100644
--- a/Source/bindings/v8/ScriptFunctionCall.cpp
+++ b/Source/bindings/v8/ScriptFunctionCall.cpp
@@ -185,6 +185,7 @@ ScriptObject ScriptFunctionCall::construct(bool& hadException, bool reportExcept
ScriptCallback::ScriptCallback(ScriptState* state, const ScriptValue& function)
: ScriptCallArgumentHandler(state)
+ , m_scriptState(state)
, m_function(function)
{
}
@@ -203,7 +204,7 @@ ScriptValue ScriptCallback::call()
for (size_t i = 0; i < m_arguments.size(); ++i)
args[i] = m_arguments[i].v8Value();
- v8::Handle<v8::Value> result = ScriptController::callFunctionWithInstrumentation(0, function, object, m_arguments.size(), args.get(), m_scriptState->isolate());
+ v8::Handle<v8::Value> result = ScriptController::callFunction(m_scriptState->scriptExecutionContext(), function, object, m_arguments.size(), args.get(), m_scriptState->isolate());
return ScriptValue(result, m_scriptState->isolate());
}
« no previous file with comments | « Source/bindings/v8/ScriptFunctionCall.h ('k') | Source/bindings/v8/V8Callback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698