3 ms·
Agreed. We need a cross-OS definition of "web views" and a standard way to say, "use my default browser for all web views, including Electron".
by _bxg1 7y ago
Agreed. We need a cross-OS definition of "web views" and a standard way to say, "use my default browser for all web views, including Electron".
- skybrian 7y agoIt seems like that's not really going to work for the developers of these apps due to browser variation and version skew? (If it were okay, why aren't they supporting web browsers already?) But maybe apps on the same version of Electron could share a runtime?
- _bxg1 7y agoWeb developers are already accustomed to supporting much more widely-varying browser versions, and web standards are expressly designed to be backwards-compatible basically forever. I don't think it would be a major problem.
- Filligree 7y agoDiscord, to take an example, does support running in a browser. It's how I usually run it. It also comes as an Electron app, because it wants more system privileges than browser tabs are ever allowed to get -- to tell people what game you're playing.
- _bxg1 7y agoReally, given that the primary consumer of this API would be Electron and that it would take a huge coordination between OS and browser vendors to create a standard, it seems like it would be possible for Electron to just circumvent it and come up with their own way of sharing Chromiums between their own apps. When building you could specify whether you want your build to be fully portable, portable with the option of sharing, or fully reliant on a system-wide Chromium copy. On startup, an Electron app could check for an existing shared copy and automatically install its dependencies. The same could be done for Node.
- hechang1997 7y agothis library seems promising: https://github.com/zserge/webview https://github.com/zserge/webview