Index: Source/WebCore/loader/HistoryController.cpp |
=================================================================== |
--- Source/WebCore/loader/HistoryController.cpp (revision 109935) |
+++ Source/WebCore/loader/HistoryController.cpp (working copy) |
@@ -200,9 +200,10 @@ |
if (!itemToRestore) |
return; |
- |
- LOG(Loading, "WebCoreLoading %s: restoring form state from %p", m_frame->tree()->uniqueName().string().utf8().data(), itemToRestore); |
- doc->setStateForNewFormElements(itemToRestore->documentState()); |
+ if (m_frame->loader()->requestedHistoryItem() == m_currentItem.get() && !m_frame->loader()->documentLoader()->isClientRedirect()) { |
+ LOG(Loading, "WebCoreLoading %s: restoring form state from %p", m_frame->tree()->uniqueName().string().utf8().data(), itemToRestore); |
+ doc->setStateForNewFormElements(itemToRestore->documentState()); |
+ } |
} |
void HistoryController::invalidateCurrentItemCachedPage() |