MDN self-hosted library · e01.org

browsingData.DataTypeSet

The browsingData.DataTypeSet type describes a set of data types.

no runnable cells webextension-api-type upstream source

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 selected in the browser's "Clear History" feature.

Type

Values of this type are objects. They contain these properties:

  • cache
  • : boolean. The browser's cache.
  • cookies
  • : boolean. Cookies acquired while browsing.
  • downloads
  • : boolean. The user's download history.
  • fileSystems
  • : boolean. Website's file systems.
  • formData
  • : boolean. Saved form data for autocomplete.
  • history
  • : boolean. The user's browsing history.
  • indexedDB
  • : boolean. IndexedDB data.
  • localStorage
  • : boolean. Local storage (localStorage) and session storage (sessionStorage) data.
  • passwords
  • : boolean. Saved passwords for autocomplete.
  • pluginData
  • : boolean. Stored data associated with plugins.
  • serverBoundCertificates
  • : boolean. Stored server-bound certificates.
  • serviceWorkers
  • : boolean. Data cached by service workers.

Browser compatibility

[!NOTE] This API is based on Chromium's chrome.browsingData API.