Skip to content

Commit

Permalink
[nobug, api update] Use WKWebsiteDataStore.allWebsiteDataTypes when c…
Browse files Browse the repository at this point in the history
…learing private data (#5808)
  • Loading branch information
garvankeeley authored Nov 25, 2019
1 parent 49740be commit e22eb5d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Client/Frontend/Browser/Tab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,7 @@ class Tab: NSObject {
}

func removeAllBrowsingData(completionHandler: @escaping () -> Void = {}) {
let dataTypes = Set([WKWebsiteDataTypeCookies,
WKWebsiteDataTypeLocalStorage,
WKWebsiteDataTypeSessionStorage,
WKWebsiteDataTypeWebSQLDatabases,
WKWebsiteDataTypeIndexedDBDatabases])
let dataTypes = WKWebsiteDataStore.allWebsiteDataTypes()

webView?.configuration.websiteDataStore.removeData(ofTypes: dataTypes,
modifiedSince: Date.distantPast,
Expand Down

0 comments on commit e22eb5d

Please sign in to comment.