Chromium Code Reviews| Index: Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp |
| diff --git a/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp b/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp |
| index 184136eaa2329cd4ea4b93bf35b4a2aa4448af6f..073dbd7fc954e2ae334b9564ad11bac36a02de8d 100644 |
| --- a/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp |
| +++ b/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp |
| @@ -118,7 +118,7 @@ bool InjectedScriptManager::canAccessInspectedWindow(ScriptState* scriptState) |
| v8::Handle<v8::Object> holder = V8Window::findInstanceInPrototypeChain(global, scriptState->isolate()); |
| if (holder.IsEmpty()) |
| return false; |
| - LocalFrame* frame = V8Window::toImpl(holder)->frame(); |
| + LocalFrame* frame = toLocalDOMWindow(V8Window::toImpl(holder))->frame(); |
|
dcheng
2014/10/31 03:20:40
For things like this, I assume that the browser wi
haraken
2014/10/31 06:07:04
Don't we need to have:
LocalDOMWindow* window =
dcheng
2014/10/31 06:31:01
The browser should be routing any calls of this na
|
| return BindingSecurity::shouldAllowAccessToFrame(scriptState->isolate(), frame, DoNotReportSecurityError); |
| } |