| Index: Source/core/html/HTMLFrameOwnerElement.cpp
|
| diff --git a/Source/core/html/HTMLFrameOwnerElement.cpp b/Source/core/html/HTMLFrameOwnerElement.cpp
|
| index 9ac66b9116f5ddd21371b7479e87a5d8981b9a6c..02986c5c9d6e992abbcdf3407dacf63f6d93cb63 100644
|
| --- a/Source/core/html/HTMLFrameOwnerElement.cpp
|
| +++ b/Source/core/html/HTMLFrameOwnerElement.cpp
|
| @@ -144,8 +144,7 @@ void HTMLFrameOwnerElement::disconnectContentFrame()
|
| // see if this behavior is really needed as Gecko does not allow this.
|
| if (Frame* frame = contentFrame()) {
|
| RefPtr<Frame> protect(frame);
|
| - if (frame->isLocalFrame())
|
| - toLocalFrame(frame)->loader().frameDetached();
|
| + frame->detach();
|
| frame->disconnectOwnerElement();
|
| }
|
| }
|
|
|