onLoadRequest can change the order of loads (don't spin the event loop)
Categories
(GeckoView :: General, enhancement, P3)
Tracking
(geckoview62- wontfix, firefox-esr52 wontfix, firefox-esr60 wontfix, firefox61 wontfix, firefox62 wontfix, firefox63 wontfix, firefox64 wontfix, firefox65 wontfix, firefox66 affected)
People
(Reporter: jchen, Unassigned)
References
Details
Attachments
(4 files, 11 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
jchen
:
feedback+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
Updated•7 years ago
|
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 2•7 years ago
|
||
Reporter | ||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Reporter | ||
Comment 5•7 years ago
|
||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
Reporter | ||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
Comment 18•6 years ago
|
||
Reporter | ||
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
Comment 22•6 years ago
|
||
Comment 23•6 years ago
|
||
Comment 24•6 years ago
|
||
Comment 25•6 years ago
|
||
Comment 26•6 years ago
|
||
Comment 27•6 years ago
|
||
Comment 28•6 years ago
|
||
Comment 29•6 years ago
|
||
Comment 30•6 years ago
|
||
Comment 31•6 years ago
|
||
Comment 32•6 years ago
|
||
Comment 33•6 years ago
|
||
Comment 34•6 years ago
|
||
Comment 35•6 years ago
|
||
Comment 36•6 years ago
|
||
Comment 37•6 years ago
|
||
bugherder |
Comment 38•6 years ago
|
||
Reporter | ||
Comment 39•6 years ago
|
||
Comment 40•6 years ago
|
||
Comment 41•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 42•6 years ago
|
||
Comment 43•6 years ago
|
||
Comment 44•6 years ago
|
||
bugherder |
Comment 45•6 years ago
|
||
Comment 46•6 years ago
|
||
Comment 47•6 years ago
|
||
Comment 48•6 years ago
|
||
Reporter | ||
Comment 51•6 years ago
|
||
uplift |
Reporter | ||
Comment 52•6 years ago
|
||
uplift |
Comment 53•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 54•6 years ago
|
||
Reporter | ||
Comment 55•6 years ago
|
||
Comment 56•6 years ago
|
||
Reporter | ||
Comment 57•6 years ago
|
||
Reporter | ||
Comment 58•6 years ago
|
||
Comment 59•6 years ago
|
||
Reporter | ||
Comment 60•6 years ago
|
||
Comment 61•6 years ago
|
||
Reporter | ||
Comment 62•6 years ago
|
||
Comment 63•6 years ago
|
||
Comment 64•6 years ago
|
||
Comment 65•6 years ago
|
||
Comment 66•6 years ago
|
||
Comment 67•6 years ago
|
||
Comment 68•6 years ago
|
||
Comment 69•6 years ago
|
||
Reporter | ||
Comment 70•6 years ago
|
||
Comment 71•6 years ago
|
||
Comment 72•6 years ago
|
||
Comment 73•6 years ago
|
||
Comment 74•6 years ago
|
||
Comment 75•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 76•6 years ago
|
||
smaug and droeh, what status of this bug?
Since LoadURIDelegate in GV uses event loop, some strange behavior occurs such as bug 1511154. Bug 1511154 issue is that location.hash setter is called in touch event handler of user content, then it processes other events due to event loop in GV's LoadURIDelegate, so unexpected behavior occurs.
Comment 77•6 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #76)
smaug and droeh, what status of this bug?
Since LoadURIDelegate in GV uses event loop, some strange behavior occurs such as bug 1511154. Bug 1511154 issue is that location.hash setter is called in touch event handler of user content, then it processes other events due to event loop in GV's LoadURIDelegate, so unexpected behavior occurs.
I'm pretty much stalled on it. I have some alternate ideas to address the specific issue here (where we change the order of loads), but they'd leave LoadURIDelegate spinning the event loop, so it sounds like they won't help with bug 1511154. I did suggest to snorp some time ago that we might be better off just making onLoadRequest a synchronous API -- maybe we should consider revisiting that?
Comment 78•6 years ago
|
||
Quick update: I talked with snorp about this on Slack and he convinced me there's a viable approach to keeping the async API and not spinning the event loop; whichever of us finds time first will work on implementing that.
Comment 79•5 years ago
|
||
Adding another bug this blocks and removing myself as assignee as I have no clear way forward on this. In my opinion this needs either an entirely new (GV-specific) approach or serious involvement from the core Gecko side of things to make InternalLoad
async.
Updated•5 years ago
|
Comment 81•5 years ago
|
||
I had an idea for a totally different approach here that initially seemed to have some promise; listening for http-on-modify-request
and using nsIRequest.suspend()
(and .resume()
/.cancel()
) to wait for GV's response. Unfortunately I don't see any obvious way to get the window target to GV in this approach. Putting up this WIP in case anyone's interested or has any ideas on that.
Updated•5 years ago
|
Comment 82•5 years ago
|
||
Fixed by bug 1619798 🥳
Comment 83•4 years ago
|
||
(Clearing the old needinfo since this got fixed elsewhere :) )
Description
•