| 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 94e7e6fc23441d022c34b7f8cc3261980170f5db..e46878f1cefa2153e795b4bc7d9aeb0937cdd777 100644
|
| --- a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
|
| @@ -323,7 +323,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::utilizeUserGesture())
|
| return true;
|
|
|
| // Navigation of a subframe during loading of an ancestor frame does not create a new back/forward item.
|
|
|