Closed Bug 1608985 Opened 2 years ago Closed 2 years ago

Denied onLoadRequest still loaded

Categories

(GeckoView :: General, defect, P1)

ARM64
All
defect

Tracking

(firefox75 fixed)

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: royang, Assigned: esawin)

Details

(Whiteboard: [geckoview:m75])

Attachments

(3 files)

URL was denied though onLoadRequest using AllowOrDeny.DENY return value. However, the URL is still loaded in GeckoView. Debugging Android Components seems to show that either the DENY return was ignored or there was a reload of the URL without going through onLoadRequest.

To reproduce:

  1. In Fenix, turn on Settings -> Open links in apps
  2. Google search "Obama youtube".
  3. Tap on one of the search result.
  4. YouTube app is launched and the video page is shown.
  5. Switch to Fenix

Expected result:
Fenix is showing the Google search result.

Actual result:
Fenix is showing the m.youtube.com page.

Investigate.

Rank: 5
Priority: -- → P2
Whiteboard: [geckoview:m75]
Rank: 5
Priority: P2 → P1
Assignee: nobody → esawin

Depends on D61703

Depends on D61704

Pushed by esawin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8a5f54eab2ac
[1.0] Veto redirect when loading is denied by the delegate. r=smaug
https://hg.mozilla.org/integration/autoland/rev/e7602052f14b
[2.0] Add LoadRequest debug string. r=geckoview-reviewers,snorp
https://hg.mozilla.org/integration/autoland/rev/ac23d692cfea
[3.0] Add denied redirect test. r=geckoview-reviewers,snorp
You need to log in before you can comment on or make changes to this bug.