@@ -837,13 +837,9 @@ class BrowserViewController: UIViewController,
837837 processAppleIntelligenceState ( )
838838 privacyWindowHelper. removeWindow ( )
839839
840- if let tab = tabManager. selectedTab {
841- if tab. isFindInPageMode {
842- refreshFindInPageUI ( )
843- } else {
844- // Re-show toolbar which might have been hidden during scrolling (prior to app moving into the background)
845- scrollController. showToolbars ( animated: false )
846- }
840+ if let tab = tabManager. selectedTab, !tab. isFindInPageMode {
841+ // Re-show toolbar which might have been hidden during scrolling (prior to app moving into the background)
842+ scrollController. showToolbars ( animated: false )
847843 }
848844
849845 navigationHandler? . showTermsOfUse ( context: . appBecameActive)
@@ -1726,17 +1722,6 @@ class BrowserViewController: UIViewController,
17261722 hasZoomPageBar: zoomPageBar != nil )
17271723 }
17281724
1729- func refreshFindInPageUI( ) {
1730- guard #available( iOS 16 , * ) else { return }
1731- guard let tab = tabManager. selectedTab else { return }
1732- guard tab. isPrivate, let webView = tab. webView, webView. isFindInteractionEnabled else { return }
1733-
1734- // Ensure keyboard is available and Find In Page UI is refreshed in PBM (FXIOS-13321)
1735- let text = webView. findInteraction? . searchText
1736- updateFindInPageVisibility ( isVisible: true )
1737- webView. findInteraction? . searchText = text ?? " "
1738- }
1739-
17401725 // TODO: SnapKit removal clean up
17411726 private func updateSnapKitOverKeyboardContainerConstraints( ) {
17421727 guard !isSnapKitRemovalEnabled else { return }
0 commit comments