npm install electron@v10.0.0-beta.1
yarn add electron@v10.0.0-beta.1
Note: This is a beta release, this means it may be shipping with an unreleased version of Chromium.
Please file new issues for any bugs you find in it.
Release Notes
Breaking Changes
- Changed the default value of 'enableRemoteModule' to false. #22091
- Fixed the positioning of window buttons on MacOS when the OS locale is set to an RTL language (like Arabic or Hebrew). Frameless window apps may have to account for this change while styling their windows. #22016
Features
- Added
contents.getBackgroundThrottling()
method and contents.backgroundThrottling
property. #21036
- Added
rateLimit
and compress
options to crashReporter
. #23062
- Added a
sameSite
property to the Cookie structure allowing you to get and set the same site policy for cookies. #22789
- Added new
render-process-gone
event on app
to replace the renderer-process-crashed
event. #23560
- Added new
render-process-gone
event to replace the crashed
event. #23096
- Added new
useSessionCookies
flag to net
requests to allow them to use the session cookie store. #22704
- Added support for
MessagePort
in the main process. #22404
- Added support for the 'compress' option of crashReporter on Linux. #23597
- Added the 'onclose' event to MessagePort and MessagePortMain. #22532
- Added the ability to get the "Recent" folder on Windows with
app.getPath('recent')
. #23381
- BrowserWindow
darkTheme
option now defaults to nativeTheme.shouldUseDarkColors
. #20138
- Can now check if a given
session
is persistent by calling the ses.isPersistent()
API. #22622
- Deprecated uncompressed crash uploads in
crashReporter
. #23598
- Enable native Electron handling and passing of Node.js cli options. #21110
- Enhanced window.open functionality with the ability to handle
POST
data in the new-window
event. #19703
- Exposed the
desktopCapturer
module in the main process. #23548
- The position of nested touch bars inherited from Chromium can now be customized (macOS). #22270
Fixes
- Fixed BrowserWindow.moveAbove on Windows. #23161
- Fixed
WebContents.focus
not focusing window on macOS and Linux. #22323
- Fixed a crash that could happen when a warning was emitted when loading an extension. #23667
- Fixed a crash when closing GTK file open/save dialogs. #23109
- Fixed a crash when using
<input type="file" />
. #22843
- Fixed a potential crash when menu is created from an empty template. #23308
- Fixed an issue that could cause exceptions in the 'remote' module when accessing objects without constructors. #22820
- Fixed an issue where
startDrag
could crash if some specific strings were passed into nativeImage.createFromImage
to create the icon
. #23467
- Fixed an issue where diagnostic error reporting wasn't available in Node.js processes. #23126
- Fixed an issue where undo and redo shortcuts did not work in webviews. #22911
- Fixed crash-on-exit that could happen during node platform deinitialization. #23116
- Fixed issue where
SameSite
cookies would not be attached to outgoing requests from the net
module. #22788
- Fixed several memory leaks related to V8 handles not being properly scoped. #22531
- Fixed some Wasm and diagnostics issues in main and renderer process execution of Node.js. #23261
- Fixed some event listener crashes in Tray. #23140
- Fixed the JavaScript object of
BrowserWindow
not garbage collected when window is closed. #22006
Other Changes
- Fixed feature string parsing type coercion for window.open. #23130
- Removed the deprecated
currentlyLoggingPath
property of netLog
. Additionally, netLog.stopLogging
no longer returns the path to the recorded log. #22732
- Updated Node.js to v12.16.3. #23327
Documentation