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

Unified Diff: chrome/renderer/searchbox/searchbox_extension.cc

Issue 12335006: Add handle scopes around executeScriptAndReturnValue callsites (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | content/public/test/render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox_extension.cc
diff --git a/chrome/renderer/searchbox/searchbox_extension.cc b/chrome/renderer/searchbox/searchbox_extension.cc
index 8233bda3e4de560c899d0bc2d3c89a10cef68556..501168f187de99fb1cd1c44e059dfe3b44030735 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -871,7 +871,7 @@ v8::Extension* SearchBoxExtension::Get() {
// static
bool SearchBoxExtension::PageSupportsInstant(WebKit::WebFrame* frame) {
if (!frame) return false;
-
+ v8::HandleScope handle_scope;
v8::Handle<v8::Value> v = frame->executeScriptAndReturnValue(
WebKit::WebScriptSource(kSupportsInstantScript));
return !v.IsEmpty() && v->BooleanValue();
« no previous file with comments | « no previous file | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698