chore: remove bv before setting owner window (#25172)

This commit is contained in:
Shelley Vohr 2020-08-27 16:24:52 -07:00 committed by GitHub
parent e8ef1ef252
commit 95073decd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}