Closed Bug 1705380 Opened 3 years ago Closed 3 years ago

The Network panel should be properly cleared when doing a server side top level target switch

Categories

(DevTools :: Netmonitor, defect, P3)

defect

Tracking

(Fission Milestone:M8, firefox91 fixed)

RESOLVED FIXED
91 Branch
Fission Milestone M8
Tracking Status
firefox91 --- fixed

People

(Reporter: Honza, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file)

STR:

  1. Load http://janodvarko.cz/tests/fission/case1/index.html
  2. Open DevTools and select the Network panel
  3. Click on the link - navigate to “this same page”.
  4. 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

See also:
Bug 1702511 - Ensure that console is cleared when doing a server side top level target switch

Component: Console → Netmonitor
See Also: → 1702511
Whiteboard: dt-fission-m3-triage

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?

Severity: -- → S3
Priority: -- → P3
Depends on: 1702511
Fission Milestone: --- → M8
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
See Also: → 1706388
Depends on: 1712592
Assignee: nobody → poirot.alex
Attachment #9223630 - Attachment description: Bug 1705380 - [devtools] Use DOCUMENT_EVENT will-navigate in netmonitor → Bug 1705380 - [devtools] Use DOCUMENT_EVENT will-navigate in netmonitor.
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3b9c65021c3d
[devtools] Use DOCUMENT_EVENT will-navigate in netmonitor. r=bomsy
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: