Closed Bug 1818495 Opened 3 years ago Closed 3 years ago

Use location source and sourceActor attribute instead of re-querying the selectors.

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox113 fixed)

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

Bug 1815500 will start exposing source and sourceActor objects on all location objects.
We could then migrate all code using getLocationSource(getState, location) to location.source.
And also migrate many other code pattern doing the similar thing: query the selectors to map sourceId to the source actor.

A similar simplication is also possible for sourceActorId versus sourceActor.

Depends on: 1818494
Duplicate of this bug: 1815728

This may keep running async code whose source have been removed,
but this help remove various selectors lookups.

If we expect to check in async code if the source is still registered,
we should probably have an explicit API for this.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b54d15de5072 [devtools] Use location source and sourceActor attribute instead of re-querying the selectors. r=bomsy,devtools-reviewers
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Regressions: 1824375
Duplicate of this bug: 1798775
No longer regressions: 1824375
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: