FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

Upgrade electron from 16 > 18

Open PikachuEXE opened this issue 2 years ago • 8 comments

Pull Request Type Please select what type of pull request this is:

  • [x] Feature Implementation

Related issue Might or might not fix issue in #2113

Closes #2358

Description 16.x is not supported anymore From https://www.electronjs.org/blog/electron-17-0 image

Breaking change in 17.x =

Breaking change in 18.x =

Should be safe to upgrade if true

Screenshots (if appropriate) N/A

Testing (for code that is not small enough to be easily understandable) Open app, open new window via

  • Keyboard shortcut
  • New window button
  • Middle click on links

Desktop (please complete the following information):

  • OS: MacOS
  • OS Version: 12.4
  • FreeTube version: 63442282a9a824ba77ed1c0d551213ff3e6abf99

Additional context Add any other context about the problem here.

PikachuEXE avatar Jun 25 '22 08:06 PikachuEXE

This should also fix #2190.

wildwestrom avatar Jul 07 '22 23:07 wildwestrom

17 will be reaching end of life soon so if there's no issues with this one then I'd prefer this PR gets merged

ChunkyProgrammer avatar Jul 14 '22 14:07 ChunkyProgrammer

If most people prefer 19 I can make a PR for 19 lol

PikachuEXE avatar Jul 15 '22 02:07 PikachuEXE

Will also improve the security issue in the dependency, like these two CVEs:

  • https://www.cve.org/CVERecord?id=CVE-2022-2011
  • https://www.cve.org/CVERecord?id=CVE-2022-1867

PeterDaveHello avatar Jul 15 '22 09:07 PeterDaveHello

This will require a bunch of testing on linux as electron 18 caused the issues in #2163.

absidue avatar Jul 17 '22 10:07 absidue

I'm currently testing this on my GNU/Linux system. Will let you know if I get any crashes. Also running with the wayland ozone platform under wlroots.

wildwestrom avatar Jul 17 '22 17:07 wildwestrom

If anyone wants to try this, you can download a build of it here: https://github.com/absidue/FreeTube/actions/runs/2703009618

Tried this in a Ubuntu 22.04 VMware VM and noticed some weird rendering issues.

The toggle loop button disappears when the video is full screen: toggle_loop_button_disappearing

The rendering of the devtools is completely broken too: broken_devtools_rendering

Unfortunately this seems to be an upstream issue with Electron as Visual Studio Code has the same issue: https://github.com/microsoft/vscode/issues/154705

absidue avatar Jul 20 '22 08:07 absidue

When I middle click to open a video in a new window, the application crashes.

[53332:0720/074634.363325:ERROR:wayland_event_watcher.cc(25)] libwayland: xdg_surface@38: error 3: xdg_surface has never been configured

wildwestrom avatar Jul 20 '22 11:07 wildwestrom