chore: remove bv before setting owner window (#25172)
This commit is contained in:
		
					parent
					
						
							
								e8ef1ef252
							
						
					
				
			
			
				commit
				
					
						95073decd3
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1058,8 +1058,8 @@ void BaseWindow::ResetBrowserViews() { | |||
|                            &browser_view) && | ||||
|         !browser_view.IsEmpty()) { | ||||
|       if (browser_view->web_contents()) { | ||||
|         browser_view->web_contents()->SetOwnerWindow(nullptr); | ||||
|         window_->RemoveBrowserView(browser_view->view()); | ||||
|         browser_view->web_contents()->SetOwnerWindow(nullptr); | ||||
|       } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shelley Vohr
				Shelley Vohr