DOMStorage

Experimental

Query and modify DOM storage.

Commands

DOMStorage.clear

Parameters
Name Type Description
storageId StorageId

DOMStorage.disable

Disables storage tracking, prevents storage events from being sent to the client.

DOMStorage.enable

Enables storage tracking, storage events will now be delivered to the client.

DOMStorage.getDOMStorageItems

Parameters
Name Type Description
storageId StorageId
Return Object
Name Type Description
entries array<Item>

DOMStorage.removeDOMStorageItem

Parameters
Name Type Description
storageId StorageId
key string

DOMStorage.setDOMStorageItem

Parameters
Name Type Description
storageId StorageId
key string
value string

Events

DOMStorage.domStorageItemAdded

Parameters
Name Type Description
storageId StorageId
key string
newValue string

DOMStorage.domStorageItemRemoved

Parameters
Name Type Description
storageId StorageId
key string

DOMStorage.domStorageItemUpdated

Parameters
Name Type Description
storageId StorageId
key string
oldValue string
newValue string

DOMStorage.domStorageItemsCleared

Parameters
Name Type Description
storageId StorageId

Types

SerializedStorageKey

(string)

StorageId

(object)

DOM Storage identifier.

Properties
Name Type Description
securityOrigin (optional) string Security origin for the storage.
storageKey (optional) SerializedStorageKey Represents a key by which DOM Storage keys its CachedStorageAreas
isLocalStorage boolean Whether the storage is local storage (not session storage).

Item

(array)

DOM Storage item.

Summary