| Index: third_party/WebKit/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp
|
| index 1cfdbb98ec6e8659dc51f958dc90046445908c0f..e1d8f2c66cc206d682619ad6e70997b8d783c280 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp
|
| @@ -30,11 +30,9 @@
|
|
|
| #include "core/inspector/InjectedScriptManager.h"
|
|
|
| -#include "bindings/core/v8/BindingSecurity.h"
|
| #include "bindings/core/v8/ScriptValue.h"
|
| +#include "bindings/core/v8/V8Binding.h"
|
| #include "bindings/core/v8/V8ScriptRunner.h"
|
| -#include "bindings/core/v8/V8Window.h"
|
| -#include "core/frame/LocalDOMWindow.h"
|
| #include "core/inspector/InjectedScriptHost.h"
|
| #include "core/inspector/InjectedScriptNative.h"
|
| #include "core/inspector/v8/V8InjectedScriptHost.h"
|
| @@ -77,13 +75,4 @@ ScriptValue InjectedScriptManager::createInjectedScript(const String& scriptSour
|
| return ScriptValue(inspectedScriptState, injectedScriptValue);
|
| }
|
|
|
| -bool InjectedScriptManager::canAccessInspectedWindow(ScriptState* scriptState)
|
| -{
|
| - if (!scriptState->contextIsValid())
|
| - return false;
|
| - ScriptState::Scope scope(scriptState);
|
| - DOMWindow* window = toDOMWindow(scriptState->isolate(), scriptState->context()->Global());
|
| - return window && BindingSecurity::shouldAllowAccessTo(scriptState->isolate(), callingDOMWindow(scriptState->isolate()), window, DoNotReportSecurityError);
|
| -}
|
| -
|
| } // namespace blink
|
|
|