fix: BrowserView crash when 'beforeunload' prevented (#37205)
		
	fix: crash when beforeunload prevented
This commit is contained in:
		
					parent
					
						
							
								4d6f230d21
							
						
					
				
			
			
				commit
				
					
						8eee4f2df1
					
				
			
		
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -112,7 +112,6 @@ BrowserWindow::~BrowserWindow() { | |||
|     api_web_contents_->RemoveObserver(this); | ||||
|     // Destroy the WebContents.
 | ||||
|     OnCloseContents(); | ||||
|     api_web_contents_->Destroy(); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  | @ -140,6 +139,7 @@ void BrowserWindow::WebContentsDestroyed() { | |||
| 
 | ||||
| void BrowserWindow::OnCloseContents() { | ||||
|   BaseWindow::ResetBrowserViews(); | ||||
|   api_web_contents_->Destroy(); | ||||
| } | ||||
| 
 | ||||
| void BrowserWindow::OnRendererResponsive(content::RenderProcessHost*) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shelley Vohr
				Shelley Vohr