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 electron@16.0.0-alpha.2
.
Features
- Added WebHID support. #31090 (Also in 15)
- Added
textWidth
option to dialog.showMessageBox()
/ dialog.showMessageBoxSync()
. #31089 (Also in 15)
Fixes
- Fixed an issue where BrowserView dragging behavior was inconsistent with MacOS window dragging. #31178 (Also in 13, 14, 15)
- Fixed an issue where out-of-focus BrowserViews could not be immediately dragged. #31101 (Also in 13, 14)
- Fixed black border around the page after resizing is disabled. #31080 (Also in 13, 14, 15)
- Fixed crash caused by double free when destroying WebContents. #31132 (Also in 14, 15)
- Fixed crash in v8 due to
(Check failed: !regexp_stack_->is_in_use())
. #31145 (Also in 13, 14, 15)
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 electron@16.0.0-alpha.1
.
Features
- Added 'dom-ready' event to
WebFrameMain
which emits when the frame's document is ready.
- Added 'frame-created' event to
WebContents
which emits when a frame is created in the page. #29290 (Also in 15)
- Added
<webview>.sendToFrame()
/ frameId
to 'ipc-message'
event. #30451 (Also in 15)
- Added
<webview>
'did-redirect-navigation'
event. #30457 (Also in 15)
- Added
app.configureHostResolver
API for configuring DNS-over-HTTPS. #30576 (Also in 15)
- Added
frame
property to the params
object of the 'context-menu' event. #30831 (Also in 15)
- Added
isIssuedByKnownRoot
to ses.setCertificateVerifyProc
callback. #30174
- Added
isMainFrame
argument to 'certificate-error'
event. #30879
- Added
safeStorage
string encryption API. #30020 (Also in 15)
- Added
webContents.fromDevToolsTargetId(targetId)
to lookup a WebContents instance from an associated Chrome DevTools Protocol TargetID. #29399 (Also in 12, 13, 14, 15)
- Added an Electron Fuse for enforcing code signatures on the
app.asar
file your application loads. Requires the latest asar
module. #30667 (Also in 15)
- Added fuses to disable
NODE_OPTIONS
and --inspect
debug arguments in packaged apps. #30190 (Also in 15)
- Added support for Windows Control Overlay on Windows. #29600 (Also in 14, 15)
- Added support for the U2F Web API. #30438
- Clicking a hyperlink in a PDF now does what you'd expect. #30069
- Emit a warning when setting a crash key name longer than the maximum allowed length. #30742
- Enabled sandboxing by default on WebContents which do not use Node or preloads. #30197
- NativeImage objects are now serializable over IPC. #30729
- The
crashReporter
API is now powered by Crashpad on Linux. #30278
- Usage of the
desktopCapturer.getSources
API from the renderer process has been deprecated and will be removed. #30721
Fixes
- Fixed
documentEdited
status not updating close button for frameless window on macOS. #30322 (Also in 13, 14, 15)
- Fixed a crash in
navigator.fonts.query()
. #30930 (Also in 14, 15)
- Fixed a crash in the repl when
SharedArrayBuffer
is disabled. #30456 (Also in 14, 15)
- Fixed a crash when
process.exit
is called and nativeWindowOpen
is enabled. #30218 (Also in 14, 15)
- Fixed a crash when selecting files in a native file dialog on Windows and Linux. #30916 (Also in 15)
- Fixed a potential crash that would occur with draggable regions on Windows. #30304 (Also in 13, 14, 15)
- Fixed an issue on Mac where an application could not capture its own window using the desktop capture or getMediaSourceId APIs. #30507 (Also in 13, 14, 15)
- Fixed an issue on Windows where empty console windows were appearing when
--enable-logging
was present. #30375 (Also in 14, 15)
- Fixed an issue present in
webView
where the leave-html-full-screen
event is not emitted if the user exits fullscreen with esc
instead of by clicking into the webView
. #30537 (Also in 12, 13, 14, 15)
- Fixed an issue where
BrowserView
webContents would appear not to load in some circumstances. #29919 (Also in 13, 14, 15)
- Fixed an issue where a specified aspect ratio could become incorrect when maximizing a window on macOS. #30305 (Also in 12, 13, 14, 15)
- Fixed an issue where background color would not be correctly applied to
BrowserViews
on Windows when either the x
or y
coordinate is negative (off-screen). #30510 (Also in 13, 14, 15)
- Fixed an issue where button labels in file choosers were improperly localized on Linux. #31067
- Fixed an issue where multiple calls to
BrowserWindow.setResizable()
can cause the zoom button to incorrectly be disabled on macOS. #30999 (Also in 14, 15)
- Fixed an issue where non-resizable non-fullscreenable windows with aspect ratios set could return incorrect results for
isMaximized()
. #30989 (Also in 13, 14, 15)
- Fixed an issue where some transparent windows would show with a white background. #31003
- Fixed an issue where the TouchBarScrubber crashes when
showArrowButtons
is enabled if items
is an empty array. #30661 (Also in 13, 14, 15)
- Fixed an issue where toggling
documentEdited
status on macOS with titlebarStyle: 'hiddenInset'
inadvertently moves the traffic light location. #30565 (Also in 13, 14, 15)
- Fixed an issue where undocked devtools was not resizable on Windows. #30823 (Also in 14, 15)
- Fixed beta-only bug that caused mouse clicks to not be processed in frameless windows. #30447 (Also in 14, 15)
- Fixed child windows not inheriting the correct transparency and background color settings. #31031 (Also in 14, 15)
- Fixed crash in webview creation casued by UAF in the browser process. #24344
- Fixed detached DevTools window not closing when a menu item with the toggleDevTools role was triggered. #29922
- Fixed frameless window having wrong traffic lights position on macOS 11. #30263 (Also in 13, 14, 15)
- Fixed imageAnimationPolicy not being respected. #30403
- Fixed media key
globalShortcut
s on macOS. #30552 (Also in 14, 15)
- Fixed navigator.serial.getPorts() to return previously selected ports. #30209
- Fixed potential crash when programatically closing a draggable frameless child window. #30571 (Also in 15)
- Fixed rare crash in UpdateDraggableRegions. #30556 (Also in 13, 14, 15)
- Fixed some console messages still being printed to logs when the LogJsConsoleMessages feature was disabled. #30312 (Also in 14, 15)
- Fixed stack overflow crash in v8 on windows 32-bit builds. #29474 (Also in 12, 13, 14, 15)
- Fixed titlebar showing under simple fullscreen mode. #30671 (Also in 13, 14, 15)
- Fixed transparent frameless windows having an opaque background when opened in a maximized state. #30804 (Also in 12, 13, 14, 15)
- None. #30938 (Also in 14, 15)
- Notes: Fixed a crash when selecting and opening files in a native file dialog on Mac. #30935 (Also in 15)
Other Changes
- Notes. #30838
- Updated Chromium to 95.0.4629.0. #30676
- Updated Node.js to v16.9.1. #30919
- Web Serial API is no longer experimental. #30237 (Also in 14, 15)
- WebContents for
<webview>
are now only created after the 'will-attach-webview'
event is emitted and preventDefault
is not called. #30311
Documentation