You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specs/ClearBrowsingData.md
+30-32Lines changed: 30 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,45 +1,45 @@
1
1
# Background
2
2
The WebView2 team has been asked for an API to allow end developers to clear the browsing data that is stored in the User Data Folder. Developers want to be able to clear data between each of their customers, clear the data folder to clear space, and to clear data on the fly.
3
-
Currently users can delete the User Data Folder clear this data. This has a few drawbacks: it removes the user data folder instead of specific parts which incurs performance costs later on, the webview must be shutdown fully and then re-initialized, and deleting the User Data Folder is a complex API to call.
4
-
We are creating an api that will allow developers to clear the browsing data programtically in which the developer can specify the data type to clear.
3
+
Currently users can delete the entire User Data Folder to clear this data. This has a few drawbacks: it removes the user data folder instead of specific parts which incurs performance costs later on, the webview must be shutdown fully and then re-initialized, and deleting the User Data Folder is a complex API to call.
4
+
We are creating an API that will allow developers to clear the browsing data programtically in which the developer can specify the data kind to clear.
5
5
6
6
In this document we describe the updated API. We'd appreciate your feedback.
7
7
8
8
9
9
# Description
10
-
The clear browsing data api is an asynchronous api that clears data based on a browsing data kind.
10
+
The clear browsing data API is an asynchronous API.
11
11
The browsing data kinds that are supported are as follows. These data kinds follow a hierarchical structure in which nested bullet points are included in their parent bullet point's data kind.
12
12
13
-
Ex: Dom storage is encompassed in site data which is encompassed in the profile data. Each of the following bullets correspond to a COREWEBVIE2_BROWSING_DATA_KIND unless otherwise specified.
13
+
Ex: Dom storage is encompassed in site data which is encompassed in the profile data. Each of the following bullets correspond to a COREWEBVIEW2_BROWSING_DATA_KIND unless otherwise specified.
14
14
15
15
* Profile
16
16
* Site Data
17
17
* Dom Storage
18
-
* App cache
19
-
* File systems
18
+
* App Cache
19
+
* File Systems
20
20
* Indexddb
21
-
* Local storage
21
+
* Local Storage
22
22
* Web SQL
23
-
* Cache storage
24
-
* Embedder dom storage (this api does not support this specific data kind but this is included in the dom storage data kind)
25
-
* Background fetch (this api does not support this specific data kind but this is included in the dom storage data kind)
23
+
* Cache Storage
24
+
* Embedder Dom Storage (this API does not support this specific data kind but this is included in the dom storage data kind)
25
+
* Background Fetch (this API does not support this specific data kind but this is included in the dom storage data kind)
26
26
* Cookies
27
-
* Media licenses
28
-
* Plugin data
29
-
* Site usage
30
-
* Durable permissions
31
-
* External protocols
32
-
* Isolated origins
33
-
* Trust tokens
34
-
* Conversions data
35
-
* Http cache
36
-
* Download history
37
-
* General autofill
38
-
* Password autofill
27
+
* Media Licenses
28
+
* Plugin Data
29
+
* Site Usage
30
+
* Durable Permissions
31
+
* External Protocols
32
+
* Isolated Origins
33
+
* Trust Tokens
34
+
* Conversions Data
35
+
* Http Cache
36
+
* Download History
37
+
* General Autofill
38
+
* Password Autofill
39
39
* Bookmarks
40
40
* Settings
41
-
* Content settings
42
-
* Local custom dictionary
41
+
* Content Settings
42
+
* Local Custom Dictionary
43
43
44
44
45
45
# Examples
@@ -49,7 +49,7 @@ Ex: Dom storage is encompassed in site data which is encompassed in the profile
0 commit comments