Windows: Disable the sandbox if windows_sandbox_info is null

This restores the behavior prior to revision 438382c. Calling
InitializeSandboxInfo from inside libcef won’t work unless libcef is
statically linked with the executable, so there's no point in doing so.
See the Chromium sandbox docs for background.
This commit is contained in:
rcdrone 2020-04-02 21:11:16 +00:00 committed by Marshall Greenblatt
parent 1c14900093
commit bdaa857c49
1 changed files with 1 additions and 3 deletions

View File

@ -392,10 +392,8 @@ bool CefContext::Initialize(const CefMainArgs& args,
#if defined(OS_WIN) #if defined(OS_WIN)
sandbox::SandboxInterfaceInfo sandbox_info = {0}; sandbox::SandboxInterfaceInfo sandbox_info = {0};
if (windows_sandbox_info == nullptr) { if (windows_sandbox_info == nullptr) {
if (!settings.no_sandbox) {
content::InitializeSandboxInfo(&sandbox_info);
}
windows_sandbox_info = &sandbox_info; windows_sandbox_info = &sandbox_info;
settings_.no_sandbox = true;
} }
params.instance = args.instance; params.instance = args.instance;