Chrome DevTools Protocol

Methods

Storage.clearCookies

Clears cookies.

parameters
browserContextId
Browser.BrowserContextID

Browser context to use when called on the browser endpoint.

Storage.clearDataForOrigin

Clears storage for origin.

parameters
origin
string

Security origin.

storageTypes
string

Comma separated list of StorageType to clear.

Storage.getCookies

Returns all browser cookies.

parameters
browserContextId
Browser.BrowserContextID

Browser context to use when called on the browser endpoint.

Return Object
cookies
array[ Network.Cookie ]

Array of cookie objects.

Storage.getUsageAndQuota

Returns usage and quota in bytes.

parameters
origin
string

Security origin.

Return Object
usage
number

Storage usage (bytes).

quota
number

Storage quota (bytes).

usageBreakdown
array[ UsageForType ]

Storage usage per type (bytes).

Storage.setCookies

Sets given cookies.

parameters
cookies
array[ Network.CookieParam ]

Cookies to be set.

browserContextId
Browser.BrowserContextID

Browser context to use when called on the browser endpoint.

Storage.trackCacheStorageForOrigin

Registers origin to be notified when an update occurs to its cache storage list.

parameters
origin
string

Security origin.

Storage.trackIndexedDBForOrigin

Registers origin to be notified when an update occurs to its IndexedDB.

parameters
origin
string

Security origin.

Storage.untrackCacheStorageForOrigin

Unregisters origin from receiving notifications for cache storage.

parameters
origin
string

Security origin.

Storage.untrackIndexedDBForOrigin

Unregisters origin from receiving notifications for IndexedDB.

parameters
origin
string

Security origin.

Events

Storage.cacheStorageContentUpdated

A cache's contents have been modified.

parameters
origin
string

Origin to update.

cacheName
string

Name of cache in origin.

Storage.cacheStorageListUpdated

A cache has been added/deleted.

parameters
origin
string

Origin to update.

Storage.indexedDBContentUpdated

The origin's IndexedDB object store has been modified.

parameters
origin
string

Origin to update.

databaseName
string

Database to update.

objectStoreName
string

ObjectStore to update.

Storage.indexedDBListUpdated

The origin's IndexedDB database list has been modified.

parameters
origin
string

Origin to update.

Types

Storage.StorageType

Enum of possible storage types.

Allowed Values: appcache, cookies, file_systems, indexeddb, local_storage, shader_cache, websql, service_workers, cache_storage, all, other

Type: string

Storage.UsageForType

Usage for a storage type.

Type: object

properties
storageType
StorageType

Name of storage type.

usage
number

Storage usage (bytes).