From 3837792171db7e7027b76afac5c9e47c01a93365 Mon Sep 17 00:00:00 2001 From: wuggy Date: Mon, 14 Sep 2026 14:15:03 -0700 Subject: [PATCH] (attempt) to fix ubO latest (not PM ubO) --- dom/script/ScriptLoader.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp index acf5027949..3b00fc76f4 100644 --- a/dom/script/ScriptLoader.cpp +++ b/dom/script/ScriptLoader.cpp @@ -2848,6 +2848,13 @@ IsInternalURIScheme(nsIURI* uri) return true; } + // Extension channels resolve to file: or jar:file: internally. Module + // imports must retain the public extension origin as their base URL. + bool isExtension; + if (NS_SUCCEEDED(uri->SchemeIs("moz-extension", &isExtension)) && isExtension) { + return true; + } + return false; }