[Webkit-unassigned] [Bug 230259] [GTK][a11y] Add initial WTR accessibility support when building with ATSPI

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 27 08:52:07 PDT 2021


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

--- Comment #2 from Andres Gonzalez <andresg_22 at apple.com> ---
(In reply to Carlos Garcia Campos from comment #1)
> Created attachment 442353 [details]
> Patch

--- a/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
+++ a/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
@@ -246,7 +246,11 @@ void* WKAccessibilityRootObject(WKBundlePageRef pageRef)
 #if ENABLE(ACCESSIBILITY)
     if (!pageRef)
         return 0;
-
+
+#if USE(ATSPI)
+    return WebKit::toImpl(pageRef)->accessibilityRootObject().child();
+#endif

Why the root obtained down below doesn't work for ATSPI?

    WebCore::AXCoreObject* root = core.document()->axObjectCache()->rootObject();
    if (!root)
        return 0;

    return root->wrapper();

-- 
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/20211027/3c147aa4/attachment.htm>


More information about the webkit-unassigned mailing list