From 83f6efc33d67a9afe75544c215d1d9408bf4539d Mon Sep 17 00:00:00 2001 From: Moonchild Date: Mon, 22 Jun 2026 17:58:21 +0200 Subject: [PATCH] Issue #3122 - Put base paths in the json viewer client deps. The dependency modules are requested early. Seems CSP can block baseURL on these networking requests, so add the base manually to the resource paths to prevent network requests before the html base element is resolved and active. --- devtools/client/jsonview/converter-child.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devtools/client/jsonview/converter-child.js b/devtools/client/jsonview/converter-child.js index 13cf5b222a..8af71b106f 100644 --- a/devtools/client/jsonview/converter-child.js +++ b/devtools/client/jsonview/converter-child.js @@ -210,10 +210,10 @@ function initialHTML(doc) { let style = doc.createElement("link"); style.rel = "stylesheet"; style.type = "text/css"; - style.href = "css/main.css"; + style.href = base.href +"css/main.css"; let script = doc.createElement("script"); - script.src = "lib/require.js"; + script.src = base.href + "lib/require.js"; script.dataset.main = "viewer-config"; script.defer = true;