               store.hasTabsToRestoreAtStartup
         else { return }
 
+        isRestoringTabs = true
+
         var tabToSelect = store.restoreStartupTabs(clearPrivateTabs: shouldClearPrivateTabs(),
                                                    tabManager: self)
         if lastSessionWasPrivate, !(tabToSelect?.isPrivate ?? false) {

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

    private func checkForSingleTab() {

    fileprivate let tabEventHandlers: [TabEventHandler]
    fileprivate let store: TabManagerStore
    fileprivate let profile: Profile
    fileprivate var isRestoringTabs = false

    let delaySelectingNewPopupTab: TimeInterval = 0.1

