browsingData.DataTypeSet
The browsingData.DataTypeSet type describes a set of data types.
It contains a number of boolean properties. The name of each property is the name of a particular type of browsing data: "downloads", "history" and so on. All properties are optional.
This type is used:
- in
browsingData.remove()to describe which data types to remove - in
browsingData.settings()to describe which data types are currently selected in the browser's "Clear History" feature.
Type
Values of this type are objects. They contain the following properties:
-
cacheOptional -
boolean. The browser's cache. -
cookiesOptional -
boolean. Cookies acquired while browsing. -
downloadsOptional -
boolean. The user's download history. -
fileSystemsOptional -
boolean. Website's file systems. -
formDataOptional -
boolean. Saved form data, for autocomplete. -
historyOptional -
boolean. The user's browsing history. -
indexedDBOptional -
boolean. IndexedDB data. -
localStorageOptional -
boolean. Local storage data. -
passwordsOptional -
boolean. Saved passwords, for autocomplete. -
pluginDataOptional -
boolean. Stored data associated with plugins. -
serverBoundCertificatesOptional -
boolean. Stored server-bound certificates. -
serviceWorkersOptional -
boolean. Data cached by service workers.
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
cache |
Yes |
79 |
53 |
? |
Yes |
No |
? |
? |
56-79
85
|
? |
? |
? |
cookies |
Yes |
79 |
53 |
? |
Yes |
No |
? |
? |
56-79
85
|
? |
? |
? |
downloads |
Yes |
79 |
53 |
? |
Yes |
No |
? |
? |
56-79 |
? |
? |
? |
fileSystems |
Yes |
79 |
No |
? |
Yes |
No |
? |
? |
No |
? |
? |
? |
formData |
Yes |
79 |
53 |
? |
Yes |
No |
? |
? |
56-79 |
? |
? |
? |
history |
Yes |
79 |
53 |
? |
Yes |
14 |
? |
? |
56-79 |
? |
? |
? |
indexedDB |
Yes |
79 |
57 |
? |
Yes |
No |
? |
? |
85 |
? |
? |
? |
localStorage |
Yes |
79 |
57 |
? |
Yes |
No |
? |
? |
85 |
? |
? |
? |
passwords |
Yes |
79 |
53 |
? |
Yes |
No |
? |
? |
No |
? |
? |
? |
pluginData |
Yes |
79 |
53 |
? |
Yes |
No |
? |
? |
85 |
? |
? |
? |
serverBoundCertificates |
Yes |
79 |
No |
? |
Yes |
No |
? |
? |
No |
? |
? |
? |
serviceWorkers |
Yes |
79 |
53 |
? |
Yes |
No |
? |
? |
85 |
? |
? |
? |
Note: This API is based on Chromium's chrome.browsingData API.
Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browsingData/DataTypeSet