profiler icon indicating copy to clipboard operation
profiler copied to clipboard

Request the user JS source code and source maps from Firefox

Open canova opened this issue 1 year ago • 0 comments

We would like to be able to get the source maps and show the JS source in the source code view eventually. To be able to do that, we have a way to request these from Firefox via webchannel. This requires changes on both the frontend and backend. This issue is for adding this webchannel support for the frontend.

Backend bug can be found here: https://bugzilla.mozilla.org/show_bug.cgi?id=1916785

Some notes from the past meeting:

  • We can reuse some of the devtools code to get source mapped and prettified version of a bundle.
  • First step: request it on profile load, but do not store it.
    • Question: store a hash that we could check when fetching it?
  • Later:
    • Drag and drop a source map.
    • Support WebAssembly files.

This is one of the tasks that belong to #3741.

┆Issue is synchronized with this Jira Task

canova avatar Sep 04 '24 18:09 canova