diff --git a/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController+WKNavigationDelegate.swift b/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController+WKNavigationDelegate.swift index 4f9e2d70de7..7c221c8ca7d 100644 --- a/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController+WKNavigationDelegate.swift +++ b/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController+WKNavigationDelegate.swift @@ -503,7 +503,15 @@ extension BrowserViewController: WKNavigationDelegate { if navigationResponse.isForMainFrame, let url = responseURL, url.isWebPage(includeDataURIs: false), let mimeType = response.mimeType.flatMap({ UTType(mimeType: $0) }), mimeTypesThatRequireSFSafariViewControllerHandling.contains(mimeType) { - handleLinkWithSafariViewController(url, tab: tab) + + let isAboutHome = InternalURL(url)?.isAboutHomeURL == true + let isNonActiveTab = isAboutHome ? false : url.host != tabManager.selectedTab?.url?.host + + // Check website is trying to open Safari Controller in non-active tab + if !isNonActiveTab { + handleLinkWithSafariViewController(url, tab: tab) + } + return .cancel }