Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
index 1d711cb31da6bb8da232d4b21a31b29fb9ba14e7..2d4211e4781fd94a151ce88a40712e400e8bf220 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
@@ -495,7 +495,7 @@ void LocalFrame::printNavigationWarning(const String& message) { |
} |
WindowProxyManagerBase* LocalFrame::getWindowProxyManager() const { |
- return m_script->getWindowProxyManager(); |
+ return m_script; |
} |
bool LocalFrame::shouldClose() { |
@@ -523,7 +523,7 @@ LocalDOMWindow* LocalFrame::domWindow() const { |
void LocalFrame::setDOMWindow(LocalDOMWindow* domWindow) { |
if (domWindow) |
- script().clearWindowProxy(); |
+ script().clearForNavigation(); |
if (this->domWindow()) |
this->domWindow()->reset(); |
@@ -884,7 +884,7 @@ inline LocalFrame::LocalFrame(FrameLoaderClient* client, |
client->frameBlameContext())), |
m_loader(this), |
m_navigationScheduler(NavigationScheduler::create(this)), |
- m_script(ScriptController::create(this)), |
+ m_script(ScriptController::create(*this)), |
m_editor(Editor::create(*this)), |
m_spellChecker(SpellChecker::create(*this)), |
m_selection(FrameSelection::create(*this)), |