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.
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() {