Closed Bug 1778947 Opened 2 years ago Closed 2 years ago

Compute source's file extension only once.

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)

For now, we recompute the source's file extension an handful times:
https://searchfox.org/mozilla-central/search?q=getFileExtension%28&case=true&path=debugger%2F

It would be nice to compute this only once. source.displayURL may be a good placeholder for it.

Also in 1777203, getFileExtension would be the only function still used from utils/sources-tree/ folder!

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3c37b03ac903
[devtools] Compute source file extension once in its displayURL. r=bomsy
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: