diff --git a/devel/electron28/Makefile.version b/devel/electron28/Makefile.version index 5111451f0476..a528dba2ed93 100644 --- a/devel/electron28/Makefile.version +++ b/devel/electron28/Makefile.version @@ -1,2 +1,2 @@ -ELECTRON_VER= 28.3.0 +ELECTRON_VER= 28.3.1 ELECTRON_VER_MAJOR= ${ELECTRON_VER:C/\..*//} diff --git a/devel/electron28/distinfo b/devel/electron28/distinfo index 09571e71df4e..6e06227d0171 100644 --- a/devel/electron28/distinfo +++ b/devel/electron28/distinfo @@ -1,21 +1,21 @@ -TIMESTAMP = 1712911782 +TIMESTAMP = 1713473841 SHA256 (electron/chromium-120.0.6099.291.tar.xz) = edb20651392a67dbefced6489d2228a2b7d18ec2bbba4e5bbe355b34ba87fe49 SIZE (electron/chromium-120.0.6099.291.tar.xz) = 1578614892 SHA256 (electron/bb991b26ccca36a9b3912b51dec5b70e5dea9aea) = 8ada8e0554ecd02f649047f8f15a438590c67505b9f2e6a58fd973fe02c4ca52 SIZE (electron/bb991b26ccca36a9b3912b51dec5b70e5dea9aea) = 9782997 SHA256 (electron/336e775eec536b2d785cc80eff6ac39051931286) = a2ca2962daf482a8f943163541e1c73ba4b2694fabcd2510981f2db4eda493c8 SIZE (electron/336e775eec536b2d785cc80eff6ac39051931286) = 32624734 -SHA256 (electron/electron-yarn-cache-28.3.0.tar.xz) = ee4117440555d6be62f706646bb1b3c6737cc5b741b8e72377136c72a3474518 -SIZE (electron/electron-yarn-cache-28.3.0.tar.xz) = 29073696 -SHA256 (electron/electron-electron-v28.3.0_GH0.tar.gz) = 9ace77482b0f3f5a173cbc363785486eaea3e1b2604b22c1150751ce0addcef3 -SIZE (electron/electron-electron-v28.3.0_GH0.tar.gz) = 11504153 +SHA256 (electron/electron-yarn-cache-28.3.1.tar.xz) = ee4117440555d6be62f706646bb1b3c6737cc5b741b8e72377136c72a3474518 +SIZE (electron/electron-yarn-cache-28.3.1.tar.xz) = 29073696 +SHA256 (electron/electron-electron-v28.3.1_GH0.tar.gz) = 17fbdeab8ca413200d1cf0d06e6d813e49cd6cbae523a1dcb4a54e2ff0e2fa87 +SIZE (electron/electron-electron-v28.3.1_GH0.tar.gz) = 11508443 SHA256 (electron/nodejs-node-v18.18.2_GH0.tar.gz) = b1c20070ec2cfc930572e8d3c3f1de4be8bc7e2259956031db00709b7775a0da SIZE (electron/nodejs-node-v18.18.2_GH0.tar.gz) = 112758381 SHA256 (electron/nodejs-nan-e14bdcd1f72d62bca1d541b66da43130384ec213_GH0.tar.gz) = 02edf8d5b3fef9af94d8a1355da60564a57e7f2c99cb422bce042400607ed2eb SIZE (electron/nodejs-nan-e14bdcd1f72d62bca1d541b66da43130384ec213_GH0.tar.gz) = 180646 SHA256 (electron/Squirrel-Squirrel.Mac-0e5d146ba13101a1302d59ea6e6e0b3cace4ae38_GH0.tar.gz) = f4ebb40a8d85dbb7ef02aa0571b2f8e22182c6d73b6992484a53c90047779d01 SIZE (electron/Squirrel-Squirrel.Mac-0e5d146ba13101a1302d59ea6e6e0b3cace4ae38_GH0.tar.gz) = 2112918 SHA256 (electron/ReactiveCocoa-ReactiveObjC-74ab5baccc6f7202c8ac69a8d1e152c29dc1ea76_GH0.tar.gz) = 88e65f116c7a06fccedb43970fba63080a57a4e5dc29147d2cdfe1ee58dd0546 SIZE (electron/ReactiveCocoa-ReactiveObjC-74ab5baccc6f7202c8ac69a8d1e152c29dc1ea76_GH0.tar.gz) = 1136238 SHA256 (electron/Mantle-Mantle-78d3966b3c331292ea29ec38661b25df0a245948_GH0.tar.gz) = a365df6d83e0be3cc000b70bd39734d80c28f0d9983ebe44698337a2ca464bb1 SIZE (electron/Mantle-Mantle-78d3966b3c331292ea29ec38661b25df0a245948_GH0.tar.gz) = 62962 diff --git a/devel/electron28/files/patch-electron_BUILD.gn b/devel/electron28/files/patch-electron_BUILD.gn index 43c23c76a1e8..9f39a12abc2a 100644 --- a/devel/electron28/files/patch-electron_BUILD.gn +++ b/devel/electron28/files/patch-electron_BUILD.gn @@ -1,60 +1,60 @@ ---- electron/BUILD.gn.orig 2023-12-04 18:19:02 UTC +--- electron/BUILD.gn.orig 2024-04-16 10:35:16 UTC +++ electron/BUILD.gn @@ -519,7 +519,7 @@ source_set("electron_lib") { defines += [ "GDK_DISABLE_DEPRECATION_WARNINGS" ] } - if (!is_mas_build) { + if (!is_mas_build && !is_bsd) { deps += [ "//components/crash/core/app", "//components/crash/core/browser", @@ -612,6 +612,12 @@ source_set("electron_lib") { cflags_objcc = [ "-fobjc-weak" ] } } + if (is_bsd) { + sources -= [ + "shell/common/crash_keys.cc", + "shell/common/crash_keys.h", + ] + } if (is_linux) { libs = [ "xshmfence" ] deps += [ -@@ -1195,7 +1201,7 @@ if (is_mac) { +@@ -1197,7 +1203,7 @@ if (is_mac) { ":electron_lib", ":electron_win32_resources", ":packed_resources", - "//components/crash/core/app", + # "//components/crash/core/app", "//content:sandbox_helper_win", "//electron/buildflags", "//ui/strings", -@@ -1221,7 +1227,7 @@ if (is_mac) { +@@ -1223,7 +1229,7 @@ if (is_mac) { public_deps = [ "//tools/v8_context_snapshot:v8_context_snapshot" ] } - if (is_linux) { + if (is_linux && !is_bsd) { data_deps += [ "//components/crash/core/app:chrome_crashpad_handler" ] } -@@ -1288,7 +1294,7 @@ if (is_mac) { +@@ -1290,7 +1296,7 @@ if (is_mac) { configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] } - if (is_linux) { + if (is_linux && !is_bsd) { deps += [ "//sandbox/linux:chrome_sandbox" ] } } -@@ -1415,7 +1421,7 @@ dist_zip("electron_dist_zip") { +@@ -1417,7 +1423,7 @@ dist_zip("electron_dist_zip") { ":electron_version_file", ":licenses", ] - if (is_linux) { + if (is_linux && !is_bsd) { data_deps += [ "//sandbox/linux:chrome_sandbox" ] } deps = data_deps diff --git a/devel/electron28/files/patch-electron_shell_browser_api_electron__api__web__contents.cc b/devel/electron28/files/patch-electron_shell_browser_api_electron__api__web__contents.cc index 35c2c0e03639..9bf348ea8c62 100644 --- a/devel/electron28/files/patch-electron_shell_browser_api_electron__api__web__contents.cc +++ b/devel/electron28/files/patch-electron_shell_browser_api_electron__api__web__contents.cc @@ -1,61 +1,61 @@ ---- electron/shell/browser/api/electron_api_web_contents.cc.orig 2024-02-21 08:43:43 UTC +--- electron/shell/browser/api/electron_api_web_contents.cc.orig 2024-04-16 10:35:16 UTC +++ electron/shell/browser/api/electron_api_web_contents.cc -@@ -154,11 +154,11 @@ +@@ -153,11 +153,11 @@ #include "ui/base/cocoa/defaults_utils.h" #endif -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) #include "ui/linux/linux_ui.h" #endif -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) #include "ui/gfx/font_render_params.h" #endif -@@ -489,7 +489,7 @@ absl::optional GetCursorBlinkInterval +@@ -488,7 +488,7 @@ absl::optional GetCursorBlinkInterval ui::TextInsertionCaretBlinkPeriodFromDefaults()); if (system_value) return *system_value; -#elif BUILDFLAG(IS_LINUX) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) if (auto* linux_ui = ui::LinuxUi::instance()) return linux_ui->GetCursorBlinkInterval(); #elif BUILDFLAG(IS_WIN) -@@ -937,7 +937,7 @@ void WebContents::InitWithSessionAndOptions( +@@ -846,7 +846,7 @@ void WebContents::InitWithSessionAndOptions( accept_languages.pop_back(); prefs->accept_languages = accept_languages; -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) // Update font settings. static const gfx::FontRenderParams params( gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), nullptr)); -@@ -2640,7 +2640,7 @@ void WebContents::ForcefullyCrashRenderer() { +@@ -2549,7 +2549,7 @@ void WebContents::ForcefullyCrashRenderer() { content::RenderProcessHost* rph = rwh->GetProcess(); if (rph) { -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) // A generic |CrashDumpHungChildProcess()| is not implemented for Linux. // Instead we send an explicit IPC to crash on the renderer's IO thread. rph->ForceCrash(); -@@ -3318,7 +3318,7 @@ void WebContents::Focus() { +@@ -3229,7 +3229,7 @@ void WebContents::Focus() { void WebContents::Focus() { // Focusing on WebContents does not automatically focus the window on macOS // and Linux, do it manually to match the behavior on Windows. -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) if (owner_window()) owner_window()->Focus(true); #endif -@@ -4108,7 +4108,7 @@ ui::ImageModel WebContents::GetDevToolsWindowIcon() { +@@ -4019,7 +4019,7 @@ ui::ImageModel WebContents::GetDevToolsWindowIcon() { } #endif -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) void WebContents::GetDevToolsWindowWMClass(std::string* name, std::string* class_name) { *class_name = Browser::Get()->GetName(); diff --git a/devel/electron28/files/patch-electron_shell_browser_printing_printing__utils.cc b/devel/electron28/files/patch-electron_shell_browser_printing_printing__utils.cc new file mode 100644 index 000000000000..7a0cb7003b53 --- /dev/null +++ b/devel/electron28/files/patch-electron_shell_browser_printing_printing__utils.cc @@ -0,0 +1,11 @@ +--- electron/shell/browser/printing/printing_utils.cc.orig 2024-04-18 21:07:39 UTC ++++ electron/shell/browser/printing/printing_utils.cc +@@ -20,7 +20,7 @@ + #include + #endif + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include + #endif + diff --git a/devel/electron28/files/patch-electron_spec_chromium-spec.ts b/devel/electron28/files/patch-electron_spec_chromium-spec.ts index c3de79c2ad95..51b871331f19 100644 --- a/devel/electron28/files/patch-electron_spec_chromium-spec.ts +++ b/devel/electron28/files/patch-electron_spec_chromium-spec.ts @@ -1,44 +1,44 @@ ---- electron/spec/chromium-spec.ts.orig 2024-03-07 18:09:49 UTC +--- electron/spec/chromium-spec.ts.orig 2024-04-16 10:35:16 UTC +++ electron/spec/chromium-spec.ts @@ -470,13 +470,13 @@ describe('command line switches', () => { it('should not set an invalid locale', async () => testLocale('asdfkl', `${currentLocale}|${currentSystemLocale}|${currentPreferredLanguages}`)); const lcAll = String(process.env.LC_ALL); - ifit(process.platform === 'linux')('current process has a valid LC_ALL env', async () => { + ifit(process.platform === 'linux' || process.platform === 'freebsd')('current process has a valid LC_ALL env', async () => { // The LC_ALL env should not be set to DOM locale string. expect(lcAll).to.not.equal(app.getLocale()); }); - ifit(process.platform === 'linux')('should not change LC_ALL', async () => testLocale('fr', lcAll, true)); - ifit(process.platform === 'linux')('should not change LC_ALL when setting invalid locale', async () => testLocale('asdfkl', lcAll, true)); - ifit(process.platform === 'linux')('should not change LC_ALL when --lang is not set', async () => testLocale('', lcAll, true)); + ifit(process.platform === 'linux' || process.platform === 'freebsd')('should not change LC_ALL', async () => testLocale('fr', lcAll, true)); + ifit(process.platform === 'linux' || process.platform === 'freebsd')('should not change LC_ALL when setting invalid locale', async () => testLocale('asdfkl', lcAll, true)); + ifit(process.platform === 'linux' || process.platform === 'freebsd')('should not change LC_ALL when --lang is not set', async () => testLocale('', lcAll, true)); }); describe('--remote-debugging-pipe switch', () => { -@@ -2494,12 +2494,12 @@ describe('font fallback', () => { +@@ -2626,12 +2626,12 @@ describe('font fallback', () => { expect(fonts[0].familyName).to.equal('Arial'); } else if (process.platform === 'darwin') { expect(fonts[0].familyName).to.equal('Helvetica'); - } else if (process.platform === 'linux') { + } else if (process.platform === 'linux' || process.platform === 'freebsd') { expect(fonts[0].familyName).to.equal('DejaVu Sans'); } // I think this depends on the distro? We don't specify a default. }); - ifit(process.platform !== 'linux')('should fall back to Japanese font for sans-serif Japanese script', async function () { + ifit(process.platform !== 'linux' && process.platform !== 'freebsd')('should fall back to Japanese font for sans-serif Japanese script', async function () { const html = ` -@@ -2893,7 +2893,7 @@ describe('navigator.clipboard.write', () => { +@@ -3025,7 +3025,7 @@ describe('navigator.clipboard.write', () => { }); }); -ifdescribe((process.platform !== 'linux' || app.isUnityRunning()))('navigator.setAppBadge/clearAppBadge', () => { +ifdescribe(((process.platform !== 'linux' && process.platform !== 'freebsd') || app.isUnityRunning()))('navigator.setAppBadge/clearAppBadge', () => { let w: BrowserWindow; const expectedBadgeCount = 42;