Index: Source/WebCore/loader/FrameLoader.cpp |
=================================================================== |
--- Source/WebCore/loader/FrameLoader.cpp (revision 109443) |
+++ Source/WebCore/loader/FrameLoader.cpp (working copy) |
@@ -250,7 +250,6 @@ |
void FrameLoader::changeLocation(SecurityOrigin* securityOrigin, const KURL& url, const String& referrer, bool lockHistory, bool lockBackForwardList, bool refresh) |
{ |
- RefPtr<Frame> protect(m_frame); |
urlSelected(FrameLoadRequest(securityOrigin, ResourceRequest(url, referrer, refresh ? ReloadIgnoringCacheData : UseProtocolCachePolicy), "_self"), |
0, lockHistory, lockBackForwardList, MaybeSendReferrer, ReplaceDocumentIfJavaScriptURL); |
} |
@@ -267,6 +266,7 @@ |
{ |
ASSERT(!m_suppressOpenerInNewFrame); |
+ RefPtr<Frame> protect(m_frame); |
FrameLoadRequest frameRequest(passedRequest); |
if (m_frame->script()->executeIfJavaScriptURL(frameRequest.resourceRequest().url(), shouldReplaceDocumentIfJavaScriptURL)) |