diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm index 59933f33fe37..df91974b0f98 100644 --- a/ios/chrome/browser/ui/browser_view_controller.mm +++ b/ios/chrome/browser/ui/browser_view_controller.mm @@ -4529,6 +4529,8 @@ - (void)tabModel:(TabModel*)model - (void)tabModel:(TabModel*)model didRemoveTab:(Tab*)tab atIndex:(NSUInteger)index { + tab.webState->WasHidden(); + [self uninstallDelegatesForTab:tab]; // Cancel dialogs for |tab|'s WebState.