| Index: Source/core/frame/LocalFrame.cpp
|
| diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
|
| index 9a41e1ef6dbb2d99a4abf8a1a8f74ad31889c6cd..b19e56d798a7590ab7aaa790a383d969091e8e43 100644
|
| --- a/Source/core/frame/LocalFrame.cpp
|
| +++ b/Source/core/frame/LocalFrame.cpp
|
| @@ -233,7 +233,10 @@ FloatSize LocalFrame::resizePageRectsKeepingRatio(const FloatSize& originalSize,
|
|
|
| void LocalFrame::setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow> domWindow)
|
| {
|
| - InspectorInstrumentation::frameWindowDiscarded(this, m_domWindow.get());
|
| + if (m_domWindow) {
|
| + console().messageStorage()->windowCleared(m_domWindow.get());
|
| + InspectorInstrumentation::frameWindowDiscarded(this, m_domWindow.get());
|
| + }
|
| if (domWindow)
|
| script().clearWindowProxy();
|
| Frame::setDOMWindow(domWindow);
|
|
|