Closed Bug 1778647 Opened 3 years ago Closed 3 years ago

Store source's framework only once, in symbols

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(firefox104 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

We are currently duplicated source's framework in symbols and tabs reducers:
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/actions/sources/symbols.js#26-29
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/reducers/tabs.js#151

This is uncessary and confusing. And this possibly lead to more state/component updates.

This is mostly used to computed the source icon, where things are quite confusing as we are using symbols and tab's framework... which are the same thing!
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/utils/source.js#503-505
https://searchfox.org/mozilla-central/rev/5e6e08e53ca4f9f62e19bcbae542eef7824641ed/devtools/client/debugger/src/components/shared/SourceIcon.js#35-36

I extented test coverage to better cover the behavior of SourceIcon,
while simplifying a few things around this component by unifying the various places
where we compute the final icon, so that now it is only done by getSourceClassnames
and modifier.

We are currently duplicated source's framework in symbols and tabs reducers.
This is uncessary and confusing. And this possibly lead to more state/component updates.

This is mostly used to computed the source icon.
I extented test coverage to better cover the behavior of SourceIcon,
while simplifying a few things around this component by unifying the various places
where we compute the final icon, so that now it is only done by getSourceClassnames
and modifier.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/da2dde196383 [devtools] Store source's framework only once, in symbols. r=bomsy
Regressions: 1779228
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Regressions: 1809909
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: