| Index: third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
|
| index e54c2acf6f2f81002f2fe5dd3640bf024dbe2a32..59f5677559acbf7235778ede262e3bf6aee9c904 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
|
| @@ -119,9 +119,10 @@ void V8WrapperInstantiationScope::securityCheck(
|
| // reach this code path. Should be generalized.
|
| ExceptionState exceptionState(isolate, ExceptionState::ConstructionContext,
|
| "Location");
|
| - if (BindingSecurity::shouldAllowAccessToDetachedWindow(
|
| - callingWindow, targetWindow, exceptionState))
|
| + if (BindingSecurity::shouldAllowAccessTo(callingWindow, targetWindow,
|
| + exceptionState)) {
|
| return;
|
| + }
|
|
|
| CHECK_EQ(SecurityError, exceptionState.code());
|
| return;
|
|
|