2019-04-16 22:32:37 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
|
|
|
Date: Tue, 16 Apr 2019 11:25:08 -0700
|
2019-08-24 01:14:23 +00:00
|
|
|
Subject: unsandboxed_ppapi_processes_skip_zygote.patch
|
2019-04-16 22:32:37 +00:00
|
|
|
|
2019-08-24 01:14:23 +00:00
|
|
|
Unsandboxed ppapi processes should skip zygote.
|
2019-04-16 22:32:37 +00:00
|
|
|
|
|
|
|
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
|
2020-03-11 11:15:07 +00:00
|
|
|
index 0fa99dc66e837110595d993114bb12b93ebf8a2d..ff5eeec244933de21afa8f97c574c1c4988d83f1 100644
|
2019-04-16 22:32:37 +00:00
|
|
|
--- a/content/browser/ppapi_plugin_process_host.cc
|
|
|
|
+++ b/content/browser/ppapi_plugin_process_host.cc
|
2019-12-11 00:22:35 +00:00
|
|
|
@@ -123,6 +123,9 @@ class PpapiPluginSandboxedProcessLauncherDelegate
|
2019-04-16 22:32:37 +00:00
|
|
|
service_manager::ZygoteHandle GetZygote() override {
|
|
|
|
const base::CommandLine& browser_command_line =
|
|
|
|
*base::CommandLine::ForCurrentProcess();
|
|
|
|
+ if (browser_command_line.HasSwitch(service_manager::switches::kNoSandbox)) {
|
|
|
|
+ return nullptr;
|
|
|
|
+ }
|
|
|
|
base::CommandLine::StringType plugin_launcher = browser_command_line
|
|
|
|
.GetSwitchValueNative(switches::kPpapiPluginLauncher);
|
|
|
|
if (is_broker_ || !plugin_launcher.empty())
|