Closed Bug 1667737 Opened 4 years ago Closed 4 years ago

Duplicated requests and multiselection issues

Categories

(DevTools :: Netmonitor, defect, P2)

defect

Tracking

(firefox83 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: Honza, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

Attached image image.png

STR:

  1. Load http://janodvarko.cz/tests/fission/case6/index.html
  2. Open DevTools Toolbox and select the Network panel
  3. Reload the page
  4. Note that all requests are displayed three times -> BUG
  5. Try to select one of the duplicated requests, three requests are selected at the same time -> BUG

Also requests, coming from the top level document seems to be incomplete.
See the attached screenshot.

This only happens with Fission

Honza

Hubert, can you reproduce this?

Honza

Flags: needinfo?(hmanilla)

:Honza, if you think that's a regression, then could you try to find a regression range in using for example mozregression?

In case of troubles to reproduce the issue, use back/forward buttons.

STR:

  1. Load http://janodvarko.cz/tests/fission/case6/index.html
  2. Open DevTools Toolbox and select the Network panel
  3. Click the Back button (Firefox toolbar)
  4. Click the Forward button (Firefox toolbar)
  5. All requests are multiplied -> BUG

The more you repeat steps #3 and #4 the more requests is multiplied.

Honza

I can reproduce even without Fission.

Honza

Summary: Duplicated requests and multiselection issues when Fission is enabled → Duplicated requests and multiselection issues

Yes i can reproduce. I think it might be related to the issue with Bug 1667225

Flags: needinfo?(hmanilla)
Priority: P3 → P2
Assignee: nobody → hmanilla

There is one more case reproducible with Fission only, but feels like the root issue could be the same:

  1. Load http://janodvarko.cz/tests/fission/case1/index.html
  2. Open DevTools Toolbox and select the Network panel
  3. Click the this same page link that loads the same page from different domain (causing Fission target-switch)
  4. Reload the page.
  5. All requests are multiplied -> BUG

Honza

One more case reproducible with Fission only:

  1. Load https://farooqar.github.io/sse-echo/
  2. Open DevTools Toolbox and select the Network panel
  3. Click the "Connect" button.
  4. The new request is there 3 times -> BUG

Honza

This has actually been made much more visible since bug 1663649 landed.

This issue relates to target-swiching. If you navigate between two processes, you will start seeing this issue.
This is because we start listening multiple times to the NETWORK_EVENT resource, everytime we have a top level target swiching.

Assignee: hmanilla → poirot.alex

We should register the resource listeners only once.
ResourceWatcher will automatically handle re-registering the per-target listener for us.

Attachment #9179184 - Attachment is obsolete: true
Attachment #9179803 - Attachment description: Bug 1667737 - Avoid registering resource listener twice on target switching from netmonitor. → Bug 1667737 - [devtools] Avoid registering resource listener twice on target switching from netmonitor.
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ed211f4f71d2
[devtools] Avoid registering resource listener twice on target switching from netmonitor. r=Honza
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: