Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[deps]: Update electron to v33 #658

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 28, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
electron 28.3.3 -> 33.2.0 age adoption passing confidence

Release Notes

electron/electron (electron)

v33.2.0: electron v33.2.0

Compare Source

Release Notes for v33.2.0

Features

  • Added GPU accelerated shared texture offscreen rendering. #​44511

Other Changes

  • Updated Chromium to 130.0.6723.118. #​44591

v33.1.0: electron v33.1.0

Compare Source

Release Notes for v33.1.0

Features

  • Added WebFrameMain.detached for frames in an unloading state.
    • Added WebFrameMain.isDestroyed() to determine if a frame has been destroyed.
    • Fixed webFrameMain.fromId(processId, frameId) returning a WebFrameMain instance which doesn't match the given parameters when the frame is unloading. #​44209

Fixes

  • Fixed an issue where EventSource was undefined in both renderer and worker processes when Node.js integration was enabled. #​44496 (Also in 32, 34)
  • Fixed crash when network process terminates while a net log is running. #​44420 (Also in 31, 32, 34)
  • Fixed crash when rendering super menu accelerator on linux. #​44520 (Also in 34)
  • Fixed external window focus when using shell.openExternal. #​44468 (Also in 34)
  • Fixed regression with dynamic dependency on libgdk_pixbuf. #​44436 (Also in 32, 34)

Other Changes

  • Performance improvements when processing microtasks. #​44473 (Also in 32, 34)
  • Updated Chromium to 130.0.6723.91. #​44477

v33.0.2: electron v33.0.2

Compare Source

Release Notes for v33.0.2

Fixes

  • Fixed trace-startup not working on macOS. #​44276 (Also in 32, 34)
  • Fixed an issue where closing a window after printing on Linux triggered a crash. #​44285 (Also in 31, 32, 34)
  • Fixed an issue where the exit event could be emitted twice from the utilityProcess. #​44266 (Also in 31, 32, 34)
  • Fixed calling setAlwaysOnTop on a hidden window which is then shown with showInactive on Linux under X11. #​44324 (Also in 31, 32, 34)
  • Fixed race condition in which WebContents appears as white screen on VDI machines without hardware acceleration capabilities. #​44352 (Also in 32, 34)

v33.0.1: electron v33.0.1

Compare Source

Release Notes for v33.0.1

Other Changes

  • Updated Chromium to 130.0.6723.59. #​44271

v33.0.0: electron v33.0.0

Compare Source

Release Notes for 33.0.0

Stack Upgrades

Breaking Changes

  • Deprecated usage of textured BrowserWindow type option on macOS. #​43133
  • Custom protocol URLs that use Windows file paths will no longer work correctly with the deprecated protocol.registerFileProtocol and the baseURLForDataURL property on BrowserWindow.loadURL, WebContents.loadURL, and <webview>.loadURL. #​43977

Features

Additions
  • Added a handler, app.setClientCertRequestPasswordHandler(handler), to help unlock cryptographic devices when a PIN is needed. #​41205
  • Added error event in utility process to support diagnostic reports on V8 fatal errors. #​43997
  • Added View.setBorderRadius(radius) for customizing the border radius of views—with compatibility for WebContentsView. #​42320
  • Added Linux support for the Windows Control Overlay API. #​41769 (Also in 30, 31, 32)
  • Added support for the macOS system picker in desktopCapturer and setDisplayMediaRequestHandler. #​43680 (Also in 32)
  • Added DownloadItem.getCurrentBytesPerSecond(), DownloadItem.getPercentComplete(), DownloadItem.getEndTime(). #​42805 (Also in 30, 31, 32)
  • Added a new property prefersReducedTransparency to nativeTheme, which indicates whether the user has chosen to reduce OS-level transparency via system accessibility settings. #​42862 (Also in 30, 31, 32)
  • Added support for responding to auth requests initiated from utility process via app#login event. #​42631 (Also in 32)
Improvements
  • Extended navigationHistory API with 2 new functions for better history management. #​42014
  • Ensured that the sender-id hint is set when creating desktop notifications on DBus. #​43949 (Also in 31, 32)
  • Aligned failure pathway in File System Access API with upstream when attempting to open a file or directory in a blocked path. #​42561 (Also in 30, 31, 32)
  • Enabled zstd compression in net http requests. #​43150 (Also in 31, 32)
  • Expose systemPreferences to utilityProcess. #​42203 (Also in 30, 31, 32)

Fixes

  • Fixed a build failure when the enable_plugins build flag is false. #​44025
  • Fixed mouse cursor turning into loading spinner when starting utility process on Windows. #​43731
Also in earlier versions...
  • Fixed BrowserView auto resize issue. #​43636 (Also in 31, 32)
  • Fixed MenuItem.click handler not setting focusedWindow parameter when focused window is a BaseWindow. #​43438 (Also in 31, 32)
  • Fixed a crash that could occur in some DevTools extensions containing draggable regions. #​43179 (Also in 31, 32)
  • Fixed a crash when calling focus on a WebView's webContents. #​43932 (Also in 31, 32)
  • Fixed a focus issue when calling BrowserWindow.setTopBrowserView. #​42653 (Also in 30, 31, 32)
  • Fixed a potential crash when using off screen rendering. #​42920 (Also in 30, 31, 32)
  • Fixed a potential error when calling webContents.close() on a BrowserView. #​42633 (Also in 31, 32)
  • Fixed a potential issue accessing a child window document when overriding browserWindow creation via setWindowOpenHandler. #​43816 (Also in 31, 32)
  • Fixed a potential issue with fillable PDF forms saving correctly in some circumstances. #​43686 (Also in 31, 32)
  • Fixed an error where a minimized or hidden window would thrown an unresponsive error in the main process. #​43034 (Also in 32)
  • Fixed an issue when dragging to resize when using Window Controls Overlay on Linux. #​43744 (Also in 31, 32)
  • Fixed an issue where Chromium could crash on a dangling unretained pointer in one of several webRequest functions. #​42647 (Also in 31, 32)
  • Fixed an issue where High Contrast Mode didn't apply to webContents on Windows. #​42853 (Also in 31, 32)
  • Fixed an issue where MessagePorts could close unexpectedly with non-cloneable objects sent via postMessage. #​42535 (Also in 30, 31, 32)
  • Fixed an issue where BaseWindow.setTouchBar didn't work as expected. #​43422 (Also in 30, 31, 32)
  • Fixed an issue where WebContentsViews did not show correctly in some circumstances on macOS after being added as child views. #​43696 (Also in 31, 32)
  • Fixed an issue where defaultPath did not work for all users on Linux when creating an open file dialog. #​43595 (Also in 30, 31, 32)
  • Fixed an issue where fetch-dependent interfaces could be missing in Web Workers with nodeIntegrationInWorker enabled. #​42579 (Also in 30, 31, 32)
  • Fixed an issue where navigator.mediaDevices.enumerateDevices could return broken results in some cases after calling session.setPermissionCheckHandler. #​42775 (Also in 30, 31, 32)
  • Fixed an issue where navigator.mediaDevices.getUserMedia and navigator.getUserMedia should reject with a NotAllowedError if microphone or camera permissions have been denied at the system level on macOS. #​42899 (Also in 30, 31, 32)
  • Fixed an issue where navigator.serial.getPorts() incorrectly returned an empty array in some cases. #​43101 (Also in 30, 31, 32)
  • Fixed an issue where system-context-menu was not triggered as expected on Windows when using a frameless BrowserWindow. #​43243 (Also in 30, 31, 32)
  • Fixed an issue where an exception could be thrown on BrowserView after its owner BrowserWindow was closed. #​44000 (Also in 31, 32)
  • Fixed an issue where calling BrowserWindow.setBackgroundColor with some level of transparency could cause a crash. #​42824 (Also in 31, 32)
  • Fixed an issue where calling desktopCapturer.getSources on macOS running 14.4 or later would make non-resizable windows resizable. #​43013 (Also in 31, 32)
  • Fixed an issue where calling window.print(), webContents.print() or printToPDF from an existing PDF document resulted in a blank page. #​43309 (Also in 31, 32)
  • Fixed an issue where calling window.showInactive on macOS did not actually show the window. #​43079 (Also in 31, 32)
  • Fixed an issue where clicking the eyedropper icon did nothing instead of opening an eyedropper for color selection as expected. #​43700 (Also in 32)
  • Fixed an issue where control could fail to return properly after saving a dialog using showOpenDialogSync on Linux. #​42652 (Also in 29, 30, 31, 32)
  • Fixed an issue where sources returned by the desktopCapturer API and screen.getAllDisplays() no longer matched on Windows. #​42781 (Also in 31, 32)
  • Fixed an issue where sources returned by the desktopCapturer API and screen.getAllDisplays() no longer matched on Windows. #​42883 (Also in 31, 32)
  • Fixed an issue where the File System Access API did not remember the user's last picked directory as expected. #​42850 (Also in 30, 31, 32)
  • Fixed an issue where the user-specified default path did not work in some circumstances when using Linux dialogs. #​42655 (Also in 30, 31, 32)
  • Fixed an issue where users would be incorrectly notified of print failure upon intentional cancellation. #​43337 (Also in 32)
  • Fixed an issue with resize events being emitted on Windows when the window was moved but not resized. #​43457 (Also in 32)
  • Fixed behavior when entering/exiting fullscreen fails on macOS. #​43112 (Also in 29, 30, 31, 32)
  • Fixed bug where camera permissions affected screen sharing. #​43543 (Also in 32)
  • Fixed closing a window with more than one attached sheet on macOS. #​43952 (Also in 31, 32)
  • Fixed crash when resolving proxy with session.resolveProxy api. #​42878 (Also in 30, 31, 32)
  • Fixed devtools to allow restoring saved dock state on Linux when WCO is enabled. #​43499 (Also in 31, 32)
  • Fixed electron app in ozone/wayland not being focused when launched from another app. #​43546 (Also in 31, 32)
  • Fixed issues with the vibrancy view on macOS. #​43078 (Also in 31, 32)
  • Fixed other apps not being focused when launched from electron ozone/wayland. #​43579 (Also in 31, 32)
  • Fixed potential use-after-free during view removal on macOS. #​43922 (Also in 31, 32)
  • Fixed several view hierarchy issues related to web contents view on MacOS. #​43033 (Also in 31, 32)
  • Fixed the resource leak when using Node.js readable streams as the response body for a custom protocol handler. #​43056 (Also in 30, 31, 32)
  • Resolved an issue where desktopCapturer.getSources never fulfilled its promise in some cases. #​43080 (Also in 29, 30, 31, 32)
  • Restored Chromium default Content-Disposition header parsing. #​43670 (Also in 30, 31, 32)
  • Third time isn't always a charm. Fixed the native macOS Screen Share picker invocation triggering a test Chromium green screen. #​43810 (Also in 32)
  • Fix: fixed the npm run lint not working on Windows. #​42281 (Also in 31, 32)
  • Fixed a potential crash when removing notifications on Windows. #​43040 (Also in 30, 31, 32)
  • Fixed an issue where opening multiple file pickers on Windows via the input tag could cause a crash. #​42758 (Also in 30, 31, 32)
  • Fixed crash in gpu process when software compositing is enabled on linux with x11 platform. #​42559 (Also in 29, 30, 31, 32)
  • Fixed ffmpeg release on x64 macOS. #​43093 (Also in 29, 30, 31, 32)

Documentation

Notices

End of Support for 30.x.y

Electron 30.x.y has reached end-of-support as per the project's support policy. Developers and applications are encouraged to upgrade to a newer version of Electron.

v32.2.3: electron v32.2.3

Compare Source

Release Notes for v32.2.3

Fixes

  • Fixed an issue where EventSource was undefined in both renderer and worker processes when Node.js integration was enabled. #​44497 (Also in 33, 34)
  • Fixed crash when network process terminates while a net log is running. #​44419 (Also in 31, 33, 34)
  • Fixed regression with dynamic dependency on libgdk_pixbuf. #​44437 (Also in 33, 34)

Other Changes

v32.2.2: electron v32.2.2

Compare Source

Release Notes for v32.2.2
Fixes
  • Fixed trace-startup not working on macOS. #​44292 (Also in 33, 34)
  • Fixed an issue where closing a window after printing on Linux triggered a crash. #​44282 (Also in 31, 33, 34)
  • Fixed an issue where the exit event could be emitted twice from the utilityProcess. #​44268 (Also in 31, 33, 34)
  • Fixed calling setAlwaysOnTop on a hidden window which is then shown with showInactive on Linux under X11. #​44325 (Also in 31, 33, 34)
  • Fixed race condition in which WebContents appears as white screen on VDI machines without hardware acceleration capabilities. #​44351 (Also in 33, 34)
Other Changes
  • Security: backported fix for CVE-2024-7966.
    • Security: backported fix for CVE-2024-9370. #​44312
  • Security: backported fix for chromium:367734947.
    • Security: backported fix for chromium:366635354. #​44357

v32.2.1: electron v32.2.1

Compare Source

Release Notes for v32.2.1

Fixes

  • Fixed native addon compilation errors on macOS. #​44201 (Also in 31, 33)

Other Changes

v32.2.0: electron v32.2.0

Compare Source

Release Notes for v32.2.0

Fixes

  • Fixed a crash when calling focus on a WebView's webContents. #​43934 (Also in 31, 33)
  • Fixed a potential issue accessing a child window document when overriding browserWindow creation via setWindowOpenHandler. #​43877 (Also in 31, 33)
  • Fixed an issue where an exception could be thrown on BrowserView after its owner BrowserWindow was closed. #​44001 (Also in 31, 33)
  • Fixed closing a window with more than one attached sheet on macOS. #​43954 (Also in 31, 33)
  • Fixed potential use-after-free during view removal on macOS. #​43923 (Also in 31, 33)

Other Changes

  • Ensured that the sender-id hint is set when creating desktop notifications on DBus. #​43950 (Also in 31, 33)
  • Updated Chromium to 128.0.6613.178. #​44086
  • Updated Node.js to v20.18.0. #​44116

v32.1.2: electron v32.1.2

Compare Source

Release Notes for v32.1.2

Fixes

  • Fixed an issue where clicking the eyedropper icon did nothing instead of opening an eyedropper for color selection as expected. #​43786 (Also in 33)
  • Third time isn't always a charm. Fixed the native macOS Screen Share picker invocation triggering a test Chromium green screen. #​43809 (Also in 33)

v32.1.1: electron v32.1.1

Compare Source

Release Notes for v32.1.1

Fixes

  • Fixed an issue when dragging to resize when using Window Controls Overlay on Linux. #​43743 (Also in 33)
  • Fixed an issue where WebContentsViews did not show correctly in some circumstances on macOS after being added as child views. #​43698 (Also in 31, 33)

Other Changes

  • Updated Chromium to 128.0.6613.137. #​43683

v32.1.0: electron v32.1.0

Compare Source

Release Notes for v32.1.0

Features

  • Added support for the macOS system picker in desktopCapturer and setDisplayMediaRequestHandler. #​43679 (Also in 33)

Fixes

  • Fixed BrowserView auto resize issue. #​43637 (Also in 31, 33)
  • Fixed a potential issue with fillable PDF forms saving correctly in some circumstances. #​43687 (Also in 33)
  • Fixed an issue where defaultPath did not work for all users on Linux when creating an open file dialog. #​43629 (Also in 30, 31, 33)
  • Fixed an issue where users would be incorrectly notified of print failure upon intentional cancellation. #​43643
  • Fixed an issue with resize events being emitted on Windows when the window was moved but not resized. #​43644 (Also in 33)
  • Fixed other apps not being focused when launched from electron ozone/wayland. #​43577 (Also in 31, 33)
  • Restored Chromium default Content-Disposition header parsing. #​43668 (Also in 30, 31, 33)

Other Changes

v32.0.2: electron v32.0.2

Compare Source

Release Notes for v32.0.2

Fixes

  • Fixed MenuItem.click handler not setting focusedWindow parameter when focused window is a BaseWindow. #​43437 (Also in 31, 33)
  • Fixed an issue where BaseWindow.setTouchBar didn't work as expected. #​43421 (Also in 30, 31, 33)
  • Fixed bug where camera permissions affected screen sharing. #​43544
  • Fixed devtools to allow restoring saved dock state on Linux when WCO is enabled. #​43501 (Also in 31, 33)
  • Fixed electron app in ozone/wayland not being focused when launched from another app. #​43548 (Also in 31, 33)

Other Changes

  • Updated Chromium to 128.0.6613.84. #​43425

Documentation

v32.0.1: electron v32.0.1

Compare Source

Release Notes for v32.0.1

Other Changes

v32.0.0: electron v32.0.0

Compare Source

Release Notes for v32.0.0

Stack Upgrades

Breaking Changes

  • Removed nonstandard File.path extension from the Web File API. #​42053
  • Added the following existing navigation related APIs to webcontents.navigationHistory: canGoBack, goBack, canGoForward, goForward, canGoToOffset, goToOffset, clear. #​41752

Features

Additions
  • Added DownloadItem.getCurrentBytesPerSecond(), DownloadItem.getPercentComplete(), DownloadItem.getEndTime(). #​42913 (Also in 30, 31)
  • Added cumulativeCPUUsage to AppMetrics and CPUUsage. #​41819
  • Added a new property prefersReducedTransparency to nativeTheme, which indicates whether the user has chosen to reduce OS-level transparency via system accessibility settings. #​43024 (Also in 30, 31)
  • Enabled the Windows Control Overlay API on Linux. #​42681 (Also in 30, 31)
  • Expose systemPreferences to utilityProcess. #​42599 (Also in 30, 31)
Improvements
  • Aligned failure pathway in File System Access API with upstream when attempting to open a file or directory in a blocked path. #​42993 (Also in 30, 31)
  • Extended WebContentsView to accept pre-existing webContents object. #​42086 (Also in 31)
  • Improved error messages when ses.cookies.set fails. #​42362 (Also in 29, 30, 31)

Fixes

  • Don't check for Desktop Environment in setProgressBar and setBadgeCount. #​41211
  • Fixed an error where a minimized or hidden window would thrown an unresponsive error in the main process. #​43053
Also in earlier versions...
  • BrowserWindow.show() now correctly restores focus to inactive apps on macOS. #​42300 (Also in 30, 31)
  • Electron doesn't paint on offscreen-render mode after gpu process crashed. #​41904 (Also in 29, 30, 31)
  • Fix: fixed the npm run lint not working on Windows. #​42905 (Also in 31)
  • Fixed a crash in addChildView if a view is added as its own child. #​42067 (Also in 30, 31)
  • Fixed a crash that could occur in some DevTools extensions containing draggable regions. #​43199 (Also in 31)
  • Fixed a crash when the same WebContentsView is added via addChildView multiple times. #​42085 (Also in 30, 31)
  • Fixed a focus issue when calling BrowserWindow.setTopBrowserView. #​42733 (Also in 30, 31)
  • Fixed a potential crash when removing notifications on Windows. #​43060 (Also in 30, 31)
  • Fixed a potential crash when using off screen rendering. #​42940 (Also in 30, 31)
  • Fixed a potential error when calling webContents.close() on a BrowserView. #​42811 (Also in 31)
  • Fixed an error when calling setAutoResize on a BrowserView. #​42056 (Also in 30, 31)
  • Fixed an inconsistent crash on maximizing window and relayout in Ubuntu. #​42126 (Also in 30, 31)
  • Fixed an issue where Chromium could crash on a dangling unretained pointer in one of several webRequest functions. #​42750 (Also in 31)
  • Fixed an issue where High Contrast Mode didn't apply to webContents on Windows. #​42858 (Also in 31)
  • Fixed an issue where MessagePorts could close unexpectedly with non-cloneable objects sent via postMessage. #​42581 (Also in 30, 31)
  • Fixed an issue where BrowserView webContents were getting destroyed even when preventDefault was being set on the owning BrowserWindow's close event. #​42353 (Also in 30, 31)
  • Fixed an issue where app.setLoginItemSettings incorrectly checked against loginItemService. #​42380 (Also in 29, 30, 31)
  • Fixed an issue where contentWindow.document.fonts.ready would never resolve in some circumstances. #​42366 (Also in 30, 31)
  • Fixed an issue where document.requestFullscreen didn't work when calling it from a webContents inside WebContentsView. #​41966 (Also in 30, 31)
  • Fixed an issue where fetch dependent interfaces in Node.js were not defined when nodeIntegration was enabled in some circumstances. #​42419 (Also in 30, 31)
  • Fixed an issue where fetch-dependent interfaces could be missing in Web Workers with nodeIntegrationInWorker enabled. #​42595 (Also in 30, 31)
  • Fixed an issue where navigator.mediaDevices.enumerateDevices could return broken results in some cases after calling session.setPermissionCheckHandler. #​42808 (Also in 30, 31)
  • Fixed an issue where navigator.mediaDevices.getUserMedia and navigator.getUserMedia

@renovate renovate bot requested a review from a team as a code owner October 28, 2024 00:37
@renovate renovate bot requested a review from BTreston October 28, 2024 00:37
@bitwarden-bot bitwarden-bot changed the title [deps]: Update electron to v33 [PM-14100] [deps]: Update electron to v33 Oct 28, 2024
@bitwarden-bot
Copy link

Internal tracking:

@renovate renovate bot changed the title [PM-14100] [deps]: Update electron to v33 [deps]: Update electron to v33 Oct 28, 2024
Copy link
Contributor

@BTreston BTreston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This upgrade breaks the electron build. Something introduced in v32.2.0 results in the following error during the build:

ERROR in /directory-connector/jslib/electron/src/tray.main.ts(63,12) TS2769: No overload matches this call. The last overload gave the following error. Argument of type '"minimize"' is not assignable to parameter of type '"will-resize"'.

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 2.24%. Comparing base (8ab3516) to head (e902a8e).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #658   +/-   ##
=====================================
  Coverage   2.24%   2.24%           
=====================================
  Files         60      60           
  Lines       2633    2633           
  Branches     467     467           
=====================================
  Hits          59      59           
  Misses      2571    2571           
  Partials       3       3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Detailsd22947a8-9386-40fd-b952-f5fe1e5fb593

No New Or Fixed Issues Found

@@ -60,9 +60,8 @@ export class TrayMain {
}

setupWindowListeners(win: BrowserWindow) {
win.on("minimize", async (e: Event) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Electron updated their type definitions for these event handler overloads. This overload's params were changed from accepting a Function definition to an arrow function with no parameters.

@BTreston
Copy link
Contributor

Adding @eliykat for a second set of eyes. Do you think this is alright to merge with the fix I added? TBH, I don't know if this is even working as intending in the first place considering I don't see anything in the tray when I minimize the app build from main.

Copy link
Contributor Author

renovate bot commented Nov 15, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants