Index: third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
index fb9ae287cd5a482a2ed8e6d28c5e418e9b7bf147..8f0a49d49d0bc6b593b2251467f6afe8a6a36259 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
@@ -83,7 +83,8 @@ bool ScriptController::canAccessFromCurrentOrigin(v8::Isolate* isolate, Frame* f |
{ |
if (!frame) |
return false; |
- return !isolate->InContext() || BindingSecurity::shouldAllowAccessToFrame(isolate, currentDOMWindow(isolate), frame, ReportSecurityError); |
+ DCHECK(isolate->InContext()); |
+ return BindingSecurity::shouldAllowAccessToFrame(isolate, currentDOMWindow(isolate), frame, ReportSecurityError); |
} |
ScriptController::ScriptController(LocalFrame* frame) |