[Webkit-unassigned] [Bug 271674] New: AX: Mac layout tests shouldn't access attributes that aren't exposed for that element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 25 14:19:44 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=271674

            Bug ID: 271674
           Summary: AX: Mac layout tests shouldn't access attributes that
                    aren't exposed for that element
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dm_mazzoni at apple.com
                CC: andresg_22 at apple.com,
                    webkit-bug-importer at group.apple.com

AccessibilityUIElementMac accesses attributes by calling accessibilityAttributeValue on the underlying element. However, this doesn't mimic how VoiceOver and most other Mac AT actually work, they all check accessibilityAttributeNames first and don't bother querying for any attribute not contained in that list. So that leads to WebKit tests passing even though the attributes it's testing being effectively hidden from AT in practice.

By checking accessibilityAttributeNames in AccessibilityUIElementMac, we can catch these potential bugs sooner.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240325/61b57e72/attachment.htm>


More information about the webkit-unassigned mailing list