diff options
Diffstat (limited to 'WebCore/html/HTMLFrameOwnerElement.cpp')
-rw-r--r-- | WebCore/html/HTMLFrameOwnerElement.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/html/HTMLFrameOwnerElement.cpp b/WebCore/html/HTMLFrameOwnerElement.cpp index 3f946f0..2a7b610 100644 --- a/WebCore/html/HTMLFrameOwnerElement.cpp +++ b/WebCore/html/HTMLFrameOwnerElement.cpp @@ -51,9 +51,12 @@ RenderPart* HTMLFrameOwnerElement::renderPart() const void HTMLFrameOwnerElement::willRemove() { + // FIXME: It is unclear why this can't be moved to removedFromDocument() + // this is the only implementation of willRemove in WebCore! if (Frame* frame = contentFrame()) { - frame->disconnectOwnerElement(); + RefPtr<Frame> protect(frame); frame->loader()->frameDetached(); + frame->disconnectOwnerElement(); } HTMLElement::willRemove(); |