| Index: third_party/WebKit/Source/bindings/templates/interface_base.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/templates/interface_base.cpp b/third_party/WebKit/Source/bindings/templates/interface_base.cpp
|
| index a04553663d6cddc66cdfef4faa90baef0f9c9350..57b428cb11880dca4419be7af74594afbcb1c209 100644
|
| --- a/third_party/WebKit/Source/bindings/templates/interface_base.cpp
|
| +++ b/third_party/WebKit/Source/bindings/templates/interface_base.cpp
|
| @@ -88,19 +88,7 @@ bool securityCheck(v8::Local<v8::Context> accessingContext, v8::Local<v8::Object
|
| if (window.IsEmpty())
|
| return false; // the frame is gone.
|
|
|
| - DOMWindow* targetWindow = V8Window::toImpl(window);
|
| - ASSERT(targetWindow);
|
| - if (!targetWindow->isLocalDOMWindow())
|
| - return false;
|
| -
|
| - LocalFrame* targetFrame = toLocalDOMWindow(targetWindow)->frame();
|
| - if (!targetFrame)
|
| - return false;
|
| -
|
| - // Notify the loader's client if the initial document has been accessed.
|
| - if (targetFrame->loader().stateMachine()->isDisplayingInitialEmptyDocument())
|
| - targetFrame->loader().didAccessInitialDocument();
|
| -
|
| + const DOMWindow* targetWindow = V8Window::toImpl(window);
|
| return BindingSecurity::shouldAllowAccessTo(isolate, toLocalDOMWindow(toDOMWindow(accessingContext)), targetWindow, DoNotReportSecurityError);
|
| {% else %}{# if interface_name == 'Window' #}
|
| {# Not 'Window' means it\'s Location. #}
|
|
|