| Index: Source/core/frame/LocalFrame.cpp
|
| diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
|
| index 4f0fb147d02d2d4a652316109592a4c1eec3b1b7..b2ae28330275f4b6c3619f6dc776b9c6ee0466a9 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()->frameWindowDiscarded(m_domWindow.get());
|
| + InspectorInstrumentation::frameWindowDiscarded(this, m_domWindow.get());
|
| + }
|
| if (domWindow)
|
| script().clearWindowProxy();
|
| Frame::setDOMWindow(domWindow);
|
|
|