| Index: third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
|
| index a5f2726d1f3c09eced3ec0130979a0b7a6841e2a..00e40c6ba17121786c4c0e3e89dcfb98d4d2d6cc 100644
|
| --- a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
|
| @@ -64,7 +64,7 @@ public:
|
| , m_originDocument(originDocument)
|
| , m_replacesCurrentItem(replacesCurrentItem)
|
| , m_isLocationChange(isLocationChange)
|
| - , m_wasUserGesture(UserGestureIndicator::processingUserGesture())
|
| + , m_wasUserGesture(UserGestureIndicator::processingUserGestureUntracked())
|
| {
|
| if (m_wasUserGesture)
|
| m_userGestureToken = UserGestureIndicator::currentToken();
|
| @@ -307,7 +307,7 @@ bool NavigationScheduler::mustReplaceCurrentItem(LocalFrame* targetFrame)
|
| {
|
| // Non-user navigation before the page has finished firing onload should not create a new back/forward item.
|
| // See https://webkit.org/b/42861 for the original motivation for this.
|
| - if (!UserGestureIndicator::processingUserGesture() && !targetFrame->document()->loadEventFinished())
|
| + if (!targetFrame->document()->loadEventFinished() && !UserGestureIndicator::processingUserGesture())
|
| return true;
|
|
|
| // Navigation of a subframe during loading of an ancestor frame does not create a new back/forward item.
|
|
|