Electron v38.0.0-alpha.2

npm
npm install --save-dev electron@38.0.0-alpha.2
yarn
yarn add --dev electron@38.0.0-alpha.2
Google ChromeChromium
139.0.7219.0
Node.jsNode.js
22.16.0
V8V8
13.9.74

Release Notes

Features

  • Added before-mouse-event to allow intercepting and preventing mouse events in WebContents. #47280 (Also in 36, 37)

  • Added innerWidth and innerHeight options for window.open. #46749 (Also in 35, 36, 37)

  • Added sublabel functionality for menus on macOS >= 14.4. #46887 (Also in 35, 36, 37)

  • Added support for --no-experimental-global-navigator flag. #47370 (Also in 35, 36, 37)

  • Added support for HIDDevice.collections. #47391 (Also in 36, 37)

  • Added support for screen.dipToScreenPoint(point) and screen.screenToDipPoint(point) on Linux X11. #46211 (Also in 35, 36, 37)

  • Added support for customizing system accent color and highlighting of active window border. #47285 (Also in 35, 36, 37)

  • Added support for menu item role palette and header on macOS. #45538 (Also in 37)

  • Added support for node option --experimental-network-inspection. #46690 (Also in 35, 36, 37)

  • Added the priority and priorityIncremental options to net.request(). #42628 (Also in 36, 37)

  • Exposed win.isContentProtected() to allow developers to check window protection status. #47242 (Also in 36, 37)

Fixes

  • Fixed addChildView() crashes when adding a closed WebContentsView. #47099 (Also in 35, 36, 37)

  • Fixed a crash that could occur when opening some dialogs as windows are closing on macOS. #46927 (Also in 35, 36, 37)

  • Fixed a possible crash using the WebView tag and calling focus. #46979 (Also in 35, 36, 37)

  • Fixed a potential crash using session.clearData in some circumstances. #47361 (Also in 35, 36, 37)

  • Fixed an error when importing electron for the first time from an ESM module loaded by a CJS module in a packaged app. #46810 (Also in 35, 36, 37)

  • Fixed an issue where webContents.print did not work as expected when mediaSize was not passed. #46937 (Also in 36, 37)

  • Fixed an issue where calling Fetch.continueResponse via debugger with WebContentsView could cause a crash. #47434 (Also in 35, 36, 37)

  • Fixed an issue where filters wouldn't apply in the specific case only one was passed. #46900 (Also in 36, 37)

  • Fixed an issue where printing PDFs with webContents.print({ silent: true }) would fail. #47378 (Also in 37)

  • Fixed an issue where protected transparent windows inappropriately showed a titlebar after visibility change. #47241 (Also in 35, 36, 37)

  • Fixed an issue where the 'suspend' and 'resume' events could be emitted in duplicate. #47162 (Also in 35, 36, 37)

  • Fixed an issue where the window flickers with either a light or dark color before loading the desired background color. #47022 (Also in 35, 36, 37)

  • Fixed an issue where transparent child windows on macOS were rendering a grey block as opposed to their correct contents. #46886 (Also in 35, 36, 37)

  • Fixed an issue where utility processes could leak file handles. #47525 (Also in 35, 36, 37)

  • Fixed broken chrome://accessibility page. #47497

  • Fixed crash in autoUpdater on macOS when zip extraction failed. #47271 (Also in 34, 35, 36, 37)

  • Fixed crash in xdg portal version detection on startup. #47008 (Also in 35, 36, 37)

  • Fixed log files written to the current working directory on Windows. #44413 (Also in 35, 36, 37)

  • Fixed opening package paths as directory when treatPackageAsDirectory is enabled on macOS. #47077 (Also in 35, 36, 37)

  • Fixed regression with directory selection in macOS dialogs. #47259 (Also in 35, 36, 37)

  • Fixed utilityProcess running user script after process.exit is called. #47469 (Also in 37)

  • Fixed xdg portal version detection for file dialogs on linux. #46905 (Also in 35, 36, 37)

  • Partially fixes an issue with printing a PDF via webContents.print() where the callback would not be called. #47377 (Also in 35, 36, 37)

  • Restored previous window-hiding behavior of win.setContentProtected() on Windows. #47020 (Also in 35, 36, 37)

Other Changes

  • Updated Chromium to 139.0.7219.0. #47348

  • Updated Node.js to v22.16.0. #47217

Documentation

  • Documentation changes: #46760