Commit 3323155e authored by Kathleen Brade's avatar Kathleen Brade Committed by Georg Koppen
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 a3c9782c
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -1715,8 +1715,9 @@ DumpHelp()
         "  --profile <path>   Start with profile at <path>.\n"
         "  --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; implies\n"
         "                     --new-instance.\n"
         "  --allow-remote     Accept and send remote commands.\n"
         "  --new-instance     Open new instance, not a new window in running instance.\n"
         "  --UILocale <locale> Start with <locale> resources as UI Locale.\n"
         "  --safe-mode        Disables extensions and themes for this session.\n", (const char*) gAppData->name);
@@ -3866,6 +3867,12 @@ if (gSafeMode && SafeModeBlockedByPolicy()) {
                                       gSafeMode ? NS_LITERAL_CSTRING("1") :
                                                   NS_LITERAL_CSTRING("0"));

  // In Tor Browser, remoting is disabled by default unless -osint is used.
  bool allowRemote = (CheckArg("allow-remote") == ARG_FOUND);
  if (!allowRemote && (CheckArg("osint", false, nullptr, false) != ARG_FOUND)) {
    SaveToEnv("MOZ_NO_REMOTE=1");
  }

  // Handle --no-remote and --new-instance command line arguments. Setup
  // the environment to better accommodate other components and various
  // restart scenarios.
@@ -3874,8 +3881,9 @@ if (gSafeMode && SafeModeBlockedByPolicy()) {
    PR_fprintf(PR_STDERR, "Error: argument --no-remote is invalid when argument --osint is specified\n");
    return 1;
  }
  if (ar == ARG_FOUND) {
    SaveToEnv("MOZ_NO_REMOTE=1");
  if ((ar == ARG_FOUND) && allowRemote) {
    PR_fprintf(PR_STDERR, "Error: argument --no-remote is invalid when argument --allow-remote is specified\n");
    return 1;
  }

  ar = CheckArg("new-instance", true);