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

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

Issue 1176843006: Move window.close implementation to DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove resetting of the main view. Created 5 years, 6 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 | « Source/core/frame/LocalFrame.h ('k') | Source/core/frame/RemoteDOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index 3e97c088adcab4c8129c80b777867bfe3bb98146..d11d1f74a4609fdcb0c9878323255e41ab740442 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -350,6 +350,13 @@ void LocalFrame::disconnectOwnerElement()
Frame::disconnectOwnerElement();
}
+bool LocalFrame::shouldClose()
+{
+ // TODO(dcheng): This should be fixed to dispatch beforeunload events to
+ // both local and remote frames.
+ return m_loader.shouldClose();
+}
+
void LocalFrame::willDetachFrameHost()
{
LocalFrameLifecycleNotifier::notifyWillDetachFrameHost();
« no previous file with comments | « Source/core/frame/LocalFrame.h ('k') | Source/core/frame/RemoteDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698