| Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| index f6d5c1a2c19a1d6d69d9666b2f015db7605b7a33..f0a873088ea0ffe6f1ae3c12ae8791ec5255698f 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| @@ -368,10 +368,10 @@ void LocalFrame::detach(FrameDetachType type)
|
| // handlers might start a new subresource load in this frame.
|
| m_loader.stopAllLoaders();
|
| m_loader.detach();
|
| - document()->detachLayoutTree();
|
| + document()->shutdown();
|
| // This is the earliest that scripting can be disabled:
|
| // - FrameLoader::detach() can fire XHR abort events
|
| - // - Document::detachLayoutTree()'s deferred widget updates can run script.
|
| + // - Document::shutdown()'s deferred widget updates can run script.
|
| ScriptForbiddenScope forbidScript;
|
| m_loader.clear();
|
| if (!client())
|
|
|