diff --git a/ios/brave-ios/Sources/Brave/Frontend/Browser/TabManager.swift b/ios/brave-ios/Sources/Brave/Frontend/Browser/TabManager.swift index 6051d420c9ef..62902a5108e3 100644 --- a/ios/brave-ios/Sources/Brave/Frontend/Browser/TabManager.swift +++ b/ios/brave-ios/Sources/Brave/Frontend/Browser/TabManager.swift @@ -843,6 +843,10 @@ class TabManager: NSObject { // Remove all unwanted tabs for tab in allTabs { guard tab.url?.baseDomain == etldP1 else { continue } + // The Tab's WebView is not deinitialized immediately, so it's possible the + // WebView still stores data after we shred but before the WebView is deinitialized. + // Delete the web view to prevent data being stored after data is Shred. + tab.deleteWebView() removeTab(tab) }