mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
[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:
committed by
intellij-monorepo-bot
parent
30f92a8985
commit
019852a64e
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user