Closed Bug 1840935 Opened 2 years ago Closed 2 years ago

Stop using isGeneratedId/isOriginalId in favor of source.isOriginal

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox117 fixed)

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(3 files)

There is quite a few callsites still using isGeneratedId(sourceId) and isOriginalId(sourceId) whereas we can query source.isOriginal attribute to make the distinction.
It will be faster as that's a boolean instead of a string comparison.

This will help then get rid of isGeneratedId(sourceId).

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5203cc3299d3 [devtools] Migrate getBreakpointForSource from sourceId to source. r=devtools-reviewers,bomsy https://hg.mozilla.org/integration/autoland/rev/e2d4ccb61381 [devtools] Move from isGeneratedId(source.id) to !source.isOriginal. r=devtools-reviewers,bomsy https://hg.mozilla.org/integration/autoland/rev/532ac41f7d99 [devtools] Move from isOriginalId(source.id) to !source.isOriginal. r=devtools-reviewers,bomsy
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: