Page MenuHomePhabricator

Bug 1814652 - [devtools] Rename SourceMapLoader#applySourceMap and change its signature. r=ochameau.
ClosedPublic

Authored by nchevobbe on Feb 2 2023, 3:18 PM.
Referenced Files
Unknown Object (File)
Thu, May 8, 3:58 PM
Unknown Object (File)
Apr 1 2025, 8:00 PM
Unknown Object (File)
Mar 31 2025, 4:07 PM
Unknown Object (File)
Jan 14 2025, 4:16 AM
Unknown Object (File)
Apr 2 2023, 3:32 AM
Unknown Object (File)
Mar 9 2023, 7:53 PM
Subscribers

Details

Summary

Let's make it take an array of ids so we don't need
to create multiple SourceMapConsumer.

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Lint Not Applicable
Unit
Tests Not Applicable
Build Status
Buildable 505134
Build 601487: arc lint + arc unit

Event Timeline

phab-bot published this revision for review.Feb 2 2023, 3:18 PM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

Thanks a lot for this followup cleanup!

devtools/client/shared/source-map-loader/index.js
98–102

nitpick: You might replace ...rest with sourceMap. This would be slightly clearer as we only expect two arguments.

106

suggestion: This might be slightly clearer by also renaming this event to "source-map-created". This would better match SourceMapUrlService's newSourceMapCreated.

This revision is now accepted and ready to land.Feb 6 2023, 2:41 PM
nchevobbe edited the summary of this revision. (Show Details)
nchevobbe marked 2 inline comments as done.

rebase and address review comments

The analysis task source-test-mozlint-test-manifest failed, but we could not detect any issue.
Please check this task manually.


If you see a problem in this automated review, please report it here.