Closed Bug 1878395 Opened 4 months ago Closed 3 months ago

Move the label exception checks into the try-catch block of AccessibilityUtils

Categories

(Testing :: General, task)

task

Tracking

(firefox125 fixed)

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: ayeddi, Assigned: ayeddi)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Per the recommendation from Jamie, we should consider moving the isUnlabeledUrlBarCombobox(accessible), isUnlabeledUrlBarOption(accessible), and isUnlabeledMenuitem(accessible) checks down here:

This makes the exception more specific. With that change, it won't be enough for the accessible to exist but have no name; the accessible must actually disappear after having no name. Most of the time, this will make no practical difference because clicking a URL bar option or menu item pretty much always makes it disappear. Still, it doesn't hurt to be super explicit about our exceptions.

This would make these exceptions more specific. After moving the isUnlabeledUrlBarOption() and isUnlabeledMenuitem() checks in the try-catch block, it won't be enough for the accessible to exist but have no name; the accessible must actually disappear after having no name. Most of the time, this will make no practical difference because clicking a URL bar option or menu item pretty much always makes it disappear. But the AccessibilityUtils would be more explicit about its exceptions.

Assignee: nobody → ayeddi
Status: NEW → ASSIGNED

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:ayeddi, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(jteh)
Flags: needinfo?(ayeddi)
Flags: needinfo?(jteh)

Resolved minor test issues and had a try run after rebasing to the current central. Pushing to Lando now.

Apologies for the ping, Jamie :)

Flags: needinfo?(ayeddi)
Pushed by ayeddi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1f89f18d3af8
Move label exception checks closer to their failing blocks of AccessibilityUtils. r=Jamie
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: