2.8 KiB
DOMStorage
_Auto generated documentation for WebKit inspector
Query and modify DOM storage.
- Commands
- enable
- disable
- getDOMStorageItems
- setDOMStorageItem
- removeDOMStorageItem
- Events
- domStorageItemsCleared
- domStorageItemRemoved
- domStorageItemAdded
- domStorageItemUpdated
- Types
- StorageId
- Item
Commands
DOMStorage.enable(callback)
Enables storage tracking, storage events will now be delivered to the client.
Parameters
callback ( function )
Results
error ( error )
DOMStorage.disable(callback)
Disables storage tracking, prevents storage events from being sent to the client.
Parameters
callback ( function )
Results
error ( error )
DOMStorage.getDOMStorageItems(StorageId, callback)
Parameters
storageId ( StorageId )
callback ( function )
Results
error ( error )
entries ( array of Item )
DOMStorage.setDOMStorageItem(StorageId, key, value, callback)
Parameters
storageId ( StorageId )
key ( string )
value ( string )
callback ( function )
Results
error ( error )
DOMStorage.removeDOMStorageItem(StorageId, key, callback)
Parameters
storageId ( StorageId )
key ( string )
callback ( function )
Results
error ( error )
Events
Event: domStorageItemsCleared
Results
storageId ( StorageId )
Event: domStorageItemRemoved
Results
storageId ( StorageId )
key ( string )
Event: domStorageItemAdded
Results
storageId ( StorageId )
key ( string )
newValue ( string )
Event: domStorageItemUpdated
Results
storageId ( StorageId )
key ( string )
oldValue ( string )
newValue ( string )
Types
Class: StorageId
Type: object
DOM Storage identifier.
Properties
securityOrigin ( string )
Security origin for the storage.
isLocalStorage ( boolean )
Whether the storage is local storage (not session storage).
Class: Item
Type: array
DOM Storage item.