Closed Bug 1822303 Opened 3 years ago Closed 2 years ago

Clear expanded and focusedItem in source-tree reducer on each target/thread removal

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox120 fixed)

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(3 files, 2 obsolete files)

Similarly to bug 1814177, expanded and focusedItem in the source-tree reducer should be clearer per target/thread removal in order to avoid breaking the source tree when pausing during unload event.

This reducer clears itself almost correctly on thread removal, except for expanded Set and focusedItem attribute.

This data is only used by the SourcesTree and updated by it,
so it rather ought to be a local state.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

The expanded props on SourcesTree duplicates the same props of ManagedTree, with no added value.

This data is only used by the SourcesTree and updated by it,
so it rather ought to be a local state.

Attachment #9329251 - Attachment is obsolete: true
Attachment #9329250 - Attachment description: Bug 1822303 - [devtools] Migrate SourcesTree expanded list from redux to react state. → Bug 1822303 - [devtools] Avoid unecessary clone of expanded Set.
Attachment #9329252 - Attachment is obsolete: true
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c9c70fd7098a [devtools] Remove unused Tree.itemHeight attribute. r=devtools-reviewers,bomsy https://hg.mozilla.org/integration/autoland/rev/8ae166d3e0de [devtools] Update expanded and focusedItem from the reducer on selected location change. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/a153c166d656 [devtools] Avoid unecessary clone of expanded Set. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: