Skip to content

Commit

Permalink
feat: switch to chrome runtime bootstrap for Linux & macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tishion committed Dec 14, 2024
1 parent 7b7e6b6 commit 33ad940
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/linux/details/QCefContextPrivate_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ QCefContextPrivate::initializeCef(const QCefConfig* config)
CefSettings cef_settings;
QCefConfigPrivate::CopyToCefSettings(config, &cef_settings);

#if CEF_VERSION_MAJOR >= 125 && CEF_VERSION_MAJOR <= 127
// https://github.com/chromiumembedded/cef/issues/3685
cef_settings.chrome_runtime = true;
#endif

// fixed values
cef_settings.pack_loading_disabled = false;

Expand Down
5 changes: 5 additions & 0 deletions src/mac/details/QCefContextPrivate_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ - (void)_swizzled_run {
CefSettings cef_settings;
QCefConfigPrivate::CopyToCefSettings(config, &cef_settings);

#if CEF_VERSION_MAJOR >= 125 && CEF_VERSION_MAJOR <= 127
// https://github.com/chromiumembedded/cef/issues/3685
cef_settings.chrome_runtime = true;
#endif

// fixed values
CefString(&cef_settings.framework_dir_path) = cefFrameworkPath();
CefString(&cef_settings.browser_subprocess_path) = cefSubprocessPath();
Expand Down

0 comments on commit 33ad940

Please sign in to comment.