[WinLauncher][JCEF] JBR-6356 pass cef version together with sandbox info pointer

The version must be checked during JCEF initialization. Sandbox will be disabled if the version doesn't match.

GitOrigin-RevId: 17c1e390f08f389f651cf4c460ff6cad5c42b4c5
This commit is contained in:
Vladimir Kharitonov
2023-12-11 01:20:48 +01:00
committed by intellij-monorepo-bot
parent 30f92a8985
commit 019852a64e

View File

@@ -22,6 +22,7 @@
#ifdef USE_CEF_SANDBOX
#include "include/cef_sandbox_win.h"
#include "include/cef_version.h"
void* cef_sandbox_info = nullptr;
#endif // USE_CEF_SANDBOX
@@ -369,6 +370,7 @@ static void LoadVMOptions(const std::string &homeDir) {
char buf[64];
snprintf(buf, sizeof(buf), "-Djcef.sandbox.ptr=%p", cef_sandbox_info);
lines.push_back(std::string(buf));
lines.emplace_back(std::string("-Djcef.sandbox.cefVersion=") + CEF_VERSION);
}
#endif // USE_CEF_SANDBOX