Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp |
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
index 12a5819756dd187cc107b9ce227baafbe2b4509e..53377dc70718f6f555ac05f59864c98415fc08bd 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
@@ -784,11 +784,9 @@ void FrameLoader::updateForSameDocumentNavigation( |
HistoryCommitType historyCommitType = loadTypeToCommitType(type); |
if (!m_currentItem) |
historyCommitType = HistoryInertCommit; |
- if (m_frame->settings()->historyEntryRequiresUserGesture()) { |
- if (initiatingDocument && !initiatingDocument->hasReceivedUserGesture()) |
- historyCommitType = HistoryInertCommit; |
- else if (historyCommitType == StandardCommit) |
- m_frame->document()->clearHasReceivedUserGesture(); |
+ if (m_frame->settings()->historyEntryRequiresUserGesture() && |
+ initiatingDocument && !initiatingDocument->hasReceivedUserGesture()) { |
+ historyCommitType = HistoryInertCommit; |
} |
setHistoryItemStateForCommit( |