Chromium Code Reviews| 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 c5d2934fcc755b35658ee202a19fd2dbff0602ea..673e85a5ab8e0a77118427e3502fc8bd59ad89cc 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp |
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp |
| @@ -89,9 +89,7 @@ bool InjectedScriptManager::canAccessInspectedWindow(ScriptState* scriptState) |
| v8::Local<v8::Object> holder = V8Window::findInstanceInPrototypeChain(global, scriptState->isolate()); |
|
haraken
2015/11/16 11:34:21
We should use toDOMWindow defined in V8Binding.h.
Yuki
2015/11/20 12:27:52
Done.
|
| if (holder.IsEmpty()) |
| return false; |
| - LocalFrame* frame = toLocalDOMWindow(V8Window::toImpl(holder))->frame(); |
| - |
| - return BindingSecurity::shouldAllowAccessToFrame(scriptState->isolate(), callingDOMWindow(scriptState->isolate()), frame, DoNotReportSecurityError); |
| + return BindingSecurity::shouldAllowAccessTo(scriptState->isolate(), callingDOMWindow(scriptState->isolate()), V8Window::toImpl(holder), DoNotReportSecurityError); |
| } |
| } // namespace blink |