Chromium Code Reviews| Index: Source/bindings/core/v8/custom/V8InspectorFrontendHostCustom.cpp |
| diff --git a/Source/bindings/core/v8/custom/V8InspectorFrontendHostCustom.cpp b/Source/bindings/core/v8/custom/V8InspectorFrontendHostCustom.cpp |
| index 84c513f0d92c2c3b397ce764fff1d1139cefb0e7..1ab8fc3f409f9de36433126c96b2751a5b1052b1 100644 |
| --- a/Source/bindings/core/v8/custom/V8InspectorFrontendHostCustom.cpp |
| +++ b/Source/bindings/core/v8/custom/V8InspectorFrontendHostCustom.cpp |
| @@ -158,8 +158,8 @@ void V8InspectorFrontendHost::showContextMenuAtPointMethodCustom(const v8::Funct |
| v8::Handle<v8::Object> windowWrapper = V8Window::findInstanceInPrototypeChain(isolate->GetEnteredContext()->Global(), isolate); |
| if (windowWrapper.IsEmpty()) |
| return; |
| - LocalDOMWindow* window = V8Window::toImpl(windowWrapper); |
| - document = window ? window->document() : nullptr; |
| + DOMWindow* window = V8Window::toImpl(windowWrapper); |
| + document = window ? toLocalDOMWindow(window)->document() : nullptr; |
|
haraken
2014/10/31 06:07:04
Shouldn't this be:
document = window->isLocalDO
dcheng
2014/10/31 06:31:01
See my previous comment. This code should only eve
|
| } |
| if (!document || !document->page()) |
| return; |