64,7 +14407,7 @@ __metadata: languageName: node linkType: hard -"wide-align@npm:^1.1.2": +"wide-align@npm:^1.1.0, wide-align@npm:^1.1.2": version: 1.1.5 resolution: "wide-align@npm:1.1.5" dependencies: diff --git a/devel/electron40/files/patch-electron_default__app_default__app.ts b/devel/electron40/files/patch-electron_default__app_default__app.ts index 8af59e14c83f..4aa044b88dc4 100644 --- a/devel/electron40/files/patch-electron_default__app_default__app.ts +++ b/devel/electron40/files/patch-electron_default__app_default__app.ts @@ -1,6 +1,6 @@ ---- electron/default_app/default_app.ts.orig 2024-10-09 13:53:06 UTC +--- electron/default_app/default_app.ts.orig 2026-04-15 14:05:49 UTC +++ electron/default_app/default_app.ts -@@ -61,7 +61,7 @@ async function createWindow (backgroundColor?: string) +@@ -101,7 +101,7 @@ async function createWindow (backgroundColor?: string) show: false }; diff --git a/devel/electron40/files/patch-electron_shell_app_node__main.cc b/devel/electron40/files/patch-electron_shell_app_node__main.cc index 80376104ca3f..eff32dc69e00 100644 --- a/devel/electron40/files/patch-electron_shell_app_node__main.cc +++ b/devel/electron40/files/patch-electron_shell_app_node__main.cc @@ -1,4 +1,4 @@ ---- electron/shell/app/node_main.cc.orig 2026-01-15 18:39:20 UTC +--- electron/shell/app/node_main.cc.orig 2026-04-15 14:05:49 UTC +++ electron/shell/app/node_main.cc @@ -53,7 +53,7 @@ #include "shell/common/mac/codesign_util.h" @@ -26,7 +26,7 @@ electron::crash_keys::GetCrashKeys(&keys); #endif return gin::ConvertToV8(isolate, keys); -@@ -291,7 +291,7 @@ int NodeMain() { +@@ -296,7 +296,7 @@ int NodeMain() { // Setup process.crashReporter in child node processes auto reporter = gin_helper::Dictionary::CreateEmpty(isolate); reporter.SetMethod("getParameters", &GetParameters); 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 c6af893f8178..afcbf01134c5 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-17 08:46:36 UTC +--- electron/shell/browser/api/electron_api_web_contents.cc.orig 2026-04-15 14:05:49 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)); -@@ -2758,13 +2758,13 @@ void WebContents::ForcefullyCrashRenderer() { +@@ -2759,13 +2759,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); -@@ -3446,7 +3446,7 @@ void WebContents::Focus() { +@@ -3447,7 +3447,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 -@@ -4342,7 +4342,7 @@ ui::ImageModel WebContents::GetDevToolsWindowIcon() { +@@ -4343,7 +4343,7 @@ ui::ImageModel WebContents::GetDevToolsWindowIcon() { } #endif diff --git a/devel/electron40/files/patch-electron_shell_browser_osr_osr__host__display__client.cc b/devel/electron40/files/patch-electron_shell_browser_osr_osr__host__display__client.cc index 5d81b8439962..773478d22e3d 100644 --- a/devel/electron40/files/patch-electron_shell_browser_osr_osr__host__display__client.cc +++ b/devel/electron40/files/patch-electron_shell_browser_osr_osr__host__display__client.cc @@ -1,6 +1,6 @@ ---- electron/shell/browser/osr/osr_host_display_client.cc.orig 2026-01-15 18:39:20 UTC +--- electron/shell/browser/osr/osr_host_display_client.cc.orig 2026-04-15 14:05:49 UTC +++ electron/shell/browser/osr/osr_host_display_client.cc -@@ -94,7 +94,7 @@ void OffScreenHostDisplayClient::CreateLayeredWindowUp +@@ -102,7 +102,7 @@ void OffScreenHostDisplayClient::CreateLayeredWindowUp layered_window_updater_->SetActive(active_); } diff --git a/devel/electron40/files/patch-electron_shell_browser_osr_osr__video__consumer.cc b/devel/electron40/files/patch-electron_shell_browser_osr_osr__video__consumer.cc index e06e2ed8d9a7..d8b8e8d5eb2b 100644 --- a/devel/electron40/files/patch-electron_shell_browser_osr_osr__video__consumer.cc +++ b/devel/electron40/files/patch-electron_shell_browser_osr_osr__video__consumer.cc @@ -1,6 +1,6 @@ ---- electron/shell/browser/osr/osr_video_consumer.cc.orig 2025-10-27 17:58:27 UTC +--- electron/shell/browser/osr/osr_video_consumer.cc.orig 2026-04-15 14:05:49 UTC +++ electron/shell/browser/osr/osr_video_consumer.cc -@@ -128,7 +128,7 @@ void OffScreenVideoConsumer::OnFrameCaptured( +@@ -129,7 +129,7 @@ void OffScreenVideoConsumer::OnFrameCaptured( #elif BUILDFLAG(IS_APPLE) texture.shared_texture_handle = reinterpret_cast(gmb_handle.io_surface().get()); 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 9841fe58cf9b..afc177b7b92a 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,8 +1,8 @@ ---- electron/shell/browser/ui/inspectable_web_contents.cc.orig 2026-03-05 10:29:21 UTC +--- electron/shell/browser/ui/inspectable_web_contents.cc.orig 2026-04-15 14:05:49 UTC +++ electron/shell/browser/ui/inspectable_web_contents.cc -@@ -560,7 +560,7 @@ void InspectableWebContents::LoadCompleted() { - prefs.FindString("currentDockState"); - base::RemoveChars(*current_dock_state, "\"", &dock_state_); +@@ -575,7 +575,7 @@ void InspectableWebContents::LoadCompleted() { + dock_state_ = "right"; + } } -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) 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 0593310ce9b1..d6afd4409abe 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-26 20:19:14 UTC +--- electron/spec/api-browser-window-spec.ts.orig 2026-04-15 14:05:49 UTC +++ electron/spec/api-browser-window-spec.ts @@ -69,7 +69,7 @@ describe('BrowserWindow module', () => { }).not.to.throw(); @@ -180,7 +180,7 @@ // Not implemented on Linux. afterEach(closeAllWindows); -@@ -6988,7 +6988,7 @@ describe('BrowserWindow module', () => { +@@ -7008,7 +7008,7 @@ describe('BrowserWindow module', () => { describe('"transparent" option', () => { afterEach(closeAllWindows); diff --git a/devel/electron40/files/patch-electron_spec_api-crash-reporter-spec.ts b/devel/electron40/files/patch-electron_spec_api-crash-reporter-spec.ts index 484c399c9179..8fad2c38966f 100644 --- a/devel/electron40/files/patch-electron_spec_api-crash-reporter-spec.ts +++ b/devel/electron40/files/patch-electron_spec_api-crash-reporter-spec.ts @@ -1,4 +1,4 @@ ---- electron/spec/api-crash-reporter-spec.ts.orig 2024-10-22 02:29:46 UTC +--- electron/spec/api-crash-reporter-spec.ts.orig 2026-04-15 14:05:49 UTC +++ electron/spec/api-crash-reporter-spec.ts @@ -14,7 +14,7 @@ const isWindowsOnArm = process.platform === 'win32' && import { ifdescribe, ifit, defer, startRemoteControlApp, repeatedly, listen } from './lib/spec-helpers'; @@ -27,7 +27,7 @@ const { port, waitForCrash } = await startServer(); let exitCode: number | null = null; const appPath = path.join(__dirname, 'fixtures', 'apps', 'crash'); -@@ -533,7 +533,7 @@ ifdescribe(!isLinuxOnArm && !process.mas && !process.e +@@ -561,7 +561,7 @@ ifdescribe(!isLinuxOnArm && !process.mas && !process.e } } @@ -36,7 +36,7 @@ ? ['main', 'renderer', 'sandboxed-renderer'] : ['main', 'renderer', 'sandboxed-renderer', 'node']; for (const crashingProcess of processList) { -@@ -546,7 +546,7 @@ ifdescribe(!isLinuxOnArm && !process.mas && !process.e +@@ -574,7 +574,7 @@ ifdescribe(!isLinuxOnArm && !process.mas && !process.e return app.getPath('crashDumps'); }); let reportsDir = crashesDir; @@ -45,7 +45,7 @@ reportsDir = path.join(crashesDir, 'completed'); } else if (process.platform === 'win32') { reportsDir = path.join(crashesDir, 'reports'); -@@ -570,7 +570,7 @@ ifdescribe(!isLinuxOnArm && !process.mas && !process.e +@@ -598,7 +598,7 @@ ifdescribe(!isLinuxOnArm && !process.mas && !process.e expect(remoteCrashesDir).to.equal(crashesDir); let reportsDir = crashesDir; diff --git a/devel/electron40/files/patch-electron_spec_api-desktop-capturer-spec.ts b/devel/electron40/files/patch-electron_spec_api-desktop-capturer-spec.ts index ad4474e50b31..cc2e2eb006b6 100644 --- a/devel/electron40/files/patch-electron_spec_api-desktop-capturer-spec.ts +++ b/devel/electron40/files/patch-electron_spec_api-desktop-capturer-spec.ts @@ -1,4 +1,4 @@ ---- electron/spec/api-desktop-capturer-spec.ts.orig 2025-07-02 10:12:01 UTC +--- electron/spec/api-desktop-capturer-spec.ts.orig 2026-04-15 14:05:49 UTC +++ electron/spec/api-desktop-capturer-spec.ts @@ -9,7 +9,7 @@ function getSourceTypes (): ('window' | 'screen')[] { import { closeAllWindows } from './lib/window-helpers'; @@ -9,7 +9,7 @@ return ['screen']; } return ['window', 'screen']; -@@ -35,7 +35,7 @@ ifdescribe(!process.arch.includes('arm') && process.pl +@@ -35,7 +35,7 @@ describe('desktopCapturer', () => { }); // Linux doesn't return any window sources. @@ -18,7 +18,7 @@ const promise1 = desktopCapturer.getSources({ types: ['window'] }); await expect(promise1).to.eventually.be.fulfilled(); -@@ -44,7 +44,7 @@ ifdescribe(!process.arch.includes('arm') && process.pl +@@ -44,7 +44,7 @@ describe('desktopCapturer', () => { }); // Linux doesn't return any window sources. @@ -27,7 +27,7 @@ const w2 = new BrowserWindow({ width: 200, height: 200 }); await w2.loadURL('about:blank'); -@@ -56,7 +56,7 @@ ifdescribe(!process.arch.includes('arm') && process.pl +@@ -56,7 +56,7 @@ describe('desktopCapturer', () => { } }); @@ -36,7 +36,7 @@ const displays = screen.getAllDisplays(); const sources = await desktopCapturer.getSources({ types: ['screen'] }); expect(sources).to.be.an('array').of.length(displays.length); -@@ -99,7 +99,7 @@ ifdescribe(!process.arch.includes('arm') && process.pl +@@ -99,7 +99,7 @@ describe('desktopCapturer', () => { }); // Linux doesn't return any window sources. @@ -45,7 +45,7 @@ const w2 = new BrowserWindow({ show: false, width: 100, height: 100, webPreferences: { contextIsolation: false } }); const wShown = once(w2, 'show'); const wFocused = once(w2, 'focus'); -@@ -123,7 +123,7 @@ ifdescribe(!process.arch.includes('arm') && process.pl +@@ -123,7 +123,7 @@ describe('desktopCapturer', () => { }); // Linux doesn't return any window sources. @@ -54,7 +54,7 @@ const w2 = new BrowserWindow({ show: false, width: 100, height: 100, webPreferences: { contextIsolation: false } }); const wShown = once(w2, 'show'); const wFocused = once(w2, 'focus'); -@@ -169,7 +169,7 @@ ifdescribe(!process.arch.includes('arm') && process.pl +@@ -169,7 +169,7 @@ describe('desktopCapturer', () => { }); // Linux doesn't return any window sources. @@ -63,3 +63,12 @@ // DesktopCapturer.getSources() is guaranteed to return in the correct // z-order from foreground to background. const MAX_WIN = 4; +@@ -256,7 +256,7 @@ describe('desktopCapturer', () => { + }); + + // Linux doesn't return any window sources. +- ifdescribe(process.platform !== 'linux')('fetchWindowIcons', function () { ++ ifdescribe(process.platform !== 'linux' && process.platform !== 'freebsd')('fetchWindowIcons', function () { + // Tests are sequentially dependent + this.bail(true); + let w: BrowserWindow; diff --git a/devel/electron40/files/patch-electron_spec_api-protocol-spec.ts b/devel/electron40/files/patch-electron_spec_api-protocol-spec.ts index b2edf10a7bc0..d416171ce325 100644 --- a/devel/electron40/files/patch-electron_spec_api-protocol-spec.ts +++ b/devel/electron40/files/patch-electron_spec_api-protocol-spec.ts @@ -1,6 +1,6 @@ ---- electron/spec/api-protocol-spec.ts.orig 2025-11-13 22:50:46 UTC +--- electron/spec/api-protocol-spec.ts.orig 2026-04-15 14:05:49 UTC +++ electron/spec/api-protocol-spec.ts -@@ -1755,7 +1755,7 @@ describe('protocol module', () => { +@@ -1757,7 +1757,7 @@ describe('protocol module', () => { // TODO(nornagon): this test doesn't pass on Linux currently, investigate. // test is also flaky on CI on macOS so it is currently disabled there as well. diff --git a/devel/electron40/files/patch-electron_spec_chromium-spec.ts b/devel/electron40/files/patch-electron_spec_chromium-spec.ts index 9ce23a85515f..7c580a8fb362 100644 --- a/devel/electron40/files/patch-electron_spec_chromium-spec.ts +++ b/devel/electron40/files/patch-electron_spec_chromium-spec.ts @@ -1,4 +1,4 @@ ---- electron/spec/chromium-spec.ts.orig 2026-03-26 20:19:14 UTC +--- electron/spec/chromium-spec.ts.orig 2026-04-15 14:05:49 UTC +++ electron/spec/chromium-spec.ts @@ -475,13 +475,13 @@ describe('command line switches', () => { it('should not set an invalid locale', async () => testLocale('asdfkl', `${currentLocale}|${currentSystemLocale}|${currentPreferredLanguages}`)); @@ -18,7 +18,7 @@ }); describe('--remote-debugging-pipe switch', () => { -@@ -3346,12 +3346,12 @@ describe('font fallback', () => { +@@ -3412,12 +3412,12 @@ describe('font fallback', () => { expect(fonts[0].familyName).to.equal('Arial'); } else if (process.platform === 'darwin') { expect(fonts[0].familyName).to.equal('Helvetica'); @@ -33,7 +33,7 @@ const html = ` -@@ -3904,7 +3904,7 @@ describe('paste execCommand', () => { +@@ -3970,7 +3970,7 @@ describe('paste execCommand', () => { }); }); diff --git a/devel/electron40/files/patch-services_device_public_cpp_device__features.cc b/devel/electron40/files/patch-services_device_public_cpp_device__features.cc index 165056d4cf5d..f0d89278acee 100644 --- a/devel/electron40/files/patch-services_device_public_cpp_device__features.cc +++ b/devel/electron40/files/patch-services_device_public_cpp_device__features.cc @@ -1,6 +1,6 @@ ---- services/device/public/cpp/device_features.cc.orig 2026-01-07 00:52:53 UTC +--- services/device/public/cpp/device_features.cc.orig 2026-04-19 04:41:10 UTC +++ services/device/public/cpp/device_features.cc -@@ -131,7 +131,7 @@ BASE_FEATURE(kAutomaticUsbDetach, base::FEATURE_ENABLE +@@ -137,7 +137,7 @@ BASE_FEATURE(kAutomaticUsbDetach, base::FEATURE_ENABLE // a USB interface is busy. #if BUILDFLAG(IS_ANDROID) BASE_FEATURE(kAutomaticUsbDetach, base::FEATURE_ENABLED_BY_DEFAULT); diff --git a/devel/electron40/files/patch-services_device_public_cpp_device__features.h b/devel/electron40/files/patch-services_device_public_cpp_device__features.h index e2e71f23799b..755790c38349 100644 --- a/devel/electron40/files/patch-services_device_public_cpp_device__features.h +++ b/devel/electron40/files/patch-services_device_public_cpp_device__features.h @@ -1,6 +1,6 @@ ---- services/device/public/cpp/device_features.h.orig 2025-04-22 20:15:27 UTC +--- services/device/public/cpp/device_features.h.orig 2026-04-19 04:41:10 UTC +++ services/device/public/cpp/device_features.h -@@ -53,7 +53,7 @@ DEVICE_FEATURES_EXPORT bool IsOsLevelGeolocationPermis +@@ -55,7 +55,7 @@ DEVICE_FEATURES_EXPORT bool IsOsLevelGeolocationPermis DEVICE_FEATURES_EXPORT bool IsOsLevelGeolocationPermissionSupportEnabled(); diff --git a/devel/electron40/files/patch-v8_BUILD.gn b/devel/electron40/files/patch-v8_BUILD.gn index fa9d099c4b81..45dbd37d0022 100644 --- a/devel/electron40/files/patch-v8_BUILD.gn +++ b/devel/electron40/files/patch-v8_BUILD.gn @@ -1,4 +1,4 @@ ---- v8/BUILD.gn.orig 2026-01-07 00:52:53 UTC +--- v8/BUILD.gn.orig 2026-04-19 04:41:10 UTC +++ v8/BUILD.gn @@ -999,6 +999,8 @@ external_v8_defines = [ "V8_TARGET_OS_MACOS", @@ -30,7 +30,7 @@ ] } } -@@ -2657,6 +2664,12 @@ template("run_mksnapshot") { +@@ -2659,6 +2666,12 @@ template("run_mksnapshot") { if (!v8_enable_builtins_profiling && v8_enable_builtins_reordering) { args += [ "--reorder-builtins" ] } @@ -43,7 +43,7 @@ } # This is needed to distinguish between generating code for the simulator -@@ -6934,7 +6947,7 @@ v8_component("v8_libbase") { +@@ -6936,7 +6949,7 @@ v8_component("v8_libbase") { } } @@ -52,7 +52,7 @@ sources += [ "src/base/debug/stack_trace_posix.cc", "src/base/platform/platform-linux.cc", -@@ -6945,6 +6958,18 @@ v8_component("v8_libbase") { +@@ -6947,6 +6960,18 @@ v8_component("v8_libbase") { "dl", "rt", ]