Change8

v41.2.0

📦 electronView on GitHub →
1 features🐛 9 fixes🔧 6 symbols

Summary

This release introduces the ability to allow Chrome extensions on custom protocols via a new privilege flag. It also includes numerous bug fixes across Linux, macOS, and general window/printing behavior.

✨ New Features

  • Added `allowExtensions` privilege to `protocol.registerSchemesAsPrivileged()` to enable Chrome extensions on custom protocols.

🐛 Bug Fixes

  • BrowserWindow now enforces min/max size constraints on window creation, even if they conflict with the requested width and height.
  • Fixed a regression on Linux where transparent frameless windows would have visible borders. Also fixed a longstanding issue where transparent windows on Linux could show smeared and glitched content as windows moved around.
  • Fixed an intermittent `Invoke in DisallowJavascriptExecutionScope` crash on application quit when a `WebContents` (or other JS-emitting native object) is garbage-collected during shutdown.
  • Fixed an issue on macOS where `show`/`hide` events and `WebContents` visibility state could be reported incorrectly when multiple `WebContentsView`s were attached to a window.
  • Fixed an issue where concurrent `getFileHandle` requests on the same path could stall indefinitely.
  • Fixed an issue where margins did not look as expected when printing in silent mode.
  • Fixed an issue where the `webContents.print()` callback may not fire correctly in some cases.
  • Fixed the appearance of maximized windows on GNOME in Wayland, especially when non-default GTK themes like Breeze are set.
  • Removed "representedObject is not a WeakPtrToElectronMenuModelAsNSObject" logging when interacting with macOS menus.

Affected Symbols