Chromium Code Reviews| Index: Source/core/frame/RemoteFrame.cpp |
| diff --git a/Source/core/frame/RemoteFrame.cpp b/Source/core/frame/RemoteFrame.cpp |
| index 3420dffaa69385508300e4368e36fd65ca64cb50..1ab261e0d7b03adc76d9ec25ab292fe3c9a72243 100644 |
| --- a/Source/core/frame/RemoteFrame.cpp |
| +++ b/Source/core/frame/RemoteFrame.cpp |
| @@ -39,6 +39,8 @@ void RemoteFrame::navigate(Document& originDocument, const KURL& url, bool lockB |
| void RemoteFrame::detach() |
| { |
| detachChildren(); |
| + if (!client()) |
| + return; |
| Frame::detach(); |
| } |