git: 28b736ad7615 - main - devel/electron40: Update to 40.8.3

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Fri, 20 Mar 2026 00:14:15 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=28b736ad7615f66549024e85c69e0167dd37b287

commit 28b736ad7615f66549024e85c69e0167dd37b287
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-03-20 00:12:57 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-03-20 00:14:08 +0000

    devel/electron40: Update to 40.8.3
    
    Changelog:
    - https://github.com/electron/electron/releases/tag/v40.8.1
    - https://github.com/electron/electron/releases/tag/v40.8.2
    - https://github.com/electron/electron/releases/tag/v40.8.3
    
    Reported by:    GitHub (watch releases)
---
 devel/electron40/Makefile.version                  |  2 +-
 devel/electron40/distinfo                          | 10 ++++-----
 ...patch-electron_lib_browser_api_power-monitor.ts |  6 +++---
 ...ll_browser_api_electron__api__power__monitor.cc |  6 +++---
 ...tron_shell_browser_api_electron__api__screen.cc | 17 +++++++++++----
 ...ell_browser_api_electron__api__web__contents.cc |  8 ++++----
 ...hell_browser_api_electron__api__web__contents.h |  4 ++--
 .../files/patch-electron_shell_browser_browser.cc  |  6 +++---
 .../files/patch-electron_shell_browser_browser.h   |  6 +++---
 ...patch-electron_shell_browser_linux_x11__util.cc | 20 ++++++++++++++++++
 ...electron_shell_browser_native__window__views.cc | 24 +++++++++++-----------
 .../files/patch-electron_spec_api-app-spec.ts      | 10 ++++-----
 .../patch-electron_spec_api-browser-window-spec.ts | 13 ++----------
 ..._command__buffer_service_gles2__cmd__decoder.cc |  4 ++--
 ...ommand__buffer_service_webgpu__decoder__impl.cc |  6 +++---
 15 files changed, 81 insertions(+), 61 deletions(-)

diff --git a/devel/electron40/Makefile.version b/devel/electron40/Makefile.version
index fab5898378b5..7448da223f08 100644
--- a/devel/electron40/Makefile.version
+++ b/devel/electron40/Makefile.version
@@ -1,2 +1,2 @@
-ELECTRON_VER=	40.8.0
+ELECTRON_VER=	40.8.3
 ELECTRON_VER_MAJOR=	${ELECTRON_VER:C/\..*//}
diff --git a/devel/electron40/distinfo b/devel/electron40/distinfo
index 35f1f9ac3454..366ddd1949cf 100644
--- a/devel/electron40/distinfo
+++ b/devel/electron40/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1772976514
+TIMESTAMP = 1773918828
 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
@@ -9,10 +9,10 @@ SHA256 (electron/pulseaudio-16.1.tar.gz) = 027266c62f2a84422ac45fa721a649508f0f1
 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.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/electron40-40.8.3-node-modules.tar.xz) = 5ead5307742772cd432cf026a946022a5f3e2b8b126d6eea5aaed20996608121
+SIZE (electron/electron40-40.8.3-node-modules.tar.xz) = 59675854
+SHA256 (electron/electron-electron-v40.8.3_GH0.tar.gz) = 1ea4a914096c5d4e9fdd1230c1e3be8d23b0657e802aed03b8c8a7a43cb20ea0
+SIZE (electron/electron-electron-v40.8.3_GH0.tar.gz) = 17168890
 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
diff --git a/devel/electron40/files/patch-electron_lib_browser_api_power-monitor.ts b/devel/electron40/files/patch-electron_lib_browser_api_power-monitor.ts
index 24713c283fe7..19e72b62d170 100644
--- a/devel/electron40/files/patch-electron_lib_browser_api_power-monitor.ts
+++ b/devel/electron40/files/patch-electron_lib_browser_api_power-monitor.ts
@@ -1,7 +1,7 @@
---- electron/lib/browser/api/power-monitor.ts.orig	2023-08-14 18:19:06 UTC
+--- electron/lib/browser/api/power-monitor.ts.orig	2026-03-17 08:46:36 UTC
 +++ electron/lib/browser/api/power-monitor.ts
-@@ -17,7 +17,7 @@ class PowerMonitor extends EventEmitter {
-       const pm = createPowerMonitor();
+@@ -23,7 +23,7 @@ class PowerMonitor extends EventEmitter implements Ele
+       pm = createPowerMonitor();
        pm.emit = this.emit.bind(this);
  
 -      if (process.platform === 'linux') {
diff --git a/devel/electron40/files/patch-electron_shell_browser_api_electron__api__power__monitor.cc b/devel/electron40/files/patch-electron_shell_browser_api_electron__api__power__monitor.cc
index bca4a85e06ed..28457188d378 100644
--- a/devel/electron40/files/patch-electron_shell_browser_api_electron__api__power__monitor.cc
+++ b/devel/electron40/files/patch-electron_shell_browser_api_electron__api__power__monitor.cc
@@ -1,6 +1,6 @@
---- electron/shell/browser/api/electron_api_power_monitor.cc.orig	2025-09-02 20:56:04 UTC
+--- electron/shell/browser/api/electron_api_power_monitor.cc.orig	2026-03-17 08:46:36 UTC
 +++ electron/shell/browser/api/electron_api_power_monitor.cc
-@@ -129,6 +129,11 @@ void PowerMonitor::OnSpeedLimitChange(int speed_limit)
+@@ -137,6 +137,11 @@ void PowerMonitor::OnSpeedLimitChange(int speed_limit)
        gin::DataObjectBuilder(isolate).Set("limit", speed_limit).Build());
  }
  
@@ -12,7 +12,7 @@
  #if BUILDFLAG(IS_LINUX)
  void PowerMonitor::SetListeningForShutdown(bool is_listening) {
    if (is_listening) {
-@@ -154,7 +159,7 @@ gin::ObjectTemplateBuilder PowerMonitor::GetObjectTemp
+@@ -162,7 +167,7 @@ gin::ObjectTemplateBuilder PowerMonitor::GetObjectTemp
    auto builder =
        gin_helper::EventEmitterMixin<PowerMonitor>::GetObjectTemplateBuilder(
            isolate);
diff --git a/devel/electron40/files/patch-electron_shell_browser_api_electron__api__screen.cc b/devel/electron40/files/patch-electron_shell_browser_api_electron__api__screen.cc
index a8f1c681f88c..bacea9efbcb6 100644
--- a/devel/electron40/files/patch-electron_shell_browser_api_electron__api__screen.cc
+++ b/devel/electron40/files/patch-electron_shell_browser_api_electron__api__screen.cc
@@ -1,4 +1,4 @@
---- electron/shell/browser/api/electron_api_screen.cc.orig	2025-07-02 10:12:01 UTC
+--- electron/shell/browser/api/electron_api_screen.cc.orig	2026-03-17 08:46:36 UTC
 +++ electron/shell/browser/api/electron_api_screen.cc
 @@ -28,7 +28,7 @@
  #include "ui/display/win/screen_win.h"
@@ -9,7 +9,16 @@
  #include "shell/browser/linux/x11_util.h"
  #endif
  
-@@ -136,7 +136,7 @@ gfx::PointF Screen::ScreenToDIPPoint(const gfx::PointF
+@@ -77,7 +77,7 @@ gfx::Point Screen::GetCursorScreenPoint(v8::Isolate* i
+ }
+ 
+ gfx::Point Screen::GetCursorScreenPoint(v8::Isolate* isolate) {
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+   if (x11_util::IsWayland())
+     return {};
+ #endif
+@@ -125,7 +125,7 @@ gfx::PointF Screen::ScreenToDIPPoint(const gfx::PointF
  gfx::PointF Screen::ScreenToDIPPoint(const gfx::PointF& point_px) {
  #if BUILDFLAG(IS_WIN)
    return display::win::GetScreenWin()->ScreenToDIPPoint(point_px);
@@ -18,7 +27,7 @@
    if (x11_util::IsX11()) {
      gfx::Point pt_px = gfx::ToFlooredPoint(point_px);
      display::Display display = GetDisplayNearestPoint(pt_px);
-@@ -155,7 +155,7 @@ gfx::Point Screen::DIPToScreenPoint(const gfx::Point& 
+@@ -144,7 +144,7 @@ gfx::Point Screen::DIPToScreenPoint(const gfx::Point& 
  gfx::Point Screen::DIPToScreenPoint(const gfx::Point& point_dip) {
  #if BUILDFLAG(IS_WIN)
    return display::win::GetScreenWin()->DIPToScreenPoint(point_dip);
@@ -27,7 +36,7 @@
    if (x11_util::IsX11()) {
      display::Display display = GetDisplayNearestPoint(point_dip);
      gfx::Rect bounds_dip = display.bounds();
-@@ -198,7 +198,7 @@ gin::ObjectTemplateBuilder Screen::GetObjectTemplateBu
+@@ -187,7 +187,7 @@ gin::ObjectTemplateBuilder Screen::GetObjectTemplateBu
        .SetMethod("getPrimaryDisplay", &Screen::GetPrimaryDisplay)
        .SetMethod("getAllDisplays", &Screen::GetAllDisplays)
        .SetMethod("getDisplayNearestPoint", &Screen::GetDisplayNearestPoint)
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 837c5b384922..c6af893f8178 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,4 +1,4 @@
---- 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.orig	2026-03-17 08:46:36 UTC
 +++ electron/shell/browser/api/electron_api_web_contents.cc
 @@ -162,11 +162,11 @@
  #include "ui/base/cocoa/defaults_utils.h"
@@ -41,7 +41,7 @@
    // Update font settings.
    static const gfx::FontRenderParams params(
        gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), nullptr));
-@@ -2753,13 +2753,13 @@ void WebContents::ForcefullyCrashRenderer() {
+@@ -2758,13 +2758,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);
-@@ -3441,7 +3441,7 @@ void WebContents::Focus() {
+@@ -3446,7 +3446,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
-@@ -4337,7 +4337,7 @@ ui::ImageModel WebContents::GetDevToolsWindowIcon() {
+@@ -4342,7 +4342,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 d3e286305af8..8196ee0645ff 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-03-05 10:29:21 UTC
+--- electron/shell/browser/api/electron_api_web_contents.h.orig	2026-03-17 08:46:36 UTC
 +++ electron/shell/browser/api/electron_api_web_contents.h
-@@ -748,7 +748,7 @@ class WebContents final : public ExclusiveAccessContex
+@@ -752,7 +752,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_browser.cc b/devel/electron40/files/patch-electron_shell_browser_browser.cc
index d4c7f912e1c6..eb74b8c22fc4 100644
--- a/devel/electron40/files/patch-electron_shell_browser_browser.cc
+++ b/devel/electron40/files/patch-electron_shell_browser_browser.cc
@@ -1,7 +1,7 @@
---- electron/shell/browser/browser.cc.orig	2025-01-29 20:10:57 UTC
+--- electron/shell/browser/browser.cc.orig	2026-03-17 08:46:36 UTC
 +++ electron/shell/browser/browser.cc
-@@ -71,7 +71,7 @@ Browser* Browser::Get() {
-   return ElectronBrowserMainParts::Get()->browser();
+@@ -96,7 +96,7 @@ bool Browser::IsValidProtocolScheme(const std::string&
+   return true;
  }
  
 -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
diff --git a/devel/electron40/files/patch-electron_shell_browser_browser.h b/devel/electron40/files/patch-electron_shell_browser_browser.h
index a24bbdb011f0..c9fb3e7e1657 100644
--- a/devel/electron40/files/patch-electron_shell_browser_browser.h
+++ b/devel/electron40/files/patch-electron_shell_browser_browser.h
@@ -1,6 +1,6 @@
---- electron/shell/browser/browser.h.orig	2025-10-27 17:58:27 UTC
+--- electron/shell/browser/browser.h.orig	2026-03-17 08:46:36 UTC
 +++ electron/shell/browser/browser.h
-@@ -148,7 +148,7 @@ class Browser : private WindowListObserver {
+@@ -152,7 +152,7 @@ class Browser : private WindowListObserver {
  
    std::u16string GetApplicationNameForProtocol(const GURL& url);
  
@@ -9,7 +9,7 @@
    // get the name, icon and path for an application
    v8::Local<v8::Promise> GetApplicationInfoForProtocol(v8::Isolate* isolate,
                                                         const GURL& url);
-@@ -276,10 +276,10 @@ class Browser : private WindowListObserver {
+@@ -280,10 +280,10 @@ class Browser : private WindowListObserver {
    PCWSTR GetAppUserModelID();
  #endif  // BUILDFLAG(IS_WIN)
  
diff --git a/devel/electron40/files/patch-electron_shell_browser_linux_x11__util.cc b/devel/electron40/files/patch-electron_shell_browser_linux_x11__util.cc
new file mode 100644
index 000000000000..3f664d3afe96
--- /dev/null
+++ b/devel/electron40/files/patch-electron_shell_browser_linux_x11__util.cc
@@ -0,0 +1,20 @@
+--- electron/shell/browser/linux/x11_util.cc.orig	2026-03-19 11:37:01 UTC
++++ electron/shell/browser/linux/x11_util.cc
+@@ -10,7 +10,7 @@ bool IsX11() {
+ namespace x11_util {
+ 
+ bool IsX11() {
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+   static const bool is = ui::GetOzonePlatformId() == ui::kPlatformX11;
+   return is;
+ #else
+@@ -19,7 +19,7 @@ bool IsWayland() {
+ }
+ 
+ bool IsWayland() {
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+   static const bool is = ui::GetOzonePlatformId() == ui::kPlatformWayland;
+   return is;
+ #else
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 2aee2252df34..01b642b1a641 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-03-05 10:29:21 UTC
+--- electron/shell/browser/native_window_views.cc.orig	2026-03-17 08:46:36 UTC
 +++ electron/shell/browser/native_window_views.cc
 @@ -52,7 +52,7 @@
  #include "ui/wm/core/shadow_types.h"
@@ -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()) {
-@@ -1114,7 +1114,7 @@ bool NativeWindowViews::IsClosable() const {
+@@ -1110,7 +1110,7 @@ bool NativeWindowViews::IsClosable() const {
      return false;
    }
    return !(info.fState & MFS_DISABLED);
@@ -99,7 +99,7 @@
    return true;
  #endif
  }
-@@ -1154,7 +1154,7 @@ void NativeWindowViews::Center() {
+@@ -1150,7 +1150,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();
-@@ -1371,7 +1371,7 @@ void NativeWindowViews::SetMenu(ElectronMenuModel* men
+@@ -1367,7 +1367,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();
-@@ -1427,7 +1427,7 @@ void NativeWindowViews::SetParentWindow(NativeWindow* 
+@@ -1423,7 +1423,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(
-@@ -1473,7 +1473,7 @@ void NativeWindowViews::SetProgressBar(double progress
+@@ -1469,7 +1469,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);
    }
-@@ -1599,7 +1599,7 @@ content::DesktopMediaID NativeWindowViews::GetDesktopM
+@@ -1595,7 +1595,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 =
-@@ -1697,7 +1697,7 @@ void NativeWindowViews::SetIcon(HICON window_icon, HIC
+@@ -1693,7 +1693,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());
-@@ -1818,7 +1818,7 @@ bool NativeWindowViews::CanMinimize() const {
+@@ -1814,7 +1814,7 @@ bool NativeWindowViews::CanMinimize() const {
  bool NativeWindowViews::CanMinimize() const {
  #if BUILDFLAG(IS_WIN)
    return minimizable_;
@@ -162,7 +162,7 @@
    return true;
  #endif
  }
-@@ -1860,7 +1860,7 @@ std::unique_ptr<views::FrameView> NativeWindowViews::C
+@@ -1856,7 +1856,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()
-@@ -1883,7 +1883,7 @@ void NativeWindowViews::HandleKeyboardEvent(
+@@ -1879,7 +1879,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)
-@@ -1902,7 +1902,7 @@ void NativeWindowViews::OnMouseEvent(ui::MouseEvent* e
+@@ -1898,7 +1898,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_spec_api-app-spec.ts b/devel/electron40/files/patch-electron_spec_api-app-spec.ts
index 06de92307024..bfe074db5ae0 100644
--- a/devel/electron40/files/patch-electron_spec_api-app-spec.ts
+++ b/devel/electron40/files/patch-electron_spec_api-app-spec.ts
@@ -1,4 +1,4 @@
---- electron/spec/api-app-spec.ts.orig	2026-02-19 05:24:38 UTC
+--- electron/spec/api-app-spec.ts.orig	2026-03-17 08:46:36 UTC
 +++ electron/spec/api-app-spec.ts
 @@ -129,11 +129,11 @@ describe('app module', () => {
    });
@@ -95,7 +95,7 @@
      it('returns promise rejection for a bogus protocol', async function () {
        await expect(
          app.getApplicationInfoForProtocol('bogus-protocol://')
-@@ -1505,7 +1505,7 @@ describe('app module', () => {
+@@ -1528,7 +1528,7 @@ describe('app module', () => {
    });
  
    // FIXME Get these specs running on Linux CI
@@ -104,7 +104,7 @@
      const iconPath = path.join(__dirname, 'fixtures/assets/icon.ico');
      const sizes = {
        small: 16,
-@@ -1587,7 +1587,7 @@ describe('app module', () => {
+@@ -1610,7 +1610,7 @@ describe('app module', () => {
            expect(entry.memory).to.have.property('privateBytes').that.is.greaterThan(0);
          }
  
@@ -113,7 +113,7 @@
            expect(entry.sandboxed).to.be.a('boolean');
          }
  
-@@ -1661,7 +1661,7 @@ describe('app module', () => {
+@@ -1684,7 +1684,7 @@ describe('app module', () => {
  
      it('succeeds with complete GPUInfo', async () => {
        const completeInfo = await getGPUInfo('complete');
@@ -122,7 +122,7 @@
          // For linux and macOS complete info is same as basic info
          await verifyBasicGPUInfo(completeInfo);
          const basicInfo = await getGPUInfo('basic');
-@@ -1685,7 +1685,7 @@ describe('app module', () => {
+@@ -1708,7 +1708,7 @@ describe('app module', () => {
      });
    });
  
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 f8cc5d3d0af3..b796d46dfe39 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-03-05 10:29:21 UTC
+--- electron/spec/api-browser-window-spec.ts.orig	2026-03-17 08:46:36 UTC
 +++ electron/spec/api-browser-window-spec.ts
 @@ -69,7 +69,7 @@ describe('BrowserWindow module', () => {
        }).not.to.throw();
@@ -180,16 +180,7 @@
      // Not implemented on Linux.
      afterEach(closeAllWindows);
  
-@@ -5931,7 +5931,7 @@ describe('BrowserWindow module', () => {
-       });
-     });
- 
--    ifdescribe(process.platform === 'linux')('menu bar AltGr behavior', () => {
-+    ifdescribe(process.platform === 'linux' || process.platform === 'freebsd')('menu bar AltGr behavior', () => {
-       it('does not toggle auto-hide menu bar visibility', async () => {
-         const w = new BrowserWindow({ show: false, autoHideMenuBar: true });
-         w.setMenuBarVisibility(false);
-@@ -6957,7 +6957,7 @@ describe('BrowserWindow module', () => {
+@@ -6940,7 +6940,7 @@ describe('BrowserWindow module', () => {
    describe('"transparent" option', () => {
      afterEach(closeAllWindows);
  
diff --git a/devel/electron40/files/patch-gpu_command__buffer_service_gles2__cmd__decoder.cc b/devel/electron40/files/patch-gpu_command__buffer_service_gles2__cmd__decoder.cc
index a84e55ae2c07..fdab145499e1 100644
--- a/devel/electron40/files/patch-gpu_command__buffer_service_gles2__cmd__decoder.cc
+++ b/devel/electron40/files/patch-gpu_command__buffer_service_gles2__cmd__decoder.cc
@@ -1,6 +1,6 @@
---- gpu/command_buffer/service/gles2_cmd_decoder.cc.orig	2026-01-07 00:52:53 UTC
+--- gpu/command_buffer/service/gles2_cmd_decoder.cc.orig	2026-03-19 11:32:34 UTC
 +++ gpu/command_buffer/service/gles2_cmd_decoder.cc
-@@ -2846,7 +2846,7 @@ std::unique_ptr<GLES2Decoder> GLES2Decoder::Create(
+@@ -2853,7 +2853,7 @@ std::unique_ptr<GLES2Decoder> GLES2Decoder::Create(
    }
  
  // Allow linux to run fuzzers.
diff --git a/devel/electron40/files/patch-gpu_command__buffer_service_webgpu__decoder__impl.cc b/devel/electron40/files/patch-gpu_command__buffer_service_webgpu__decoder__impl.cc
index 530a8c2a481a..b397e2d69035 100644
--- a/devel/electron40/files/patch-gpu_command__buffer_service_webgpu__decoder__impl.cc
+++ b/devel/electron40/files/patch-gpu_command__buffer_service_webgpu__decoder__impl.cc
@@ -1,6 +1,6 @@
---- gpu/command_buffer/service/webgpu_decoder_impl.cc.orig	2026-01-07 00:52:53 UTC
+--- gpu/command_buffer/service/webgpu_decoder_impl.cc.orig	2026-03-19 11:32:34 UTC
 +++ gpu/command_buffer/service/webgpu_decoder_impl.cc
-@@ -1759,7 +1759,7 @@ wgpu::Adapter WebGPUDecoderImpl::CreatePreferredAdapte
+@@ -1762,7 +1762,7 @@ wgpu::Adapter WebGPUDecoderImpl::CreatePreferredAdapte
        backend_types = {wgpu::BackendType::D3D12};
  #elif BUILDFLAG(IS_APPLE)
        backend_types = {wgpu::BackendType::Metal};
@@ -9,7 +9,7 @@
        if (shared_context_state_->GrContextIsVulkan() ||
            webgpu_on_vk_gl_interop_ ||
            shared_context_state_->IsGraphiteDawnVulkan()) {
-@@ -2006,7 +2006,7 @@ WebGPUDecoderImpl::AssociateMailboxDawn(
+@@ -2009,7 +2009,7 @@ WebGPUDecoderImpl::AssociateMailboxDawn(
    }
  
  #if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_APPLE) && \