Skip to content

Commit 569fc20

Browse files
authored
Bugfix FXIOS-12506 - Weird behavior of the URL bar after a specific scenario (#27275)
* Remove code from viewWillDisappear. * Remove viewWillDisappear.
1 parent 1aa1449 commit 569fc20

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

firefox-ios/Client/Frontend/Browser/Tabs/Views/TabDisplayPanelViewController.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,6 @@ class TabDisplayPanelViewController: UIViewController,
117117
}
118118
}
119119

120-
override func viewWillDisappear(_ animated: Bool) {
121-
super.viewWillDisappear(animated)
122-
guard isToolbarRefactorEnabled, isTabTrayUIExperimentsEnabled else { return }
123-
store.dispatch(
124-
ToolbarAction(
125-
shouldAnimate: true,
126-
windowUUID: windowUUID,
127-
actionType: ToolbarActionType.animationStateChanged
128-
)
129-
)
130-
}
131-
132120
override func viewDidLayoutSubviews() {
133121
super.viewDidLayoutSubviews()
134122
gradientLayer.frame = fadeView.bounds

firefox-ios/Client/Frontend/Browser/Toolbars/AddressToolbarContainer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ final class AddressToolbarContainer: UIView,
463463
delegate?.openSuggestions(searchTerm: locationText ?? "")
464464
} else {
465465
let action = ToolbarAction(searchTerm: locationText,
466+
shouldAnimate: true,
466467
windowUUID: windowUUID,
467468
actionType: ToolbarActionType.didStartEditingUrl)
468469
store.dispatch(action)

0 commit comments

Comments
 (0)