New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 605652 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug

Blocking:
issue 605657



Sign in to add a comment

MacViews: Extension install dialog has some confusion with buttons

Project Member Reported by shrike@chromium.org, Apr 21 2016

Issue description

What steps will reproduce the problem?
(1) Got to https://carlosjeurissen.com/black-menu-for-google
(2) Click the red Install button

The panel that appears (see screenshot) in the Shiny Modern style has Cancel as the Default button, and is positioned leftmost in the dialog (should be rightmost).

On the Mac, it's 99% of the time never the case that Cancel is the Default action in a panel. On the Mac, Cancel also has the Escape key as its keyboard shortcut, so if the intent behind making Cancel the Default action was to make it easy to invoke that button's action from the keyboard, it's already taken care of.

The fix should be to make "Add extension" be the default action (is there a camelcase version of this string? Extension should be capitalized on the Mac), and make sure Escape is hooked up to the Cancel button.

 
BGZKg00v2Lv.png
29.3 KB View Download
Blocking: 605657

Comment 2 by shrike@chromium.org, Apr 21 2016

ellyjones@ points out that Cancel in the current dialog is probably the Default button to prevent users from powering through the dialog and installing the extension without realizing. That makes sense - the Cancel button should swap places with the Add extension button, and it's title should be changed to be more informative ("Don't Add" or "Don't Add Extension" would be great but "No Thanks" is OK).

Project Member

Comment 3 by bugdroid1@chromium.org, Jul 19 2016

Status: Fixed (was: Assigned)
Fixed! The buttons are now far less confused.
Project Member

Comment 5 by bugdroid1@chromium.org, Jan 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/eaff8e380fa4ef7ad90a5929eb35ce81df786f70

commit eaff8e380fa4ef7ad90a5929eb35ce81df786f70
Author: karandeepb <karandeepb@chromium.org>
Date: Thu Jan 05 10:03:31 2017

MacViews: Ensure cancel buttons don't get default button styling.

r406276 introduced kDialogDefaultButtonCanBeCancel to ensure buttons with the
type DIALOG_BUTTON_CANCEL do not have default button styling on Mac.
Subsequently, r420488 made all default dialog buttons blue on Harfmony. This CL
changes DialogClientView::CreateDialogButton to take
kDialogDefaultButtonCanBeCancel into consideration before applying the default
button styling on Harmony. This ensures Cancel buttons under Harmony on MacViews
do not get the default button styling.

BUG=  678165 ,  605652 
TEST= On Mac, enable chrome://flags//secondary-ui-md. Open Collected Cookies
dialog. Ensure close button does not have default button styling.

Review-Url: https://codereview.chromium.org/2615563003
Cr-Commit-Position: refs/heads/master@{#441615}

[modify] https://crrev.com/eaff8e380fa4ef7ad90a5929eb35ce81df786f70/ui/views/window/dialog_client_view.cc

Sign in to add a comment