From 8dc3a3652fd3f09f25cdef56cb5eff09514477f4 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Thu, 25 Jan 2024 10:53:39 -0500 Subject: [PATCH] Ref brave/brave-ios#8664: Hide 'Not Secure' mixed content warning when url is collapsed (brave/brave-ios#8697) --- .../Frontend/Browser/Toolbars/UrlBar/CollapsedURLBarView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Brave/Frontend/Browser/Toolbars/UrlBar/CollapsedURLBarView.swift b/Sources/Brave/Frontend/Browser/Toolbars/UrlBar/CollapsedURLBarView.swift index 8042344f1428..94e7eff9e795 100644 --- a/Sources/Brave/Frontend/Browser/Toolbars/UrlBar/CollapsedURLBarView.swift +++ b/Sources/Brave/Frontend/Browser/Toolbars/UrlBar/CollapsedURLBarView.swift @@ -65,7 +65,8 @@ class CollapsedURLBarView: UIView { var title = AttributedString(Strings.tabToolbarNotSecureTitle) title.font = .preferredFont(forTextStyle: .caption1, compatibleWith: clampedTraitCollection) - let isTitleVisible = !traitCollection.preferredContentSizeCategory.isAccessibilityCategory + let isTitleVisible = !traitCollection.preferredContentSizeCategory.isAccessibilityCategory && + secureContentState != .mixedContent switch secureContentState { case .localhost, .secure: