Domains Accessibility Animation ApplicationCache CSS CacheStorage Console DOM DOMDebugger DOMStorage Database Debugger DeviceOrientation Emulation FileSystem HeapProfiler IndexedDB Input Inspector LayerTree Memory Network Page Power Profiler Rendering Runtime ScreenOrientation Security ServiceWorker Timeline Tracing Worker
Chrome Debugger Protocol Viewer

DOMStorage Domain

Query and modify DOM storage.

Methods

enable

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

disable

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

getDOMStorageItems

Parameters
storageId
StorageId
Return object
entries
array [ Item ]

setDOMStorageItem

Parameters
storageId
StorageId
key
string
value
string

removeDOMStorageItem

Parameters
storageId
StorageId
key
string

Events

domStorageItemsCleared

Parameters
storageId
StorageId

domStorageItemRemoved

Parameters
storageId
StorageId
key
string

domStorageItemAdded

Parameters
storageId
StorageId
key
string
newValue
string

domStorageItemUpdated

Parameters
storageId
StorageId
key
string
oldValue
string
newValue
string

Types

StorageId

DOM Storage identifier.

Type: object

Properties
securityOrigin
string Security origin for the storage.
isLocalStorage
boolean Whether the storage is local storage (not session storage).

Item

DOM Storage item.

Type: array