From 47bcca168ccc2e8cb09f21a8c2fda6a799b6a32e Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 12 Apr 2023 17:28:19 +0200 Subject: [PATCH] [devtools] Don't allow sourcemap URLs to redirect --- devtools/client/framework/source-map-worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.