Bug 1945252 - Part 1: Use the GeckoView ExternalHelperAppService on iOS, r=glandium

This is the backend used on Android, and we plan to use the same architecture
on iOS.

Differential Revision: https://phabricator.services.mozilla.com/D236401
This commit is contained in:
Nika Layzell
2025-02-18 21:19:18 +00:00
parent 002c094a5c
commit 8aa9303565
2 changed files with 4 additions and 3 deletions

View File

@@ -164,7 +164,7 @@ if defined('MOZ_ENABLE_DBUS'):
}, },
] ]
if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] == 'android': if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] in ('android', 'uikit'):
Classes += [ Classes += [
# Android has its own externel-helper-app-service, so we omit # Android has its own externel-helper-app-service, so we omit
# that here for nsExternalHelperAppService. # that here for nsExternalHelperAppService.

View File

@@ -53,6 +53,7 @@ NS_IMETHODIMP
nsOSHelperAppService::GetProtocolHandlerInfoFromOS(const nsACString& aScheme, nsOSHelperAppService::GetProtocolHandlerInfoFromOS(const nsACString& aScheme,
bool* found, bool* found,
nsIHandlerInfo** _retval) { nsIHandlerInfo** _retval) {
*found = false; // We don't want to get protocol handlers from the OS in GV; the app
return NS_OK; // should take care of that in NavigationDelegate.onLoadRequest().
return NS_ERROR_NOT_IMPLEMENTED;
} }