Skip to content

Commit 261cb15

Browse files
author
Maura Winstanley
committed
more details / typos"
1 parent 7f0b95f commit 261cb15

1 file changed

Lines changed: 35 additions & 3 deletions

File tree

specs/ClearBrowsingData.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,39 @@ In this document we describe the updated API. We'd appreciate your feedback.
55

66

77
# Description
8-
The clear browsing data api is an asyncrhonous api that clears data based on the browsing data kind that is passed in as a parameter.
8+
The clear browsing data api is an asynchronous api that clears data based on a browsing data kind.
9+
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.
10+
11+
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.
12+
13+
* Profile
14+
* Site Data
15+
* Dom Storage
16+
* App cache
17+
* File systems
18+
* Indexddb
19+
* Local storage
20+
* Web SQL
21+
* Cache storage
22+
* Embedder dom storage (this api does not support this specific data kind but this is included in the dom storage data kind)
23+
* Background fetch (this api does not support this specific data kind but this is included in the dom storage data kind)
24+
* Cookies
25+
* Media licenses
26+
* Plugin data
27+
* Site usage
28+
* Durable permissions
29+
* External protocols
30+
* Isolated origins
31+
* Trust tokens
32+
* Conversions data
33+
* Http cache
34+
* Download history
35+
* General autofill
36+
* Password autofill
37+
* Bookmarks
38+
* Settings
39+
* Content settings
40+
* Local custom dictionary
941

1042

1143
# Examples
@@ -40,7 +72,7 @@ private void ClearPasswordAutofillData()
4072
var environment = webView2Control.CoreWebView2.Environment;
4173
try
4274
{
43-
await environment.ClearBrowsingDataAsync(dataKind);
75+
await environment.ClearBrowsingDataAsync(COREWEBVIEW2_BROWSING_DATA_KIND_PASSWORD_AUTOFILL);
4476
}
4577
catch (System.Runtime.InteropServices.COMException exception)
4678
{
@@ -88,7 +120,7 @@ typedef enum COREWEBVIEW2_BROWSING_DATA_KIND {
88120
/// of COREWEBVIEW2_BROWSING_DATA_KIND_APP_CACHE, COREWEBVIEW2_BROWSING_DATA_KIND_FILE_SYSTEMS,
89121
/// COREWEBVIEW2_BROWSING_DATA_KIND_INDEXEDDB, COREWEBVIEW2_BROWSING_DATA_KIND_LOCAL_STORAGE,
90122
/// COREWEBVIEW2_BROWSING_DATA_KIND_WEB_SQL, COREWEBVIEW2_BROWSING_DATA_KIND_CACHE_STORAGE.
91-
/// In addition to these data kinds, dom storage also includese embedder dom storage and
123+
/// In addition to these data kinds, dom storage also includes embedder dom storage and
92124
/// background fetch.
93125
COREWEBVIEW2_BROWSING_DATA_KIND_DOM_STORAGE = 0x07,
94126

0 commit comments

Comments
 (0)