Electron: v38.0.0-alpha.2 Release

Release date:
June 25, 2025
Previous version:
v38.0.0-alpha.1 (released June 24, 2025)
Magnitude:
3 Diff Delta
Contributors:
1 total committer
Data confidence:
Commits:

Top Contributors in v38.0.0-alpha.2

trop[bot]

Directory Browser for v38.0.0-alpha.2

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Note: This is an alpha release. Please file new issues for any bugs you find in it.

This release is published to npm under the alpha tag and can be installed via npm install electron@alpha, or npm install [email protected].

# Release Notes for v38.0.0-alpha.2

Features

  • Added before-mouse-event to allow intercepting and preventing mouse events in WebContents. #47280 <span style="font-size:small;">(Also in 36, 37)</span>
  • Added innerWidth and innerHeight options for window.open. #46749 <span style="font-size:small;">(Also in 35, 36, 37)</span>
  • Added sublabel functionality for menus on macOS >= 14.4. #46887 <span style="font-size:small;">(Also in 35, 36, 37)</span>
  • Added support for --no-experimental-global-navigator flag. #47370 <span style="font-size:small;">(Also in 35, 36, 37)</span>
  • Added support for HIDDevice.collections. #47391 <span style="font-size:small;">(Also in 36, 37)</span>
  • Added support for screen.dipToScreenPoint(point) and screen.screenToDipPoint(point) on Linux X11. #46211 <span style="font-size:small;">(Also in 35, 36, 37)</span>
  • Added support for customizing system accent color and highlighting of active window border. #47285 <span style="font-size:small;">(Also in 35, 36, 37)</span>
  • Added support for menu item role palette and header on macOS. #45538 <span style="font-size:small;">(Also in 37)</span>
  • Added support for node option --experimental-network-inspection. #46690 <span style="font-size:small;">(Also in 35, 36, 37)</span>
  • Added the priority and priorityIncremental options to net.request(). #42628 <span style="font-size:small;">(Also in 36, 37)</span>
  • Exposed win.isContentProtected() to allow developers to check window protection status. #47242 <span style="font-size:small;">(Also in 36, 37)</span>

    Fixes

  • Fixed addChildView() crashes when adding a closed WebContentsView. #47099 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed a crash that could occur when opening some dialogs as windows are closing on macOS. #46927 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed a possible crash using the WebView tag and calling focus. #46979 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed a potential crash using session.clearData in some circumstances. #47361 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed an error when importing electron for the first time from an ESM module loaded by a CJS module in a packaged app. #46810 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed an issue where webContents.print did not work as expected when mediaSize was not passed. #46937 <span style="font-size:small;">(Also in 36, 37)</span>

  • Fixed an issue where calling Fetch.continueResponse via debugger with WebContentsView could cause a crash. #47434 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed an issue where filters wouldn't apply in the specific case only one was passed. #46900 <span style="font-size:small;">(Also in 36, 37)</span>

  • Fixed an issue where printing PDFs with webContents.print({ silent: true }) would fail. #47378 <span style="font-size:small;">(Also in 37)</span>

  • Fixed an issue where protected transparent windows inappropriately showed a titlebar after visibility change. #47241 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed an issue where the 'suspend' and 'resume' events could be emitted in duplicate. #47162 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed an issue where the window flickers with either a light or dark color before loading the desired background color. #47022 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed an issue where transparent child windows on macOS were rendering a grey block as opposed to their correct contents. #46886 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed an issue where utility processes could leak file handles. #47525 <span style="font-size:small;">(Also in 35, 36, 37)</span>

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

  • Fixed crash in autoUpdater on macOS when zip extraction failed. #47271 <span style="font-size:small;">(Also in 34, 35, 36, 37)</span>

  • Fixed crash in xdg portal version detection on startup. #47008 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed log files written to the current working directory on Windows. #44413 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed opening package paths as directory when treatPackageAsDirectory is enabled on macOS. #47077 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed regression with directory selection in macOS dialogs. #47259 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Fixed utilityProcess running user script after process.exit is called. #47469 <span style="font-size:small;">(Also in 37)</span>

  • Fixed xdg portal version detection for file dialogs on linux. #46905 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Partially fixes an issue with printing a PDF via webContents.print() where the callback would not be called. #47377 <span style="font-size:small;">(Also in 35, 36, 37)</span>

  • Restored previous window-hiding behavior of win.setContentProtected() on Windows. #47020 <span style="font-size:small;">(Also in 35, 36, 37)</span>

    Other Changes

  • Updated Chromium to 139.0.7219.0. #47348

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

    Documentation

    • Documentation changes: #46760