You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] PrivacyPolicyActivity WebView does not route non http(s) links out of the WebView #5065
PrivacyPolicyActivity (owncloudApp/src/main/java/com/owncloud/android/presentation/settings/privacypolicy/PrivacyPolicyActivity.kt) sets up its WebViewClient with only an onReceivedError override:
Because shouldOverrideUrlLoading is not overridden, every link the privacy policy page renders is loaded by the WebView itself. That has two visible effects:
A mailto: link in the policy text opens nothing. The WebView tries to load mailto:foo@example.com itself, fails, and the mail app never opens.
Any other non http(s) scheme that an app on the device could handle (tel:, geo:, intent:, market:) is swallowed by the WebView the same way instead of being handed to that app.
The page is remote (url_privacy_policy, https://owncloud.com/android-app-privacy-policy/ by default, and a branded build can point it somewhere else), so which links it contains is outside the app's control.
Suggested fix
Override shouldOverrideUrlLoading so http(s) navigations stay in the WebView and any other scheme is routed out. ActivityExt.kt already has goToUrl(url), which launches Intent.ACTION_VIEW inside a try/catch for ActivityNotFoundException and shows the file_list_no_app_for_perform_action snackbar, so a missing handler does not crash the Activity:
changed the title [-]PrivacyPolicyActivity WebView does not route non http(s) links out of the WebView[/-][+][BUG] PrivacyPolicyActivity WebView does not route non http(s) links out of the WebView[/+]on Nov 26, 2026
Activity
[-]PrivacyPolicyActivity WebView does not route non http(s) links out of the WebView[/-][+][BUG] PrivacyPolicyActivity WebView does not route non http(s) links out of the WebView[/+]joragua commentedon Nov 26, 2026
Hi @jim-daf! Thanks for opening this issue! 🍻
We will check this bug as soon as possible and try to fix it! Contributions are always welcome!
jesmrec commentedon Dec 2, 2026
Fixed in #5068
Will be part of the 5.0.0 incoming release.
Thanks for reporting @jim-daf !