Index: Source/WebCore/loader/FrameLoader.cpp |
=================================================================== |
--- Source/WebCore/loader/FrameLoader.cpp (revision 95471) |
+++ Source/WebCore/loader/FrameLoader.cpp (working copy) |
@@ -2697,6 +2697,12 @@ |
if (!shouldContinue) |
return; |
+ // If we have a provisional request for a different document, a fragment scroll should cancel it. |
+ if (m_provisionalDocumentLoader && !equalIgnoringFragmentIdentifier(m_provisionalDocumentLoader->request().url(), request.url())) { |
+ m_provisionalDocumentLoader->stopLoading(); |
+ setProvisionalDocumentLoader(0); |
+ } |
+ |
bool isRedirect = m_quickRedirectComing || policyChecker()->loadType() == FrameLoadTypeRedirectWithLockedBackForwardList; |
loadInSameDocument(request.url(), 0, !isRedirect); |
} |