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..092a64469d781dd2df1603b92969a2d12ee8e7d0 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; |
@@ -134,7 +135,7 @@ void V8WrapperInstantiationScope::securityCheck( |
nullptr); |
if (currentWorld.isMainWorld() && |
!BindingSecurity::shouldAllowAccessToFrame(currentDOMWindow(isolate), |
- frame, exceptionState)) { |
+ *frame, exceptionState)) { |
CHECK_EQ(SecurityError, exceptionState.code()); |
return; |
} |