tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit cc62581d15f70fcc46b53feb5a89e77580e76d83
parent cbe7ee8b10c8f12c5056d4f1ba23e119d5ad437c
Author: Stephen A Pohl <spohl@mozilla.com>
Date:   Mon, 10 Nov 2025 14:47:14 +0000

Bug 1996614: Remove 'wait-for-browser' command line argument on platforms other than Windows to prevent the subsequent command line argument from being ignored. r=mossop

The 'wait-for-browser' command line argument is only relevant on Windows. See bug 1481635.

Differential Revision: https://phabricator.services.mozilla.com/D271301

Diffstat:
Mtoolkit/xre/nsAppRunner.cpp | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp @@ -4458,6 +4458,12 @@ int XREMain::XRE_mainInit(bool* aExitFlag) { CheckArg("new-instance"); #endif +#ifndef XP_WIN + // This command line argument is only implemented on Windows. It should be + // removed from the command line if present on other platforms. + CheckArg("wait-for-browser"); +#endif + ar = CheckArg("offline"); if (ar || EnvHasValue("XRE_START_OFFLINE")) { mStartOffline = true;