Open Bug 2016040 Opened 9 months ago Updated 9 months ago

Netmonitor stops working after unloading the tab

Categories

(DevTools :: General, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: emk, Unassigned, NeedInfo)

References

Details

What were you doing?

  1. Open any http(s) URL in a new tab.
  2. Open Netmonitor.
  3. Detach the DevTools window. (Otherwise DevTools will close after step 4.)
  4. Unload the tab.
  5. Reload the unloaded tab.

What happened?

Netmonitor does not show network activities.

What should have happened?

Netmonitor should show network activities.

Anything else we should know?

Thanks for reporting! I see the issue.

Also subsequent reloads after that do not show anything. I think once a tab is unloaded the devtools
connection is broken. Maybe we should either close the detached devtools panel or try to connect again on reload.

Probably impact devtools as a whole.

Severity: -- → S3
Component: Netmonitor → General
Flags: needinfo?(hmanilla)
Priority: -- → P2

Bug 2008708 fixed RDM around tab unloading, which was about listening to TabBrowserDiscarded in addition to TabClose.
We destroy the TabDescriptor actor from here, which ultimately lead to toolbox closing.
We should be doing similar destruction, but also on TabBrowserDiscarded.

See Also: → 2008708

In triage I mentioned an similar issue with RDM, this was Bug 2008708, but it was about using discardBrowser, which is probably different from unloading tabs.

You need to log in before you can comment on or make changes to this bug.