[Webkit-unassigned] [Bug 231914] AX: Any addition of children should funnel through AccessibilityObject::addChild
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 19 08:22:24 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=231914
--- Comment #8 from Andres Gonzalez <andresg_22 at apple.com> ---
(In reply to Tyler Wilcock from comment #3)
> Created attachment 441675 [details]
> Patch
--- a/Source/WebCore/accessibility/AccessibilityTable.cpp
+++ a/Source/WebCore/accessibility/AccessibilityTable.cpp
+ // While `addChild` won't insert ignored children, we still need this accessibilityIsIgnored
+ // check so that `addChild` doesn't try to add the caption's children in its stead. Basically,
+ // explicitly checking accessibilityIsIgnored() ignores the caption and any of its children.
if (axCaption && !axCaption->accessibilityIsIgnored())
- m_children.append(axCaption);
+ addChild(axCaption);
Considering this and the SVG case, perhaps it is cleaner to add a bool recursive param to addChild.
--
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/20211019/22b72a9b/attachment.htm>
More information about the webkit-unassigned
mailing list