Release Notes for v13.0.0-beta.2
Note: This is a beta release. Please file new issues for any bugs you find in it.
This release is published to npm under the beta tag and can be installed via npm install electron@beta
, or npm install electron@13.0.0-beta.2
.
Breaking Changes
- Fixed so window.open() parameter frameName is no longer set as window title. #27481
Features
- Added
event.senderFrame
property returning the originatingwebFrameMain
of the IPC message. #26764 (Also in 12) - Added
exitCode
torender-process-gone
details. #27580 (Also in 12) - Added
frame
andwebContents
properties to the details object in webRequest handlers. #27078 (Also in 12) - Added
process.uptime()
to sandboxed renderers. #26684 - Added
roundedCorners
option forBrowserWindow
. #27572 - Added
webFrameMain.send()
/webFrameMain.postMessage()
. #26807 (Also in 12) - Added
win.setTopBrowserView()
so that BrowserViews can be raised. #27007 (Also in 10, 11, 12) - Added missing
webFrameMain.executeJavaScriptInIsolatedWorld()
. #26913 (Also in 12) - Added missing fields to the parameters emitted as part of the
context-menu
event. #26788 - Added support for passing DOM elements over the context bridge. #26776
- Added support for registering Manifest V3 extension service workers.
- Added 'registration-completed' event to
ServiceWorkers
. #27562
- Added 'registration-completed' event to
- Additional permission checks are now routed through
session.setPermissionCheckHandler
. These includeNotification.permission
, andpermission.query
. Please note that thewebContents
parameter to the check handler can now be null. #19903 - Allow ContextBridge
exposeInMainWorld
method to expose non-object APIs. #26594 (Also in 12) - Allowed skipping process type transformation in win.SetVisibleOnAllWorkspaces on macOS. #27200
- Changed the default value of
contextIsolation
totrue
. #26890 (Also in 12) - Changed the default value of
worldSafeExecuteJavaScript
to betrue
. #26889 (Also in 12) - Made
trafficLightPosition
option work forcustomButtonOnHover
window. #26789 - Made
win.setAspectRatio()
work on Windows. #26941 (Also in 11, 12)
Fixes
- Added Electron DLLs like libGLESv2.dll to symbol server. #26962 (Also in 9, 10, 11, 12)
- Added default Bluetooth permission strings to info.plist. #26730 (Also in 11, 12)
- Apps requesting the CAMERA_PAN_TILT_ZOOM permission will have the permission request handler called with a permission string of "media" instead of "font-access". #27006
- Fixed "screen" methods to be reassignable again. #26818 (Also in 11, 12)
- Fixed CSP with
unsafe-eval
detection with Trusted Types. #27446 (Also in 9, 10, 11, 12) - Fixed ECDH.setPrivateKey() not updating the key. #27688 (Also in 12)
- Fixed OS-level shortcuts on macOS (e.g. Ctrl + F2, ⌘ + ~). #27701 (Also in 11, 12)
- Fixed PDF viewer failing to load resources. #27499 (Also in 12)
- Fixed PDFs not loading in the PDF viewer. #27209 (Also in 12)
- Fixed
<webview>
not working with Trusted Types. #27445 (Also in 9, 10, 11, 12) - Fixed
contentTracing.stopRecording()
not rejecting when there is no trace in progress. #26608 (Also in 11, 12) - Fixed
hiddenInset
titleBarStyle's abnormal fullscreen titlebar. FixhiddenInset
titleBarStyle not working withtrafficLightPosition
option. #27489 - Fixed
protocol
methods not being accessible viaremote.protocol
. #27009 (Also in 11, 12) - Fixed
readdir
/readdirSync
(w/withFileTypes
) failing on a deep directory within archive. #26865 (Also in 10, 11, 12) - Fixed
screen
methods not being accessible viaremote.screen
. #26620 (Also in 11, 12) - Fixed
systemPreferences.effectiveAppearance
returningsystemPreferences.getAppLevelAppearance()
. #26852 (Also in 9, 10, 11, 12) - Fixed a crash in renderer process when loading non-context-aware modules with
app.allowRendererProcessReuse
enabled. #27296 (Also in 12) - Fixed a crash that could occur on app quit when using the remote module. #27038 (Also in 11, 12)
- Fixed a crash when calling
crypto.createDiffieHellman()
with certain parameters. #27674 (Also in 12) - Fixed a crash when calling
webContents.fromId
with an unknown ID. #26609 (Also in 11, 12) - Fixed a memory leak in desktopCapturer.getSources. #27031 (Also in 9, 10, 11, 12)
- Fixed a memory leak when creating BrowserWindows. #27621 (Also in 11, 12)
- Fixed a potential crash when resetting
BrowserView
s. #27786 (Also in 10, 11, 12) - Fixed a rare crash on Windows that could occur when emitting certain
Tray
events. #26668 (Also in 12) - Fixed a use-after-free bug during shutdown when using off-the-record sessions. #26680
- Fixed a use-after-free error that could occur when destroying a WebContents during the
did-stop-loading
event. #26702 (Also in 12) - Fixed an erroneous
enableBlinkFeatures
warning shown webviews which enabled no Blink features. #27753 (Also in 10, 11, 12) - Fixed an issue that a message box in GTK contains no buttons. #26857 (Also in 10, 11, 12)
- Fixed an issue where BrowserViews couldn't be effectively reparented. #27000 (Also in 11, 12)
- Fixed an issue where SIGINT was improperly handled in Node.js processes. #26933 (Also in 10, 11, 12)
- Fixed an issue where
BrowserView
s could have mismatched draggable regions to their bounds. #27952 (Also in 10, 11, 12) - Fixed an issue where
contextBridge
might incorrectly try to serialize some WebAssembly objects. #27518 - Fixed an issue where
event.reply
could sometimes not deliver a reply to an IPC message when cross-site iframes were present. #26875 (Also in 9, 10, 11, 12) - Fixed an issue where deleted download directories would be sometimes recreated by the operating system. #27745 (Also in 10, 11, 12)
- Fixed an issue where draggable regions did not work exclusively on BrowserViews on Windows. #26738 (Also in 10, 11, 12)
- Fixed an issue where draggable regions in BrowserWindow causes BrowserView to become draggable in non-correspondent places. #26690 (Also in 10, 11, 12)
- Fixed an issue where libuv might hang with multiple subframes when
nodeIntegrationInSubframes
is enabled. #27582 (Also in 10, 11, 12) - Fixed an issue where non-draggable regions on BrowserViews could have incorrectly calculated bounds. #27147 (Also in 10, 11, 12)
- Fixed an issue where renderer process stack traces were broken with
contextIsolation
enabled. #26820 (Also in 11, 12) - Fixed an issue where some
async_hooks
were not properly emitted after an error in the renderer process. #26752 (Also in 11, 12) - Fixed an issue where some draggable regions were not clickable when loaded into BrowserViews on Windows. #27143 (Also in 10, 11, 12)
- Fixed an issue where the zoom button was missing for windows with
titleBarStyle: hiddenInset
on macOS. #27428 (Also in 12) - Fixed an issue whereby
remote.screen
EventEmitter
methods are undefined in the renderer. #26809 (Also in 11, 12) - Fixed an occasional white flicker present when rendering BrowserViews in close succession. #27585 (Also in 10, 11, 12)
- Fixed an out-of-bounds access in
WebContents.sendInputEvent
. #27827 (Also in 10, 11, 12) - Fixed background color not being applied for child windows created by native window.open path. #27593 (Also in 10, 11, 12)
- Fixed behavior of 302/303/307 redirect responses in the protocol module. #26297
- Fixed bug in which
WebContents.mainFrame
would sometimes returnundefined
. #27648 (Also in 12) - Fixed bug where TouchBarPopover and TouchBarGroup were no longer rendering. #27901 (Also in 11, 12)
- Fixed callbacks passed via the
remote
module not being released after all references are dropped. #26808 (Also in 11, 12) - Fixed crash when a keyboard event immediately precedes calling
browserWindow.close()
on Windows. #27315 (Also in 10, 11, 12) - Fixed crash when destroying WebContents in the
crashed
event. #27730 (Also in 10, 11, 12) - Fixed crash when extension fails to load. #27561 (Also in 10, 11, 12)
- Fixed import of unpacked node modules. #26749 (Also in 11, 12)
- Fixed issue where
window.open()
would not return an object with alocation.href
setter whencontextIsolation
is enabled andnativeWindowOpen
is disabled. #27899 (Also in 10, 11, 12) - Fixed memory leak when sending non-primitives over the context bridge. #27630 (Also in 10, 11, 12)
- Fixed menubar not clickable on Windows and Linux. #27545 (Also in 12)
- Fixed missing presentation mode option in PDF viewer. #27223 (Also in 12)
- Fixed native window freeze on Windows when Electron app is sent to tray and external display changes. #27615 (Also in 11, 12)
- Fixed native window.open() to not use windowName/frameName as title by default. #27521 (Also in 10, 11, 12)
- Fixed navigator.bluetooth.requestDevice. #27902 (Also in 11, 12)
- Fixed regression that crashed Electron when processing an invalid icon. #27441 (Also in 11, 12)
- Fixed shutdown crash when quitting with in-progress downloads. #27342 (Also in 10, 11, 12)
- Fixed uncaught promise rejection when creating
webContents
with javascript disabled. #26837 (Also in 10, 11, 12) - Fixed using
navigator.setAppBadge
andnavigator.clearAppBadge
in Electron. #27067 (Also in 12) - Fixed warning when
worldSafeExecuteJavaScript
is disabled. #27928 (Also in 10, 11, 12) - Fixed window with
customButtonsOnHover
option not having rounded corner on macOS. #26901 (Also in 12) - Increase stack size on windows x64 to 8MB. #27376 (Also in 10, 11, 12)
- Made
BrowserWindow.setWindowButtonVisibility
work for window withcustomButtonsOnHover
titlebar style. #27073
Other Changes
- Fixed crash when loading wasm modules in child node process with mac arm64 > 11.2. #27672 (Also in 11, 12)
- Non-functional change; updates repository's issue template file. #27825
- Removed deprecated
BrowserWindow
extension APIs. #26696 - Removed deprecated
crashReporter
APIs. #26695 (Also in 12) - Removed deprecated
shell.moveItemToTrash()
. #26723 - Removed deprecated
systemPreferences
methods. #26849 - Reverted
WebFrameMain.executeJavaScriptInIsolatedWorld()
. #27926 - Updated Node.js to v14.16.0. #27706 (Also in 12)