Electron: v11.0.0-beta.1 Release

Release date:
May 20, 2021
Previous version:
v10.4.7 (released May 24, 2021)
Magnitude:
1,667 Diff Delta
Contributors:
19 total committers
Data confidence:
Commits:

432 Features Released with v11.0.0-beta.1

Top Contributors in v11.0.0-beta.1

trop[bot]
MarshallOfSound
codebytere
miniak
nornagon
ppontes
electron-bot
sentialx
zcbenz
deepak1556

Directory Browser for v11.0.0-beta.1

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 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 [email protected].

# Release Notes for v11.0.0-beta.1

Features

  • Added app.getApplicationInfoForProtocol() API that returns detailed information about the app that handles a certain protocol. #24112
  • Added name to app.getAppMetrics() output. #24359
  • Added utility-process-gone event to app. #24367
  • Added visualEffectState option to BrowserWindows to allow customization of vibrancy effect state on macOS. #25083
  • Added app.createThumbnailFromPath() API that returns a preview image of a file given its file path and a maximum thumbnail size. #24802
  • Added back a previously broken visibleOnFullScreen option for setVisibleOnAllWorkspaces. #24956
  • Added desktopCapturer.getMediaSourceIdForWebContents(), can be used with getUserMedia to get a stream for a WebContent. #22701
  • Added did-become-active event on Mac for observing any application activation. #23872
  • Added new worldSafeExecuteJavaScript webPreference to ensure that the return values from webFrame.executeJavaScript are world safe when context isolation is enabled. #24114 <span style="font-size:small;">(Also in 9, 10)</span>
  • Added optional parameter to specify monospaced font types for macOS tray titles. #25059
  • Added support for suspend and resume events to Windows. #24251 <span style="font-size:small;">(Also in 8, 9, 10)</span>
  • Added support for suspend and resume events to macOS. #24254 <span style="font-size:small;">(Also in 8, 9, 10)</span>
  • Added the currencyCode field that Apple's StoreKit in-app-purchasing library provides but has not been added to the Product object that inAppPurchase.getProducts returns. #25058
  • Changed app.getLoginItemSettings() and app.setLoginItemSettings() API to factor in startup approval keys when determining whether an application is able to launch on login. #24494
  • Expose sessionId associated with a target from debugger module. #24170 <span style="font-size:small;">(Also in 8, 9, 10)</span>
  • Implemented systemPreferences.getMediaAccessStatus() on Windows. #24275 <span style="font-size:small;">(Also in 8, 9, 10)</span>
  • V8CacheOptions is a new webpreference option to enforce code caching policy. #23842 <span style="font-size:small;">(Also in 8, 9, 10)</span>
  • When the disabled-by-default-v8.cpu_profiler tracing category is enabled, cpu samples will now be collected from the main process as well as the renderer. #24819

    Fixes

    • fix loading shared worker scripts over custom protocol * fix crash when loading worker scripts with nodeIntegration enabled. #20625 <span style="font-size:small;">(Also in 9, 10)</span>
  • Added missing support for isComposing KeyboardEvent property. #23971 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Added {stream:} option to registerSchemeAsPrivileged to enable custom protocols to stream video and audio. #22955

  • Enable NTLM v2 for POSIX platforms and added --disable-ntlm-v2 switch to disable it. #23846 <span style="font-size:small;">(Also in 7.3, 8, 9, 10)</span>

  • Fix: Allow windows behind macOS elements if "frame" is false. #23976 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fix: remove unnecessary corner mask overriding to increase window resize performance. #24642 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed "Paste and Match Style" shortcut on macOS to match OS's "Option-Shift-Command-V". #24153 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed "null path-to-app" in test-app when Electron's path contains spaces or special characters. #24214 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed GTK dark theme setting not respected in Electron on Linux. #23678 <span style="font-size:small;">(Also in 7.3, 8, 9, 10)</span>

  • Fixed chrome://accessibility access in Electron. #24437

  • Fixed chrome://media-internals and chrome://webrtc-internals pages not loading. #24010 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed powerMonitor not emitting suspend/resume events on some Windows machines. #25076 <span style="font-size:small;">(Also in 10)</span>

  • Fixed process.windowsStore returning undefined in AppX packages. #23785 <span style="font-size:small;">(Also in 7.3, 8, 9, 10)</span>

  • Fixed a 10.0.0-beta.1 issue that broke dark mode window titlebars on Linux. #25055 <span style="font-size:small;">(Also in 10)</span>

  • Fixed a bezeling issue on vibrant non-frameless BrowserWindows. #23779 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed a crash in TouchBar for certain methods. #23936 <span style="font-size:small;">(Also in 10)</span>

  • Fixed a crash that could happen when using hookWindowMessage on Windows. #24716 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed a crash that could occur when using in-memory sessions. #24964 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed a crash that could occur when using the ipcRenderer module after blink had released the context. Instead, a JS exception will be thrown. #23917 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed a termination crash on Web Workers with Node.js integration enabled. #24436 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an error when calling dialog.showCertificateTrustDialog with no BrowserWindow. #24091 <span style="font-size:small;">(Also in 7.3, 8, 9, 10)</span>

  • Fixed an intermittent high-CPU usage problem caused a system clock issue during sleep. #24394 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where VoiceOver was unable to navigate from the top-level window back into the web contents. #24655 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed an issue where rmdir and rmdirSync work with original-fs in an asar context. #23890 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where shutdown would be emitted both on app and system shutdown on macOS. #24111 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where webContents.print() would sometimes hang with invalid settings. #24476 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed an issue where window.location properties would throw an error for windows opened with window.open. #23776 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where withFileTypes was not supported as an option to fs.readdir or fs.readdirSync under asar. #24062 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where cpu and heap profiling in Node.js did not work properly with --cpu-prof, --heap-prof, and related CLI flags. #24528 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where errors were seen for nonexistent asar files. #24890

  • Fixed an issue where frameless modal windows with a vibrancy setting had bezeled corners. #24250 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed an issue where macOS window vibrancy active state did not always match the active state of the window. #24471 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where many uses of the Node.js assert module would throw in both the browser and renderer processes. #24579

  • Fixed an issue where notifications with a reply button could potentially be destroyed too early when a user clicked on the notification body before replying. #25086 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where some Node.js methods would not work with URL instances constructed in the renderer process. #24831 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where some apps might be rejected from the Mac App Store owing to a private font-related API added in Chromium. #25117 <span style="font-size:small;">(Also in 10)</span>

  • Fixed an issue where some old notifications were not properly removed from the Notification Center on macOS. #24302 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where suspend/resume were emitted twice on macOS. #24818 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue where the 'about' role had on effect on Windows menus. #23687 <span style="font-size:small;">(Also in 7.3, 8, 9, 10)</span>

  • Fixed an issue where the Save button did not function in PDF previews. #24946 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed an issue which would cause streaming protocol responses to stall in some cases. #24022 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue with click events not being emitted on macOS for Trays with context menus set. #24200 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an issue with volume-related globalShortcut registration. #23782 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed an occasional menu crash on macOS Catalina when menu is closing. #23778 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed broken --trace-sync-io flag in Node.js. #24529 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed broken toolbar text in the PDF viewer. #24913 <span style="font-size:small;">(Also in 10)</span>

  • Fixed bug on macOS where the main window could be targeted for a focus event when it was disabled behind a modal. #24286 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed clipboard.readBuffer returning incorrect value. #24454 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed crash that could occur when passing a non-absolute path to session.loadExtension. #25068 <span style="font-size:small;">(Also in 10)</span>

  • Fixed crash when navigating between origins in a child window with nativeWindowOpen and contextIsolation enabled. #23684 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed crash when navigating from a page with webview that has inherited zoom level. #24757 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed crash when opening offscreen transparent windows with gpu acceleration off. #24390

  • Fixed crash when using client certificate. #24868 <span style="font-size:small;">(Also in 10)</span>

  • Fixed delayed execution of some Node.js callbacks in the main process. #24131 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed disabling color correct rendering with --disable-color-correct-rendering. #23787 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed executeJavaScriptInIsolatedWorld not respecting hasUserGesture argument. #24396

  • Fixed frameless window's size being changed when restored from minimized state. #25014 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed inactive windows having active titlebar on Windows. #24847 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed intercepted protocols not raising Redirect information back to Chromium. #23742 <span style="font-size:small;">(Also in 7.3)</span>

  • Fixed issued where voice over would not read words as you typed them. #24801 <span style="font-size:small;">(Also in 10)</span>

  • Fixed media keys working unilaterally when registered with globalShortcut. #24145

  • Fixed missing guid parameter in Linux crash reports. #24881 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed no session in webContents of type remote. #23989 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed node's TLS stack not allowing renegotiation. #25022 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed potentially invalid duplex mode settings on Linux. #24489 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed serialization of nativeImages over remote when moving from the main process to the renderer process. #23759 <span style="font-size:small;">(Also in 7.3, 8, 9, 10)</span>

  • Fixed the acceptLanguages argument being ignored in session.setUserAgent(). #23944 <span style="font-size:small;">(Also in 7.3, 8, 9, 10)</span>

  • Fixed tray menu on Windows not keyboard navigable. #23843 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed tray menu showing in taskbar on Windows. #24097 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Fixed undefined symbol error when loading native modules that uses uv_dlopen. #24659

  • Fixed window size being changed after unmaximizing. #25051 <span style="font-size:small;">(Also in 9, 10)</span>

  • Fixed window titlebar not responding to pen on Windows 10. #24042 <span style="font-size:small;">(Also in 7.3, 8, 9, 10)</span>

  • Fixed: On some Windows machines, especially Windows Insider builds, Electron would crash silently during startup. #24030 <span style="font-size:small;">(Also in 9, 10)</span>

  • Increased maximum length for crash keys from 127B to 20KB. #24782 <span style="font-size:small;">(Also in 9, 10)</span>

  • None. #24240 <span style="font-size:small;">(Also in 9)</span>

  • None. #25112

  • Protocol response streams are now destroyed if the request is aborted. #24014 <span style="font-size:small;">(Also in 9, 10)</span>

  • Resolve app-scoped bookmarks without mounting network drives. #24708

  • Restored old implementation of Linux Tray icons to fix a collection of issues where the tray icon wouldn't appear, would be the wrong size or would randomly disappear. #23674 <span style="font-size:small;">(Also in 8, 9, 10)</span>

  • Save crash reports locally when uploadToServer: false on linux. #24778 <span style="font-size:small;">(Also in 9, 10)</span>

  • The element highlighter in devtools works again. #24921 <span style="font-size:small;">(Also in 10)</span>

  • shell.showItemInFolder uses the FileManager DBUS API on Linux, only falling back to xdg-open if that fails. #25087

    Other Changes

  • Added V8 crash message and location information to crashReport parameters. #24771 <span style="font-size:small;">(Also in 10)</span>

  • Added new experimental apple silicon (darwin arm64) builds. #24545

  • Deprecated the default of contextIsolation, it will change from false to true in a future Electron release. #23507

  • Fixed an issue with a consistent unwanted exception appearing during a debugging session with the VSCode debugger. #24191

  • Fixed mac app store rejection notice for invalid symbolic link in bundle. #23831

  • Fixed mac app store rejection notice for invalid symbolic link in bundle. #24158 <span style="font-size:small;">(Also in 9, 10)</span>

  • Improved the default REPL experience when running Electron with the --interactive flag. #24204

  • Improved the performance of sending JS primitives over the context bridge. #24531 <span style="font-size:small;">(Also in 9, 10)</span>

  • Improved the performance of sending wide objects over the context bridge. #24671

  • None. #24987

  • Removed experimental APIs: BrowserView.{fromId, fromWebContents, getAllViews} and the id property of BrowserView. #23578

  • Updated Node.js to v12.18.3. #24707

    Documentation

Unknown

  • Fixed issues with CORS when making requests from extensions. #24483 <span style="font-size:small;">(Also in 9, 10)</span>
  • Fixed not working WebSQLDatabase in extension background pages. #24798 <span style="font-size:small;">(Also in 9, 10)</span>