diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-14 17:06:30 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-14 17:06:30 +0100 |
commit | 4ce361d9ba9c6d22131a167d81c4bfd3674bbbe7 (patch) | |
tree | cf55e1598e59ef78b8d73f9446f5f7c5456c0f65 /ipc/glue | |
parent | 786417cf0fdce65ee642b1d126101ab79c72c847 (diff) | |
download | UXP-4ce361d9ba9c6d22131a167d81c4bfd3674bbbe7.tar UXP-4ce361d9ba9c6d22131a167d81c4bfd3674bbbe7.tar.gz UXP-4ce361d9ba9c6d22131a167d81c4bfd3674bbbe7.tar.lz UXP-4ce361d9ba9c6d22131a167d81c4bfd3674bbbe7.tar.xz UXP-4ce361d9ba9c6d22131a167d81c4bfd3674bbbe7.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/glue')
-rw-r--r-- | ipc/glue/GeckoChildProcessHost.cpp | 1 |
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))) { |