Index: extensions/renderer/v8_context_native_handler.cc |
diff --git a/extensions/renderer/v8_context_native_handler.cc b/extensions/renderer/v8_context_native_handler.cc |
index ed915cc423f717a1a5fb6ce04b96947e613db787..37f052bab6425a35c8dd284b039bb7366a5d67f0 100644 |
--- a/extensions/renderer/v8_context_native_handler.cc |
+++ b/extensions/renderer/v8_context_native_handler.cc |
@@ -8,6 +8,7 @@ |
#include "extensions/common/features/feature.h" |
#include "extensions/renderer/dispatcher.h" |
#include "extensions/renderer/script_context.h" |
+#include "third_party/WebKit/public/web/WebLocalFrame.h" |
namespace extensions { |
@@ -53,7 +54,8 @@ void V8ContextNativeHandler::GetModuleSystem( |
v8::Local<v8::Object>::Cast(args[0])->CreationContext(); |
ScriptContext* context = |
dispatcher_->script_context_set().GetByV8Context(v8_context); |
- args.GetReturnValue().Set(context->module_system()->NewInstance()); |
+ if (blink::WebFrame::scriptCanAccess(context->web_frame())) |
not at google - send to devlin
2015/07/13 17:27:08
What is the context for "scriptCanAccess"? Does it
|
+ args.GetReturnValue().Set(context->module_system()->NewInstance()); |
} |
void V8ContextNativeHandler::RunWithNativesEnabledModuleSystem( |