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

Issue 1410423003: [SafeBrowsing] Conditionalize unverified download blocking on whitelist. (Closed)

Created:
5 years, 2 months ago by asanka
Modified:
5 years, 1 month ago
CC:
creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, grt+watch_chromium.org, jam, kinuko+fileapi, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, moheeb1, nasko+codewatch_chromium.org, nhiroki, noƩ, Nathan Parker, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@flash-download-block
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[SafeBrowsing] Conditionalize unverified download blocking on whitelist. Update the policy for handling unverified downloads to allow downloads that are requested by a document that's whitelisted. The whitelist being used is the SafeBrowsing download whitelist and likely represents legitimate downloads. The requesting document is determined based on the originator of the file chooser request. This originator is currently furnished by the renderer and, as such, considered potentially tainted in the event of a renderer compromise. BUG=533579 Committed: https://crrev.com/1cbf498112576e057284126d6888e6811c7516b3 Cr-Commit-Position: refs/heads/master@{#357568}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Cleanup ppapi_filechooser_browsertest #

Total comments: 2

Patch Set 3 : Add comment explaining requestor field at point of use. #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -40 lines) Patch
M chrome/browser/file_select_helper.h View 3 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/file_select_helper.cc View 1 2 5 chunks +57 lines, -26 lines 0 comments Download
M chrome/browser/safe_browsing/unverified_download_policy.h View 1 chunk +15 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/unverified_download_policy.cc View 1 chunk +75 lines, -5 lines 0 comments Download
A chrome/browser/safe_browsing/unverified_download_policy_unittest.cc View 1 2 3 1 chunk +186 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/ppapi/ppapi_filechooser_browsertest.cc View 1 4 chunks +80 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/file_chooser_params.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFileChooserParams.h View 2 chunks +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (16 generated)
Will Harris
looks like security_exploit_browsertest.cc tests this IPC - can you add something to verify that your ...
5 years, 1 month ago (2015-10-26 23:11:42 UTC) #8
asanka
This is an addendum to https://codereview.chromium.org/1409003002. This CL allows SafeBrowsing whitelists to override the FinchTrial ...
5 years, 1 month ago (2015-10-27 21:26:08 UTC) #14
bbudge
https://codereview.chromium.org/1410423003/diff/100001/chrome/test/ppapi/ppapi_filechooser_browsertest.cc File chrome/test/ppapi/ppapi_filechooser_browsertest.cc (right): https://codereview.chromium.org/1410423003/diff/100001/chrome/test/ppapi/ppapi_filechooser_browsertest.cc#newcode256 chrome/test/ppapi/ppapi_filechooser_browsertest.cc:256: namespace { Can these classes be moved to the ...
5 years, 1 month ago (2015-10-28 00:13:20 UTC) #15
mattm
safe_browsing lgtm
5 years, 1 month ago (2015-10-28 01:31:46 UTC) #16
Will Harris
content/common/view_messages.h lgtm
5 years, 1 month ago (2015-10-28 02:45:31 UTC) #17
asanka
https://codereview.chromium.org/1410423003/diff/100001/chrome/test/ppapi/ppapi_filechooser_browsertest.cc File chrome/test/ppapi/ppapi_filechooser_browsertest.cc (right): https://codereview.chromium.org/1410423003/diff/100001/chrome/test/ppapi/ppapi_filechooser_browsertest.cc#newcode256 chrome/test/ppapi/ppapi_filechooser_browsertest.cc:256: namespace { On 2015/10/28 at 00:13:20, bbudge wrote: > ...
5 years, 1 month ago (2015-10-28 14:10:04 UTC) #18
Ilya Sherman
metrics lgtm
5 years, 1 month ago (2015-10-28 18:21:50 UTC) #19
bbudge
Thanks LGTM
5 years, 1 month ago (2015-10-28 19:01:11 UTC) #20
asanka
Thanks folks! sky, tkent: ping?
5 years, 1 month ago (2015-10-29 20:59:40 UTC) #21
davidben
content lgtm. Didn't look at the rest and am assuming other people did the main ...
5 years, 1 month ago (2015-10-29 21:10:10 UTC) #22
sky
What files do you need me to review?
5 years, 1 month ago (2015-10-29 23:04:26 UTC) #23
asanka
On 2015/10/29 at 23:04:26, sky wrote: > What files do you need me to review? ...
5 years, 1 month ago (2015-10-30 02:03:51 UTC) #24
sky
LGTM
5 years, 1 month ago (2015-10-30 15:13:55 UTC) #25
asanka
On 2015/10/30 at 15:13:55, sky wrote: > LGTM Thanks! tkent: ping!
5 years, 1 month ago (2015-10-30 23:41:37 UTC) #26
tkent
third_part/WebKit lgtm
5 years, 1 month ago (2015-11-01 23:47:40 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410423003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410423003/160001
5 years, 1 month ago (2015-11-03 03:45:06 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-03 05:32:20 UTC) #31
asanka
Thanks everyone! https://codereview.chromium.org/1410423003/diff/120001/content/public/common/file_chooser_params.h File content/public/common/file_chooser_params.h (right): https://codereview.chromium.org/1410423003/diff/120001/content/public/common/file_chooser_params.h#newcode61 content/public/common/file_chooser_params.h:61: // untrustworthy since it is specified by ...
5 years, 1 month ago (2015-11-03 14:23:15 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410423003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410423003/160001
5 years, 1 month ago (2015-11-03 14:25:55 UTC) #35
commit-bot: I haz the power
Committed patchset #4 (id:160001)
5 years, 1 month ago (2015-11-03 18:28:24 UTC) #36
commit-bot: I haz the power
5 years, 1 month ago (2015-11-03 18:30:51 UTC) #37
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1cbf498112576e057284126d6888e6811c7516b3
Cr-Commit-Position: refs/heads/master@{#357568}

Powered by Google App Engine
This is Rietveld 408576698