Skip to content

Commit 66f8008

Browse files
farhanpatelst3fan
authored andcommitted
Bug 1403315 - Make sure popViewController is only called once. (#3219)
1 parent a294b78 commit 66f8008

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Client/Frontend/Browser/TabTrayController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,9 @@ class TabTrayController: UIViewController {
503503
self.collectionView.performBatchUpdates({ _ in
504504
let tab = self.tabManager.addTab(request, isPrivate: self.privateMode)
505505
}, completion: { finished in
506+
// The addTab delegate method will pop to the BVC no need to do anything here.
506507
self.toolbar.isUserInteractionEnabled = true
507508
if finished {
508-
_ = self.navigationController?.popViewController(animated: true)
509-
510509
if request == nil && NewTabAccessors.getNewTabPage(self.profile.prefs) == .blankPage {
511510
if let bvc = self.navigationController?.topViewController as? BrowserViewController {
512511
DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) {

0 commit comments

Comments
 (0)