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:
cache
Optionalboolean
. The browser's cache.cookies
Optionalboolean
. Cookies acquired while browsing.downloads
Optionalboolean
. The user's download history.fileSystems
Optionalboolean
. Website's file systems.formData
Optionalboolean
. Saved form data, for autocomplete.history
Optionalboolean
. The user's browsing history.indexedDB
Optionalboolean
. IndexedDB data.localStorage
Optionalboolean
. Local storage data.passwords
Optionalboolean
. Saved passwords, for autocomplete.pluginData
Optionalboolean
. Stored data associated with plugins.serverBoundCertificates
Optionalboolean
. Stored server-bound certificates.serviceWorkers
Optionalboolean
. Data cached by service workers.
Browser compatibility
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
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.