summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/render_view.cc')
-rw-r--r--content/renderer/render_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/renderer/render_view.cc b/content/renderer/render_view.cc
index 2def6db..fc83a1d 100644
--- a/content/renderer/render_view.cc
+++ b/content/renderer/render_view.cc
@@ -3279,7 +3279,7 @@ void RenderView::EvaluateScript(const string16& frame_xpath,
result = web_frame->executeScriptAndReturnValue(WebScriptSource(script));
if (notify_result) {
ListValue list;
- if (web_frame) {
+ if (!result.IsEmpty() && web_frame) {
v8::HandleScope handle_scope;
v8::Local<v8::Context> context = web_frame->mainWorldScriptContext();
v8::Context::Scope context_scope(context);