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

Issue 2641063002: Fix a problem that user validated dangerous download cannot resume (Closed)

Created:
3 years, 11 months ago by qinmin
Modified:
3 years, 11 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a problem that user validated dangerous download cannot resume After a dangerous download become user validated, it should be treated as not dangerous. However, Chrome currently still checks for downloadUrl and referer. This CL fixes the problem and added a test for the case. BUG=682468 Review-Url: https://codereview.chromium.org/2641063002 Cr-Commit-Position: refs/heads/master@{#444941} Committed: https://chromium.googlesource.com/chromium/src/+/d5d9f828c9c9366fa219e6a7aad6eccfdd2dd1fd

Patch Set 1 : remove unused assert #

Patch Set 2 : remove dependencies #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -0 lines) Patch
M chrome/browser/download/download_target_determiner.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/download/download_target_determiner_unittest.cc View 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (17 generated)
qinmin
asanka@, PTAL
3 years, 11 months ago (2017-01-19 00:01:37 UTC) #2
David Trainor- moved to gerrit
lgtm
3 years, 11 months ago (2017-01-19 05:48:29 UTC) #3
asanka
The only effect of this change is to skip the URL check if the download ...
3 years, 11 months ago (2017-01-19 22:12:41 UTC) #4
qinmin
When resuming a dangerous download after browser crash, we will call DTD to re-determine the ...
3 years, 11 months ago (2017-01-19 23:43:35 UTC) #5
asanka
On 2017/01/19 at 23:43:35, qinmin wrote: > When resuming a dangerous download after browser crash, ...
3 years, 11 months ago (2017-01-19 23:48:54 UTC) #6
asanka
On 2017/01/19 at 23:48:54, asanka wrote: > On 2017/01/19 at 23:43:35, qinmin wrote: > > ...
3 years, 11 months ago (2017-01-19 23:52:26 UTC) #7
qinmin
One interesting thing is that DoCheckDownloadUrl() can change danger_type_ from DOWNLOAD_DANGER_TYPE_USER_VALIDATED to DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, that causes ...
3 years, 11 months ago (2017-01-19 23:58:37 UTC) #8
asanka
On 2017/01/19 at 23:58:37, qinmin wrote: > One interesting thing is that DoCheckDownloadUrl() can change ...
3 years, 11 months ago (2017-01-20 00:08:33 UTC) #9
qinmin
On 2017/01/20 00:08:33, asanka wrote: > On 2017/01/19 at 23:58:37, qinmin wrote: > > One ...
3 years, 11 months ago (2017-01-20 00:18:12 UTC) #10
qinmin
updated the crbug about the scenario this might happen https://codereview.chromium.org/2641063002/diff/1/chrome/browser/download/download_target_determiner_unittest.cc File chrome/browser/download/download_target_determiner_unittest.cc (right): https://codereview.chromium.org/2641063002/diff/1/chrome/browser/download/download_target_determiner_unittest.cc#newcode1934 chrome/browser/download/download_target_determiner_unittest.cc:1934: ...
3 years, 11 months ago (2017-01-20 00:19:22 UTC) #11
commit-bot: I haz the power
This CL has an open dependency (Issue 2641063002 Patch 1). Please resolve the dependency and ...
3 years, 11 months ago (2017-01-20 00:20:47 UTC) #15
commit-bot: I haz the power
This CL has an open dependency (Issue 2641063002 Patch 1). Please resolve the dependency and ...
3 years, 11 months ago (2017-01-20 00:35:21 UTC) #19
commit-bot: I haz the power
This CL has an open dependency (Issue 2641063002 Patch 1). Please resolve the dependency and ...
3 years, 11 months ago (2017-01-20 00:53:21 UTC) #22
commit-bot: I haz the power
This CL has an open dependency (Issue 2641063002 Patch 1). Please resolve the dependency and ...
3 years, 11 months ago (2017-01-20 00:55:35 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2641063002/60001
3 years, 11 months ago (2017-01-20 00:59:14 UTC) #30
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 01:55:41 UTC) #33
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/d5d9f828c9c9366fa219e6a7aad6...

Powered by Google App Engine
This is Rietveld 408576698