summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-02-14 17:06:30 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:44:02 +0200
commit9670bdb685d50dfb630dddcd471aa7699f23106e (patch)
treee7a12413a71d9ae873cf6986e36f2cf496ec11bb /ipc
parent8fa80e2c8d3d79ba2ee7481d1defbec50d7a0942 (diff)
downloadUXP-9670bdb685d50dfb630dddcd471aa7699f23106e.tar
UXP-9670bdb685d50dfb630dddcd471aa7699f23106e.tar.gz
UXP-9670bdb685d50dfb630dddcd471aa7699f23106e.tar.lz
UXP-9670bdb685d50dfb630dddcd471aa7699f23106e.tar.xz
UXP-9670bdb685d50dfb630dddcd471aa7699f23106e.zip
Issue #1441 - Guard appomni/greomni with UXP_CUSTOM_OMNI env var.
This adds an addition to the environment set up for child processes (plugin container) so that it may still be able to pass the omni parameters there as-needed.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/glue/GeckoChildProcessHost.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/glue/GeckoChildProcessHost.cpp b/ipc/glue/GeckoChildProcessHost.cpp
index ea76f85f0..9e83a8729 100644
--- a/ipc/glue/GeckoChildProcessHost.cpp
+++ b/ipc/glue/GeckoChildProcessHost.cpp
@@ -712,6 +712,7 @@ GeckoChildProcessHost::PerformAsyncLaunchInternal(std::vector<std::string>& aExt
if (Omnijar::IsInitialized()) {
// Make sure that child processes can find the omnijar
// See XRE_InitCommandLine in nsAppRunner.cpp
+ newEnvVars["UXP_CUSTOM_OMNI"] = 1;
nsAutoCString path;
nsCOMPtr<nsIFile> file = Omnijar::GetPath(Omnijar::GRE);
if (file && NS_SUCCEEDED(file->GetNativePath(path))) {