Index: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
index 4fc20e1712723d26d0e3d1a352c04779a5c96f71..bd52f819860ec4762c90a0713dedb1638348d38d 100644 |
--- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
@@ -18,6 +18,7 @@ |
#include "public/web/WebRange.h" |
#include "public/web/WebTreeScopeType.h" |
#include "web/RemoteBridgeFrameOwner.h" |
+#include "web/WebLocalFrameImpl.h" |
#include "web/WebViewImpl.h" |
#include <v8/include/v8.h> |
@@ -605,7 +606,7 @@ WebLocalFrame* WebRemoteFrameImpl::createLocalChild(WebTreeScopeType scope, cons |
{ |
WebLocalFrameImpl* child = WebLocalFrameImpl::create(scope, client, opener); |
WillBeHeapHashMap<WebFrame*, OwnPtrWillBeMember<FrameOwner>>::AddResult result = |
- m_ownersForChildren.add(child, RemoteBridgeFrameOwner::create(child, static_cast<SandboxFlags>(sandboxFlags), frameOwnerProperties)); |
+ m_ownersForChildren.add(child, RemoteBridgeFrameOwner::create(static_cast<SandboxFlags>(sandboxFlags), frameOwnerProperties)); |
insertAfter(child, previousSibling); |
// FIXME: currently this calls LocalFrame::init() on the created LocalFrame, which may |
// result in the browser observing two navigations to about:blank (one from the initial |
@@ -629,7 +630,7 @@ WebRemoteFrame* WebRemoteFrameImpl::createRemoteChild(WebTreeScopeType scope, co |
{ |
WebRemoteFrameImpl* child = WebRemoteFrameImpl::create(scope, client, opener); |
WillBeHeapHashMap<WebFrame*, OwnPtrWillBeMember<FrameOwner>>::AddResult result = |
- m_ownersForChildren.add(child, RemoteBridgeFrameOwner::create(nullptr, static_cast<SandboxFlags>(sandboxFlags), WebFrameOwnerProperties())); |
+ m_ownersForChildren.add(child, RemoteBridgeFrameOwner::create(static_cast<SandboxFlags>(sandboxFlags), WebFrameOwnerProperties())); |
appendChild(child); |
child->initializeCoreFrame(frame()->host(), result.storedValue->value.get(), name, uniqueName); |
return child; |