logoalt Hacker News

leleattoday at 7:39 AM8 repliesview on HN

> Shared CEF runtime across apps. Every app currently bundles its own CEF copy. A managed shared runtime would drop binary sizes to a few MB per app. On the roadmap.

This[0] sounds interesting. I am not familiar with CEF, so I wonder how the versioning works. When different apps require different versions of CEF, do we just essentially end up with the electron model where every app bundles their own browser (just slightly less bad). Or is there still an advantage to a "shared runtime" in that case?

[0]: https://docs.deno.com/runtime/desktop/comparison/


Replies

tonyedgecombetoday at 8:21 AM

In case anybody else wondered CEF is the Chromium embedded framework.

https://github.com/chromiumembedded/cef

show 1 reply
kodablahtoday at 3:16 PM

I used CEF for a project and Google is detecting CEF via some opaque algorithms and not allowing logins from it. From https://security.googleblog.com/2019/04/better-protection-ag...:

> Because we can’t differentiate between a legitimate sign in and a MITM attack on these platforms, we will be blocking sign-ins from embedded browser frameworks starting in June

Granted this was years ago, maybe the situation improved? I had to abandon my CEF project because of this.

show 1 reply
Lucasoatotoday at 10:00 AM

Just to let you know, CEF was used for Riot and League of Legends client as well [0]. The results haven't been nice, but I'm not aware if this was a problem with the CEF technology itself or other component/processes are to be blamed.

[0]: https://www.riotgames.com/en/news/architecture-league-client...

show 5 replies
qbanetoday at 9:41 AM

I doubt the benefit. Practically every Electron app on a desktop uses different versions of Chromium and many are very out of date because of the risk of breaking when upgrading.

show 1 reply
lwansbroughtoday at 8:28 AM

Web devs are used to their target being evergreen, so I suppose you could opt in or out of that model: "just give me what you got".

show 3 replies
deeringctoday at 11:30 AM

I'd prefer if it just used the system webview rather than downloading and managing an embedded browser itself. Webview2 on Windows for example.

show 2 replies
hun3today at 9:16 AM

System WebView but Electron is now the system

show 1 reply