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 3bd043c64171cbfdcdb8f05129cf66b8f1806cc2..36d16fe764ed4588008c7ef7daa1f9e3eb0ba6ab 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), |