|Electron 5 Improves Packaged Apps|
|Written by Kay Ewbank|
|Thursday, 02 May 2019|
The latest release of Electron is available with upgraded versions of Chromium, Node.JS and V8. Electron 5 also improves the way packaged apps behave. Electron was originally known as Atom Shell as it was developed for GitHub's Atom text editor.
One main change to this release of Electron is that packaged apps will now behave the same as the default app. A default application menu will be created (unless the app has one) and the window-all-closed event will be automatically handled. (unless the app handles the event).
Another improvement is that mixed sandbox mode is now enabled by default. If you launch a renderer with the sandbox setting set to true, it will now be actually sandboxed. In previous releases such a renderer would only be sandboxed if mixed-sandbox mode was also enabled.
Elsewhere, the default values of nodeIntegration and webviewTag are now false to improve security, and the SpellCheck API has been changed to provide asynchronous results.
There are some other new and improved features, starting with the BrowserWindow feature, which now supports managing multiple BrowserViews within the same BrowserWindow.
The move to convert callback-based functions in Electron to return Promises continues. During this transition period, both the callback and Promise-based versions of these functions will work correctly, and will both be documented. In this release,12 APIs were converted to use promises, including several contentTracing APIs, a number of webContents APIs, and the Cookies API
The ability to work with system colors in the macOS has been improved with three functions being changed or added to systemPreferences.
To improve security in the
or email your comment to: email@example.com