| Index: Source/core/frame/LocalFrame.cpp
|
| diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
|
| index 36fde9a0f15c81811cddfcd6dc637aa67e0da056..98ba2e2b8d81ed3c325e0a0a403e2cd2160d31d9 100644
|
| --- a/Source/core/frame/LocalFrame.cpp
|
| +++ b/Source/core/frame/LocalFrame.cpp
|
| @@ -281,6 +281,11 @@ void LocalFrame::detach(FrameDetachType type)
|
| m_loader.stopAllLoaders();
|
| m_loader.dispatchUnloadEvent();
|
| detachChildren();
|
| +
|
| + // All done if detaching the subframes brought about a detach of this frame also.
|
| + if (!client())
|
| + return;
|
| +
|
| // stopAllLoaders() needs to be called after detachChildren(), because detachChildren()
|
| // will trigger the unload event handlers of any child frames, and those event
|
| // handlers might start a new subresource load in this frame.
|
|
|