Skip to content

Commit

Permalink
Bugfix FXIOS-10116 Bugzilla 1904885 (#22160)
Browse files Browse the repository at this point in the history
[FXIOS-10116] Initial fix to correct stale SSL UI in some scenarios
  • Loading branch information
mattreaganmozilla authored Sep 24, 2024
1 parent 986ee48 commit bed1522
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2548,9 +2548,13 @@ class BrowserViewController: UIViewController,
}

if webViewStatus == .finishedNavigation {
if tab !== tabManager.selectedTab,
let webView = tab.webView,
tab.screenshot == nil {
let isSelectedTab = (tab == tabManager.selectedTab)
if isSelectedTab && !isToolbarRefactorEnabled {
// Refresh secure content state after completed navigation
urlBar.locationView.hasSecureContent = webView.hasOnlySecureContent
}

if !isSelectedTab, let webView = tab.webView, tab.screenshot == nil {
// To Screenshot a tab that is hidden we must add the webView,
// then wait enough time for the webview to render.
webView.frame = contentContainer.frame
Expand Down

0 comments on commit bed1522

Please sign in to comment.