Open Bug 1774600 Opened 3 years ago Updated 8 months ago

Tabs are not restored for sources notified late to the frontend

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: ochameau, Assigned: ochameau, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This is especially visible in the Browser Toolbox as we retrieve sources from many targets.

This issue comes from this code:
https://searchfox.org/mozilla-central/rev/ec3889f74d6b5695833280f4370ca0e9ba59a3e4/devtools/client/debugger/src/reducers/tabs.js#89-106
which will remove all previous tabs that are not maching a source.
This function is called any time a new source is added.
So typically on reload, or when reopening the browser toolbox, we will receive a first bucket of sources. ResourceCommand throttling actually helps here by grouping most of the sources in a unique bucket.
But then, any source notified after won't have their tab restored. That, unless if the source was the selected one.

I identified this while doing some cleanups in bug 1774583.

Assignee: nobody → poirot.alex

For now, we were reopening tabs only for sources available in the first bucket of sources.
Thanks to ResourceCommand throttling, most sources are available in one chunk after reload.
But if any comes late, their previously opened tab will be discarded.

Severity: -- → S3
Priority: -- → P3
Attachment #9281627 - Attachment description: Bug 1774600 - [devtools] Sources injected late should have their tab re-opened. → Bug 1774600 - [devtools] Sources injected late should have their tab re-opened. r=bomsy
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/23679cf5a9d7 [devtools] Sources injected late should have their tab re-opened. r=bomsy,devtools-reviewers
Pushed by chorotan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/df44ad7320d0 Revert "Bug 1774600 - [devtools] Sources injected late should have their tab re-opened. r=bomsy,devtools-reviewers" for causing dt failures at browser_dbg-tabs.js

Backed out for causing dt failures

Backout link

Push with failures

Failure log

Flags: needinfo?(poirot.alex)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: