| Index: chrome/browser/download/download_request_limiter.cc
|
| diff --git a/chrome/browser/download/download_request_limiter.cc b/chrome/browser/download/download_request_limiter.cc
|
| index a2bdf3f71edbf62599d96cc87c5ecd60221a371b..fbfded785e5e6e094267646358f3cc8b2ee12715 100644
|
| --- a/chrome/browser/download/download_request_limiter.cc
|
| +++ b/chrome/browser/download/download_request_limiter.cc
|
| @@ -97,9 +97,10 @@ void DownloadRequestLimiter::TabDownloadState::DidNavigateMainFrame(
|
| }
|
| }
|
|
|
| -void DownloadRequestLimiter::TabDownloadState::DidGetUserGesture() {
|
| - if (is_showing_prompt()) {
|
| - // Don't change the state if the user clicks on the page somewhere.
|
| +void DownloadRequestLimiter::TabDownloadState::DidGetUserInteraction(
|
| + const blink::WebInputEvent::Type type) {
|
| + if (is_showing_prompt() || type == blink::WebInputEvent::MouseWheel) {
|
| + // Don't change state if a prompt is showing or if the user has scrolled.
|
| return;
|
| }
|
|
|
|
|