I am porting an Electron app from a traditional renderer + webview architecture to one that uses BrowserView objects. The application uses some BrowserWindows to display a webview fullscreen in all available monitors. The renderer processes hold basically an index.html with a webview at 100% size.
I am little confused about the renderer process and the BrowserViews.
With the new approach, I just inject the preload script into the BrowserView constructor, and do not load any page on the BrowserWindow themselves:
browserViewOptions = {
webPreferences: {
preload: (__dirname + "/preload.js"),
partition: "persist:ns",
nodeIntegration: false,
plugins: false
}
};
- What renderer process is this? Is it the traditional render process where the
webviewsused to be? Or do theBrowserViewshave their own renderer process?- If it is the traditional way, is it shared in the case where I also load a page in the
BrowserWindow?
- If it is the traditional way, is it shared in the case where I also load a page in the
- Does it matter that I am not loading a page into the
BrowserWindow? I mean, if I don't load a page in theBrowserWindow(and just create the window to attach aBrowserViewto it), is there another Chromium process with an empty page running?- If yes, can this be prevented if I am only interested in the
BrowserView?
- If yes, can this be prevented if I am only interested in the
- Are there "overdraw" issues if I keep stuff on the
BrowserWindowand occasionally hide theBrowserViewsto display them?