Skip to content

Commit

Permalink
fix: crash when closing active macOS native tab (#39410)
Browse files Browse the repository at this point in the history
fix: crash when closing current active macOS native tab

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
  • Loading branch information
trop[bot] and deepak1556 committed Aug 8, 2023
1 parent 35126e0 commit fd8d4a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell/browser/ui/inspectable_web_contents_view_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
initWithInspectableWebContentsViewMac:this]) {}

InspectableWebContentsViewMac::~InspectableWebContentsViewMac() {
[[NSNotificationCenter defaultCenter] removeObserver:view_];
CloseDevTools();
}

Expand Down

0 comments on commit fd8d4a8

Please sign in to comment.