Commit Graph
4 Commits
Author SHA1 Message Date
Julian Descottes 1bb7ba8e3b Bug 1899389 - [devtools] Use credentials for devtools sourcemap fetch call r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D212059
2024-05-30 08:27:28 +00:00
Alexandre Poirot 58e1fc3a25 Bug 1829607 - [devtools] Fix exception message when original file failed loading. r=devtools-reviewers,nchevobbe
networkEvent was throwing string exception, which were poorly handled.

Differential Revision: https://phabricator.services.mozilla.com/D176348
2023-04-25 13:42:31 +00:00
Hubert Boma Manilla f8f50ae023 Bug 1790542 - [devtools] Do not allow redirects on the 'sourceMappingUrl' r=jdescottes,devtools-reviewers
- Block redirects on sourceMappingUrl
- Add debugger test

Differential Revision: https://phabricator.services.mozilla.com/D168648
2023-03-07 16:26:41 +00:00
Alexandre Poirot 8c00f1d413 Bug 1794693 - [devtools] Move devtools-source-map to regular mozilla-central code. r=bomsy,perftest-reviewers,jdescottes,sparky
This used to be a node package. Let's make it become regular commonjs devtools modules.
This will make it trivial to migrate this to ES Modules.
Also possibly make this code become the unique layer in m-c on top of the source-map package.

We no longer use webpack to build the two bundles (index.js and worker.js),
instead, we are using the toolkit worker loader (require.js) in order to load
all this code without any build step.

As this is no longer a node package, I removed node-specific modules (assertRoot/wasmAsset)
and simplify the definition of wasm file URIs as they are now fixed.

Also moving the debugger to load internal "devtools/client/shared/source-map/source-map.js"
module in jest as running the Web Worker instantiated by source-map/index.js is too complex.

Differential Revision: https://phabricator.services.mozilla.com/D159115
2022-11-08 16:01:01 +00:00