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

Issue 2348663002: Mac accessibility: only use AXTitleUIElement if that element has valid text. (Closed)

Created:
4 years, 3 months ago by dmazzoni
Modified:
4 years, 3 months ago
Reviewers:
Elly Fong-Jones
CC:
aboxhall+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie, nektar+watch_chromium.org, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac accessibility: only use AXTitleUIElement if that element has valid text. On Mac OS X, the accessible name of an object can be exposed in three different ways: AXTitle: for visible text AXDescription: for accessible text (like image "alt" or aria-label) AXTitleUIElement: for controls labeled by another element VoiceOver is kind of picky, it only wants us to expose just one of the three, not multiple ones, but to be more confusing it ignores AXTitleUIElement if it's not a control. The bug here was that there was an obscure case where a checkbox's name came from a label, but the label's text was "hidden" by a heuristic that tries to combine the checkbox and its text into a single element for simplicity. All of that is fine, but we were exposing AXTitleUIElement for the checkbox when the element it pointed to had empty text. The fix is just to make sure the element pointed to by AXTitleUIElement actually has text, otherwise we fall back on AXTitle. BUG=646846 Committed: https://crrev.com/837c2040011f4431c0e9e7b1bc938ca4106a33b1 Cr-Commit-Position: refs/heads/master@{#419313}

Patch Set 1 #

Patch Set 2 : Update more Mac expectations #

Patch Set 3 : Fix last expectation #

Messages

Total messages: 17 (12 generated)
dmazzoni
4 years, 3 months ago (2016-09-15 22:19:33 UTC) #2
Elly Fong-Jones
lgtm Nice fix :)
4 years, 3 months ago (2016-09-16 12:47:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2348663002/40001
4 years, 3 months ago (2016-09-16 21:40:49 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-16 22:45:43 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 22:48:41 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/837c2040011f4431c0e9e7b1bc938ca4106a33b1
Cr-Commit-Position: refs/heads/master@{#419313}

Powered by Google App Engine
This is Rietveld 408576698