fix: crash calling BrowserWindow.removeBrowserView()
with destroyed webContents
(#38842)
fix: crash calling removeBrowserView() with destroyed webContents https://github.com/electron/electron/issues/37642
This commit is contained in:
parent
ce6fe040fe
commit
a00a25376d
3 changed files with 21 additions and 0 deletions
|
@ -131,6 +131,10 @@ void BrowserView::WebContentsDestroyed() {
|
|||
Unpin();
|
||||
}
|
||||
|
||||
void BrowserView::OnCloseContents() {
|
||||
api_web_contents_ = nullptr;
|
||||
}
|
||||
|
||||
// static
|
||||
gin::Handle<BrowserView> BrowserView::New(gin_helper::ErrorThrower thrower,
|
||||
gin::Arguments* args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue