Skip to content

Commit

Permalink
fix: removeBrowserView draggable region removal (#39406)
Browse files Browse the repository at this point in the history
fix: removeBrowserView draggable region removal

Closes #39377.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Aug 8, 2023
1 parent 3e239ef commit 35126e0
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 @@ -779,8 +779,8 @@ void BaseWindow::AddBrowserView(gin::Handle<BrowserView> browser_view) {
void BaseWindow::RemoveBrowserView(gin::Handle<BrowserView> browser_view) {
auto iter = browser_views_.find(browser_view->ID());
if (iter != browser_views_.end()) {
window_->RemoveBrowserView(browser_view->view());
window_->RemoveDraggableRegionProvider(browser_view.get());
window_->RemoveBrowserView(browser_view->view());
browser_view->SetOwnerWindow(nullptr);
iter->second.Reset();
browser_views_.erase(iter);
Expand Down

0 comments on commit 35126e0

Please sign in to comment.