Skip to content

Request the user JS source code and source maps from Firefox #5110

Open
@canova

Description

@canova

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    JS Execution TracingRelated to the new JS tracer implementationneeds gecko patchThis issue is blocked by a patch that must land in the Gecko codebase firstsource viewRelated to the source view feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions