summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-04-12 17:28:19 +0200
committerMoonchild <moonchild@palemoon.org>2023-04-12 17:28:19 +0200
commit69868a9ad6db1104a0859d1560ae80d65c19bab5 (patch)
tree8f2da51f637dea942063311bfb63e760bf3ebfcf /devtools
parent3a6949f39845ba89fd3335c54572d06dfb7687e9 (diff)
downloaduxp-69868a9ad6db1104a0859d1560ae80d65c19bab5.tar.gz
[devtools] Don't allow sourcemap URLs to redirect
Diffstat (limited to 'devtools')
-rw-r--r--devtools/client/framework/source-map-worker.js3
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.