Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
index aae2a4031d6f21285591bfc8cdc417d4cf06f115..9ed6926474065df046de763dd845d0611404ef00 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -843,6 +843,10 @@ v8::Local<v8::Context> WebLocalFrameImpl::MainWorldScriptContext() const { |
return script_state->GetContext(); |
} |
+v8::Local<v8::Object> WebLocalFrameImpl::GlobalProxy() const { |
+ return MainWorldScriptContext()->Global(); |
+} |
+ |
bool WebFrame::ScriptCanAccess(WebFrame* target) { |
return BindingSecurity::ShouldAllowAccessToFrame( |
CurrentDOMWindow(MainThreadIsolate()), ToCoreFrame(*target), |