Commit 32dfc397 authored by Kathleen Brade's avatar Kathleen Brade Committed by Alex Catarineu
Browse files

Bug 11641: change TBB directory structure to be more like Firefox's

Unless the -osint command line flag is used, the browser now defaults
to the equivalent of -no-remote.  There is a new -allow-remote flag that
may be used to restore the original (Firefox-like) default behavior.
parent 1946e3f9
......@@ -1445,8 +1445,10 @@ static void DumpHelp() {
" --migration Start with migration wizard.\n"
" --ProfileManager Start with ProfileManager.\n"
" --no-remote Do not accept or send remote commands; implies\n"
" --no-remote (default) Do not accept or send remote commands; "
" --new-instance.\n"
" --allow-remote Accept and send remote commands.\n"
" --new-instance Open new instance, not a new window in running "
......@@ -3623,16 +3625,25 @@ int XREMain::XRE_mainInit(bool* aExitFlag) {
#if defined(MOZ_HAS_REMOTE)
// In Tor Browser, remoting is disabled by default unless -osint is used.
bool allowRemote = (CheckArg("allow-remote") == ARG_FOUND);
bool isOsint = (CheckArg("osint", nullptr, CheckArgFlag::None) == ARG_FOUND);
if (!allowRemote && !isOsint) {
// Handle --no-remote and --new-instance command line arguments. Setup
// the environment to better accommodate other components and various
// restart scenarios.
ar = CheckArg("no-remote");
if (ar == ARG_FOUND || EnvHasValue("MOZ_NO_REMOTE")) {
if ((ar == ARG_FOUND) && allowRemote) {
"Error: argument --no-remote is invalid when argument "
"--allow-remote is specified\n");
return 1;
if (EnvHasValue("MOZ_NO_REMOTE")) {
mDisableRemoteClient = true;
mDisableRemoteServer = true;
if (!EnvHasValue("MOZ_NO_REMOTE")) {
ar = CheckArg("new-instance");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment