Storage Domain
Methods
- Storage.clearCookies
- Storage.clearDataForOrigin
- Storage.clearDataForStorageKey
- Storage.getCookies
- Storage.getStorageKeyForFrame
- Storage.getUsageAndQuota
- Storage.setCookies
- Storage.trackCacheStorageForOrigin
- Storage.trackCacheStorageForStorageKey
- Storage.trackIndexedDBForOrigin
- Storage.trackIndexedDBForStorageKey
- Storage.untrackCacheStorageForOrigin
- Storage.untrackCacheStorageForStorageKey
- Storage.untrackIndexedDBForOrigin
- Storage.untrackIndexedDBForStorageKey
- 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.getTrustTokens Experimental
- Storage.overrideQuotaForOrigin Experimental
- Storage.resetSharedStorageBudget Experimental
- Storage.runBounceTrackingMitigations Experimental
- Storage.sendPendingAttributionReports Experimental
- Storage.setAttributionReportingLocalTestingMode Experimental
- Storage.setAttributionReportingTracking 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.storageBucketCreatedOrUpdated
- Storage.storageBucketDeleted
- Storage.attributionReportingSourceRegistered Experimental
- Storage.attributionReportingTriggerRegistered Experimental
Types
- Storage.InterestGroupAccessType
- Storage.InterestGroupAuctionEventType
- Storage.InterestGroupAuctionFetchType
- Storage.InterestGroupAuctionId
- Storage.SerializedStorageKey
- Storage.SharedStorageAccessParams
- Storage.SharedStorageAccessType
- Storage.SharedStorageEntry
- Storage.SharedStorageMetadata
- Storage.SharedStorageReportingMetadata
- Storage.SharedStorageUrlWithMetadata
- Storage.StorageBucket
- Storage.StorageBucketInfo
- Storage.StorageBucketsDurability
- Storage.StorageType
- Storage.UsageForType
- Storage.AttributionReportingAggregatableDedupKey Experimental
- Storage.AttributionReportingAggregatableResult Experimental
- Storage.AttributionReportingAggregatableTriggerData Experimental
- Storage.AttributionReportingAggregatableValueDictEntry Experimental
- Storage.AttributionReportingAggregatableValueEntry Experimental
- Storage.AttributionReportingAggregationKeysEntry Experimental
- Storage.AttributionReportingEventLevelResult Experimental
- Storage.AttributionReportingEventReportWindows Experimental
- Storage.AttributionReportingEventTriggerData Experimental
- Storage.AttributionReportingFilterConfig Experimental
- Storage.AttributionReportingFilterDataEntry Experimental
- Storage.AttributionReportingFilterPair Experimental
- Storage.AttributionReportingSourceRegistration Experimental
- Storage.AttributionReportingSourceRegistrationResult Experimental
- Storage.AttributionReportingSourceRegistrationTimeConfig Experimental
- Storage.AttributionReportingSourceType Experimental
- Storage.AttributionReportingTriggerDataMatching Experimental
- Storage.AttributionReportingTriggerRegistration Experimental
- Storage.AttributionReportingTriggerSpec Experimental
- Storage.RelatedWebsiteSet Experimental
- Storage.SignedInt64AsBase10 Experimental
- Storage.TrustTokens Experimental
- Storage.UnsignedInt128AsBase16 Experimental
- Storage.UnsignedInt64AsBase10 Experimental
Methods
Storage.clearCookies #
Clears cookies.
Parameters
browserContextId
Optional
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
Optional
Browser context to use when called on the browser endpoint.
Return object
cookies
array[ Network.Cookie ]
Array of cookie objects.
Storage.getStorageKeyForFrame #
Returns a storage key given a frame id.
Parameters
frameId
Return object
storageKey
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
Optional
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.clearSharedStorageEntries Experimental#
Clears all entries for a given origin's shared storage.
Parameters
ownerOrigin
string
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.deleteSharedStorageEntry Experimental#
Deletes entry for key
(if it exists) for a given origin's shared storage.
Parameters
ownerOrigin
string
key
string
Storage.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
string
name
string
Return object
details
object
This 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
string
Return object
entries
array[ SharedStorageEntry ]
Storage.getSharedStorageMetadata Experimental#
Gets metadata for an origin's shared storage.
Parameters
ownerOrigin
string
Return object
metadata
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
Optional
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.resetSharedStorageBudget Experimental#
Resets the budget for ownerOrigin
by clearing all budget withdrawals.
Parameters
ownerOrigin
string
Storage.runBounceTrackingMitigations Experimental#
Deletes state for sites identified as potential bounce trackers, immediately.
Return object
deletedSites
array[ string
]
Storage.sendPendingAttributionReports Experimental#
Sends all pending Attribution Reports immediately, regardless of their scheduled report time.
Return object
numSent
integer
The number of reports that were sent.
Storage.setAttributionReportingLocalTestingMode Experimental#
https://wicg.github.io/attribution-reporting-api/
Parameters
enabled
boolean
If enabled, noise is suppressed and reports are sent immediately.
Storage.setAttributionReportingTracking Experimental#
Enables/disables issuing of Attribution Reporting events.
Parameters
enable
boolean
Storage.setInterestGroupAuctionTracking Experimental#
Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.
Parameters
enable
boolean
Storage.setInterestGroupTracking Experimental#
Enables/Disables issuing of interestGroupAccessed events.
Parameters
enable
boolean
Storage.setSharedStorageEntry Experimental#
Sets entry with key
and value
for a given origin's shared storage.
Parameters
ownerOrigin
string
key
string
value
string
ignoreIfPresent
Optional
boolean
If 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
boolean
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.
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
string
name
string
componentSellerOrigin
Optional
string
For topLevelBid/topLevelAdditionalBid, and when appropriate, win and additionalBidWin
bid
Optional
number
For bid or somethingBid event, if done locally and not on a server.
bidCurrency
Optional
string
uniqueAuctionId
Optional
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
parentAuctionId
Optional
Set for child auctions.
auctionConfig
Optional
object
Set 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.
type
Enum value indicating the Shared Storage API method invoked.
mainFrameId
DevTools Frame Token for the primary frame tree's root.
ownerOrigin
string
Serialized origin for the context that invoked the Shared Storage API.
params
The sub-parameters wrapped by params
are all optional and their
presence/absence depends on type
.
Storage.attributionReportingTriggerRegistered Experimental#
Parameters
registration
eventLevel
aggregatable
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.SharedStorageAccessParams #
Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType.
Type: object
Properties
scriptSourceUrl
Optional
string
Spec of the module script URL. Present only for SharedStorageAccessType.documentAddModule.
operationName
Optional
string
Name of the registered operation to be run. Present only for SharedStorageAccessType.documentRun and SharedStorageAccessType.documentSelectURL.
serializedData
Optional
string
The operation's serialized data in bytes (converted to a string). Present only for SharedStorageAccessType.documentRun and SharedStorageAccessType.documentSelectURL.
urlsWithMetadata
Optional
array[ SharedStorageUrlWithMetadata ]
Array of candidate URLs' specs, along with any associated metadata. Present only for SharedStorageAccessType.documentSelectURL.
key
Optional
string
Key for a specific entry in an origin's shared storage. Present only for SharedStorageAccessType.documentSet, SharedStorageAccessType.documentAppend, SharedStorageAccessType.documentDelete, SharedStorageAccessType.workletSet, SharedStorageAccessType.workletAppend, SharedStorageAccessType.workletDelete, SharedStorageAccessType.workletGet, SharedStorageAccessType.headerSet, SharedStorageAccessType.headerAppend, and SharedStorageAccessType.headerDelete.
value
Optional
string
Value for a specific entry in an origin's shared storage. Present only for SharedStorageAccessType.documentSet, SharedStorageAccessType.documentAppend, SharedStorageAccessType.workletSet, SharedStorageAccessType.workletAppend, SharedStorageAccessType.headerSet, and SharedStorageAccessType.headerAppend.
ignoreIfPresent
Optional
boolean
Whether or not to set an entry for a key if that key is already present. Present only for SharedStorageAccessType.documentSet, SharedStorageAccessType.workletSet, and SharedStorageAccessType.headerSet.
Storage.SharedStorageAccessType #
Enum of shared storage access types.
Type: string
Allowed values: documentAddModule
, documentSelectURL
, documentRun
, documentSet
, documentAppend
, documentDelete
, documentClear
, documentGet
, workletSet
, workletAppend
, workletDelete
, workletClear
, workletGet
, workletKeys
, workletEntries
, workletLength
, workletRemainingBudget
, headerSet
, headerAppend
, headerDelete
, headerClear
Storage.SharedStorageEntry #
Struct for a single key-value pair in an origin's shared storage.
Type: object
Properties
key
string
value
string
Storage.SharedStorageMetadata #
Details for an origin's shared storage.
Type: object
Properties
creationTime
Time when the origin's shared storage was last created.
length
integer
Number of key-value pairs stored in origin's shared storage.
remainingBudget
number
Current amount of bits of entropy remaining in the navigation budget.
bytesUsed
integer
Total number of bytes stored as key-value pairs in origin's shared storage.
Storage.SharedStorageReportingMetadata #
Pair of reporting metadata details for a candidate URL for selectURL()
.
Type: object
Properties
eventType
string
reportingUrl
string
Storage.SharedStorageUrlWithMetadata #
Bundles a candidate URL with its reporting metadata.
Type: object
Properties
url
string
Spec of candidate URL.
reportingMetadata
array[ SharedStorageReportingMetadata ]
Any associated reporting metadata.
Storage.StorageBucket #
Type: object
Properties
storageKey
name
Optional
string
If not specified, it is the default bucket of the storageKey.
Storage.StorageBucketInfo #
Type: object
Properties
bucket
id
string
expiration
quota
number
Storage quota (bytes).
persistent
boolean
durability
Storage.StorageType #
Enum of possible storage types.
Type: string
Allowed values: appcache
, 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
number
Storage usage (bytes).
Storage.AttributionReportingAggregatableDedupKey Experimental#
Type: object
Properties
dedupKey
Optional
filters
Storage.AttributionReportingAggregatableResult Experimental#
Type: string
Allowed values: success
, internalError
, noCapacityForAttributionDestination
, noMatchingSources
, excessiveAttributions
, excessiveReportingOrigins
, noHistograms
, insufficientBudget
, noMatchingSourceFilterData
, notRegistered
, prohibitedByBrowserPolicy
, deduplicated
, reportWindowPassed
, excessiveReports
Storage.AttributionReportingAggregatableTriggerData Experimental#
Type: object
Properties
keyPiece
sourceKeys
array[ string
]
filters
Storage.AttributionReportingAggregatableValueDictEntry Experimental#
Type: object
Properties
key
string
value
number
number instead of integer because not all uint32 can be represented by int
Storage.AttributionReportingAggregatableValueEntry Experimental#
Type: object
Properties
values
filters
Storage.AttributionReportingEventLevelResult Experimental#
Type: string
Allowed values: success
, successDroppedLowerPriority
, internalError
, noCapacityForAttributionDestination
, noMatchingSources
, deduplicated
, excessiveAttributions
, priorityTooLow
, neverAttributedSource
, excessiveReportingOrigins
, noMatchingSourceFilterData
, prohibitedByBrowserPolicy
, noMatchingConfigurations
, excessiveReports
, falselyAttributedSource
, reportWindowPassed
, notRegistered
, reportWindowNotStarted
, noMatchingTriggerData
Storage.AttributionReportingEventReportWindows Experimental#
Type: object
Properties
start
integer
duration in seconds
ends
array[ integer
]
duration in seconds
Storage.AttributionReportingEventTriggerData Experimental#
Type: object
Properties
priority
dedupKey
Optional
filters
Storage.AttributionReportingFilterConfig Experimental#
Type: object
Properties
filterValues
array[ AttributionReportingFilterDataEntry ]
lookbackWindow
Optional
integer
duration in seconds
Storage.AttributionReportingFilterDataEntry Experimental#
Type: object
Properties
key
string
values
array[ string
]
Storage.AttributionReportingFilterPair Experimental#
Type: object
Properties
filters
array[ AttributionReportingFilterConfig ]
notFilters
array[ AttributionReportingFilterConfig ]
Storage.AttributionReportingSourceRegistration Experimental#
Type: object
Properties
expiry
integer
duration in seconds
triggerSpecs
array[ AttributionReportingTriggerSpec ]
aggregatableReportWindow
integer
duration in seconds
sourceOrigin
string
reportingOrigin
string
destinationSites
array[ string
]
eventId
priority
filterData
array[ AttributionReportingFilterDataEntry ]
aggregationKeys
debugKey
Optional
triggerDataMatching
Storage.AttributionReportingSourceRegistrationResult Experimental#
Type: string
Allowed values: success
, internalError
, insufficientSourceCapacity
, insufficientUniqueDestinationCapacity
, excessiveReportingOrigins
, prohibitedByBrowserPolicy
, successNoised
, destinationReportingLimitReached
, destinationGlobalLimitReached
, destinationBothLimitsReached
, reportingOriginsPerSiteLimitReached
, exceedsMaxChannelCapacity
, exceedsMaxTriggerStateCardinality
, destinationPerDayReportingLimitReached
Storage.AttributionReportingSourceRegistrationTimeConfig Experimental#
Type: string
Allowed values: include
, exclude
Storage.AttributionReportingTriggerDataMatching Experimental#
Type: string
Allowed values: exact
, modulus
Storage.AttributionReportingTriggerRegistration Experimental#
Type: object
Properties
filters
debugKey
Optional
aggregatableDedupKeys
eventTriggerData
array[ AttributionReportingEventTriggerData ]
aggregatableTriggerData
aggregatableValues
debugReporting
boolean
aggregationCoordinatorOrigin
Optional
string
sourceRegistrationTimeConfig
triggerContextId
Optional
string
Storage.AttributionReportingTriggerSpec Experimental#
Type: object
Properties
triggerData
array[ number
]
number instead of integer because not all uint32 can be represented by int
eventReportWindows
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