diff options
author | Moonchild <moonchild@palemoon.org> | 2023-04-12 17:28:19 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-04-13 10:54:34 +0200 |
commit | 2a05494abe2a54b72ae9bfda5f7cc5244921fc4a (patch) | |
tree | 9f6916c0840e7130bc1f0580fd41f34f04c8db49 | |
parent | bc89e58def2ce07baa8d5a6ce3f24e5ecb95c346 (diff) | |
download | uxp-2a05494abe2a54b72ae9bfda5f7cc5244921fc4a.tar.gz |
[devtools] Don't allow sourcemap URLs to redirectRC_20230413
-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. |