From eecfaec8c94b2490cff8ae09219d3c16ec2b4c88 Mon Sep 17 00:00:00 2001 From: Robo Date: Tue, 8 Aug 2023 17:45:03 +0900 Subject: [PATCH] fix: crash when closing active macOS native tab (#39394) fix: crash when closing current active macOS native tab --- shell/browser/ui/inspectable_web_contents_view_mac.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/browser/ui/inspectable_web_contents_view_mac.mm b/shell/browser/ui/inspectable_web_contents_view_mac.mm index 175678f037b..7f465e173ba 100644 --- a/shell/browser/ui/inspectable_web_contents_view_mac.mm +++ b/shell/browser/ui/inspectable_web_contents_view_mac.mm @@ -24,6 +24,7 @@ InspectableWebContentsViewMac::InspectableWebContentsViewMac( initWithInspectableWebContentsViewMac:this]) {} InspectableWebContentsViewMac::~InspectableWebContentsViewMac() { + [[NSNotificationCenter defaultCenter] removeObserver:view_]; CloseDevTools(); }