Closed Bug 1745795 Opened 3 years ago Closed 3 years ago

Avoid confusions between SourceFront and source objects in debugger reducer

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox97 fixed)

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

At least in newGeneratedSources function, we refer to a source variable, which isn't the source object of the sources reducer:
https://searchfox.org/mozilla-central/rev/4646b826a25d3825cf209db890862b45fa09ffc3/devtools/client/debugger/src/actions/sources/newSources.js#281
This is actually a reference to a SourceFront.
The goals of this bug is to clarify that by renaming it to sourceFront.
Ideally, when we are using a source variable anywhere in debugger frontend, it should refer to the sources.js reducer objects.

I'm also removing the isBlackBoxed boolean from source actor in the reducer
in order to ensure we always only use the source reducer one.

And I dropped some comment here and there to help understand where all these sources objects are coming from.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5022fa8d4e3d [devtools] Avoid confusion between "reducer source" and "SourceFront" objects. r=bomsy
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Blocks: 1746370
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: