[Webkit-unassigned] [Bug 262351] New: AX: AccessibilityRenderObject::updateRoleAfterChildrenCreation causes unnecessary AXRoleChanged notifications for several subclasses

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 28 18:23:15 PDT 2023


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

            Bug ID: 262351
           Summary: AX:
                    AccessibilityRenderObject::updateRoleAfterChildrenCrea
                    tion causes unnecessary AXRoleChanged notifications
                    for several subclasses
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tyler_w at apple.com
                CC: andresg_22 at apple.com,
                    webkit-bug-importer at group.apple.com

AccessibilityRenderObject::updateRoleAfterChildrenCreation is predicated on the assumption that the class uses m_role. However, many subclasses don't, instead hard-coding a value like so:

AccessibilityRole roleValue() const final { return AccessibilityRole::Label; }

This means that m_role (not actually used) may differ from roleValue(), causing updateRoleAfterChildrenCreation to post a spurious AXRoleChanged notification every time the object's children are cleared and re-added, in turn causing lots of wasted work.

-- 
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/20230929/ac2ee83a/attachment.htm>


More information about the webkit-unassigned mailing list