Commit 810ba7e9 authored by Alex Catarineu's avatar Alex Catarineu
Browse files

Bug 31303: Do not launch tor in browser toolbox

parent 784dbc8b
......@@ -333,10 +333,13 @@ let TorLauncherUtil = // Public
const kPrefStartTor = "extensions.torlauncher.start_tor";
try
{
const kBrowserToolboxPort = "MOZ_BROWSER_TOOLBOX_PORT";
const kEnvSkipLaunch = "TOR_SKIP_LAUNCH";
var env = Cc["@mozilla.org/process/environment;1"]
.getService(Ci.nsIEnvironment);
if (env.exists(kBrowserToolboxPort))
return false;
if (env.exists(kEnvSkipLaunch))
return ("1" != env.get(kEnvSkipLaunch));
} catch(e) {}
......
Markdown is supported
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