Storage Domain
Methods
Events
Types
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.clearDataForStorageKey #
Clears storage for storage key.
parameters
- storageKey
-
string
Storage key.
- 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).
- overrideActive
-
boolean
Whether or not the origin has an active storage quota override
- 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.trackCacheStorageForStorageKey #
Registers storage key to be notified when an update occurs to its cache storage list.
parameters
- storageKey
-
string
Storage key.
Storage.trackIndexedDBForOrigin #
Registers origin to be notified when an update occurs to its IndexedDB.
parameters
- origin
-
string
Security origin.
Storage.trackIndexedDBForStorageKey #
Registers storage key to be notified when an update occurs to its IndexedDB.
parameters
- storageKey
-
string
Storage key.
Storage.untrackCacheStorageForOrigin #
Unregisters origin from receiving notifications for cache storage.
parameters
- origin
-
string
Security origin.
Storage.untrackCacheStorageForStorageKey #
Unregisters storage key from receiving notifications for cache storage.
parameters
- storageKey
-
string
Storage key.
Storage.untrackIndexedDBForOrigin #
Unregisters origin from receiving notifications for IndexedDB.
parameters
- origin
-
string
Security origin.
Storage.untrackIndexedDBForStorageKey #
Unregisters storage key from receiving notifications for IndexedDB.
parameters
- storageKey
-
string
Storage key.
Storage.getStorageKeyForFrame Deprecated #
Returns a storage key given a frame id. Deprecated. Please use Storage.getStorageKey instead.
parameters
- frameId
-
Page.FrameId
Return Object
- storageKey
-
SerializedStorageKey
Storage.clearTrustTokens Experimental #
Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
parameters
- issuerOrigin
-
string
Return Object
- didDeleteTokens
-
boolean
True if any tokens were deleted, false otherwise.
Storage.deleteStorageBucket Experimental #
Deletes the Storage Bucket with the given storage key and bucket name.
parameters
- bucket
-
StorageBucket
Storage.getRelatedWebsiteSets Experimental #
Returns the effective Related Website Sets in use by this profile for the browser session. The effective Related Website Sets will not change during a browser session.
Return Object
- sets
-
array[ RelatedWebsiteSet ]
Storage.getStorageKey Experimental #
Returns storage key for the given frame. If no frame ID is provided, the storage key of the target executing this command is returned.
parameters
- frameId
-
Page.FrameId
Return Object
- storageKey
-
SerializedStorageKey
Storage.getTrustTokens Experimental #
Returns the number of stored Trust Tokens per issuer for the current browsing context.
Return Object
- tokens
-
array[ TrustTokens ]
Storage.overrideQuotaForOrigin Experimental #
Override quota for the specified origin
parameters
- origin
-
string
Security origin.
- quotaSize
-
number
The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).
Storage.runBounceTrackingMitigations Experimental #
Deletes state for sites identified as potential bounce trackers, immediately.
Return Object
- deletedSites
-
array[ string ]
Storage.setStorageBucketTracking Experimental #
Set tracking for a storage key's buckets.
parameters
- storageKey
-
string
- enable
-
boolean
Events
Storage.cacheStorageContentUpdated #
A cache's contents have been modified.
parameters
- origin
-
string
Origin to update.
- storageKey
-
string
Storage key to update.
- bucketId
-
string
Storage bucket to update.
- cacheName
-
string
Name of cache in origin.
Storage.cacheStorageListUpdated #
A cache has been added/deleted.
parameters
- origin
-
string
Origin to update.
- storageKey
-
string
Storage key to update.
- bucketId
-
string
Storage bucket to update.
Storage.indexedDBContentUpdated #
The origin's IndexedDB object store has been modified.
parameters
- origin
-
string
Origin to update.
- storageKey
-
string
Storage key to update.
- bucketId
-
string
Storage bucket 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.
- storageKey
-
string
Storage key to update.
- bucketId
-
string
Storage bucket to update.
Types
Storage.StorageBucket #
Type: object
properties
- storageKey
-
SerializedStorageKey
- name
-
string
If not specified, it is the default bucket of the storageKey.
Storage.StorageBucketInfo #
Type: object
properties
- bucket
-
StorageBucket
- id
-
string
- expiration
-
Network.TimeSinceEpoch
- quota
-
number
Storage quota (bytes).
- persistent
-
boolean
- durability
-
StorageBucketsDurability
Storage.StorageType #
Enum of possible storage types.
cookies, file_systems, indexeddb, local_storage, shader_cache, websql, service_workers, cache_storage, storage_buckets, all, otherType: string
Storage.UsageForType #
Usage for a storage type.
Type: object
properties
- storageType
-
StorageType
Name of storage type.
- usage
-
number
Storage usage (bytes).
Storage.RelatedWebsiteSet Experimental #
A single Related Website Set object.
Type: object
properties
- primarySites
-
array[ string ]
The primary site of this set, along with the ccTLDs if there is any.
- associatedSites
-
array[ string ]
The associated sites of this set, along with the ccTLDs if there is any.
- serviceSites
-
array[ string ]
The service sites of this set, along with the ccTLDs if there is any.
Storage.TrustTokens Experimental #
Pair of issuer origin and number of available (signed, but not used) Trust Tokens from that issuer.
Type: object
properties
- issuerOrigin
-
string
- count
-
number