     }
 
     fileprivate func openURLsInNewTabs(_ notification: UNNotification) {
-        if let sentURLs = notification.request.content.userInfo["sentTabs"] as? [NSDictionary] {
-            for sentURL in sentURLs {
-                if let urlString = sentURL.value(forKey: "url") as? String, let url = URL(string: urlString) {
-                    browserViewController.openURLInNewTab(url, isPrivileged: true)
-                }
+        guard let urls = notification.request.content.userInfo["sentTabs"] as? [NSDictionary]  else { return }
+        for sentURL in urls {
+            if let urlString = sentURL.value(forKey: "url") as? String, let url = URL(string: urlString) {
+                receivedURLs.append(url)
             }
         }
     }


    let appVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String

    var receivedURLs: [URL]?
    var unifiedTelemetry: UnifiedTelemetry?

    @discardableResult func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        // NotificationService will have collected them for us in the userInfo.
        if let serializedTabs = userInfo["sentTabs"] as? [[String: String]] {
            // Let's go ahead and open those.
            for item in serializedTabs {
                if let tabURL = item["url"], let url = URL(string: tabURL) {
                    receivedURLs.append(url)
                }
            }

            if receivedURLs.count > 0 {
                // If we're in the foreground, load the queued tabs now.
                if application.applicationState == .active {
                    DispatchQueue.main.async {
                        self.browserViewController.loadQueuedTabs(receivedURLs: self.receivedURLs)
                        self.receivedURLs.removeAll()
                    }
                }

