         }
         checkTabCount(failures: 0)
         #endif
-        
-        tabScreenshotQueue.cancelAllOperations()
     }
 
     func close() {

    }

    func setScreenshot(_ screenshot: UIImage?) {
        tabScreenshotQueue.addOperation {
            guard let val = screenshot else { return }
            val.averageColor(completion: { color in
                DispatchQueue.main.async {
                    // check if screenshot is same color as background
                    guard let avgColor = color else { return }
                    let backgroundColor = LegacyThemeManager.instance.current.browser.background
                    guard !avgColor.isEqual(backgroundColor) else {
                        self.screenshot = nil
                        return
                    }
                    self.screenshot = screenshot
                }
            })
        }
    }
    
    func toggleChangeUserAgent() {

        self.nightMode = false
        self.noImageMode = false
        self.browserViewController = bvc
        super.init()
        self.isPrivate = isPrivate
        debugTabCount += 1
