Chromium Code Reviews| 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..18b15546d3b4284a64a07bdf1ab25e3445553e8f 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()->clearWindowProxy(); |
|
dcheng
2015/10/30 15:49:46
Is there a reason to call this again here, btw? Bo
|
| m_client->setOpener(0); |
| domWindow()->resetLocation(); |
| disconnectOwnerElement(); |