I've read about both Webview and BrowserView, They seem to do the same thing: Embed additional web content into application. I know that Electron's webview tag is based on Chromium's webview and this API is part of the deprecated Chrome Apps platform. Even Electron suggest to not use Webview and consider alternatives (iframe, BrowserView).
But what changes made BrowserView superior? I know that unlike the Webview, the BrowserView does not use another renderer process, is that why BrowserView has better performance? What are the other indicators? How is BrowserView different from Webview internally?
This isn't by any means a complete answer, but
BrowserViewwas created because of various issues encountered withwebview.Here's a blog post by the people that created it:
Electron's
webviewdocumentation says:There were a number of
webviewbugs back in the day, though these particular ones appear to be fixed.Here's an issue about the fate of
BrowserViewwhere a maintainer says:Here are a number of
webviewbugs (though you can certainly find bugs withBrowserViewas well)Also, you say:
I believe I saw a reference to that somewhere as well, but I don't think that's true.
The moment you navigate the
BrowserViewto a page, a new renderer process is created for it.Update: Oh, I think what's meant here is that the webview == 1 process and a BrowserView == 1 process, but you create the webview inside of another Renderer process, whereas you create the BrowserView inside of the main process. So there will be an extra process with webview.