Closed
Bug 1515789
Opened 7 years ago
Closed 7 years ago
onLoadRequest is fired multiple times for a single page load
Categories
(GeckoView :: General, defect, P1)
Tracking
(firefox66 wontfix, firefox67 fixed)
RESOLVED
FIXED
mozilla67
People
(Reporter: rbarker, Assigned: snorp)
References
Details
(Whiteboard: [geckoview:fenix:p1])
Attachments
(1 file)
GeckoSession.NavigationDelegate.onLoadRequest() is called multiple time for a single page request. It isn't clear what is triggering the multiple calls. As an example, when loading codepen.io there are three onLoadRequests() calls made:
12-21 06:11:21.631 8852 8852 D VRB : onLoadRequest: http://codepen.io/
...
12-21 06:14:21.186 8852 8852 D VRB : onLoadRequest: https://i2.wp.com/static.codepen.io/assets/avatars/user-avatar-80x80-bdcd44a3bfb9a5fd01eb8b86f9e033fa1a9897c3a15b33adfc2649a002dab1b6.png?ssl=1
12-21 06:14:21.194 8852 8852 D VRB : onLoadRequest: https://i2.wp.com/static.codepen.io/assets/avatars/user-avatar-80x80-bdcd44a3bfb9a5fd01eb8b86f9e033fa1a9897c3a15b33adfc2649a002dab1b6.png?ssl=1
Comment 1•7 years ago
|
||
Is this a regression? Does this happen for every page load?
| Reporter | ||
Comment 2•7 years ago
|
||
Only certain pages seem to trigger this. I haven't had time to investigate what conditions cause multiple onLoadRequest to be called. It broke FxR user agent override because the subsequent calls to onLoadRequest were often not in the UA override list and was thus disabling it.
Updated•7 years ago
|
Priority: -- → P2
Comment 5•7 years ago
|
||
P1 because this bug affects PWAs and home screen shortcuts, a use case that we'd like to promote in Fenix.
Priority: P2 → P1
Whiteboard: [geckoview:fenix:p1]
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → snorp
| Assignee | ||
Comment 6•7 years ago
|
||
Updated•7 years ago
|
Attachment #9037590 -
Attachment description: Bug 1515789 - Ensure NavigationDelegate.onLoadRequest() is only called for toplevel redirects r?smaug → Bug 1515789 - Ensure nsILoadURIDelegate::loadURI() is only called for toplevel redirects. r?smaug
Pushed by jwillcox@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6cf4cace2387
Ensure nsILoadURIDelegate::loadURI() is only called for toplevel redirects. r=smaug,geckoview-reviewers,esawin
Comment 8•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox67:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•