Skip to content

Commit

Permalink
Ref brave/brave-ios#8664: Hide 'Not Secure' mixed content warning whe…
Browse files Browse the repository at this point in the history
…n url is collapsed (brave/brave-ios#8697)
  • Loading branch information
kylehickinson authored Jan 25, 2024
1 parent 761049d commit 8dc3a36
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8dc3a36

Please sign in to comment.