Skip to content

Commit

Permalink
Bug 1201438 - Fixup for builds with disabled sandbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjacek committed Sep 9, 2015
1 parent 99d50ff commit 8dc125d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ipc/glue/GeckoChildProcessHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,13 +984,15 @@ GeckoChildProcessHost::PerformAsyncLaunchInternal(std::vector<std::string>& aExt
{
base::LaunchApp(cmdLine, false, false, &process);

#ifdef MOZ_SANDBOX
// We need to be able to duplicate handles to non-sandboxed content
// processes, so add it as a target peer.
if (mProcessType == GeckoProcessType_Content) {
if (!mSandboxBroker.AddTargetPeer(process)) {
NS_WARNING("Failed to add content process as target peer.");
}
}
#endif
}

#else
Expand Down

0 comments on commit 8dc125d

Please sign in to comment.