tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit a882955be1551c9b63b0b2303a5a6147f61e57e2
parent ad0d6dcc6255b656a839cbfe1c7ffcd9c0a83982
Author: stransky <stransky@redhat.com>
Date:   Thu,  4 Dec 2025 06:52:46 +0000

Bug 2002455 [Linux] Build portal code with enabled DBus only r=jhorak

Differential Revision: https://phabricator.services.mozilla.com/D274724

Diffstat:
Mtoolkit/system/gnome/nsGIOService.cpp | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/toolkit/system/gnome/nsGIOService.cpp b/toolkit/system/gnome/nsGIOService.cpp @@ -715,6 +715,8 @@ nsGIOService::GetAppForURIScheme(const nsACString& aURIScheme, nsIHandlerApp** aApp) { *aApp = nullptr; + // Portals works with DBus only. +#ifdef MOZ_ENABLE_DBUS // Application in flatpak sandbox does not have access to the list // of installed applications on the system. We use SchemeSupported // method to check if the URI scheme is supported and then use @@ -777,6 +779,7 @@ nsGIOService::GetAppForURIScheme(const nsACString& aURIScheme, mozApp.forget(aApp); return NS_OK; } +#endif RefPtr<GAppInfo> app_info = dont_AddRef(g_app_info_get_default_for_uri_scheme( PromiseFlatCString(aURIScheme).get()));