Skip to content

Commit

Permalink
chore: remove bv before setting owner window (#25172)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Aug 27, 2020
1 parent e8ef1ef commit 95073de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_base_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 95073de

Please sign in to comment.