     fileprivate let tabEventHandlers: [TabEventHandler]
     fileprivate let store: TabManagerStore
     fileprivate let profile: Profile
+    fileprivate var isRestoringTabs = false
 
     let delaySelectingNewPopupTab: TimeInterval = 0.1
 

        for delegate in self.delegates {
            delegate.get()?.tabManagerDidRestoreTabs(self)
        }
    }

    private func checkForSingleTab() {

              store.hasTabsToRestoreAtStartup
        else { return }

        isRestoringTabs = true

        var tabToSelect = store.restoreStartupTabs(clearPrivateTabs: shouldClearPrivateTabs(),
                                                   tabManager: self)
        if lastSessionWasPrivate, !(tabToSelect?.isPrivate ?? false) {
