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

Issue 741251 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug
Team-Security-UX
Team-Accessibility

Blocking:
issue 740827



Sign in to add a comment

Close [x] {does,doesn't} appear in focus tab order for {Mac,Other}

Project Member Reported by tapted@chromium.org, Jul 12 2017

Issue description

Chrome Version       : 61.0.3135.4
All platforms.

What steps will reproduce the problem?
0. On Mac: System Prefs -> Keyboard -> Shortcuts -> Ensure "All Controls is set under "Full Keyboard Access"
1. https://permission.site/ -> padlock -> ensure everything is set to Ask. Reload.
2. Click Notifications
3. Press Tab (a few times)

What is the expected result?

On all platforms, the same thing. Which is either:

 (a) Focus switches between the two dialog buttons, or
 (b) Focus switches between the two dialog buttons and the close [x]


What happens instead of that?

 - Mac does (b). Both with and without --secondary-ui-md
 - Everything else does (a).


Note this is separate to VoiceOver navigation, which should always navigate over the close [x], as well as labels in the dialog.

Plan: Do (a) on Mac as well -> https://codereview.chromium.org/2982533002


Note (b) happens on Mac with --secondary-ui-md because views::Button defaults to:

Button::Button(ButtonListener* listener)
    : listener_(listener),
      tag_(-1) {
  SetFocusBehavior(FocusBehavior::ACCESSIBLE_ONLY);
}


On non-Mac, this means the button only gets a Tab Stop when the button is in an AccessiblePaneView AND focus traversal is done via F6 rather than Tab.
On Mac this is what is controlled by System Prefs' "Full Keyboard Access" (Mac will never want or need AccessiblePaneView)


Basically.. this bug boils down to BubbleFrameView never making a conscious choice for what the focus behaviour for its button should be.

Since the dialog button close[x] is (effectively) additionally activated by ESC in DialogClientView, or is often a redundant button from some actual dialog button, then removing the close[x] from focus order on all platforms consistently seems the right choice to me. That's what https://codereview.chromium.org/2982533002 does. Note this does not affect the ability for a11y screen readers to focus and activate the close button (tested Windows Narrator and VoiceOver)
 
Project Member

Comment 1 by bugdroid1@chromium.org, Jul 13 2017

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

commit 5602cce8dce523ac65415a36db784361d80a6074
Author: tapted <tapted@chromium.org>
Date: Thu Jul 13 02:29:54 2017

Remove the BubbleFrameView close button from tab traversal on all platforms.

The button defaults to FocusBehavior::ACCESSIBLE_ONLY which (apart from
on Mac) only affects buttons in AccessiblePaneViews (which the close
button is not). Make it FocusBehavior::NEVER so the behaviour is
consistent across platforms.

Note this does not affect screen readers' ability to focus the element.
Keyboard access to this element when not using a screen reader is done
via the ESC key handler in DialogClientView.

BUG= 741251 

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

[modify] https://crrev.com/5602cce8dce523ac65415a36db784361d80a6074/ui/views/bubble/bubble_frame_view.cc

Comment 2 by tapted@chromium.org, Jul 13 2017

Status: Fixed (was: Started)
Cc: jmukthavaram@chromium.org
Labels: Needs-Feedback
Tested this issue on Mac 10.12.5 , windows 7 & Ubuntu 14.04 using chrome#61.0.3159.5 as per steps mentioned in comment#0.

Seems issue working as intended on Mac with mentioned steps (from 0 to 3).Focus switches between the two dialog buttons and the close [x].

On Windows 7 & Ubuntu 14.04 , As per steps from 1 to 3 - observed that focus switches between two dialog buttons but not moving to close [x].
Please find the attached screencast(Windows) for reference.

tapted@Please let us know how to set step 1(comment#0) on Windows & Linux?

Thanks in advance..!!


741251_mac.mp4
858 KB View Download
741251_windows.mp4
1.4 MB View Download

Comment 4 by tapted@chromium.org, Jul 18 2017

Mac needs to be tested with chrome://flags/#secondary-ui-md Enabled. Then it should be consistent with Windows/Linux, which was the goal of the change in #c1.
Jyothi.. Please enable the flag an verify the issue.

Sign in to add a comment