mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: remove bv before setting owner window (#25172)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user