Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
canova opened this issue Sep 4, 2024 · 0 comments
Open

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

canova opened this issue Sep 4, 2024 · 0 comments
Labels
JS Execution Tracing Related to the new JS tracer implementation needs gecko patch This issue is blocked by a patch that must land in the Gecko codebase first source view Related to the source view feature

Comments

@canova
Copy link
Member

canova commented Sep 4, 2024

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.

@canova canova added needs gecko patch This issue is blocked by a patch that must land in the Gecko codebase first source view Related to the source view feature labels Sep 4, 2024
@canova canova added the JS Execution Tracing Related to the new JS tracer implementation label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS Execution Tracing Related to the new JS tracer implementation needs gecko patch This issue is blocked by a patch that must land in the Gecko codebase first source view Related to the source view feature
Projects
None yet
Development

No branches or pull requests

1 participant