storage
CacheStorageContentUpdated
dataclass
A cache's contents have been modified.
Source code in zendriver/cdp/storage.py
bucket_id: str
instance-attribute
cache_name: str
instance-attribute
origin: str
instance-attribute
storage_key: str
instance-attribute
__init__(origin, storage_key, bucket_id, cache_name)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
CacheStorageListUpdated
dataclass
A cache has been added/deleted.
Source code in zendriver/cdp/storage.py
bucket_id: str
instance-attribute
origin: str
instance-attribute
storage_key: str
instance-attribute
__init__(origin, storage_key, bucket_id)
IndexedDBContentUpdated
dataclass
The origin's IndexedDB object store has been modified.
Source code in zendriver/cdp/storage.py
bucket_id: str
instance-attribute
database_name: str
instance-attribute
object_store_name: str
instance-attribute
origin: str
instance-attribute
storage_key: str
instance-attribute
__init__(origin, storage_key, bucket_id, database_name, object_store_name)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
IndexedDBListUpdated
dataclass
The origin's IndexedDB database list has been modified.
Source code in zendriver/cdp/storage.py
bucket_id: str
instance-attribute
origin: str
instance-attribute
storage_key: str
instance-attribute
__init__(origin, storage_key, bucket_id)
InterestGroupAccessType
Bases: Enum
Enum of interest group access types.
Source code in zendriver/cdp/storage.py
ADDITIONAL_BID = 'additionalBid'
class-attribute
instance-attribute
ADDITIONAL_BID_WIN = 'additionalBidWin'
class-attribute
instance-attribute
BID = 'bid'
class-attribute
instance-attribute
CLEAR = 'clear'
class-attribute
instance-attribute
JOIN = 'join'
class-attribute
instance-attribute
LEAVE = 'leave'
class-attribute
instance-attribute
LOADED = 'loaded'
class-attribute
instance-attribute
TOP_LEVEL_ADDITIONAL_BID = 'topLevelAdditionalBid'
class-attribute
instance-attribute
TOP_LEVEL_BID = 'topLevelBid'
class-attribute
instance-attribute
UPDATE = 'update'
class-attribute
instance-attribute
WIN = 'win'
class-attribute
instance-attribute
from_json(json)
classmethod
InterestGroupAccessed
dataclass
One of the interest groups was accessed. Note that these events are global to all targets sharing an interest group store.
Source code in zendriver/cdp/storage.py
access_time: network.TimeSinceEpoch
instance-attribute
bid: typing.Optional[float]
instance-attribute
bid_currency: typing.Optional[str]
instance-attribute
component_seller_origin: typing.Optional[str]
instance-attribute
name: str
instance-attribute
owner_origin: str
instance-attribute
type_: InterestGroupAccessType
instance-attribute
unique_auction_id: typing.Optional[InterestGroupAuctionId]
instance-attribute
__init__(access_time, type_, owner_origin, name, component_seller_origin, bid, bid_currency, unique_auction_id)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
InterestGroupAuctionEventOccurred
dataclass
An auction involving interest groups is taking place. These events are target-specific.
Source code in zendriver/cdp/storage.py
auction_config: typing.Optional[dict]
instance-attribute
event_time: network.TimeSinceEpoch
instance-attribute
parent_auction_id: typing.Optional[InterestGroupAuctionId]
instance-attribute
type_: InterestGroupAuctionEventType
instance-attribute
unique_auction_id: InterestGroupAuctionId
instance-attribute
__init__(event_time, type_, unique_auction_id, parent_auction_id, auction_config)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
InterestGroupAuctionEventType
Bases: Enum
Enum of auction events.
Source code in zendriver/cdp/storage.py
CONFIG_RESOLVED = 'configResolved'
class-attribute
instance-attribute
STARTED = 'started'
class-attribute
instance-attribute
from_json(json)
classmethod
InterestGroupAuctionFetchType
Bases: Enum
Enum of network fetches auctions can do.
Source code in zendriver/cdp/storage.py
BIDDER_JS = 'bidderJs'
class-attribute
instance-attribute
BIDDER_TRUSTED_SIGNALS = 'bidderTrustedSignals'
class-attribute
instance-attribute
BIDDER_WASM = 'bidderWasm'
class-attribute
instance-attribute
SELLER_JS = 'sellerJs'
class-attribute
instance-attribute
SELLER_TRUSTED_SIGNALS = 'sellerTrustedSignals'
class-attribute
instance-attribute
from_json(json)
classmethod
InterestGroupAuctionId
Bases: str
Protected audience interest group auction identifier.
Source code in zendriver/cdp/storage.py
__repr__()
from_json(json)
classmethod
InterestGroupAuctionNetworkRequestCreated
dataclass
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).
Source code in zendriver/cdp/storage.py
auctions: typing.List[InterestGroupAuctionId]
instance-attribute
request_id: network.RequestId
instance-attribute
type_: InterestGroupAuctionFetchType
instance-attribute
__init__(type_, request_id, auctions)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
RelatedWebsiteSet
dataclass
A single Related Website Set object.
Source code in zendriver/cdp/storage.py
associated_sites: typing.List[str]
instance-attribute
primary_sites: typing.List[str]
instance-attribute
service_sites: typing.List[str]
instance-attribute
__init__(primary_sites, associated_sites, service_sites)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
SerializedStorageKey
Bases: str
Source code in zendriver/cdp/storage.py
__repr__()
from_json(json)
classmethod
SharedStorageAccessMethod
Bases: Enum
Enum of shared storage access methods.
Source code in zendriver/cdp/storage.py
ADD_MODULE = 'addModule'
class-attribute
instance-attribute
APPEND = 'append'
class-attribute
instance-attribute
BATCH_UPDATE = 'batchUpdate'
class-attribute
instance-attribute
CLEAR = 'clear'
class-attribute
instance-attribute
CREATE_WORKLET = 'createWorklet'
class-attribute
instance-attribute
DELETE = 'delete'
class-attribute
instance-attribute
ENTRIES = 'entries'
class-attribute
instance-attribute
GET = 'get'
class-attribute
instance-attribute
KEYS = 'keys'
class-attribute
instance-attribute
LENGTH = 'length'
class-attribute
instance-attribute
REMAINING_BUDGET = 'remainingBudget'
class-attribute
instance-attribute
RUN = 'run'
class-attribute
instance-attribute
SELECT_URL = 'selectURL'
class-attribute
instance-attribute
SET_ = 'set'
class-attribute
instance-attribute
VALUES = 'values'
class-attribute
instance-attribute
from_json(json)
classmethod
SharedStorageAccessParams
dataclass
Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType.
Source code in zendriver/cdp/storage.py
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 | |
batch_size: typing.Optional[int] = None
class-attribute
instance-attribute
batch_update_id: typing.Optional[str] = None
class-attribute
instance-attribute
data_origin: typing.Optional[str] = None
class-attribute
instance-attribute
ignore_if_present: typing.Optional[bool] = None
class-attribute
instance-attribute
keep_alive: typing.Optional[bool] = None
class-attribute
instance-attribute
key: typing.Optional[str] = None
class-attribute
instance-attribute
operation_id: typing.Optional[str] = None
class-attribute
instance-attribute
operation_name: typing.Optional[str] = None
class-attribute
instance-attribute
private_aggregation_config: typing.Optional[SharedStoragePrivateAggregationConfig] = None
class-attribute
instance-attribute
script_source_url: typing.Optional[str] = None
class-attribute
instance-attribute
serialized_data: typing.Optional[str] = None
class-attribute
instance-attribute
urls_with_metadata: typing.Optional[typing.List[SharedStorageUrlWithMetadata]] = None
class-attribute
instance-attribute
urn_uuid: typing.Optional[str] = None
class-attribute
instance-attribute
value: typing.Optional[str] = None
class-attribute
instance-attribute
with_lock: typing.Optional[str] = None
class-attribute
instance-attribute
worklet_ordinal: typing.Optional[int] = None
class-attribute
instance-attribute
worklet_target_id: typing.Optional[target.TargetID] = None
class-attribute
instance-attribute
__init__(script_source_url=None, data_origin=None, operation_name=None, operation_id=None, keep_alive=None, private_aggregation_config=None, serialized_data=None, urls_with_metadata=None, urn_uuid=None, key=None, value=None, ignore_if_present=None, worklet_ordinal=None, worklet_target_id=None, with_lock=None, batch_update_id=None, batch_size=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
SharedStorageAccessScope
Bases: Enum
Enum of shared storage access scopes.
Source code in zendriver/cdp/storage.py
HEADER = 'header'
class-attribute
instance-attribute
PROTECTED_AUDIENCE_WORKLET = 'protectedAudienceWorklet'
class-attribute
instance-attribute
SHARED_STORAGE_WORKLET = 'sharedStorageWorklet'
class-attribute
instance-attribute
WINDOW = 'window'
class-attribute
instance-attribute
from_json(json)
classmethod
SharedStorageAccessed
dataclass
Shared storage was accessed by the associated page. The following parameters are included in all events.
Source code in zendriver/cdp/storage.py
access_time: network.TimeSinceEpoch
instance-attribute
main_frame_id: page.FrameId
instance-attribute
method: SharedStorageAccessMethod
instance-attribute
owner_origin: str
instance-attribute
owner_site: str
instance-attribute
params: SharedStorageAccessParams
instance-attribute
scope: SharedStorageAccessScope
instance-attribute
__init__(access_time, scope, method, main_frame_id, owner_origin, owner_site, params)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
SharedStorageEntry
dataclass
Struct for a single key-value pair in an origin's shared storage.
Source code in zendriver/cdp/storage.py
key: str
instance-attribute
value: str
instance-attribute
__init__(key, value)
from_json(json)
classmethod
SharedStorageMetadata
dataclass
Details for an origin's shared storage.
Source code in zendriver/cdp/storage.py
bytes_used: int
instance-attribute
creation_time: network.TimeSinceEpoch
instance-attribute
length: int
instance-attribute
remaining_budget: float
instance-attribute
__init__(creation_time, length, remaining_budget, bytes_used)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
SharedStoragePrivateAggregationConfig
dataclass
Represents a dictionary object passed in as privateAggregationConfig to run or selectURL.
Source code in zendriver/cdp/storage.py
aggregation_coordinator_origin: typing.Optional[str] = None
class-attribute
instance-attribute
context_id: typing.Optional[str] = None
class-attribute
instance-attribute
filtering_id_max_bytes: int
instance-attribute
max_contributions: typing.Optional[int] = None
class-attribute
instance-attribute
__init__(filtering_id_max_bytes, aggregation_coordinator_origin=None, context_id=None, max_contributions=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
SharedStorageReportingMetadata
dataclass
Pair of reporting metadata details for a candidate URL for selectURL().
Source code in zendriver/cdp/storage.py
event_type: str
instance-attribute
reporting_url: str
instance-attribute
__init__(event_type, reporting_url)
from_json(json)
classmethod
SharedStorageUrlWithMetadata
dataclass
Bundles a candidate URL with its reporting metadata.
Source code in zendriver/cdp/storage.py
reporting_metadata: typing.List[SharedStorageReportingMetadata]
instance-attribute
url: str
instance-attribute
__init__(url, reporting_metadata)
from_json(json)
classmethod
SharedStorageWorkletOperationExecutionFinished
dataclass
A shared storage run or selectURL operation finished its execution. The following parameters are included in all events.
Source code in zendriver/cdp/storage.py
execution_time: int
instance-attribute
finished_time: network.TimeSinceEpoch
instance-attribute
main_frame_id: page.FrameId
instance-attribute
method: SharedStorageAccessMethod
instance-attribute
operation_id: str
instance-attribute
owner_origin: str
instance-attribute
worklet_target_id: target.TargetID
instance-attribute
__init__(finished_time, execution_time, method, operation_id, worklet_target_id, main_frame_id, owner_origin)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
StorageBucket
dataclass
Source code in zendriver/cdp/storage.py
name: typing.Optional[str] = None
class-attribute
instance-attribute
storage_key: SerializedStorageKey
instance-attribute
__init__(storage_key, name=None)
from_json(json)
classmethod
StorageBucketCreatedOrUpdated
dataclass
Source code in zendriver/cdp/storage.py
bucket_info: StorageBucketInfo
instance-attribute
__init__(bucket_info)
StorageBucketDeleted
dataclass
Source code in zendriver/cdp/storage.py
StorageBucketInfo
dataclass
Source code in zendriver/cdp/storage.py
bucket: StorageBucket
instance-attribute
durability: StorageBucketsDurability
instance-attribute
expiration: network.TimeSinceEpoch
instance-attribute
id_: str
instance-attribute
persistent: bool
instance-attribute
quota: float
instance-attribute
__init__(bucket, id_, expiration, quota, persistent, durability)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
StorageBucketsDurability
Bases: Enum
Source code in zendriver/cdp/storage.py
RELAXED = 'relaxed'
class-attribute
instance-attribute
STRICT = 'strict'
class-attribute
instance-attribute
from_json(json)
classmethod
StorageType
Bases: Enum
Enum of possible storage types.
Source code in zendriver/cdp/storage.py
ALL_ = 'all'
class-attribute
instance-attribute
CACHE_STORAGE = 'cache_storage'
class-attribute
instance-attribute
COOKIES = 'cookies'
class-attribute
instance-attribute
FILE_SYSTEMS = 'file_systems'
class-attribute
instance-attribute
INDEXEDDB = 'indexeddb'
class-attribute
instance-attribute
INTEREST_GROUPS = 'interest_groups'
class-attribute
instance-attribute
LOCAL_STORAGE = 'local_storage'
class-attribute
instance-attribute
OTHER = 'other'
class-attribute
instance-attribute
SERVICE_WORKERS = 'service_workers'
class-attribute
instance-attribute
SHADER_CACHE = 'shader_cache'
class-attribute
instance-attribute
SHARED_STORAGE = 'shared_storage'
class-attribute
instance-attribute
STORAGE_BUCKETS = 'storage_buckets'
class-attribute
instance-attribute
WEBSQL = 'websql'
class-attribute
instance-attribute
from_json(json)
classmethod
TrustTokens
dataclass
Pair of issuer origin and number of available (signed, but not used) Trust Tokens from that issuer.
Source code in zendriver/cdp/storage.py
count: float
instance-attribute
issuer_origin: str
instance-attribute
__init__(issuer_origin, count)
from_json(json)
classmethod
UsageForType
dataclass
Usage for a storage type.
Source code in zendriver/cdp/storage.py
storage_type: StorageType
instance-attribute
usage: float
instance-attribute
__init__(storage_type, usage)
from_json(json)
classmethod
clear_cookies(browser_context_id=None)
Clears cookies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
browser_context_id
|
Optional[BrowserContextID]
|
(Optional) Browser context to use when called on the browser endpoint. |
None
|
Source code in zendriver/cdp/storage.py
clear_data_for_origin(origin, storage_types)
Clears storage for origin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
str
|
Security origin. |
required |
storage_types
|
str
|
Comma separated list of StorageType to clear. |
required |
Source code in zendriver/cdp/storage.py
clear_data_for_storage_key(storage_key, storage_types)
Clears storage for storage key.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
storage_key
|
str
|
Storage key. |
required |
storage_types
|
str
|
Comma separated list of StorageType to clear. |
required |
Source code in zendriver/cdp/storage.py
clear_shared_storage_entries(owner_origin)
Clears all entries for a given origin's shared storage.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner_origin
|
str
|
|
required |
Source code in zendriver/cdp/storage.py
clear_trust_tokens(issuer_origin)
Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
issuer_origin
|
str
|
|
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, bool]
|
True if any tokens were deleted, false otherwise. |
Source code in zendriver/cdp/storage.py
delete_shared_storage_entry(owner_origin, key)
Deletes entry for key (if it exists) for a given origin's shared storage.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner_origin
|
str
|
|
required |
key
|
str
|
|
required |
Source code in zendriver/cdp/storage.py
delete_storage_bucket(bucket)
Deletes the Storage Bucket with the given storage key and bucket name.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bucket
|
StorageBucket
|
|
required |
Source code in zendriver/cdp/storage.py
get_cookies(browser_context_id=None)
Returns all browser cookies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
browser_context_id
|
Optional[BrowserContextID]
|
(Optional) Browser context to use when called on the browser endpoint. |
None
|
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[Cookie]]
|
Array of cookie objects. |
Source code in zendriver/cdp/storage.py
get_interest_group_details(owner_origin, name)
Gets details for a named interest group.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner_origin
|
str
|
|
required |
name
|
str
|
|
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, dict]
|
This largely corresponds to: https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup but has absolute expirationTime instead of relative lifetimeMs and also adds joiningOrigin. |
Source code in zendriver/cdp/storage.py
get_related_website_sets()
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.
EXPERIMENTAL
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[RelatedWebsiteSet]]
|
|
Source code in zendriver/cdp/storage.py
get_shared_storage_entries(owner_origin)
Gets the entries in an given origin's shared storage.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner_origin
|
str
|
|
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[SharedStorageEntry]]
|
|
Source code in zendriver/cdp/storage.py
get_shared_storage_metadata(owner_origin)
Gets metadata for an origin's shared storage.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner_origin
|
str
|
|
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, SharedStorageMetadata]
|
|
Source code in zendriver/cdp/storage.py
get_storage_key(frame_id=None)
Returns storage key for the given frame. If no frame ID is provided, the storage key of the target executing this command is returned.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frame_id
|
Optional[FrameId]
|
(Optional) |
None
|
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, SerializedStorageKey]
|
|
Source code in zendriver/cdp/storage.py
get_storage_key_for_frame(frame_id)
Returns a storage key given a frame id. Deprecated. Please use Storage.getStorageKey instead.
.. deprecated:: 1.3
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frame_id
|
FrameId
|
|
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, SerializedStorageKey]
|
|
Source code in zendriver/cdp/storage.py
get_trust_tokens()
Returns the number of stored Trust Tokens per issuer for the current browsing context.
EXPERIMENTAL
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[TrustTokens]]
|
|
Source code in zendriver/cdp/storage.py
get_usage_and_quota(origin)
Returns usage and quota in bytes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
str
|
Security origin. |
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, Tuple[float, float, bool, List[UsageForType]]]
|
A tuple with the following items: 0. usage - Storage usage (bytes). 1. quota - Storage quota (bytes). 2. overrideActive - Whether or not the origin has an active storage quota override 3. usageBreakdown - Storage usage per type (bytes). |
Source code in zendriver/cdp/storage.py
override_quota_for_origin(origin, quota_size=None)
Override quota for the specified origin
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
str
|
Security origin. |
required |
quota_size
|
Optional[float]
|
(Optional) 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). |
None
|
Source code in zendriver/cdp/storage.py
reset_shared_storage_budget(owner_origin)
Resets the budget for ownerOrigin by clearing all budget withdrawals.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner_origin
|
str
|
|
required |
Source code in zendriver/cdp/storage.py
run_bounce_tracking_mitigations()
Deletes state for sites identified as potential bounce trackers, immediately.
EXPERIMENTAL
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[str]]
|
|
Source code in zendriver/cdp/storage.py
set_cookies(cookies, browser_context_id=None)
Sets given cookies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cookies
|
List[CookieParam]
|
Cookies to be set. |
required |
browser_context_id
|
Optional[BrowserContextID]
|
(Optional) Browser context to use when called on the browser endpoint. |
None
|
Source code in zendriver/cdp/storage.py
set_interest_group_auction_tracking(enable)
Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable
|
bool
|
|
required |
Source code in zendriver/cdp/storage.py
set_interest_group_tracking(enable)
Enables/Disables issuing of interestGroupAccessed events.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable
|
bool
|
|
required |
Source code in zendriver/cdp/storage.py
set_protected_audience_k_anonymity(owner, name, hashes)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
|
required |
name
|
str
|
|
required |
hashes
|
List[str]
|
|
required |
Source code in zendriver/cdp/storage.py
set_shared_storage_entry(owner_origin, key, value, ignore_if_present=None)
Sets entry with key and value for a given origin's shared storage.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner_origin
|
str
|
|
required |
key
|
str
|
|
required |
value
|
str
|
|
required |
ignore_if_present
|
Optional[bool]
|
(Optional) If |
None
|
Source code in zendriver/cdp/storage.py
set_shared_storage_tracking(enable)
Enables/disables issuing of sharedStorageAccessed events.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable
|
bool
|
|
required |
Source code in zendriver/cdp/storage.py
set_storage_bucket_tracking(storage_key, enable)
Set tracking for a storage key's buckets.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
storage_key
|
str
|
|
required |
enable
|
bool
|
|
required |
Source code in zendriver/cdp/storage.py
track_cache_storage_for_origin(origin)
Registers origin to be notified when an update occurs to its cache storage list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
str
|
Security origin. |
required |
Source code in zendriver/cdp/storage.py
track_cache_storage_for_storage_key(storage_key)
Registers storage key to be notified when an update occurs to its cache storage list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
storage_key
|
str
|
Storage key. |
required |
Source code in zendriver/cdp/storage.py
track_indexed_db_for_origin(origin)
Registers origin to be notified when an update occurs to its IndexedDB.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
str
|
Security origin. |
required |
Source code in zendriver/cdp/storage.py
track_indexed_db_for_storage_key(storage_key)
Registers storage key to be notified when an update occurs to its IndexedDB.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
storage_key
|
str
|
Storage key. |
required |
Source code in zendriver/cdp/storage.py
untrack_cache_storage_for_origin(origin)
Unregisters origin from receiving notifications for cache storage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
str
|
Security origin. |
required |
Source code in zendriver/cdp/storage.py
untrack_cache_storage_for_storage_key(storage_key)
Unregisters storage key from receiving notifications for cache storage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
storage_key
|
str
|
Storage key. |
required |
Source code in zendriver/cdp/storage.py
untrack_indexed_db_for_origin(origin)
Unregisters origin from receiving notifications for IndexedDB.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
str
|
Security origin. |
required |
Source code in zendriver/cdp/storage.py
untrack_indexed_db_for_storage_key(storage_key)
Unregisters storage key from receiving notifications for IndexedDB.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
storage_key
|
str
|
Storage key. |
required |