Pass source and sourceActor objects in location objects.
Categories
(DevTools :: Debugger, task)
Tracking
(firefox113 fixed)
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(3 files, 1 obsolete file)
For now, we only pass the sourceId and sourceActorId.
But in most callsites we actually have the source and source actor objects in scope.
Then, in many places where we use the location object we do lookup for objects per IDs.
We could avoid these unecesary computations by passing these objects which are immutable.
Assignee | ||
Comment 1•3 years ago
|
||
This will help then craft a location with source
and sourceActor
objects from selectSource.
I migrated the unique usage of this method passing a location to selectSpecificLocation
as selectSource is mostly meant to avoid having to think about/create a location object.
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
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.
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
We were missing a few places around SourceMapLoader which creates location objects
without using debugger's createLocation helper. This doesn't help ensure all location are the same.
This will later be useful to assert that all location have source/sourceActor attributes.
Updated•2 years ago
|
Comment 5•2 years ago
|
||
Comment on attachment 9316795 [details]
Bug 1815500 - [devtools] Use location source and sourceActor attribute instead of re-querying the selectors.
Revision D169331 was moved to bug 1818495. Setting attachment 9316795 [details] to obsolete.
Comment 7•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3e0f3e8d355e
https://hg.mozilla.org/mozilla-central/rev/a272accd0045
https://hg.mozilla.org/mozilla-central/rev/a0cb36e2d903
Description
•