No calls to GeckoSession.NavigationDelegate#onLoadError when an ERROR_UNKNOWN_PROTOCOL occurs
Categories
(GeckoView :: General, defect, P1)
Tracking
(firefox68 wontfix, firefox69 wontfix, firefox70 wontfix, firefox71 fixed)
People
(Reporter: amejia, Assigned: droeh, NeedInfo)
References
Details
(Whiteboard: [geckoview:m1909] [geckoview:m1910])
Attachments
(1 file)
We are not getting any calls to GeckoSession.NavigationDelegate#onLoadError when an ERROR_UNKNOWN_PROTOCOL occurs.
You can reproduce this issue by trying to navigate to htt://invalid using the GeckoView Sample app. This should be shown an error page, but nothing is shown.
Related Fenix issue an Android Components issue.
Yeah, I can reproduce this.
We expect the app to handle things like intent://
in onLoadRequest
, but if it allows it to go through we should definitely display an error page. It looks like Gecko might be going into the "external app" machinery here which we really don't want.
Comment 3•5 years ago
|
||
Needs investigation. This is a bad user experience.
Comment 4•5 years ago
|
||
Fennec fixes this by catching the exception thrown by loadURI
and sending a LoadError
message: https://searchfox.org/mozilla-central/rev/07f7390618692fa4f2a674a96b9b677df3a13450/mobile/android/chrome/content/browser.js#1710-1728
However, I can't seem to find out what Desktop does for this case, it feels like there should be a better way to handle this.
Comment 5•5 years ago
|
||
I'm editing a bunch of GeckoView bugs. If you'd like to filter all this bugmail, search and destroy emails containing this UUID:
e88a5094-0fc0-4b7c-b7c5-aef00a11dbc9
Comment 6•5 years ago
|
||
Adding this bug to GV's September sprint.
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Dylan says he's working on this bug to remove the OS protocol handler code.
Assignee | ||
Comment 8•5 years ago
|
||
Pushed by droeh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/16d04cad3cf9 Do not search for OS protocol handlers in GV; just let Gecko return ERROR_UNKNOWN_PROTOCOL. r=snorp
Comment 10•5 years ago
•
|
||
Backed out changeset 16d04cad3cf9 for causing failures in test_handlerService_store and same-origin.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/329fde2dbe94b203fe93bb0ba4c87f78980d3f3f
Failure logs:
Comment 11•5 years ago
|
||
Tracking for GV's October sprint. Dylan says he'll fix the geo test failures soon and reland.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Pushed by droeh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/70cd4ff8583c Do not search for OS protocol handlers in GV; just let Gecko return ERROR_UNKNOWN_PROTOCOL. r=snorp,geckoview-reviewers,esawin
Comment 13•5 years ago
|
||
bugherder |
Description
•