summaryrefslogtreecommitdiffstats
path: root/WebKit/android
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android')
-rw-r--r--WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
index a99fedd..d8d45fe 100644
--- a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
@@ -569,7 +569,13 @@ void FrameLoaderClientAndroid::finishedLoading(DocumentLoader* docLoader) {
void FrameLoaderClientAndroid::updateGlobalHistory() {
ASSERT(m_frame);
ASSERT(m_frame->loader()->documentLoader());
- m_webFrame->updateVisitedHistory(m_frame->loader()->documentLoader()->urlForHistory(), false);
+ KURL url;
+ DocumentLoader* loader = m_frame->loader()->documentLoader();
+ if (loader->urlForHistoryReflectsServerRedirect())
+ url = loader->url();
+ else
+ url = loader->urlForHistory();
+ m_webFrame->updateVisitedHistory(url, false);
}
void FrameLoaderClientAndroid::updateGlobalHistoryForRedirectWithoutHistoryItem() {