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 983da54d2946b42c414fe22086963c0c496f1dbd..7ba56550c6e2e770195322252ca587a055f7fe84 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
@@ -395,7 +395,7 @@ void FrameLoader::setHistoryItemStateForCommit( |
HistoryNavigationType navigationType) { |
if (m_frame->settings()->historyEntryRequiresUserGesture() && |
historyCommitType == StandardCommit) |
- UserGestureIndicator::clearProcessedUserGestureSinceLoad(); |
+ m_frame->document()->clearHasReceivedUserGesture(); |
HistoryItem* oldItem = m_currentItem; |
if (isBackForwardLoadType(loadType) && m_provisionalItem) |
@@ -784,8 +784,7 @@ void FrameLoader::updateForSameDocumentNavigation( |
if (!m_currentItem) |
historyCommitType = HistoryInertCommit; |
if (m_frame->settings()->historyEntryRequiresUserGesture() && |
- !UserGestureIndicator::processedUserGestureSinceLoad() && |
- initiatingDocument) |
+ !m_frame->document()->hasReceivedUserGesture() && initiatingDocument) |
ojan
2016/10/18 16:39:49
What happens in this case?
1. Load a top-level pag
Nate Chapin
2016/10/18 23:26:33
Hrm. This should probably be using initiatingDocum
ojan
2016/10/18 23:40:25
Right. And that means it gets a history entry?
|
historyCommitType = HistoryInertCommit; |
setHistoryItemStateForCommit( |
@@ -931,7 +930,7 @@ FrameLoadType FrameLoader::determineFrameLoadType( |
return FrameLoadTypeReload; |
if (m_frame->settings()->historyEntryRequiresUserGesture() && |
- !UserGestureIndicator::processedUserGestureSinceLoad() && |
+ !m_frame->document()->hasReceivedUserGesture() && |
request.originDocument()) |
return FrameLoadTypeReplaceCurrentItem; |