Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ extension BrowserViewController {
}
}

@available(iOS 16, *)
func restoreFindInPageIfNeeded() {
guard let tab = tabManager.selectedTab,
tab.isPrivate,
tab.isFindInPageMode,
let webView = tab.webView else { return }

webView.findInteraction?.presentFindNavigator(showingReplace: false)
}

// Used only on iOS 15
private func useCustomFindInteraction(isVisible: Bool, tab: Tab? = nil) {
if isVisible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,11 @@ class BrowserViewController: UIViewController,
scrollController.showToolbars(animated: false)
}

// In some cases (see restoreFindInPageIfNeeded) is necessary to display manually find in page bar
if #available(iOS 16, *) {
restoreFindInPageIfNeeded()
}

navigationHandler?.showTermsOfUse(context: .appBecameActive)
browserDidBecomeActive()
}
Expand Down
Loading