 //            let dataTypes = Set([WKWebsiteDataTypeCookies, WKWebsiteDataTypeLocalStorage, WKWebsiteDataTypeSessionStorage, WKWebsiteDataTypeWebSQLDatabases, WKWebsiteDataTypeIndexedDBDatabases])
             let dataTypes = Set([WKWebsiteDataTypeCookies, WKWebsiteDataTypeSessionStorage, WKWebsiteDataTypeWebSQLDatabases, WKWebsiteDataTypeIndexedDBDatabases])
             WKWebsiteDataStore.defaultDataStore().removeDataOfTypes(dataTypes, modifiedSince: NSDate.distantPast(), completionHandler: {})
-        } else {
-            // First close all tabs to make sure they aren't holding anything in memory.
-            tabManager.removeAll()
-
-            // Now we wipe the system cookie store (for our app).
-            let storage = NSHTTPCookieStorage.sharedHTTPCookieStorage()
-            if let cookies = storage.cookies {
-                for cookie in cookies {
-                    storage.deleteCookie(cookie)
-                }
+        }
+        // Cliqz: clear the cookies in the tranditional way to support UIWebView as well
+        // else {
+        // First close all tabs to make sure they aren't holding anything in memory.
+//        tabManager.removeAll()
+        
+        // Now we wipe the system cookie store (for our app).
+        let storage = NSHTTPCookieStorage.sharedHTTPCookieStorage()
+        if let cookies = storage.cookies {
+            for cookie in cookies {
+                storage.deleteCookie(cookie)
             }
-
-            // And just to be safe, we also wipe the Cookies directory.
-            do {
-                try deleteLibraryFolderContents("Cookies")
-            } catch {
-                return deferMaybe(ClearableErrorType(err: error))
-            }
-        }
+        }
+        
+        // And just to be safe, we also wipe the Cookies directory.
+        do {
+            try deleteLibraryFolderContents("Cookies")
+        } catch {
+            return deferMaybe(ClearableErrorType(err: error))
+        }
+//        }
 
         log.debug("CookiesClearable succeeded.")
         return succeed()

            } catch {
                return deferMaybe(ClearableErrorType(err: error))
            }
        }

        log.debug("CacheClearable succeeded.")
        return succeed()

            WKWebsiteDataStore.defaultDataStore().removeDataOfTypes(dataTypes, modifiedSince: NSDate.distantPast(), completionHandler: {})
        } else {
            // First, close all tabs to make sure they don't hold anything in memory.
//            tabManager.removeAll()

            // Then we just wipe the WebKit directory from our Library.
            do {
