git: 4c360b5ba109 - main - devel/electron42: Update to 42.8.0

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Thu, 30 Jul 2026 20:36:13 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4c360b5ba109634bdf13ab21299b7ab1c5b13711

commit 4c360b5ba109634bdf13ab21299b7ab1c5b13711
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-07-30 20:34:46 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-07-30 20:36:02 +0000

    devel/electron42: Update to 42.8.0
    
    Changelog: https://github.com/electron/electron/releases/tag/v42.8.0
    
    Reported by:    GitHub (watch releases)
---
 devel/electron42/Makefile.version                           |  2 +-
 devel/electron42/distinfo                                   | 10 +++++-----
 ...lectron_shell_common_api_electron__api__native__image.cc |  4 ++--
 .../patch-electron_shell_common_api_electron__bindings.cc   | 13 +++++++++++--
 .../files/patch-electron_spec_api-native-image-spec.ts      |  4 ++--
 .../files/patch-electron_spec_api-process-spec.ts           | 11 ++++++++++-
 .../files/patch-electron_spec_visibility-state-spec.ts      |  4 ++--
 7 files changed, 33 insertions(+), 15 deletions(-)

diff --git a/devel/electron42/Makefile.version b/devel/electron42/Makefile.version
index deef5718ea09..3726b28e6daf 100644
--- a/devel/electron42/Makefile.version
+++ b/devel/electron42/Makefile.version
@@ -1,2 +1,2 @@
-ELECTRON_VER=		42.7.1
+ELECTRON_VER=		42.8.0
 ELECTRON_VER_MAJOR=	${ELECTRON_VER:C/\..*//}
diff --git a/devel/electron42/distinfo b/devel/electron42/distinfo
index 804680190792..e7e19af0f658 100644
--- a/devel/electron42/distinfo
+++ b/devel/electron42/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1784791001
+TIMESTAMP = 1785315326
 SHA256 (electron/chromium-148.0.7778.280.tar.xz.0) = cddbfeba5a50d950693590399df8df3a8ef5910eee367c76aec2541444c59dea
 SIZE (electron/chromium-148.0.7778.280.tar.xz.0) = 2000000000
 SHA256 (electron/chromium-148.0.7778.280.tar.xz.1) = cd2f2c3740c05eb549878ab6c6571f7858456c2c56cf798e60ffbaf7e651429f
@@ -341,10 +341,10 @@ SHA256 (electron/rust/crates/zerocopy-derive-0.7.35.crate) = fa4f8080344d4671fb4
 SIZE (electron/rust/crates/zerocopy-derive-0.7.35.crate) = 37829
 SHA256 (electron/yarn-4.12.0.tgz) = bd58d06826ce9542c4cd904fe10bab7bc718ea2cc39a45d9fbd15f2edb45761c
 SIZE (electron/yarn-4.12.0.tgz) = 1056794
-SHA256 (electron/electron42-42.7.1-node-modules.tar.xz) = 73224ef31205c29739c6d35f93129f0ab290bf714d59e1461fc675c070aac933
-SIZE (electron/electron42-42.7.1-node-modules.tar.xz) = 71097369
-SHA256 (electron/electron-electron-v42.7.1_GH0.tar.gz) = f458d5714e0f316931c0774698e6a309b08d722448a2f141acdddea2cf44309b
-SIZE (electron/electron-electron-v42.7.1_GH0.tar.gz) = 19059236
+SHA256 (electron/electron42-42.8.0-node-modules.tar.xz) = 73224ef31205c29739c6d35f93129f0ab290bf714d59e1461fc675c070aac933
+SIZE (electron/electron42-42.8.0-node-modules.tar.xz) = 71097369
+SHA256 (electron/electron-electron-v42.8.0_GH0.tar.gz) = 2dda3cc0f2fddde862cf43b36c808e50fa86f6b2599ae8a11549189149700913
+SIZE (electron/electron-electron-v42.8.0_GH0.tar.gz) = 19396442
 SHA256 (electron/nodejs-node-v24.18.0_GH0.tar.gz) = e07dd419efe30a89b90d872a956d074f4197fd103781bc06e0fce99d0130ad01
 SIZE (electron/nodejs-node-v24.18.0_GH0.tar.gz) = 127522062
 SHA256 (electron/nodejs-nan-675cefebca42410733da8a454c8d9391fcebfbc2_GH0.tar.gz) = 3983c68f19ed75dd37dc228eab385093ae2533132730f253f0c3d19ff10788e3
diff --git a/devel/electron42/files/patch-electron_shell_common_api_electron__api__native__image.cc b/devel/electron42/files/patch-electron_shell_common_api_electron__api__native__image.cc
index bf9bad5562fe..4fe277bf09d1 100644
--- a/devel/electron42/files/patch-electron_shell_common_api_electron__api__native__image.cc
+++ b/devel/electron42/files/patch-electron_shell_common_api_electron__api__native__image.cc
@@ -1,6 +1,6 @@
---- electron/shell/common/api/electron_api_native_image.cc.orig	2025-09-02 20:56:04 UTC
+--- electron/shell/common/api/electron_api_native_image.cc.orig	2026-07-28 14:50:45 UTC
 +++ electron/shell/common/api/electron_api_native_image.cc
-@@ -634,7 +634,7 @@ void Initialize(v8::Local<v8::Object> exports,
+@@ -654,7 +654,7 @@ void Initialize(v8::Local<v8::Object> exports,
    native_image.SetMethod("createFromDataURL", &NativeImage::CreateFromDataURL);
    native_image.SetMethod("createFromNamedImage",
                           &NativeImage::CreateFromNamedImage);
diff --git a/devel/electron42/files/patch-electron_shell_common_api_electron__bindings.cc b/devel/electron42/files/patch-electron_shell_common_api_electron__bindings.cc
index a1f2a5355082..da4d2e91a0cd 100644
--- a/devel/electron42/files/patch-electron_shell_common_api_electron__bindings.cc
+++ b/devel/electron42/files/patch-electron_shell_common_api_electron__bindings.cc
@@ -1,6 +1,15 @@
---- electron/shell/common/api/electron_bindings.cc.orig	2026-03-17 08:46:52 UTC
+--- electron/shell/common/api/electron_bindings.cc.orig	2026-07-28 14:50:45 UTC
 +++ electron/shell/common/api/electron_bindings.cc
-@@ -257,7 +257,7 @@ void ElectronBindings::DidReceiveMemoryDump(
+@@ -185,7 +185,7 @@ v8::Local<v8::Value> ElectronBindings::GetSystemMemory
+ #endif
+   dict.Set("free", free.InKiB());
+ 
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+   dict.Set("available", mem_info.available.InKiB());
+ #endif
+ 
+@@ -261,7 +261,7 @@ void ElectronBindings::DidReceiveMemoryDump(
      if (target_pid == dump.pid()) {
        auto dict = gin_helper::Dictionary::CreateEmpty(isolate);
        const auto& osdump = dump.os_dump();
diff --git a/devel/electron42/files/patch-electron_spec_api-native-image-spec.ts b/devel/electron42/files/patch-electron_spec_api-native-image-spec.ts
index 5e364b8755a1..9640216e217f 100644
--- a/devel/electron42/files/patch-electron_spec_api-native-image-spec.ts
+++ b/devel/electron42/files/patch-electron_spec_api-native-image-spec.ts
@@ -1,6 +1,6 @@
---- electron/spec/api-native-image-spec.ts.orig	2026-05-07 20:19:20 UTC
+--- electron/spec/api-native-image-spec.ts.orig	2026-07-28 14:50:45 UTC
 +++ electron/spec/api-native-image-spec.ts
-@@ -433,7 +433,7 @@ describe('nativeImage module', () => {
+@@ -512,7 +512,7 @@ describe('nativeImage module', () => {
      });
    });
  
diff --git a/devel/electron42/files/patch-electron_spec_api-process-spec.ts b/devel/electron42/files/patch-electron_spec_api-process-spec.ts
index 12419df6ed8f..727cbfdce744 100644
--- a/devel/electron42/files/patch-electron_spec_api-process-spec.ts
+++ b/devel/electron42/files/patch-electron_spec_api-process-spec.ts
@@ -1,4 +1,4 @@
---- electron/spec/api-process-spec.ts.orig	2026-05-07 20:19:20 UTC
+--- electron/spec/api-process-spec.ts.orig	2026-07-28 14:50:45 UTC
 +++ electron/spec/api-process-spec.ts
 @@ -41,7 +41,7 @@ describe('process module', () => {
        it('resolves promise successfully with valid data', async () => {
@@ -9,3 +9,12 @@
            expect(memoryInfo.residentSet).to.be.a('number').greaterThan(0);
          }
          expect(memoryInfo.private).to.be.a('number').greaterThan(0);
+@@ -55,7 +55,7 @@ describe('process module', () => {
+         const systemMemoryInfo = await invoke(() => process.getSystemMemoryInfo());
+         expect(systemMemoryInfo.free).to.be.a('number');
+         expect(systemMemoryInfo.total).to.be.a('number');
+-        if (process.platform === 'linux') {
++        if (process.platform === 'linux' || process.platform === 'freebsd') {
+           expect(systemMemoryInfo.available).to.be.a('number').greaterThan(0);
+         }
+       });
diff --git a/devel/electron42/files/patch-electron_spec_visibility-state-spec.ts b/devel/electron42/files/patch-electron_spec_visibility-state-spec.ts
index 2f620c0d89c0..ee7faa712c03 100644
--- a/devel/electron42/files/patch-electron_spec_visibility-state-spec.ts
+++ b/devel/electron42/files/patch-electron_spec_visibility-state-spec.ts
@@ -1,6 +1,6 @@
---- electron/spec/visibility-state-spec.ts.orig	2026-05-07 20:19:20 UTC
+--- electron/spec/visibility-state-spec.ts.orig	2026-07-28 14:50:45 UTC
 +++ electron/spec/visibility-state-spec.ts
-@@ -18,7 +18,7 @@ import { closeAllWindows } from './lib/window-helpers'
+@@ -19,7 +19,7 @@ import { closeAllWindows } from './lib/window-helpers'
  
  // visibilityState specs pass on linux with a real window manager but on CI
  // the environment does not let these specs pass