From 438382c5df6bb5a2496acb5e26a8f80dd8a441d5 Mon Sep 17 00:00:00 2001 From: rcdrone Date: Thu, 5 Mar 2020 17:52:41 +0000 Subject: [PATCH] Windows: Skip InitializeSandboxInfo if no_sandbox is true The InitializeSandboxInfo method applies mitigations to the main process that are inappropriate when the sandbox is disabled. --- libcef/browser/context.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcef/browser/context.cc b/libcef/browser/context.cc index 2dfe81b3e..b8ba0cae0 100644 --- a/libcef/browser/context.cc +++ b/libcef/browser/context.cc @@ -392,9 +392,10 @@ bool CefContext::Initialize(const CefMainArgs& args, #if defined(OS_WIN) sandbox::SandboxInterfaceInfo sandbox_info = {0}; if (windows_sandbox_info == nullptr) { - content::InitializeSandboxInfo(&sandbox_info); + if (!settings.no_sandbox) { + content::InitializeSandboxInfo(&sandbox_info); + } windows_sandbox_info = &sandbox_info; - settings_.no_sandbox = true; } params.instance = args.instance;