diff options
author | Moonchild <moonchild@palemoon.org> | 2023-04-12 17:28:19 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-04-12 17:28:19 +0200 |
commit | 69868a9ad6db1104a0859d1560ae80d65c19bab5 (patch) | |
tree | 8f2da51f637dea942063311bfb63e760bf3ebfcf | |
parent | 3a6949f39845ba89fd3335c54572d06dfb7687e9 (diff) | |
download | uxp-69868a9ad6db1104a0859d1560ae80d65c19bab5.tar.gz |
[devtools] Don't allow sourcemap URLs to redirect
-rw-r--r-- | devtools/client/framework/source-map-worker.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/devtools/client/framework/source-map-worker.js b/devtools/client/framework/source-map-worker.js index b6ac2c121f..ec269778b8 100644 --- a/devtools/client/framework/source-map-worker.js +++ b/devtools/client/framework/source-map-worker.js @@ -87,7 +87,8 @@ async function _resolveAndFetch(generatedSource) : SourceMapConsumer { // Fetch the sourcemap over the network and create it. const sourceMapURL = _resolveSourceMapURL(generatedSource); const fetched = await fetch( - sourceMapURL, { loadFromCache: false } + sourceMapURL, { loadFromCache: false, + redirect: error } ); // Create the source map and fix it up. |