git: 24bf3f7633de - main - devel/electron40: Update to 40.8.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Mar 2026 08:04:19 UTC
The branch main has been updated by tagattie:
URL: https://cgit.FreeBSD.org/ports/commit/?id=24bf3f7633de354046006cb4e487558251f711bf
commit 24bf3f7633de354046006cb4e487558251f711bf
Author: Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-03-10 07:57:29 +0000
Commit: Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-03-10 08:04:10 +0000
devel/electron40: Update to 40.8.0
Changelog:
- https://github.com/electron/electron/releases/tag/v40.7.0
- https://github.com/electron/electron/releases/tag/v40.8.0
Reported by: GitHub (watch releases)
---
devel/electron40/Makefile | 6 ++---
devel/electron40/Makefile.version | 2 +-
devel/electron40/distinfo | 26 +++++++++++-----------
.../electron40/files/patch-electron_filenames.gni | 4 ++--
.../files/patch-electron_script_lib_config.py | 5 +++--
...ell_browser_api_electron__api__web__contents.cc | 16 ++++++-------
...hell_browser_api_electron__api__web__contents.h | 4 ++--
...electron_shell_browser_native__window__views.cc | 26 +++++++++++-----------
..._shell_browser_ui_inspectable__web__contents.cc | 4 ++--
.../patch-electron_shell_common_node__bindings.cc | 4 ++--
.../patch-electron_spec_api-browser-window-spec.ts | 4 ++--
11 files changed, 51 insertions(+), 50 deletions(-)
diff --git a/devel/electron40/Makefile b/devel/electron40/Makefile
index 3863e0c69051..9bbfff81758a 100644
--- a/devel/electron40/Makefile
+++ b/devel/electron40/Makefile
@@ -4,7 +4,7 @@ DISTVERSION= ${ELECTRON_VER}
PULSEMV= 16
PULSEV= ${PULSEMV}.1
CATEGORIES= devel
-MASTER_SITES= https://github.com/tagattie/FreeBSD-Electron/releases/download/v40.6.1/:chromium \
+MASTER_SITES= https://github.com/tagattie/FreeBSD-Electron/releases/download/v40.8.0/:chromium \
https://freedesktop.org/software/pulseaudio/releases/:pulseaudio
PKGNAMESUFFIX= ${ELECTRON_VER_MAJOR}
DISTFILES= chromium-${CHROMIUM_VER}${EXTRACT_SUFX}.0:chromium \
@@ -215,9 +215,9 @@ SNDIO_VARS= GN_ARGS+=use_sndio=true
SNDIO_VARS_OFF= GN_ARGS+=use_sndio=false
# See ${WRKSRC}/electron/DEPS for CHROMIUM_VER
-CHROMIUM_VER= 144.0.7559.220
+CHROMIUM_VER= 144.0.7559.236
# See ${WRKSRC}/electron/DEPS for NODE_VER
-NODE_VER= 24.13.1
+NODE_VER= 24.14.0
# See ${WRKSRC}/electron/DEPS for NAN_VER
NAN_VER= 675cefebca42410733da8a454c8d9391fcebfbc2
# See ${WRKSRC}/electron/DEPS for SQUIRREL_MAC_VER
diff --git a/devel/electron40/Makefile.version b/devel/electron40/Makefile.version
index f2e99fc17100..fab5898378b5 100644
--- a/devel/electron40/Makefile.version
+++ b/devel/electron40/Makefile.version
@@ -1,2 +1,2 @@
-ELECTRON_VER= 40.6.1
+ELECTRON_VER= 40.8.0
ELECTRON_VER_MAJOR= ${ELECTRON_VER:C/\..*//}
diff --git a/devel/electron40/distinfo b/devel/electron40/distinfo
index 95e9164b2318..35f1f9ac3454 100644
--- a/devel/electron40/distinfo
+++ b/devel/electron40/distinfo
@@ -1,20 +1,20 @@
-TIMESTAMP = 1772040585
-SHA256 (electron/chromium-144.0.7559.220.tar.xz.0) = 7f167d2121e6586cb75cd54d9bd5ee49dcda94891aa0cd81070b61a5bab03a20
-SIZE (electron/chromium-144.0.7559.220.tar.xz.0) = 2000000000
-SHA256 (electron/chromium-144.0.7559.220.tar.xz.1) = 4de57fa424177d631d80da16484a8e929096c09455b5e4d26c13789289e263b1
-SIZE (electron/chromium-144.0.7559.220.tar.xz.1) = 2000000000
-SHA256 (electron/chromium-144.0.7559.220.tar.xz.2) = 4717514631abea8d43f8a83ca497752a343b8698a8e8afe06160f1c540ee87a3
-SIZE (electron/chromium-144.0.7559.220.tar.xz.2) = 306999316
+TIMESTAMP = 1772976514
+SHA256 (electron/chromium-144.0.7559.236.tar.xz.0) = 21556e44d5f5e464a7603afc1e912127c4546d3c55d777055614b769247d2714
+SIZE (electron/chromium-144.0.7559.236.tar.xz.0) = 2000000000
+SHA256 (electron/chromium-144.0.7559.236.tar.xz.1) = 389e96ab80e7f3ea7a330060c51ed714f2277810b13bbd1d72bb9e6119dce3a2
+SIZE (electron/chromium-144.0.7559.236.tar.xz.1) = 2000000000
+SHA256 (electron/chromium-144.0.7559.236.tar.xz.2) = 3783608e8c802c5660a7c2ea12d9e16ae6f534eb739c155c0de4b42eca358c3e
+SIZE (electron/chromium-144.0.7559.236.tar.xz.2) = 309499476
SHA256 (electron/pulseaudio-16.1.tar.gz) = 027266c62f2a84422ac45fa721a649508f0f1628fb1fd9242315ac54ce2d7c92
SIZE (electron/pulseaudio-16.1.tar.gz) = 2763111
SHA256 (electron/yarn-4.12.0.tgz) = bd58d06826ce9542c4cd904fe10bab7bc718ea2cc39a45d9fbd15f2edb45761c
SIZE (electron/yarn-4.12.0.tgz) = 1056794
-SHA256 (electron/electron40-40.6.1-node-modules.tar.xz) = 5ead5307742772cd432cf026a946022a5f3e2b8b126d6eea5aaed20996608121
-SIZE (electron/electron40-40.6.1-node-modules.tar.xz) = 59675854
-SHA256 (electron/electron-electron-v40.6.1_GH0.tar.gz) = 26d40a2b338ff30736c448df9080aa0f4e40e9d383ae507f26c45bc1f62e7aa4
-SIZE (electron/electron-electron-v40.6.1_GH0.tar.gz) = 17137652
-SHA256 (electron/nodejs-node-v24.13.1_GH0.tar.gz) = a17a9ea377947cc19058276a9e9b3dce98e9ba5004b30745efdf0492f24a3293
-SIZE (electron/nodejs-node-v24.13.1_GH0.tar.gz) = 123127962
+SHA256 (electron/electron40-40.8.0-node-modules.tar.xz) = 5ead5307742772cd432cf026a946022a5f3e2b8b126d6eea5aaed20996608121
+SIZE (electron/electron40-40.8.0-node-modules.tar.xz) = 59675854
+SHA256 (electron/electron-electron-v40.8.0_GH0.tar.gz) = c5b1bb3695e4420065d4e16f3c7e7942cd2971d90675c5026ef9bc7239be8483
+SIZE (electron/electron-electron-v40.8.0_GH0.tar.gz) = 17144215
+SHA256 (electron/nodejs-node-v24.14.0_GH0.tar.gz) = f3a7374f7d0a3b3dcd1b612dd2bf1ffbe7ace778c02c027efaaacbad1e17390a
+SIZE (electron/nodejs-node-v24.14.0_GH0.tar.gz) = 126199657
SHA256 (electron/nodejs-nan-675cefebca42410733da8a454c8d9391fcebfbc2_GH0.tar.gz) = 3983c68f19ed75dd37dc228eab385093ae2533132730f253f0c3d19ff10788e3
SIZE (electron/nodejs-nan-675cefebca42410733da8a454c8d9391fcebfbc2_GH0.tar.gz) = 111323
SHA256 (electron/Squirrel-Squirrel.Mac-0e5d146ba13101a1302d59ea6e6e0b3cace4ae38_GH0.tar.gz) = f4ebb40a8d85dbb7ef02aa0571b2f8e22182c6d73b6992484a53c90047779d01
diff --git a/devel/electron40/files/patch-electron_filenames.gni b/devel/electron40/files/patch-electron_filenames.gni
index fb4f1c042d52..d851c107a50b 100644
--- a/devel/electron40/files/patch-electron_filenames.gni
+++ b/devel/electron40/files/patch-electron_filenames.gni
@@ -1,6 +1,6 @@
---- electron/filenames.gni.orig 2026-02-19 05:24:38 UTC
+--- electron/filenames.gni.orig 2026-03-05 10:29:21 UTC
+++ electron/filenames.gni
-@@ -240,8 +240,8 @@ filenames = {
+@@ -242,8 +242,8 @@ filenames = {
"shell/app/command_line_args.h",
"shell/app/electron_content_client.cc",
"shell/app/electron_content_client.h",
diff --git a/devel/electron40/files/patch-electron_script_lib_config.py b/devel/electron40/files/patch-electron_script_lib_config.py
index 4915ef347e14..dec41accc1aa 100644
--- a/devel/electron40/files/patch-electron_script_lib_config.py
+++ b/devel/electron40/files/patch-electron_script_lib_config.py
@@ -1,12 +1,13 @@
---- electron/script/lib/config.py.orig 2024-05-29 09:41:07 UTC
+--- electron/script/lib/config.py.orig 2026-03-05 10:29:21 UTC
+++ electron/script/lib/config.py
-@@ -7,6 +7,9 @@ PLATFORM = {
+@@ -7,6 +7,10 @@ PLATFORM = {
'cygwin': 'win32',
'msys': 'win32',
'darwin': 'darwin',
+ 'freebsd13': 'freebsd',
+ 'freebsd14': 'freebsd',
+ 'freebsd15': 'freebsd',
++ 'freebsd16': 'freebsd',
'linux': 'linux',
'linux2': 'linux',
'win32': 'win32',
diff --git a/devel/electron40/files/patch-electron_shell_browser_api_electron__api__web__contents.cc b/devel/electron40/files/patch-electron_shell_browser_api_electron__api__web__contents.cc
index 50d6a623b264..837c5b384922 100644
--- a/devel/electron40/files/patch-electron_shell_browser_api_electron__api__web__contents.cc
+++ b/devel/electron40/files/patch-electron_shell_browser_api_electron__api__web__contents.cc
@@ -1,6 +1,6 @@
---- electron/shell/browser/api/electron_api_web_contents.cc.orig 2026-02-19 05:24:38 UTC
+--- electron/shell/browser/api/electron_api_web_contents.cc.orig 2026-03-05 10:29:21 UTC
+++ electron/shell/browser/api/electron_api_web_contents.cc
-@@ -161,11 +161,11 @@
+@@ -162,11 +162,11 @@
#include "ui/base/cocoa/defaults_utils.h"
#endif
@@ -14,7 +14,7 @@
#include "ui/aura/window.h"
#include "ui/gfx/font_render_params.h"
#endif
-@@ -197,7 +197,7 @@
+@@ -198,7 +198,7 @@
#include "content/public/browser/plugin_service.h"
#endif
@@ -23,7 +23,7 @@
#include "chrome/browser/hang_monitor/hang_crash_dump.h" // nogncheck
#endif
-@@ -571,7 +571,7 @@ std::optional<base::TimeDelta> GetCursorBlinkInterval(
+@@ -572,7 +572,7 @@ std::optional<base::TimeDelta> GetCursorBlinkInterval(
ui::TextInsertionCaretBlinkPeriodFromDefaults());
if (system_value)
return *system_value;
@@ -32,7 +32,7 @@
if (auto* native_theme = ui::NativeTheme::GetInstanceForNativeUi())
return native_theme->caret_blink_interval();
#elif BUILDFLAG(IS_WIN)
-@@ -940,7 +940,7 @@ void WebContents::InitWithSessionAndOptions(
+@@ -944,7 +944,7 @@ void WebContents::InitWithSessionAndOptions(
accept_languages.pop_back();
prefs->accept_languages = accept_languages;
@@ -41,7 +41,7 @@
// Update font settings.
static const gfx::FontRenderParams params(
gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), nullptr));
-@@ -2726,13 +2726,13 @@ void WebContents::ForcefullyCrashRenderer() {
+@@ -2753,13 +2753,13 @@ void WebContents::ForcefullyCrashRenderer() {
content::RenderProcessHost* rph = rwh->GetProcess();
if (rph) {
@@ -57,7 +57,7 @@
CrashDumpHungChildProcess(rph->GetProcess().Handle());
#endif
rph->Shutdown(content::RESULT_CODE_HUNG);
-@@ -3414,7 +3414,7 @@ void WebContents::Focus() {
+@@ -3441,7 +3441,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.
@@ -66,7 +66,7 @@
if (owner_window())
owner_window()->Focus(true);
#endif
-@@ -4310,7 +4310,7 @@ ui::ImageModel WebContents::GetDevToolsWindowIcon() {
+@@ -4337,7 +4337,7 @@ ui::ImageModel WebContents::GetDevToolsWindowIcon() {
}
#endif
diff --git a/devel/electron40/files/patch-electron_shell_browser_api_electron__api__web__contents.h b/devel/electron40/files/patch-electron_shell_browser_api_electron__api__web__contents.h
index d2cc35248bb8..d3e286305af8 100644
--- a/devel/electron40/files/patch-electron_shell_browser_api_electron__api__web__contents.h
+++ b/devel/electron40/files/patch-electron_shell_browser_api_electron__api__web__contents.h
@@ -1,6 +1,6 @@
---- electron/shell/browser/api/electron_api_web_contents.h.orig 2026-01-15 18:39:20 UTC
+--- electron/shell/browser/api/electron_api_web_contents.h.orig 2026-03-05 10:29:21 UTC
+++ electron/shell/browser/api/electron_api_web_contents.h
-@@ -747,7 +747,7 @@ class WebContents final : public ExclusiveAccessContex
+@@ -748,7 +748,7 @@ class WebContents final : public ExclusiveAccessContex
#if defined(TOOLKIT_VIEWS) && !BUILDFLAG(IS_MAC)
ui::ImageModel GetDevToolsWindowIcon() override;
#endif
diff --git a/devel/electron40/files/patch-electron_shell_browser_native__window__views.cc b/devel/electron40/files/patch-electron_shell_browser_native__window__views.cc
index e67a1f2fa99f..2aee2252df34 100644
--- a/devel/electron40/files/patch-electron_shell_browser_native__window__views.cc
+++ b/devel/electron40/files/patch-electron_shell_browser_native__window__views.cc
@@ -1,4 +1,4 @@
---- electron/shell/browser/native_window_views.cc.orig 2026-01-15 18:39:20 UTC
+--- electron/shell/browser/native_window_views.cc.orig 2026-03-05 10:29:21 UTC
+++ electron/shell/browser/native_window_views.cc
@@ -52,7 +52,7 @@
#include "ui/wm/core/shadow_types.h"
@@ -81,7 +81,7 @@
if (x11_util::IsX11())
return !event_disabler_.get();
NOTIMPLEMENTED();
-@@ -863,7 +863,7 @@ void NativeWindowViews::SetBounds(const gfx::Rect& bou
+@@ -854,7 +854,7 @@ void NativeWindowViews::SetBounds(const gfx::Rect& bou
}
#endif
@@ -90,7 +90,7 @@
// On Linux and Windows the minimum and maximum size should be updated with
// window size when window is not resizable.
if (!CanResize()) {
-@@ -1123,7 +1123,7 @@ bool NativeWindowViews::IsClosable() const {
+@@ -1114,7 +1114,7 @@ bool NativeWindowViews::IsClosable() const {
return false;
}
return !(info.fState & MFS_DISABLED);
@@ -99,7 +99,7 @@
return true;
#endif
}
-@@ -1163,7 +1163,7 @@ void NativeWindowViews::Center() {
+@@ -1154,7 +1154,7 @@ void NativeWindowViews::Center() {
// for now to avoid breaking API contract, but should consider the long
// term plan for this aligning with upstream.
void NativeWindowViews::Center() {
@@ -108,7 +108,7 @@
auto display =
display::Screen::Get()->GetDisplayNearestWindow(GetNativeWindow());
gfx::Rect window_bounds_in_screen = display.work_area();
-@@ -1380,7 +1380,7 @@ void NativeWindowViews::SetMenu(ElectronMenuModel* men
+@@ -1371,7 +1371,7 @@ void NativeWindowViews::SetMenu(ElectronMenuModel* men
}
void NativeWindowViews::SetMenu(ElectronMenuModel* menu_model) {
@@ -117,7 +117,7 @@
// Remove global menu bar.
if (global_menu_bar_ && menu_model == nullptr) {
global_menu_bar_.reset();
-@@ -1436,7 +1436,7 @@ void NativeWindowViews::SetParentWindow(NativeWindow*
+@@ -1427,7 +1427,7 @@ void NativeWindowViews::SetParentWindow(NativeWindow*
void NativeWindowViews::SetParentWindow(NativeWindow* parent) {
NativeWindow::SetParentWindow(parent);
@@ -126,7 +126,7 @@
if (x11_util::IsX11()) {
auto* connection = x11::Connection::Get();
connection->SetProperty(
-@@ -1482,7 +1482,7 @@ void NativeWindowViews::SetProgressBar(double progress
+@@ -1473,7 +1473,7 @@ void NativeWindowViews::SetProgressBar(double progress
NativeWindow::ProgressState state) {
#if BUILDFLAG(IS_WIN)
taskbar_host_.SetProgressBar(GetAcceleratedWidget(), progress, state);
@@ -135,7 +135,7 @@
if (unity::IsRunning()) {
unity::SetProgressFraction(progress);
}
-@@ -1608,7 +1608,7 @@ content::DesktopMediaID NativeWindowViews::GetDesktopM
+@@ -1599,7 +1599,7 @@ content::DesktopMediaID NativeWindowViews::GetDesktopM
#if BUILDFLAG(IS_WIN)
window_handle =
reinterpret_cast<content::DesktopMediaID::Id>(accelerated_widget);
@@ -144,7 +144,7 @@
window_handle = static_cast<uint32_t>(accelerated_widget);
#endif
aura::WindowTreeHost* const host =
-@@ -1706,7 +1706,7 @@ void NativeWindowViews::SetIcon(HICON window_icon, HIC
+@@ -1697,7 +1697,7 @@ void NativeWindowViews::SetIcon(HICON window_icon, HIC
SendMessage(hwnd, WM_SETICON, ICON_BIG,
reinterpret_cast<LPARAM>(app_icon_.get()));
}
@@ -153,7 +153,7 @@
void NativeWindowViews::SetIcon(const gfx::ImageSkia& icon) {
auto* tree_host = views::DesktopWindowTreeHostLinux::GetHostForWidget(
GetAcceleratedWidget());
-@@ -1827,7 +1827,7 @@ bool NativeWindowViews::CanMinimize() const {
+@@ -1818,7 +1818,7 @@ bool NativeWindowViews::CanMinimize() const {
bool NativeWindowViews::CanMinimize() const {
#if BUILDFLAG(IS_WIN)
return minimizable_;
@@ -162,7 +162,7 @@
return true;
#endif
}
-@@ -1869,7 +1869,7 @@ std::unique_ptr<views::FrameView> NativeWindowViews::C
+@@ -1860,7 +1860,7 @@ std::unique_ptr<views::FrameView> NativeWindowViews::C
#endif
}
@@ -171,7 +171,7 @@
electron::ClientFrameViewLinux* NativeWindowViews::GetClientFrameViewLinux() {
// Check to make sure this window's non-client frame view is a
// ClientFrameViewLinux. If either has_frame() or has_client_frame()
-@@ -1892,7 +1892,7 @@ void NativeWindowViews::HandleKeyboardEvent(
+@@ -1883,7 +1883,7 @@ void NativeWindowViews::HandleKeyboardEvent(
if (widget_destroyed_)
return;
@@ -180,7 +180,7 @@
if (event.windows_key_code == ui::VKEY_BROWSER_BACK)
NotifyWindowExecuteAppCommand(kBrowserBackward);
else if (event.windows_key_code == ui::VKEY_BROWSER_FORWARD)
-@@ -1911,7 +1911,7 @@ void NativeWindowViews::OnMouseEvent(ui::MouseEvent* e
+@@ -1902,7 +1902,7 @@ void NativeWindowViews::OnMouseEvent(ui::MouseEvent* e
// Alt+Click should not toggle menu bar.
root_view_.ResetAltState();
diff --git a/devel/electron40/files/patch-electron_shell_browser_ui_inspectable__web__contents.cc b/devel/electron40/files/patch-electron_shell_browser_ui_inspectable__web__contents.cc
index 2aba635eae30..9841fe58cf9b 100644
--- a/devel/electron40/files/patch-electron_shell_browser_ui_inspectable__web__contents.cc
+++ b/devel/electron40/files/patch-electron_shell_browser_ui_inspectable__web__contents.cc
@@ -1,6 +1,6 @@
---- electron/shell/browser/ui/inspectable_web_contents.cc.orig 2026-02-04 19:30:54 UTC
+--- electron/shell/browser/ui/inspectable_web_contents.cc.orig 2026-03-05 10:29:21 UTC
+++ electron/shell/browser/ui/inspectable_web_contents.cc
-@@ -556,7 +556,7 @@ void InspectableWebContents::LoadCompleted() {
+@@ -560,7 +560,7 @@ void InspectableWebContents::LoadCompleted() {
prefs.FindString("currentDockState");
base::RemoveChars(*current_dock_state, "\"", &dock_state_);
}
diff --git a/devel/electron40/files/patch-electron_shell_common_node__bindings.cc b/devel/electron40/files/patch-electron_shell_common_node__bindings.cc
index 11f71bba8e88..bf8373148ff3 100644
--- a/devel/electron40/files/patch-electron_shell_common_node__bindings.cc
+++ b/devel/electron40/files/patch-electron_shell_common_node__bindings.cc
@@ -1,4 +1,4 @@
---- electron/shell/common/node_bindings.cc.orig 2026-02-04 19:30:54 UTC
+--- electron/shell/common/node_bindings.cc.orig 2026-03-05 10:29:21 UTC
+++ electron/shell/common/node_bindings.cc
@@ -51,7 +51,7 @@
#include "third_party/electron_node/src/debug_utils.h"
@@ -27,7 +27,7 @@
electron::crash_keys::SetCrashKey("electron.v8-oom.is_heap_oom",
std::to_string(details.is_heap_oom));
if (location) {
-@@ -638,7 +638,7 @@ void NodeBindings::Initialize(v8::Isolate* const isola
+@@ -639,7 +639,7 @@ void NodeBindings::Initialize(v8::Isolate* const isola
TRACE_EVENT0("electron", "NodeBindings::Initialize");
// Open node's error reporting system for browser process.
diff --git a/devel/electron40/files/patch-electron_spec_api-browser-window-spec.ts b/devel/electron40/files/patch-electron_spec_api-browser-window-spec.ts
index 2e0db8ec58cb..f8cc5d3d0af3 100644
--- a/devel/electron40/files/patch-electron_spec_api-browser-window-spec.ts
+++ b/devel/electron40/files/patch-electron_spec_api-browser-window-spec.ts
@@ -1,4 +1,4 @@
---- electron/spec/api-browser-window-spec.ts.orig 2026-02-24 02:09:51 UTC
+--- electron/spec/api-browser-window-spec.ts.orig 2026-03-05 10:29:21 UTC
+++ electron/spec/api-browser-window-spec.ts
@@ -69,7 +69,7 @@ describe('BrowserWindow module', () => {
}).not.to.throw();
@@ -189,7 +189,7 @@
it('does not toggle auto-hide menu bar visibility', async () => {
const w = new BrowserWindow({ show: false, autoHideMenuBar: true });
w.setMenuBarVisibility(false);
-@@ -6885,7 +6885,7 @@ describe('BrowserWindow module', () => {
+@@ -6957,7 +6957,7 @@ describe('BrowserWindow module', () => {
describe('"transparent" option', () => {
afterEach(closeAllWindows);