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
|
@ -71,6 +71,9 @@ class BrowserView : public gin::Wrappable<BrowserView>,
|
|||
// content::WebContentsObserver:
|
||||
void WebContentsDestroyed() override;
|
||||
|
||||
// ExtendedWebContentsObserver:
|
||||
void OnCloseContents() override;
|
||||
|
||||
private:
|
||||
void SetAutoResize(AutoResizeFlags flags);
|
||||
void SetBounds(const gfx::Rect& bounds);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue