Skip to content

Commit 54d1bba

Browse files
authored
Merge pull request #3414 from MicrosoftEdge/api-ClearBrowsingData-bug-fix
Update ClearBrowsingData.md (#3377)
2 parents 910a7d7 + 3f7a7e7 commit 54d1bba

1 file changed

Lines changed: 60 additions & 57 deletions

File tree

specs/ClearBrowsingData.md

Lines changed: 60 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -100,79 +100,82 @@ interface ICoreWebView2ClearBrowsingDataCompletedHandler;
100100
101101
/// Specifies the datatype for the
102102
/// `ICoreWebView2Profile::ClearBrowsingData` method.
103-
[v1_enum]
103+
[v1_enum]
104104
typedef enum COREWEBVIEW2_BROWSING_DATA_KINDS {
105-
/// Specifies data stored by the AppCache DOM feature.
106-
COREWEBVIEW2_BROWSING_DATA_KINDS_APP_CACHE = 1 << 0,
107105
108106
/// Specifies file systems data.
109-
COREWEBVIEW2_BROWSING_DATA_KINDS_FILE_SYSTEMS = 1 << 1,
107+
COREWEBVIEW2_BROWSING_DATA_KINDS_FILE_SYSTEMS = 1 << 0,
110108
111109
/// Specifies data stored by the IndexedDB DOM feature.
112-
COREWEBVIEW2_BROWSING_DATA_KINDS_INDEXED_DB = 1 << 2,
110+
COREWEBVIEW2_BROWSING_DATA_KINDS_INDEXED_DB = 1 << 1,
113111
114112
/// Specifies data stored by the localStorage DOM API.
115-
COREWEBVIEW2_BROWSING_DATA_KINDS_LOCAL_STORAGE = 1 << 3,
113+
COREWEBVIEW2_BROWSING_DATA_KINDS_LOCAL_STORAGE = 1 << 2,
116114
117115
/// Specifies data stored by the Web SQL database DOM API.
118-
COREWEBVIEW2_BROWSING_DATA_KINDS_WEB_SQL = 1 << 4,
116+
COREWEBVIEW2_BROWSING_DATA_KINDS_WEB_SQL = 1 << 3,
119117
120-
/// Specifies data stored by the CacheStorge DOM API.
121-
COREWEBVIEW2_BROWSING_DATA_KINDS_CACHE_STORAGE = 1 << 5,
118+
/// Specifies data stored by the CacheStorage DOM API.
119+
COREWEBVIEW2_BROWSING_DATA_KINDS_CACHE_STORAGE = 1 << 4,
122120
123-
/// Specifies DOM storage data, now and future. This browsing data kind is
124-
/// inclusive of COREWEBVIEW2_BROWSING_DATA_KINDS_APP_CACHE,
125-
/// COREWEBVIEW2_BROWSING_DATA_KINDS_FILE_SYSTEMS,
126-
/// COREWEBVIEW2_BROWSING_DATA_KINDS_INDEXED_DB,
121+
/// Specifies DOM storage data, now and future. This browsing data kind is
122+
/// inclusive of COREWEBVIEW2_BROWSING_DATA_KINDS_FILE_SYSTEMS,
123+
/// COREWEBVIEW2_BROWSING_DATA_KINDS_INDEXED_DB,
127124
/// COREWEBVIEW2_BROWSING_DATA_KINDS_LOCAL_STORAGE,
128-
/// COREWEBVIEW2_BROWSING_DATA_KINDS_WEB_SQL,
129-
/// COREWEBVIEW2_BROWSING_DATA_KINDS_CACHE_STORAGE.
130-
/// New DOM storage data types may be added to this data kind in the future.
131-
COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_DOM_STORAGE = 1 << 6,
125+
/// COREWEBVIEW2_BROWSING_DATA_KINDS_WEB_SQL,
126+
/// COREWEBVIEW2_BROWSING_DATA_KINDS_SERVICE_WORKERS,
127+
/// COREWEBVIEW2_BROWSING_DATA_KINDS_CACHE_STORAGE,
128+
/// and some other data kinds not listed yet to keep consistent with
129+
/// [DOM-accessible storage](https://www.w3.org/TR/clear-site-data/#storage).
130+
COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_DOM_STORAGE = 1 << 5,
132131
133132
/// Specifies HTTP cookies data.
134-
COREWEBVIEW2_BROWSING_DATA_KINDS_COOKIES = 1 << 7,
133+
COREWEBVIEW2_BROWSING_DATA_KINDS_COOKIES = 1 << 6,
135134
136135
/// Specifies all site data, now and future. This browsing data kind
137136
/// is inclusive of COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_DOM_STORAGE and
138137
/// COREWEBVIEW2_BROWSING_DATA_KINDS_COOKIES. New site data types
139-
/// may be added to this data kind in the future.
140-
COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_SITE = 1 << 8,
138+
/// may be added to this data kind in the future.
139+
COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_SITE = 1 << 7,
141140
142-
/// Specifies disk cache.
143-
COREWEBVIEW2_BROWSING_DATA_KINDS_DISK_CACHE = 1 << 9,
141+
/// Specifies disk cache.
142+
COREWEBVIEW2_BROWSING_DATA_KINDS_DISK_CACHE = 1 << 8,
144143
145-
/// Specifies download history data.
146-
COREWEBVIEW2_BROWSING_DATA_KINDS_DOWNLOAD_HISTORY = 1 << 10,
144+
/// Specifies download history data.
145+
COREWEBVIEW2_BROWSING_DATA_KINDS_DOWNLOAD_HISTORY = 1 << 9,
147146
148-
/// Specifies general autofill form data.
149-
/// This excludes password information and includes information like:
150-
/// names, street and email addresses, phone numbers, and arbitrary input.
151-
/// This also includes payment data.
152-
COREWEBVIEW2_BROWSING_DATA_KINDS_GENERAL_AUTOFILL = 1 << 11,
147+
/// Specifies general autofill form data.
148+
/// This excludes password information and includes information like:
149+
/// names, street and email addresses, phone numbers, and arbitrary input.
150+
/// This also includes payment data.
151+
COREWEBVIEW2_BROWSING_DATA_KINDS_GENERAL_AUTOFILL = 1 << 10,
153152
154-
/// Specifies password autosave data.
155-
COREWEBVIEW2_BROWSING_DATA_KINDS_PASSWORD_AUTOSAVE = 1 << 12,
153+
/// Specifies password autosave data.
154+
COREWEBVIEW2_BROWSING_DATA_KINDS_PASSWORD_AUTOSAVE = 1 << 11,
156155
157-
/// Specifies browsing history data.
158-
COREWEBVIEW2_BROWSING_DATA_KINDS_BROWSING_HISTORY = 1 << 13,
156+
/// Specifies browsing history data.
157+
COREWEBVIEW2_BROWSING_DATA_KINDS_BROWSING_HISTORY = 1 << 12,
159158
160159
/// Specifies settings data.
161-
COREWEBVIEW2_BROWSING_DATA_KINDS_SETTINGS = 1 << 14,
160+
COREWEBVIEW2_BROWSING_DATA_KINDS_SETTINGS = 1 << 13,
162161
163162
/// Specifies profile data that should be wiped to make it look like a new profile.
164163
/// This does not delete account-scoped data like passwords but will remove access
165164
/// to account-scoped data by signing the user out.
166165
/// Specifies all profile data, now and future. New profile data types may be added
167-
/// to this data kind in the future.
166+
/// to this data kind in the future.
168167
/// This browsing data kind is inclusive of COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_SITE,
169-
/// COREWEBVIEW2_BROWSING_DATA_KINDS_DISK_CACHE,
168+
/// COREWEBVIEW2_BROWSING_DATA_KINDS_DISK_CACHE,
170169
/// COREWEBVIEW2_BROWSING_DATA_KINDS_DOWNLOAD_HISTORY,
171-
/// COREWEBVIEW2_BROWSING_DATA_KINDS_GENERAL_AUTOFILL,
170+
/// COREWEBVIEW2_BROWSING_DATA_KINDS_GENERAL_AUTOFILL,
172171
/// COREWEBVIEW2_BROWSING_DATA_KINDS_PASSWORD_AUTOSAVE,
173-
/// COREWEBVIEW2_BROWSING_DATA_KINDS_BROWSING_HISTORY, and
172+
/// COREWEBVIEW2_BROWSING_DATA_KINDS_BROWSING_HISTORY, and
174173
/// COREWEBVIEW2_BROWSING_DATA_KINDS_SETTINGS.
175-
COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_PROFILE = 1 << 15,
174+
COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_PROFILE = 1 << 14,
175+
176+
/// Specifies service workers registered for an origin, and clear will result in
177+
/// termination and deregistration of them.
178+
COREWEBVIEW2_BROWSING_DATA_KINDS_SERVICE_WORKERS = 1 << 15,
176179
} COREWEBVIEW2_BROWSING_DATA_KINDS;
177180
178181
[uuid(DAF8B1F9-276D-410C-B481-58CBADF85C9C), object, pointer_default(unique)]
@@ -187,8 +190,8 @@ interface ICoreWebView2Profile : IUnknown {
187190
/// Ex: DOM storage is encompassed in site data which is encompassed in the profile data.
188191
/// * All Profile
189192
/// * All Site Data
190-
/// * All DOM Storage: App Cache, File Systems, Indexed DB, Local Storage, Web SQL, Cache
191-
/// Storage
193+
/// * All DOM Storage: File Systems, Indexed DB, Local Storage, Web SQL, Service
194+
/// Workers, Cache Storage, etc
192195
/// * Cookies
193196
/// * Disk Cache
194197
/// * Download History
@@ -247,22 +250,22 @@ namespace Microsoft.Web.WebView2.Core
247250
{
248251
[Flags] enum CoreWebView2BrowsingDataKinds
249252
{
250-
AppCache = 1,
251-
FileSystems = 2,
252-
IndexedDb = 4,
253-
LocalStorage = 8,
254-
WebSql = 16,
255-
CacheStorage = 32,
256-
AllDomStorage = 64,
257-
Cookies = 128,
258-
AllSite = 256,
259-
DiskCache = 512,
260-
DownloadHistory = 1024,
261-
GeneralAutofill = 2048,
262-
PasswordAutosave = 4096,
263-
BrowsingHistory = 8192,
264-
Settings = 16384,
265-
AllProfile = 32768,
253+
FileSystems = 1,
254+
IndexedDb = 2,
255+
LocalStorage = 4,
256+
WebSql = 8,
257+
CacheStorage = 16,
258+
AllDomStorage = 32,
259+
Cookies = 64,
260+
AllSite = 128,
261+
DiskCache = 256,
262+
DownloadHistory = 512,
263+
GeneralAutofill = 1024,
264+
PasswordAutosave = 2048,
265+
BrowsingHistory = 4096,
266+
Settings = 8192,
267+
AllProfile = 16384,
268+
ServiceWorkers = 32768,
266269
};
267270

268271
public partial class CoreWebView2Profile

0 commit comments

Comments
 (0)