From 982d087987201cd42385286dc02054ead14b80ef Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 31 Mar 2024 05:09:40 -0400 Subject: [PATCH] Ignore relative paths in PATH in Subprocess.pathSearch() Used by Utilities.Internal.subprocess() if a bare command is given --- app/scripts/fetch_xulrunner | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/scripts/fetch_xulrunner b/app/scripts/fetch_xulrunner index c3e9701c29..71cc5b41bc 100755 --- a/app/scripts/fetch_xulrunner +++ b/app/scripts/fetch_xulrunner @@ -162,6 +162,9 @@ function modify_omni { # Disable unwanted components remove_line '(RemoteSettings|services-|telemetry|Telemetry|URLDecorationAnnotationsService)' components/components.manifest + # Ignore relative paths in PATH in Subprocess.pathSearch(), used when bare command is passed to Utilities.Internal.subprocess() + replace_line 'let path = PathUtils.join\(dir, bin\);' 'if (!dir.startsWith("\/")) continue; let path = PathUtils.join(dir, bin);' modules/subprocess/subprocess_unix.sys.mjs + # Remove unwanted files rm modules/FxAccounts* # Causes a startup error -- try an empty file or a shim instead?