diff options
author | Patrick Scott <phanna@android.com> | 2009-06-04 11:08:53 -0400 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2009-06-04 11:08:53 -0400 |
commit | d88ddb512f90bbb26b918b3e0bcebf5a636ba19b (patch) | |
tree | 9fcd9160d32ef44a99f6d07cdeeec742eb1a5cc0 /WebKit/android/WebCoreSupport | |
parent | d15fb80564c4e30b088ca87fa21a03d67675c662 (diff) | |
download | external_webkit-d88ddb512f90bbb26b918b3e0bcebf5a636ba19b.zip external_webkit-d88ddb512f90bbb26b918b3e0bcebf5a636ba19b.tar.gz external_webkit-d88ddb512f90bbb26b918b3e0bcebf5a636ba19b.tar.bz2 |
If the server redirected us, use the url instead of the urlForHistory.
This change will allow a new entry to be added to the visited history and will
correctly update that new item when the title arrives. Another change in
BrowserActivity fixes the title bar during the redirect.
Diffstat (limited to 'WebKit/android/WebCoreSupport')
-rw-r--r-- | WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp | 8 |
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() { |