Index: WebCore/loader/FrameLoader.cpp |
=================================================================== |
--- WebCore/loader/FrameLoader.cpp (revision 70525) |
+++ WebCore/loader/FrameLoader.cpp (working copy) |
@@ -1437,6 +1437,9 @@ |
void FrameLoader::loadWithDocumentLoader(DocumentLoader* loader, FrameLoadType type, PassRefPtr<FormState> prpFormState) |
{ |
+ // Retain because dispatchBeforeLoadEvent may release the last reference to it. |
+ RefPtr<Frame> protect(m_frame); |
+ |
ASSERT(m_client->hasWebView()); |
// Unfortunately the view must be non-nil, this is ultimately due |