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:
parent
1c14900093
commit
bdaa857c49
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue