clj-chrome-devtools.commands.storage
clear-cookies
(clear-cookies)
(clear-cookies {:as params, :keys [browser-context-id]})
(clear-cookies connection {:as params, :keys [browser-context-id]})
Clears cookies.
Parameters map keys:
Key | Description |
---|---|
:browser-context-id | Browser context to use when called on the browser endpoint. (optional) |
clear-data-for-origin
(clear-data-for-origin)
(clear-data-for-origin {:as params, :keys [origin storage-types]})
(clear-data-for-origin connection {:as params, :keys [origin storage-types]})
Clears storage for origin.
Parameters map keys:
Key | Description |
---|---|
:origin | Security origin. |
:storage-types | Comma separated list of StorageType to clear. |
clear-trust-tokens
(clear-trust-tokens)
(clear-trust-tokens {:as params, :keys [issuer-origin]})
(clear-trust-tokens connection {:as params, :keys [issuer-origin]})
Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer’s Redemption Records, intact.
Parameters map keys:
Key | Description |
---|---|
:issuer-origin | null |
Return map keys:
Key | Description |
---|---|
:did-delete-tokens | True if any tokens were deleted, false otherwise. |
get-cookies
(get-cookies)
(get-cookies {:as params, :keys [browser-context-id]})
(get-cookies connection {:as params, :keys [browser-context-id]})
Returns all browser cookies.
Parameters map keys:
Key | Description |
---|---|
:browser-context-id | Browser context to use when called on the browser endpoint. (optional) |
Return map keys:
Key | Description |
---|---|
:cookies | Array of cookie objects. |
get-interest-group-details
(get-interest-group-details)
(get-interest-group-details {:as params, :keys [owner-origin name]})
(get-interest-group-details connection {:as params, :keys [owner-origin name]})
Gets details for a named interest group.
Parameters map keys:
Key | Description |
---|---|
:owner-origin | null |
:name | null |
Return map keys:
Key | Description |
---|---|
:details | null |
get-trust-tokens
(get-trust-tokens)
(get-trust-tokens {:as params, :keys []})
(get-trust-tokens connection {:as params, :keys []})
Returns the number of stored Trust Tokens per issuer for the current browsing context.
Return map keys:
Key | Description |
---|---|
:tokens | null |
get-usage-and-quota
(get-usage-and-quota)
(get-usage-and-quota {:as params, :keys [origin]})
(get-usage-and-quota connection {:as params, :keys [origin]})
Returns usage and quota in bytes.
Parameters map keys:
Key | Description |
---|---|
:origin | Security origin. |
Return map keys:
Key | Description |
---|---|
:usage | Storage usage (bytes). |
:quota | Storage quota (bytes). |
:override-active | Whether or not the origin has an active storage quota override |
:usage-breakdown | Storage usage per type (bytes). |
override-quota-for-origin
(override-quota-for-origin)
(override-quota-for-origin {:as params, :keys [origin quota-size]})
(override-quota-for-origin connection {:as params, :keys [origin quota-size]})
Override quota for the specified origin
Parameters map keys:
Key | Description |
---|---|
:origin | Security origin. |
:quota-size | 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). (optional)
set-cookies
(set-cookies)
(set-cookies {:as params, :keys [cookies browser-context-id]})
(set-cookies connection {:as params, :keys [cookies browser-context-id]})
Sets given cookies.
Parameters map keys:
Key | Description |
---|---|
:cookies | Cookies to be set. |
:browser-context-id | Browser context to use when called on the browser endpoint. (optional) |
set-interest-group-tracking
(set-interest-group-tracking)
(set-interest-group-tracking {:as params, :keys [enable]})
(set-interest-group-tracking connection {:as params, :keys [enable]})
Enables/Disables issuing of interestGroupAccessed events.
Parameters map keys:
Key | Description |
---|---|
:enable | null |
track-cache-storage-for-origin
(track-cache-storage-for-origin)
(track-cache-storage-for-origin {:as params, :keys [origin]})
(track-cache-storage-for-origin connection {:as params, :keys [origin]})
Registers origin to be notified when an update occurs to its cache storage list.
Parameters map keys:
Key | Description |
---|---|
:origin | Security origin. |
track-indexed-db-for-origin
(track-indexed-db-for-origin)
(track-indexed-db-for-origin {:as params, :keys [origin]})
(track-indexed-db-for-origin connection {:as params, :keys [origin]})
Registers origin to be notified when an update occurs to its IndexedDB.
Parameters map keys:
Key | Description |
---|---|
:origin | Security origin. |
untrack-cache-storage-for-origin
(untrack-cache-storage-for-origin)
(untrack-cache-storage-for-origin {:as params, :keys [origin]})
(untrack-cache-storage-for-origin connection {:as params, :keys [origin]})
Unregisters origin from receiving notifications for cache storage.
Parameters map keys:
Key | Description |
---|---|
:origin | Security origin. |
untrack-indexed-db-for-origin
(untrack-indexed-db-for-origin)
(untrack-indexed-db-for-origin {:as params, :keys [origin]})
(untrack-indexed-db-for-origin connection {:as params, :keys [origin]})
Unregisters origin from receiving notifications for IndexedDB.
Parameters map keys:
Key | Description |
---|---|
:origin | Security origin. |