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

Issue 1441243002: Be more lenient about inspecting/pinging on invalid downloaded .zip's (Closed)

Created:
5 years, 1 month ago by Nathan Parker
Modified:
5 years ago
Reviewers:
asanka
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Be more lenient about inspecting/pinging on invalid downloaded .zip's For zips that failed to parse completely, send a ping if we see an exe/zip in it or if the user is in safe browsing extended-reporting. BUG=553595 Committed: https://crrev.com/74fbd56171b18ef19ad7426018a774b200c0baa8 Cr-Commit-Position: refs/heads/master@{#361410}

Patch Set 1 #

Patch Set 2 : Add basic tests #

Patch Set 3 : Add UrlFetcherFactory for test #

Patch Set 4 : Parameterize tests #

Patch Set 5 : nits #

Patch Set 6 : mac typo #

Patch Set 7 : Fix expected result in test #

Total comments: 6

Patch Set 8 : nits #

Patch Set 9 : Adjust proto tag number to match server side. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -71 lines) Patch
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 7 9 chunks +58 lines, -25 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 2 3 4 5 6 9 chunks +112 lines, -43 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/safe_browsing/csd.proto View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 35 (15 generated)
Nathan Parker
This isn't quite ready for review, but I wanted to get your early take on ...
5 years, 1 month ago (2015-11-13 01:36:09 UTC) #2
asanka
LG. We should probably mention somewhere that we expect some unzip tools to extract the ...
5 years, 1 month ago (2015-11-13 22:04:04 UTC) #3
Nathan Parker
I haven't added example invalid .zips -- I could do that in a separate cl.
5 years, 1 month ago (2015-11-17 01:11:48 UTC) #5
Nathan Parker
Oh, an PTAL. Thanks.
5 years, 1 month ago (2015-11-17 01:24:05 UTC) #6
asanka
https://codereview.chromium.org/1441243002/diff/120001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/1441243002/diff/120001/chrome/browser/safe_browsing/download_protection_service.cc#newcode494 chrome/browser/safe_browsing/download_protection_service.cc:494: const bool in_incognito = item_->GetBrowserContext()->IsOffTheRecord(); Nit: Maybe return early ...
5 years, 1 month ago (2015-11-18 21:37:55 UTC) #7
asanka
Code LGTM. I just have some questions. I remember at some point that there was ...
5 years, 1 month ago (2015-11-18 21:39:14 UTC) #8
Nathan Parker
https://codereview.chromium.org/1441243002/diff/120001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/1441243002/diff/120001/chrome/browser/safe_browsing/download_protection_service.cc#newcode494 chrome/browser/safe_browsing/download_protection_service.cc:494: const bool in_incognito = item_->GetBrowserContext()->IsOffTheRecord(); On 2015/11/18 21:37:55, asanka ...
5 years, 1 month ago (2015-11-20 06:22:16 UTC) #9
asanka
Still LGTM https://codereview.chromium.org/1441243002/diff/120001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/1441243002/diff/120001/chrome/browser/safe_browsing/download_protection_service.cc#newcode494 chrome/browser/safe_browsing/download_protection_service.cc:494: const bool in_incognito = item_->GetBrowserContext()->IsOffTheRecord(); On 2015/11/20 ...
5 years, 1 month ago (2015-11-20 15:55:40 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441243002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441243002/140001
5 years ago (2015-11-23 15:58:56 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-23 16:58:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441243002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441243002/160001
5 years ago (2015-11-23 20:44:29 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/133013)
5 years ago (2015-11-23 22:23:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441243002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441243002/160001
5 years ago (2015-11-23 22:55:15 UTC) #25
Nathan Parker
The failing tests should not be generating .zip downloads, so I'm currently baffled by how ...
5 years ago (2015-11-23 23:47:02 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/133212)
5 years ago (2015-11-24 01:02:29 UTC) #28
asanka
On 2015/11/23 at 23:47:02, nparker wrote: > The failing tests should not be generating .zip ...
5 years ago (2015-11-24 18:53:26 UTC) #29
Nathan Parker
Yes, I just found that via another route. Thanks.
5 years ago (2015-11-24 18:57:18 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441243002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441243002/160001
5 years ago (2015-11-24 18:59:50 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years ago (2015-11-24 19:27:50 UTC) #33
commit-bot: I haz the power
5 years ago (2015-11-24 19:28:53 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/74fbd56171b18ef19ad7426018a774b200c0baa8
Cr-Commit-Position: refs/heads/master@{#361410}

Powered by Google App Engine
This is Rietveld 408576698