Filter by channel
Release Notes for v19.0.0
Stack Upgrades
- Chromium 102.0.5005.61
- Node v16.14.2
- V8 10.2
Features
Additions
- Added
BrowserWindow
method to change the button color, symbol color, and height of a window with WCO enabled. #33066 (Also in 18) - Added
nativeTheme.inForcedColorsMode
API to allow detecting forced color mode. #32956 (Also in 15, 16, 17, 18) - Added
ses.setCodeCachePath()
API for setting code cache directory. #31154 (Also in 17, 18) - Added ability to configure if window should close when opener closes. #31314
- Added support for more color formats in
setBackgroundColor
. #31868 (Also in 18) - Added warning that preload scripts will be sandboxed by default beginning in Electron 20. #32868 (Also in 18)
- Enabled
systemPreferences.subscribe{Local|Workspace}Notification
to take anull
value for theevent
parameter. #33770 (Also in 18) - Fixed an issue where calling
setTitlebarOverlay
with an initially invalidtitleBarStyle
on Windows would result in a crash. #34302 - Fixed an issue where the PDF Viewer would fail if a user attempted to reload. #33712 (Also in 18)
Fixes
- Added support for the
--unsafely-treat-insecure-origin-as-secure
command-line flag. #33189 - Fixed a potential crash when calling
webContents.print()
. #34299 - Fixed an issue where
#ARGB
->#RGBA
and#AARRGGBB
->#RRGGBBAA
were converted improperly when setting background color. #33755 - Fixed an issue where some
BrowserWindow
s opened from new links wouldn't properly load URLs. #34189 - Fixed an issue with background colors being improperly applied to
BrowserView
s on Windows. #33435 - Fixed crash when img without
alt
is shown with accessibility features enabled. #33841 - Fixed the initialization of First Party Sets on Windows, where First Party Sets would sometimes fail to load. #34138
- Fixed the initialization of First Party Sets. #33972
- Fixed the initialization of first party sets in the browser process. #34011
Also in earlier versions....
- Apply senderFrame details to ipcMain port event. #33783 (Also in 16, 17, 18)
- Fire 'show' event when a BrowserWindow is shown via maximize(). #32979 (Also in 16, 17, 18)
- Fix: initialize asar support in worker threads. #33216 (Also in 18)
- Fixed BrowserWindow.showInactive restoring a maximized window to non-maximized on Windows. #32870 (Also in 16, 17, 18)
- Fixed a V8 crash that could happen randomly in non-sandboxed renderer processes. #33252 (Also in 18)
- Fixed a bug where
BrowserWindow.fromWebContents
would returnundefined
during thebrowser-window-created
event. #33257 (Also in 18) - Fixed a crash in
safeStorage
on Linux. #34147 (Also in 15, 16, 17, 18) - Fixed a crash on Windows when opening apps in multiple, separate user sessions. #34160 (Also in 18)
- Fixed a crash when calling
loadExtension
on an extension directory that's missing a manifest file. #34303 (Also in 16, 17) - Fixed a network service crash that could occur when using setCertificateVerifyProc. #33204 (Also in 17, 18)
- Fixed a potential crash in
Browser.getFocusedWindow()
when child windows are closed. #33404 (Also in 16, 17, 18) - Fixed an OSR crash happening when input select items were rendered. #34093 (Also in 17, 18)
- Fixed an issue where BrowserView layout bounds where limited to it's visible bounds. #32747 (Also in 17, 18)
- Fixed an issue where Chrom DevTools settings didn't persist between loads. #33120 (Also in 17, 18)
- Fixed an issue where First Party Sets were not correctly loaded on app launch. #33339 (Also in 18)
- Fixed an issue where Pointer Lock behavior could not be properly exited. #32369 (Also in 18)
- Fixed an issue where
BrowserWindow#isFocused()
was returningfalse
whenblur()
was called on macOS. #34031 (Also in 17, 18) - Fixed an issue where
Escape
keyboard events would not be properly propagated to the parent window after entering fullscreen and then exiting it again on Windows. #33788 (Also in 18) - Fixed an issue where
alternateImage
s did not work properly on macOS. #33026 (Also in 15, 16, 17, 18) - Fixed an issue where
webContents.openDevTools({ mode })
did not work for certain dock positions. #32829 (Also in 17, 18) - Fixed an issue where
webContents.savePage
failed when passing a relative path instead of an absolute one. #32728 (Also in 15, 16, 17, 18) - Fixed an issue where bounds changes were incorrectly delayed in the case where a window was moved or resized and
event.preventDefault
was called in eitherwill-resize
orwill-move
on Windows. #34285 (Also in 16, 17) - Fixed an issue where calling
SetLoginItemSettings()
could potentially cause network volumes to be incorrectly mounted. #34108 (Also in 17, 18) - Fixed an issue where clicking "Open in Containing Folder" in the Sources tab in Devtools caused a crash. #33024 (Also in 16, 17, 18)
- Fixed an issue where frameless windows on Windows would incorrectly show a small frame during the loading process. #32692 (Also in 14, 15, 16, 17, 18)
- Fixed an issue where mixed-case extension filters in file dialogs were ignored on Linux. #34015 (Also in 18)
- Fixed an issue where new bounds set via
setBounds
was not correctly applied if the user was moving or resizing the window concurrently on Windows. #33288 (Also in 18) - Fixed an issue where pages would not properly print on macOS due to a rendering failure. #32767 (Also in 18)
- Fixed an issue where setting window
maxHeight
ormaxWidth
made it so the width and height could no longer be resized. #33025 (Also in 17, 18) - Fixed an issue where the Tray could get garbage collected incorrectly under some circumstances. #33040 (Also in 15, 16, 17, 18)
- Fixed an issue where the the window bounds would incorrectly change if
BrowserWindow.unmaximize
was called on a window whose user bounds were maximized. #33549 (Also in 16, 17, 18) - Fixed an issue where tray items wouldn't highlight in some scenarios on macOS. #34208 (Also in 16, 17, 18)
- Fixed an issue with the
app.requestSingleInstanceLock()
API where it would sometimes hang. #34071 (Also in 18) - Fixed an occasional crash on Mac when spawning a child process. #33114 (Also in 17, 18)
- Fixed broken event loop in renderer process when process reuse is enabled on windows platform. #33207 (Also in 16, 17, 18)
- Fixed broken transparency option in offscreen window rendering. #32885 (Also in 16, 17, 18)
- Fixed building node modules with Visual Studio 2017. #34164 (Also in 18)
- Fixed command string registered via setAsDefaultProtocolClient on windows. #32953 (Also in 14, 15, 16, 17, 18)
- Fixed crash in the render process on reload with pending node fs.promises. #33280 (Also in 15, 16, 17, 18)
- Fixed crash on startup due to missing gtk symbol on older distros. #34151 (Also in 18)
- Fixed crash when WindowButtonsProxy references cleared NSWindow. #33069 (Also in 15, 16, 17, 18)
- Fixed crash when opening gtk file dialogs due to mismatched versions. #33813 (Also in 18)
- Fixed drag regions on WCO windows on Windows. #32871 (Also in 15, 16, 17, 18)
- Fixed effect when hovering over window controls on Windows in a WCO-enabled window. #32672 (Also in 14, 15, 16, 17, 18)
- Fixed incorrect external memory allocation tracking in nativeImage module. #33266 (Also in 15, 16, 17, 18)
- Fixed incorrect return value of
app.requestSingleInstanceLock()
when setting non-existent user data folder. #33593 (Also in 16, 17, 18) - Fixed issues with frameless window animations and styling. #33609 (Also in 15, 16, 17, 18)
- Fixed maximizing frameless windows by double-clicking on a draggable (title bar) region. #33438 (Also in 15, 16, 17, 18)
- Fixed multiple issues when running under Wayland caused by calling X11 functions. #33355 (Also in 17, 18)
- Fixed possible race conditions between frame state and electron ipc. #32734 (Also in 17)
- Fixed potential crash while generating accessibility trees for certain images. #33617 (Also in 18)
- Fixed potential crash with WebFrameMain when navigating between cross-origin websites. #34294 (Also in 18)
- Fixed slowness when using child_process.spawn and related methods on macOS Big Sur and newer. #33337 (Also in 16, 17, 18)
- Fixed stale renderer process when application is quit while renderer is busy. #32888 (Also in 14, 15, 16, 17, 18)
- Fixed the IncrementCapturerCount regression introduced by 13.0.0-beta.21. #32973 (Also in 18)
- SIGUSR1 is no longer handled when the
node_cli_inspect
fuse is disabled. #33188 (Also in 16, 17, 18) - Strip crashpad_handler binary on Linux, reducing bundle size. #33126 (Also in 15, 16, 17, 18)
- Theoretical fix for a crash we're seeing when closing multiple child windows at the same time on macOS. #33063 (Also in 17, 18)
- [Mac] Fixed Partition Alloc related crash in pre-BigSur (macos <= 10.15). #33966 (Also in 18)
shell.openExternal()
now reports more detailed errors on Windows. #33660 (Also in 15, 16, 17, 18)
Other Changes
- Chore: backport EPROTOTYPE fixes from libuv. #32856 (Also in 16, 17, 18)
- Fixed an issue where adding/removing display changes the BrowserWindow size. #33109 (Also in 14, 15, 16, 17, 18)
- Fixed child_process.spawn ENOENT error with cwd option. #33872 (Also in 16, 17, 18)
- Re-enabled symbol generation on 32-bit Windows. #34179
- Removed the semi-documented
preloadURL
property from WebPreferences. #33228 - Temporarily disabled symbol generation on 32-bit Windows due to issues with symbol generation on that platform. #33689
- Updated node types version. #33452 (Also in 18)
Documentation
End of Support for 15.x.y and 16.x.y
Electron 15.x.y and 16.x.y has reached end-of-support. As per Electron's new 8-week cadence, we were supporting the latest four versions of Electron until May 2022. With this Electron 19 release, we'll return to supporting the latest three major versions, as well as the alpha, beta, and nightly releases.