Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[GTK][WPE] Refactor the XDGDBusProxy launcher to simplify it and fix …
…some issues https://bugs.webkit.org/show_bug.cgi?id=236437 Reviewed by Adrian Perez de Castro. Source/WebCore: Make accessibility bus address API available for ATK too. * platform/graphics/PlatformDisplay.cpp: * platform/graphics/PlatformDisplay.h: * platform/graphics/x11/PlatformDisplayX11.cpp: * platform/graphics/x11/PlatformDisplayX11.h: Source/WebKit: This patch moves the XDGDBusProxy launcher implementation to its own file and fixes the following issues: - r289369 introduced an issue with old versions of bwrap that fails to mount over an existing file, so we need to ensure we only bind the original socket for the a11y socket and not the session bus one. - bindA11y is GTK specific for some reason, which means WPE doesn't have a11y under the sandbox. - The names of the socket paths for a11y and session bus use the same pattern dbus-proxy-XXXXXX, it helps to use a different one. - The code to get the a11y DBus address is now duplicated in PlatformDisplay, we can just use the PlatformDisplay to get the address. * SourcesGTK.txt: * SourcesWPE.txt: * UIProcess/Launcher/glib/BubblewrapLauncher.cpp: (WebKit::argumentsToFileDescriptor): (WebKit::bindDBusSession): (WebKit::bindA11y): (WebKit::bubblewrapSpawn): (WebKit::argsToFd): Deleted. (WebKit::XDGDBusProxyLauncher::setAddress): Deleted. (WebKit::XDGDBusProxyLauncher::isRunning const): Deleted. (WebKit::XDGDBusProxyLauncher::path const): Deleted. (WebKit::XDGDBusProxyLauncher::proxyPath const): Deleted. (WebKit::XDGDBusProxyLauncher::setPermissions): Deleted. (WebKit::XDGDBusProxyLauncher::launch): Deleted. (WebKit::XDGDBusProxyLauncher::makeProxyPath): Deleted. (WebKit::XDGDBusProxyLauncher::dbusAddressToPath): Deleted. (): Deleted. * UIProcess/Launcher/glib/BubblewrapLauncher.h: * UIProcess/Launcher/glib/XDGDBusProxy.cpp: Added. (WebKit::XDGDBusProxy::XDGDBusProxy): (WebKit::XDGDBusProxy::makeProxy const): (WebKit::XDGDBusProxy::launch const): * UIProcess/Launcher/glib/XDGDBusProxy.h: Added. (WebKit::XDGDBusProxy::proxyPath const): (WebKit::XDGDBusProxy::path const): Canonical link: https://commits.webkit.org/247059@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@289528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
a013922
commit 2dbb11247d999671af1c8bd14837fcf4961e1c53
Showing
12 changed files
with
350 additions
and
233 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
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
Oops, something went wrong.