| Index: Source/core/page/Page.cpp
|
| diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
|
| index 174a7f27a7e6afb0050ba9772f53836421e3923c..5adcfd88e87c16bd55760cd2b411fac45eefbc3c 100644
|
| --- a/Source/core/page/Page.cpp
|
| +++ b/Source/core/page/Page.cpp
|
| @@ -602,8 +602,7 @@ void Page::willBeDestroyed()
|
| {
|
| RefPtr<Frame> mainFrame = m_mainFrame;
|
|
|
| - if (mainFrame->isLocalFrame())
|
| - toLocalFrame(mainFrame.get())->loader().frameDetached();
|
| + mainFrame->detach();
|
|
|
| // Disable all agents prior to resetting the frame view.
|
| m_inspectorController->willBeDestroyed();
|
|
|