Index: third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp b/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp |
index 5b52e015a5436383989cf30a72017f8e324ca449..e9d95e131840566c40bf4c37281bf67511843107 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp |
@@ -4,6 +4,7 @@ |
#include "platform/v8_inspector/InspectedContext.h" |
+#include "bindings/core/v8/BindingSecurity.h" |
#include "platform/v8_inspector/InjectedScript.h" |
#include "platform/v8_inspector/V8Console.h" |
#include "platform/v8_inspector/V8DebuggerImpl.h" |
@@ -75,7 +76,7 @@ void InspectedContext::createInjectedScript() |
v8::HandleScope handles(isolate()); |
v8::Local<v8::Context> localContext = context(); |
v8::Local<v8::Context> callingContext = isolate()->GetCallingContext(); |
- if (!callingContext.IsEmpty() && !m_debugger->client()->callingContextCanAccessContext(callingContext, localContext)) |
+ if (!callingContext.IsEmpty() && !BindingSecurity::callingContextCanAccessContext(isolate(), callingContext, localContext, DoNotReportSecurityError)) |
return; |
m_injectedScript = InjectedScript::create(this); |
} |