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

Unified Diff: third_party/WebKit/Source/core/frame/Frame.cpp

Issue 1421113006: Detach the globals of all frames, not just the main frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: third_party/WebKit/Source/core/frame/Frame.cpp
diff --git a/third_party/WebKit/Source/core/frame/Frame.cpp b/third_party/WebKit/Source/core/frame/Frame.cpp
index 1abb7893f3556d9716237790ae5294ca493e6759..1388926c6b50fd50f4831af095134cad45b87bb1 100644
--- a/third_party/WebKit/Source/core/frame/Frame.cpp
+++ b/third_party/WebKit/Source/core/frame/Frame.cpp
@@ -30,6 +30,7 @@
#include "config.h"
#include "core/frame/Frame.h"
+#include "bindings/core/v8/WindowProxyManager.h"
#include "core/dom/DocumentType.h"
#include "core/events/Event.h"
#include "core/frame/LocalDOMWindow.h"
@@ -90,6 +91,7 @@ DEFINE_TRACE(Frame)
void Frame::detach(FrameDetachType type)
{
ASSERT(m_client);
+ windowProxyManager()->clearForNavigation();
m_client->setOpener(0);
domWindow()->resetLocation();
disconnectOwnerElement();
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebFrame.cpp » ('j') | third_party/WebKit/Source/web/WebFrame.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698