New issue
Advanced search Search tips

Issue 735745 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2017
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug



Sign in to add a comment

Context menu download will proceed even if user don't grant Storage permission

Project Member Reported by qin...@chromium.org, Jun 21 2017

Issue description

in https://chromium.googlesource.com/chromium/src/+/60.0.3112.41/chrome/browser/android/download/download_controller.cc, we didn't check the input grant param in CreateContextMenuDownload().

If grant is false, we should early return, rather than proceeding the download.

The issue is fixed on trunk by https://chromium-review.googlesource.com/c/541684/.

Requesting a merge of line 76-80 of https://chromium-review.googlesource.com/c/541684/9/chrome/browser/android/download/download_controller.cc#79


 

Comment 1 by qin...@chromium.org, Jun 22 2017

Labels: -M-59 -Merge-Request-59 M-60 Merge-Request-60
Project Member

Comment 2 by sheriffbot@chromium.org, Jun 22 2017

Labels: -Merge-Request-60 Hotlist-Merge-Review Merge-Review-60
This bug requires manual review: M60 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), josafat@(ChromeOS), bustamante@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Merge-Review-60 Merge-Approved-60
Approved for M60 branch 3112.
Project Member

Comment 4 by bugdroid1@chromium.org, Jun 23 2017

Labels: -merge-approved-60 merge-merged-3112
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/22b5ccf95c26128e6293faaea531cc130682ce9a

commit 22b5ccf95c26128e6293faaea531cc130682ce9a
Author: Min Qin <qinmin@chromium.org>
Date: Fri Jun 23 16:42:16 2017

early return if user denies storage permission

Bug= 735745 
TBR=dtrainor@chromium.org

(cherry picked from commit 2cc12536a8b000ea3e2e4e289b2a9b1989757336)

Change-Id: Idb43dc03cd14c99488d253a8a76bd7685ce53cb6
Reviewed-on: https://chromium-review.googlesource.com/541684
Commit-Queue: Min Qin <qinmin@chromium.org>
Reviewed-by: Ilya Sherman <isherman@chromium.org>
Reviewed-by: David Trainor <dtrainor@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#481113}
Bug: 
Reviewed-on: https://chromium-review.googlesource.com/546256
Reviewed-by: Min Qin <qinmin@chromium.org>
Cr-Commit-Position: refs/branch-heads/3112@{#449}
Cr-Branched-From: b6460e24cf59f429d69de255538d0fc7a425ccf9-refs/heads/master@{#474897}
[modify] https://crrev.com/22b5ccf95c26128e6293faaea531cc130682ce9a/chrome/browser/android/download/download_controller.cc

Status: Fixed (was: Started)

Sign in to add a comment