Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2445193005: Route setHasReceivedUserGesture() state for RemoteFrames (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698