W3cubDocs

/Web Extensions

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:

Type

Values of this type are objects. They contain the following properties:

cache Optional
boolean. The browser's cache.
cookies Optional
boolean. Cookies acquired while browsing.
downloads Optional
boolean. The user's download history.
fileSystems Optional
boolean. Website's file systems.
formData Optional
boolean. Saved form data, for autocomplete.
history Optional
boolean. The user's browsing history.
indexedDB Optional
boolean. IndexedDB data.
localStorage Optional
boolean. Local storage data.
passwords Optional
boolean. Saved passwords, for autocomplete.
pluginData Optional
boolean. Stored data associated with plugins.
serverBoundCertificates Optional
boolean. Stored server-bound certificates.
serviceWorkers Optional
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