Clear Sources content reducer on each target/thread removal
Categories
(DevTools :: Debugger, task)
Tracking
(firefox114 fixed)
Tracking | Status | |
---|---|---|
firefox114 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(4 files)
Similarly to bug 1814177, sources content reducer should be clearer per target/thread removal in order to avoid sources text content when pausing during unload event.
Assignee | ||
Comment 1•2 years ago
|
||
In order to properly clear all reducers when thread is removed,
it is helpful to compute the list of source and source actor objects
alongside the REMOVE_THREAD action.
It is especially important for source objects which aren't bound to
any particular thread and are only cleared once all thread stopped
refering to a particular shared source url.
The list of source objects to be removed can only be computed based
on sources.js reducer data.
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
This help reduce the memory footprint when a target is removed, especially in the browser toolbox.
And it will help stop clearing the whole state on navigation.
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Comment 4•2 years ago
|
||
Instead of storing a subset of attributes, it would drastically simplify things
to store the source actors objects. These objects are immutable so it is safe
to store them into the reducer.
It will prevent having to do many ID to object lookup!
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/84473d29f48a
https://hg.mozilla.org/mozilla-central/rev/bb6bd39b293c
https://hg.mozilla.org/mozilla-central/rev/7e211af17b37
https://hg.mozilla.org/mozilla-central/rev/4b3a4ca27c4f
Description
•