The Network panel should be properly cleared when doing a server side top level target switch
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(Fission Milestone:M8, firefox91 fixed)
Tracking | Status | |
---|---|---|
firefox91 | --- | fixed |
People
(Reporter: Honza, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
(Whiteboard: dt-fission-m3-mvp)
Attachments
(1 file)
STR:
- Load http://janodvarko.cz/tests/fission/case1/index.html
- Open DevTools and select the Network panel
- Click on the link - navigate to “this same page”.
- The Panel should show 5 requests, but there are usually just 3
AR: Not all requests are displayed
ER: All 5 requests are displayed
--
This looks like clearing the content happens at wrong time (too late?).
Honza
Reporter | ||
Comment 1•3 years ago
|
||
See also:
Bug 1702511 - Ensure that console is cleared when doing a server side top level target switch
Comment 2•3 years ago
|
||
Thanks for filing!
I was certain we already had a bug for this, but looks like we missed it.
From what I can remember: This is really specific to early network events. Those events are generated in the parent process (this is a critical but, we can never have a similar issue with a target scoped resource). And for a target switch, the initial document request is created before the new target is created.
Let's say we navigate from PAGE1.com to PAGE2.com, with server side target switching. When the navigation occurs, a network event will be emitted for the initial document load (and maybe for other very early requests as well) even before the JsWindowActor for PAGE2.com was created. So when we receive it on the client, the current target is still PAGE1.com and we associate this new document event with PAGE1.com.
So we'll need a way to associate this early request to the "next" target. Maybe the work from :nchevobbe to watch browsing-contexts super-early (ie before DOMWindowCreated) could be useful here?
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Updated•3 years ago
|
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3b9c65021c3d [devtools] Use DOCUMENT_EVENT will-navigate in netmonitor. r=bomsy
Comment 5•3 years ago
|
||
bugherder |
Description
•