Index: Source/core/loader/FrameLoader.cpp |
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp |
index b1a6cce50a3d719bea194a42e7ee3761e7d37703..321b4a17c289eb19b24787c18fb57684a7a9d860 100644 |
--- a/Source/core/loader/FrameLoader.cpp |
+++ b/Source/core/loader/FrameLoader.cpp |
@@ -553,6 +553,8 @@ bool FrameLoader::allowPlugins(ReasonForCallingAllowPlugins reason) |
void FrameLoader::updateForSameDocumentNavigation(const KURL& newURL, SameDocumentNavigationSource sameDocumentNavigationSource, PassRefPtr<SerializedScriptValue> data, FrameLoadType type) |
{ |
+ saveScrollState(); |
+ |
// Update the data source's request with the new URL to fake the URL change |
m_frame->document()->setURL(newURL); |
documentLoader()->setReplacesCurrentHistoryItem(type != FrameLoadTypeStandard); |
@@ -590,7 +592,6 @@ void FrameLoader::loadInSameDocument(const KURL& url, PassRefPtr<SerializedScrip |
return; |
} |
m_loadType = type; |
- saveScrollState(); |
KURL oldURL = m_frame->document()->url(); |
// If we were in the autoscroll/panScroll mode we want to stop it before following the link to the anchor |