Closed Bug 1563343 Opened 5 years ago Closed 5 years ago

No calls to GeckoSession.NavigationDelegate#onLoadError when an ERROR_UNKNOWN_PROTOCOL occurs

Categories

(GeckoView :: General, defect, P1)

Unspecified
All
defect

Tracking

(firefox68 wontfix, firefox69 wontfix, firefox70 wontfix, firefox71 fixed)

RESOLVED FIXED
mozilla71
Tracking Status
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.

Needs investigation. This is a bad user experience.

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.

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

Priority: P1 → P2

Adding this bug to GV's September sprint.

Priority: P2 → P1
Whiteboard: [geckoview:fenix:m8] → [geckoview:fenix:m8] [geckoview:m1909]
Whiteboard: [geckoview:fenix:m8] [geckoview:m1909] → [geckoview:m1909]

Dylan says he's working on this bug to remove the OS protocol handler code.

Assignee: nobody → droeh
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

Tracking for GV's October sprint. Dylan says he'll fix the geo test failures soon and reland.

Whiteboard: [geckoview:m1909] → [geckoview:m1910]
Whiteboard: [geckoview:m1910] → [geckoview:m1909] [geckoview:m1910]
Attachment #9093635 - Attachment description: Bug 1563343 - Do not search for OS protocol handlers in GV; just let Gecko return ERROR_UNKNOWN_PROTOCOL. r=snorp! → Bug 1563343 - Do not search for OS protocol handlers in GV; just let Gecko return ERROR_UNKNOWN_PROTOCOL. r=#geckoview-reviewers!
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
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: