The goal of this work is to disable Node integration and enable context isolation in the app renderer window, as well as improve the readability for maintenance purposes.
There are various items to addresss:
Electron renderer IPC usage is scattered all over the place and would be better to consolidate into the preload, as recommended.
Our usage of @electron/remote is discouraged by the project and should be removed so that features relying on this are using the recommended IPC mechanisms.
Our usage of Node APIs is scattered and if possible, we should consolidate it in either the preload (which has access to some Node APIs) or at least in a dedicated file/directory to make it easier to migrate if necessary.
Description
The goal of this work is to disable Node integration and enable context isolation in the app renderer window, as well as improve the readability for maintenance purposes.
There are various items to addresss:
Electron renderer IPC usage is scattered all over the place and would be better to consolidate into the preload, as recommended.
Our usage of
@electron/remote
is discouraged by the project and should be removed so that features relying on this are using the recommended IPC mechanisms.Our usage of Node APIs is scattered and if possible, we should consolidate it in either the preload (which has access to some Node APIs) or at least in a dedicated file/directory to make it easier to migrate if necessary.