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

Unified Diff: chrome/renderer/extensions/chrome_v8_context.cc

Issue 9865015: Make renderer calls into script declare there "type" (internal or author). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: pre-review Created 8 years, 9 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 | « no previous file | chrome/renderer/extensions/miscellaneous_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/chrome_v8_context.cc
diff --git a/chrome/renderer/extensions/chrome_v8_context.cc b/chrome/renderer/extensions/chrome_v8_context.cc
index 87020816d2505505bbaa678400a1aca91972cf9b..6de8e20229b79e13c307947f0cd38154bddc6cee 100644
--- a/chrome/renderer/extensions/chrome_v8_context.cc
+++ b/chrome/renderer/extensions/chrome_v8_context.cc
@@ -128,10 +128,15 @@ bool ChromeV8Context::CallChromeHiddenMethod(
TRACE_EVENT1("v8", "v8.callChromeHiddenMethod",
"function_name", function_name);
+ v8::Local<v8::Function> function = v8::Local<v8::Function>::Cast(value);
v8::Handle<v8::Value> result_temp =
- v8::Local<v8::Function>::Cast(value)->Call(v8::Object::New(), argc, argv);
+ web_frame_->callFunctionEvenIfScriptDisabled(function,
+ v8::Object::New(),
+ argc,
+ argv);
if (result)
*result = result_temp;
+
return true;
}
« no previous file with comments | « no previous file | chrome/renderer/extensions/miscellaneous_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698