Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1004)

Unified Diff: Source/core/frame/RemoteFrame.cpp

Issue 914523002: Initialize WindowProxy for RemoteFrames. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/RemoteFrame.cpp
diff --git a/Source/core/frame/RemoteFrame.cpp b/Source/core/frame/RemoteFrame.cpp
index 7b07fdca6504eb37b51d917e4a7b90034cf19509..7ac5e76ba50253e3fc436ee1502d1493404f2019 100644
--- a/Source/core/frame/RemoteFrame.cpp
+++ b/Source/core/frame/RemoteFrame.cpp
@@ -5,6 +5,7 @@
#include "config.h"
#include "core/frame/RemoteFrame.h"
+#include "bindings/core/v8/WindowProxy.h"
#include "bindings/core/v8/WindowProxyManager.h"
#include "core/dom/RemoteSecurityContext.h"
#include "core/frame/RemoteDOMWindow.h"
@@ -48,7 +49,9 @@ DOMWindow* RemoteFrame::domWindow() const
WindowProxy* RemoteFrame::windowProxy(DOMWrapperWorld& world)
{
- return m_windowProxyManager->windowProxy(world);
+ WindowProxy* windowProxy = m_windowProxyManager->windowProxy(world);
haraken 2015/02/10 01:10:51 Shall we add ASSERT(windowProxy) until we allow a
dcheng 2015/02/10 18:57:48 Done.
+ windowProxy->initializeIfNeeded();
+ return windowProxy;
}
void RemoteFrame::navigate(Document& originDocument, const KURL& url, bool lockBackForwardList)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698