Add the GPU process as a sandbox broker peer. (bug 1289895, r=bobowen)

This commit is contained in:
David Anderson 2016-07-27 23:17:54 -07:00
Родитель 87cb739adf
Коммит a733ab7fa3
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -1125,9 +1125,10 @@ 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 and GMP
// processes, so add it as a target peer.
// We need to be able to duplicate handles to some types of non-sandboxed
// child processes.
if (mProcessType == GeckoProcessType_Content ||
mProcessType == GeckoProcessType_GPU ||
mProcessType == GeckoProcessType_GMPlugin) {
if (!mSandboxBroker.AddTargetPeer(process)) {
NS_WARNING("Failed to add content process as target peer.");