-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=227528 Reviewed by Carlos Garcia Campos. WebKit maintains a complete AT-SPI accessible tree within the web process, under a separate D-Bus name. This conflicts with GTK4's expectations of having instances of GtkAccessible objects in process that can be built in an internal tree. GTK4 recently introduced support for bridging out-of-process AT-SPI accessible trees using a new GtkAtSpiSocket object that implements GtkAccessible [1]. The availability of this object is guarded by the GTK_ACCESSIBILITY_ATSPI ifdef. Use this new socket object from GTK to bridge the web page accessible tree, and the UI process' one. Mark the textview widget as hidden from the accessible tree. Create the GtkAtSpiSocket accessible when the web page reports to be ready. Inject the socket accessible as the first GtkAccessible child of WebKitWebViewBase. [1] https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6827 * Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp: (webkitWebViewBaseAccessibleGetFirstAccessibleChild): (webkitWebViewBaseAccessibleInterfaceInit): (webkitWebViewBaseSetPlugID): * Source/WebKit/UIProcess/API/gtk/WebKitWebViewBasePrivate.h: * Source/WebKit/UIProcess/gtk/KeyBindingTranslator.cpp: (WebKit::KeyBindingTranslator::KeyBindingTranslator): * Source/WebKit/UIProcess/gtk/WebPageProxyGtk.cpp: (WebKit::WebPageProxy::bindAccessibilityTree): * Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp: (WebKit::WebPage::platformInitialize): Canonical link: https://commits.webkit.org/274201@main
- Loading branch information
1 parent
eb1d01c
commit da96990
Showing
5 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters