Index: Source/WebCore/loader/FrameLoader.cpp |
=================================================================== |
--- Source/WebCore/loader/FrameLoader.cpp (revision 91142) |
+++ Source/WebCore/loader/FrameLoader.cpp (working copy) |
@@ -1337,6 +1337,9 @@ |
void FrameLoader::loadFrameRequest(const FrameLoadRequest& request, bool lockHistory, bool lockBackForwardList, |
PassRefPtr<Event> event, PassRefPtr<FormState> formState, ReferrerPolicy referrerPolicy) |
{ |
+ // Protect frame from getting blown away inside dispatchBeforeLoadEvent in loadWithDocumentLoader. |
+ RefPtr<Frame> protect(m_frame); |
+ |
KURL url = request.resourceRequest().url(); |
ASSERT(m_frame->document()); |