Storage Domain
Methods
- Storage.clearCookies
- Storage.clearDataForOrigin
- Storage.clearDataForStorageKey
- Storage.getCookies
- Storage.getUsageAndQuota
- Storage.setCookies
- Storage.setProtectedAudienceKAnonymity
- Storage.trackCacheStorageForOrigin
- Storage.trackCacheStorageForStorageKey
- Storage.trackIndexedDBForOrigin
- Storage.trackIndexedDBForStorageKey
- Storage.untrackCacheStorageForOrigin
- Storage.untrackCacheStorageForStorageKey
- Storage.untrackIndexedDBForOrigin
- Storage.untrackIndexedDBForStorageKey
- Storage.getStorageKeyForFrame Deprecated
- Storage.clearSharedStorageEntries Experimental
- Storage.clearTrustTokens Experimental
- Storage.deleteSharedStorageEntry Experimental
- Storage.deleteStorageBucket Experimental
- Storage.getInterestGroupDetails Experimental
- Storage.getRelatedWebsiteSets Experimental
- Storage.getSharedStorageEntries Experimental
- Storage.getSharedStorageMetadata Experimental
- Storage.getStorageKey Experimental
- Storage.getTrustTokens Experimental
- Storage.overrideQuotaForOrigin Experimental
- Storage.resetSharedStorageBudget Experimental
- Storage.runBounceTrackingMitigations Experimental
- Storage.setInterestGroupAuctionTracking Experimental
- Storage.setInterestGroupTracking Experimental
- Storage.setSharedStorageEntry Experimental
- Storage.setSharedStorageTracking Experimental
- Storage.setStorageBucketTracking Experimental
Events
- Storage.cacheStorageContentUpdated
- Storage.cacheStorageListUpdated
- Storage.indexedDBContentUpdated
- Storage.indexedDBListUpdated
- Storage.interestGroupAccessed
- Storage.interestGroupAuctionEventOccurred
- Storage.interestGroupAuctionNetworkRequestCreated
- Storage.sharedStorageAccessed
- Storage.sharedStorageWorkletOperationExecutionFinished
- Storage.storageBucketCreatedOrUpdated
- Storage.storageBucketDeleted
Types
- Storage.InterestGroupAccessType
- Storage.InterestGroupAuctionEventType
- Storage.InterestGroupAuctionFetchType
- Storage.InterestGroupAuctionId
- Storage.SerializedStorageKey
- Storage.SharedStorageAccessMethod
- Storage.SharedStorageAccessParams
- Storage.SharedStorageAccessScope
- Storage.SharedStorageEntry
- Storage.SharedStorageMetadata
- Storage.SharedStoragePrivateAggregationConfig
- Storage.SharedStorageReportingMetadata
- Storage.SharedStorageUrlWithMetadata
- Storage.StorageBucket
- Storage.StorageBucketInfo
- Storage.StorageBucketsDurability
- Storage.StorageType
- Storage.UsageForType
- Storage.RelatedWebsiteSet Experimental
- Storage.TrustTokens Experimental
Methods
Storage.clearCookies #
Clears cookies.
Parameters
browserContextIdOptional
Browser context to use when called on the browser endpoint.
Storage.clearDataForOrigin #
Clears storage for origin.
Parameters
origin stringSecurity origin.
storageTypes stringComma separated list of StorageType to clear.
Storage.clearDataForStorageKey #
Clears storage for storage key.
Parameters
storageKey stringStorage key.
storageTypes stringComma separated list of StorageType to clear.
Storage.getCookies #
Returns all browser cookies.
Parameters
browserContextIdOptional
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 stringSecurity origin.
Return object
usage numberStorage usage (bytes).
quota numberStorage quota (bytes).
overrideActive booleanWhether 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.
browserContextIdOptional
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 stringSecurity origin.
Storage.trackCacheStorageForStorageKey #
Registers storage key to be notified when an update occurs to its cache storage list.
Parameters
storageKey stringStorage key.
Storage.trackIndexedDBForOrigin #
Registers origin to be notified when an update occurs to its IndexedDB.
Parameters
origin stringSecurity origin.
Storage.trackIndexedDBForStorageKey #
Registers storage key to be notified when an update occurs to its IndexedDB.
Parameters
storageKey stringStorage key.
Storage.untrackCacheStorageForOrigin #
Unregisters origin from receiving notifications for cache storage.
Parameters
origin stringSecurity origin.
Storage.untrackCacheStorageForStorageKey #
Unregisters storage key from receiving notifications for cache storage.
Parameters
storageKey stringStorage key.
Storage.untrackIndexedDBForOrigin #
Unregisters origin from receiving notifications for IndexedDB.
Parameters
origin stringSecurity origin.
Storage.untrackIndexedDBForStorageKey #
Unregisters storage key from receiving notifications for IndexedDB.
Parameters
storageKey stringStorage key.
Storage.getStorageKeyForFrame Deprecated#
Returns a storage key given a frame id. Deprecated. Please use Storage.getStorageKey instead.
Parameters
frameId Return object
storageKey Storage.clearSharedStorageEntries Experimental#
Clears all entries for a given origin's shared storage.
Parameters
ownerOrigin stringStorage.clearTrustTokens Experimental#
Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
Parameters
issuerOrigin stringReturn object
didDeleteTokens booleanTrue if any tokens were deleted, false otherwise.
Storage.deleteSharedStorageEntry Experimental#
Deletes entry for key (if it exists) for a given origin's shared storage.
Parameters
ownerOrigin stringkey stringStorage.deleteStorageBucket Experimental#
Deletes the Storage Bucket with the given storage key and bucket name.
Parameters
bucket Storage.getInterestGroupDetails Experimental#
Gets details for a named interest group.
Parameters
ownerOrigin stringname stringReturn object
details objectThis largely corresponds to: https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup but has absolute expirationTime instead of relative lifetimeMs and also adds joiningOrigin.
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.getSharedStorageEntries Experimental#
Gets the entries in an given origin's shared storage.
Parameters
ownerOrigin stringReturn object
entries array[ SharedStorageEntry ]Storage.getSharedStorageMetadata Experimental#
Gets metadata for an origin's shared storage.
Parameters
ownerOrigin stringReturn object
metadata 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
frameIdOptional
Return object
storageKey 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 stringSecurity origin.
quotaSizeOptional
numberThe 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.resetSharedStorageBudget Experimental#
Resets the budget for ownerOrigin by clearing all budget withdrawals.
Parameters
ownerOrigin stringStorage.runBounceTrackingMitigations Experimental#
Deletes state for sites identified as potential bounce trackers, immediately.
Return object
deletedSites array[ string ]Storage.setInterestGroupAuctionTracking Experimental#
Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.
Parameters
enable booleanStorage.setInterestGroupTracking Experimental#
Enables/Disables issuing of interestGroupAccessed events.
Parameters
enable booleanStorage.setSharedStorageEntry Experimental#
Sets entry with key and value for a given origin's shared storage.
Parameters
ownerOrigin stringkey stringvalue stringignoreIfPresentOptional
booleanIf ignoreIfPresent is included and true, then only sets the entry if
key doesn't already exist.
Storage.setSharedStorageTracking Experimental#
Enables/disables issuing of sharedStorageAccessed events.
Parameters
enable booleanStorage.setStorageBucketTracking Experimental#
Set tracking for a storage key's buckets.
Parameters
storageKey stringenable booleanEvents
Storage.cacheStorageContentUpdated #
A cache's contents have been modified.
Parameters
origin stringOrigin to update.
storageKey stringStorage key to update.
bucketId stringStorage bucket to update.
cacheName stringName of cache in origin.
Storage.cacheStorageListUpdated #
A cache has been added/deleted.
Parameters
origin stringOrigin to update.
storageKey stringStorage key to update.
bucketId stringStorage bucket to update.
Storage.indexedDBContentUpdated #
The origin's IndexedDB object store has been modified.
Parameters
origin stringOrigin to update.
storageKey stringStorage key to update.
bucketId stringStorage bucket to update.
databaseName stringDatabase to update.
objectStoreName stringObjectStore to update.
Storage.indexedDBListUpdated #
The origin's IndexedDB database list has been modified.
Parameters
origin stringOrigin to update.
storageKey stringStorage key to update.
bucketId stringStorage bucket to update.
Storage.interestGroupAccessed #
One of the interest groups was accessed. Note that these events are global to all targets sharing an interest group store.
Parameters
accessTime ownerOrigin stringname stringcomponentSellerOriginOptional
stringFor topLevelBid/topLevelAdditionalBid, and when appropriate, win and additionalBidWin
bidOptional
numberFor bid or somethingBid event, if done locally and not on a server.
bidCurrencyOptional
stringuniqueAuctionIdOptional
For non-global events --- links to interestGroupAuctionEvent
Storage.interestGroupAuctionEventOccurred #
An auction involving interest groups is taking place. These events are target-specific.
Parameters
eventTime uniqueAuctionId parentAuctionIdOptional
Set for child auctions.
auctionConfigOptional
objectSet for started and configResolved
Storage.interestGroupAuctionNetworkRequestCreated #
Specifies which auctions a particular network fetch may be related to, and in what role. Note that it is not ordered with respect to Network.requestWillBeSent (but will happen before loadingFinished loadingFailed).
Parameters
requestId auctions array[ InterestGroupAuctionId ]This is the set of the auctions using the worklet that issued this request. In the case of trusted signals, it's possible that only some of them actually care about the keys being queried.
Storage.sharedStorageAccessed #
Shared storage was accessed by the associated page. The following parameters are included in all events.
Parameters
accessTime Time of the access.
scope Enum value indicating the access scope.
method Enum value indicating the Shared Storage API method invoked.
mainFrameId DevTools Frame Token for the primary frame tree's root.
ownerOrigin stringSerialization of the origin owning the Shared Storage data.
ownerSite stringSerialization of the site owning the Shared Storage data.
params The sub-parameters wrapped by params are all optional and their
presence/absence depends on type.
Storage.sharedStorageWorkletOperationExecutionFinished #
A shared storage run or selectURL operation finished its execution. The following parameters are included in all events.
Parameters
finishedTime Time that the operation finished.
executionTime integerTime, in microseconds, from start of shared storage JS API call until end of operation execution in the worklet.
method Enum value indicating the Shared Storage API method invoked.
operationId stringID of the operation call.
workletTargetId Hex representation of the DevTools token used as the TargetID for the associated shared storage worklet.
mainFrameId DevTools Frame Token for the primary frame tree's root.
ownerOrigin stringSerialization of the origin owning the Shared Storage data.
Types
Storage.InterestGroupAccessType #
Enum of interest group access types.
Type: string
Allowed values: join, leave, update, loaded, bid, win, additionalBid, additionalBidWin, topLevelBid, topLevelAdditionalBid, clear
Storage.InterestGroupAuctionEventType #
Enum of auction events.
Type: string
Allowed values: started, configResolved
Storage.InterestGroupAuctionFetchType #
Enum of network fetches auctions can do.
Type: string
Allowed values: bidderJs, bidderWasm, sellerJs, bidderTrustedSignals, sellerTrustedSignals
Storage.SharedStorageAccessMethod #
Enum of shared storage access methods.
Type: string
Allowed values: addModule, createWorklet, selectURL, run, batchUpdate, set, append, delete, clear, get, keys, values, entries, length, remainingBudget
Storage.SharedStorageAccessParams #
Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType.
Type: object
Properties
scriptSourceUrlOptional
stringSpec of the module script URL. Present only for SharedStorageAccessMethods: addModule and createWorklet.
dataOriginOptional
stringString denoting "context-origin", "script-origin", or a custom origin to be used as the worklet's data origin. Present only for SharedStorageAccessMethod: createWorklet.
operationNameOptional
stringName of the registered operation to be run. Present only for SharedStorageAccessMethods: run and selectURL.
operationIdOptional
stringID of the operation call. Present only for SharedStorageAccessMethods: run and selectURL.
keepAliveOptional
booleanWhether or not to keep the worket alive for future run or selectURL calls. Present only for SharedStorageAccessMethods: run and selectURL.
privateAggregationConfigOptional
Configures the private aggregation options. Present only for SharedStorageAccessMethods: run and selectURL.
serializedDataOptional
stringThe operation's serialized data in bytes (converted to a string). Present only for SharedStorageAccessMethods: run and selectURL. TODO(crbug.com/401011862): Consider updating this parameter to binary.
urlsWithMetadataOptional
array[ SharedStorageUrlWithMetadata ]Array of candidate URLs' specs, along with any associated metadata. Present only for SharedStorageAccessMethod: selectURL.
urnUuidOptional
stringSpec of the URN:UUID generated for a selectURL call. Present only for SharedStorageAccessMethod: selectURL.
keyOptional
stringKey for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set, append, delete, and get.
valueOptional
stringValue for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set and append.
ignoreIfPresentOptional
booleanWhether or not to set an entry for a key if that key is already present. Present only for SharedStorageAccessMethod: set.
workletOrdinalOptional
integerA number denoting the (0-based) order of the worklet's creation relative to all other shared storage worklets created by documents using the current storage partition. Present only for SharedStorageAccessMethods: addModule, createWorklet.
workletTargetIdOptional
Hex representation of the DevTools token used as the TargetID for the associated shared storage worklet. Present only for SharedStorageAccessMethods: addModule, createWorklet, run, selectURL, and any other SharedStorageAccessMethod when the SharedStorageAccessScope is sharedStorageWorklet.
withLockOptional
stringName of the lock to be acquired, if present. Optionally present only for SharedStorageAccessMethods: batchUpdate, set, append, delete, and clear.
batchUpdateIdOptional
stringIf the method has been called as part of a batchUpdate, then this number identifies the batch to which it belongs. Optionally present only for SharedStorageAccessMethods: batchUpdate (required), set, append, delete, and clear.
batchSizeOptional
integerNumber of modifier methods sent in batch. Present only for SharedStorageAccessMethod: batchUpdate.
Storage.SharedStorageAccessScope #
Enum of shared storage access scopes.
Type: string
Allowed values: window, sharedStorageWorklet, protectedAudienceWorklet, header
Storage.SharedStorageEntry #
Struct for a single key-value pair in an origin's shared storage.
Type: object
Properties
key stringvalue stringStorage.SharedStorageMetadata #
Details for an origin's shared storage.
Type: object
Properties
creationTime Time when the origin's shared storage was last created.
length integerNumber of key-value pairs stored in origin's shared storage.
remainingBudget numberCurrent amount of bits of entropy remaining in the navigation budget.
bytesUsed integerTotal number of bytes stored as key-value pairs in origin's shared storage.
Storage.SharedStoragePrivateAggregationConfig #
Represents a dictionary object passed in as privateAggregationConfig to run or selectURL.
Type: object
Properties
aggregationCoordinatorOriginOptional
stringThe chosen aggregation service deployment.
contextIdOptional
stringThe context ID provided.
filteringIdMaxBytes integerConfigures the maximum size allowed for filtering IDs.
maxContributionsOptional
integerThe limit on the number of contributions in the final report.
Storage.SharedStorageReportingMetadata #
Pair of reporting metadata details for a candidate URL for selectURL().
Type: object
Properties
eventType stringreportingUrl stringStorage.SharedStorageUrlWithMetadata #
Bundles a candidate URL with its reporting metadata.
Type: object
Properties
url stringSpec of candidate URL.
reportingMetadata array[ SharedStorageReportingMetadata ]Any associated reporting metadata.
Storage.StorageBucket #
Type: object
Properties
storageKey nameOptional
stringIf not specified, it is the default bucket of the storageKey.
Storage.StorageBucketInfo #
Type: object
Properties
bucket id stringexpiration quota numberStorage quota (bytes).
persistent booleandurability Storage.StorageType #
Enum of possible storage types.
Type: string
Allowed values: cookies, file_systems, indexeddb, local_storage, shader_cache, websql, service_workers, cache_storage, interest_groups, shared_storage, storage_buckets, all, other
Storage.UsageForType #
Usage for a storage type.
Type: object
Properties
storageType Name of storage type.
usage numberStorage 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 stringcount number