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

Issue 40733005: [Mac] Update the warnings UI for malicious downloads. (Closed)

Created:
7 years, 2 months ago by asanka
Modified:
7 years, 1 month ago
Reviewers:
Nico
CC:
chromium-reviews, benjhayden+dwatch_chromium.org
Base URL:
ssh://asankaworkstation.cam.corp.google.com/home/asanka/l/git/src.git@master
Visibility:
Public.

Description

[Mac] Update the warnings UI for malicious downloads. When SafeBrowsing detects that a download is malicious, the user is only presented with a 'Dismiss' option. Additional options ('Learn more' and optionally 'Report', if applicable) are available from a context menu. This behavior has been available on the Windows build. This change brings the Mac UI up to parity. XIB Changes (DownloadItem.xib): * Add new controls for malicious downloads: * New GTMWidthBasedTweaker for managing the size of 'Dismiss' button connected to maliciousButtonTweaker: IBOutlet. * New 'Dismiss' push button connected to dismissMaliciousDownload: IBAction. * New disclosure button connected to showContextMenu: IBAction. * Change connection for GTMWidthBasedTweaker containing 'Discard' button to dangerousButtonTweaker: IBOutlet. * Anchor WidthBasedTweakers on the left instead of the right since the code assumes that the tweakers don't shift horizontally when the embedded buttons change size. * Change height of Insecure Download NSBox to match the height of the DownloadItemButton. * Adjust position of buttons for both dangerous and malicious downloads so that they are centered in the download shelf. BUG=235931 TEST=(1) Download something from a URL that is identified by SafeBrowsing as malicious. (2) Check that the download shelf displays a warning indicating that the download was malicious and that it was blocked. There should only be a "Dismiss" button and a disclosure button. (3) Click on the disclosure button. It should display a menu with a 'Learn more' item. Clicking on that item should open the SafeBrowsing help center article. (4) Click on the 'Dismiss' button. The warning should go away. If it was the only download, the shelf should also disappear. (5) Open chrome://downloads. The download should still be here with a 'Recover' option and a 'Remove' option.

Patch Set 1 : #

Patch Set 2 : Use a disclosure button instead. #

Patch Set 3 : 'Dismiss' instead of 'Discard' for malicious downloads. #

Total comments: 5

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -69 lines) Patch
M chrome/app/nibs/DownloadItem.xib View 1 2 20 chunks +231 lines, -23 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_controller.h View 1 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_controller.mm View 1 2 3 chunks +76 lines, -42 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
asanka
Screenshot at https://code.google.com/p/chromium/issues/detail?id=235931#c5 The objective is to make the malicious download warning only allow 'Discard' ...
7 years, 2 months ago (2013-10-24 21:07:28 UTC) #1
Nico
The screenshot looks like the "this is dangerous" thingy now looks like a regular download ...
7 years, 2 months ago (2013-10-24 21:50:16 UTC) #2
asanka
On 2013/10/24 21:50:16, Nico wrote: > The screenshot looks like the "this is dangerous" thingy ...
7 years, 2 months ago (2013-10-24 22:24:26 UTC) #3
Nico
On Thu, Oct 24, 2013 at 3:24 PM, <asanka@chromium.org> wrote: > On 2013/10/24 21:50:16, Nico ...
7 years, 2 months ago (2013-10-24 22:25:12 UTC) #4
asanka
On 2013/10/24 22:25:12, Nico wrote: > On Thu, Oct 24, 2013 at 3:24 PM, <mailto:asanka@chromium.org> ...
7 years, 2 months ago (2013-10-24 22:34:01 UTC) #5
asanka
On 2013/10/24 22:34:01, asanka wrote: > On 2013/10/24 22:25:12, Nico wrote: > > On Thu, ...
7 years, 2 months ago (2013-10-24 23:55:39 UTC) #6
Nico
That doesn't look much different from the previous screenshot. Can't you keep the previous look ...
7 years, 2 months ago (2013-10-24 23:59:08 UTC) #7
asanka
On 2013/10/24 23:59:08, Nico wrote: > That doesn't look much different from the previous screenshot. ...
7 years, 2 months ago (2013-10-25 00:07:25 UTC) #8
asanka
On 2013/10/25 00:07:25, asanka wrote: > On 2013/10/24 23:59:08, Nico wrote: > > That doesn't ...
7 years, 1 month ago (2013-10-25 16:35:27 UTC) #9
asanka
On 2013/10/25 16:35:27, asanka wrote: > On 2013/10/25 00:07:25, asanka wrote: > > On 2013/10/24 ...
7 years, 1 month ago (2013-10-25 19:22:36 UTC) #10
asanka
ping?
7 years, 1 month ago (2013-10-29 20:51:25 UTC) #11
asanka
On 2013/10/29 20:51:25, asanka wrote: > ping? thakis: ping again?
7 years, 1 month ago (2013-11-01 21:31:37 UTC) #12
Nico
lgtm I like this much better. Sorry for the delay! https://codereview.chromium.org/40733005/diff/170001/chrome/app/nibs/DownloadItem.xib File chrome/app/nibs/DownloadItem.xib (right): https://codereview.chromium.org/40733005/diff/170001/chrome/app/nibs/DownloadItem.xib#newcode1 ...
7 years, 1 month ago (2013-11-02 00:13:51 UTC) #13
Nico
lgtm I like this much better. Sorry for the delay!
7 years, 1 month ago (2013-11-02 00:14:07 UTC) #14
asanka
Thanks! https://codereview.chromium.org/40733005/diff/170001/chrome/app/nibs/DownloadItem.xib File chrome/app/nibs/DownloadItem.xib (right): https://codereview.chromium.org/40733005/diff/170001/chrome/app/nibs/DownloadItem.xib#newcode1 chrome/app/nibs/DownloadItem.xib:1: <?xml version="1.0" encoding="UTF-8"?> On 2013/11/02 00:13:51, Nico wrote: ...
7 years, 1 month ago (2013-11-02 05:41:36 UTC) #15
asanka
https://codereview.chromium.org/40733005/diff/170001/chrome/browser/ui/cocoa/download/download_item_controller.mm File chrome/browser/ui/cocoa/download/download_item_controller.mm (right): https://codereview.chromium.org/40733005/diff/170001/chrome/browser/ui/cocoa/download/download_item_controller.mm#newcode341 chrome/browser/ui/cocoa/download/download_item_controller.mm:341: forView:[self view]]; On 2013/11/02 05:41:36, asanka wrote: > On ...
7 years, 1 month ago (2013-11-04 16:53:46 UTC) #16
asanka
7 years, 1 month ago (2013-11-04 22:04:23 UTC) #17
Message was sent while issue was closed.
Closed due to busted Base URL and moved to
https://codereview.chromium.org/57963005/.

Powered by Google App Engine
This is Rietveld 408576698