How to make Electron open every new window in a separate process?

Chromium launches various windows in different processes using some heuristics (for example, based on different domains, etc.). In Electron, I would like to be able to force a window into a separate rendering process from other windows.

Looking through documents for BrowserWindow , I do not see a way .

Is there a way to force BrowserWindow to use a separate process from other windows in Electron?

+5
source share
1 answer

Electron always creates a separate process for each Window and WebView browser, unless you specifically modify the Chromium process model using the flag (but this is not recommended, as this will break things).

+3
source

Source: https://habr.com/ru/post/1259145/


All Articles