Bug 1838502 - Don't expose a title for labels. r=morgan

THis is what VO expects, we apparently knew that but decided it wasn't worth fixing in the past

Differential Revision: https://phabricator.services.mozilla.com/D244050
This commit is contained in:
Eitan Isaacson
2025-04-22 22:07:02 +00:00
parent a39c7220f6
commit 5e15843b04
5 changed files with 29 additions and 14 deletions

View File

@@ -22,8 +22,8 @@ addAccessibleTask(
let n1 = getNativeInterface(accDoc, "n1");
let n1Label = n1.getAttributeValue("AXTitleUIElement");
// XXX: In Safari the label is an AXText with an AXValue,
// here it is an AXGroup witth an AXTitle
is(n1Label.getAttributeValue("AXTitle"), "Label");
// we emulate that so VoiceOver does not speak the label twice.
is(n1Label.getAttributeValue("AXTitle"), "");
let n2 = getNativeInterface(accDoc, "n2");
is(n2.getAttributeValue("AXDescription"), "Two Labels");