Update puppeteer and @puppeteer/replay

- puppeteer replaced with puppeteer-core (20.7.3). DevTools does not actually need puppeteer as it downloads the browsers on its own. PUPPETEER_SKIP_CHROMIUM_DOWNLOAD is not needed too.
- @puppeteer/replay upgraded to 2.11.2

DISABLE_THIRD_PARTY_CHECK=requires code updates for puppeteer-core
Bug: none
Change-Id: I173c228d766681a1a8a9ada3fcf17525cd191726
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4640022
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Randolf Jung <jrandolf@chromium.org>
This commit is contained in:
Randolf Jung
2023-06-26 18:05:57 +00:00
committed by Devtools-frontend LUCI CQ
parent f74ead4522
commit bcb3bc8d41
1955 changed files with 118471 additions and 31207 deletions
+252 -5
View File
@@ -1454,7 +1454,6 @@
"InvalidHeader",
"InvalidRegisterTriggerHeader",
"InvalidEligibleHeader",
"TooManyConcurrentRequests",
"SourceAndTriggerHeaders",
"SourceIgnored",
"TriggerIgnored",
@@ -1462,7 +1461,8 @@
"OsTriggerIgnored",
"InvalidRegisterOsSourceHeader",
"InvalidRegisterOsTriggerHeader",
"WebAndOsHeaders"
"WebAndOsHeaders",
"NoWebOrOsSupport"
]
},
{
@@ -1570,6 +1570,11 @@
"name": "violatingNodeId",
"optional": true,
"$ref": "DOM.BackendNodeId"
},
{
"name": "violatingNodeAttribute",
"optional": true,
"type": "string"
}
]
},
@@ -1594,6 +1599,20 @@
}
]
},
{
"id": "BounceTrackingIssueDetails",
"description": "This issue warns about sites in the redirect chain of a finished navigation\nthat may be flagged as trackers and have their state cleared if they don't\nreceive a user interaction. Note that in this context 'site' means eTLD+1.\nFor example, if the URL `https://example.test:80/bounce` was in the\nredirect chain, the site reported would be `example.test`.",
"type": "object",
"properties": [
{
"name": "trackingSites",
"type": "array",
"items": {
"type": "string"
}
}
]
},
{
"id": "ClientHintIssueReason",
"type": "string",
@@ -1623,14 +1642,17 @@
"WellKnownNoResponse",
"WellKnownInvalidResponse",
"WellKnownListEmpty",
"WellKnownInvalidContentType",
"ConfigNotInWellKnown",
"WellKnownTooBig",
"ConfigHttpNotFound",
"ConfigNoResponse",
"ConfigInvalidResponse",
"ConfigInvalidContentType",
"ClientMetadataHttpNotFound",
"ClientMetadataNoResponse",
"ClientMetadataInvalidResponse",
"ClientMetadataInvalidContentType",
"DisabledInSettings",
"ErrorFetchingSignin",
"InvalidSigninResponse",
@@ -1638,10 +1660,12 @@
"AccountsNoResponse",
"AccountsInvalidResponse",
"AccountsListEmpty",
"AccountsInvalidContentType",
"IdTokenHttpNotFound",
"IdTokenNoResponse",
"IdTokenInvalidResponse",
"IdTokenInvalidRequest",
"IdTokenInvalidContentType",
"ErrorIdToken",
"Canceled",
"RpPageNotVisible"
@@ -1682,7 +1706,8 @@
"GenericIssue",
"DeprecationIssue",
"ClientHintIssue",
"FederatedAuthRequestIssue"
"FederatedAuthRequestIssue",
"BounceTrackingIssue"
]
},
{
@@ -1769,6 +1794,11 @@
"name": "federatedAuthRequestIssueDetails",
"optional": true,
"$ref": "FederatedAuthRequestIssueDetails"
},
{
"name": "bounceTrackingIssueDetails",
"optional": true,
"$ref": "BounceTrackingIssueDetails"
}
]
},
@@ -2876,6 +2906,13 @@
"name": "endColumn",
"description": "Column offset of the end of the stylesheet within the resource (zero based).",
"type": "number"
},
{
"name": "loadingFailed",
"description": "If the style sheet was loaded from a network resource, this indicates when the resource failed to load",
"experimental": true,
"optional": true,
"type": "boolean"
}
]
},
@@ -3531,6 +3568,48 @@
}
]
},
{
"id": "CSSTryRule",
"description": "CSS try rule representation.",
"type": "object",
"properties": [
{
"name": "styleSheetId",
"description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
"optional": true,
"$ref": "StyleSheetId"
},
{
"name": "origin",
"description": "Parent stylesheet's origin.",
"$ref": "StyleSheetOrigin"
},
{
"name": "style",
"description": "Associated style declaration.",
"$ref": "CSSStyle"
}
]
},
{
"id": "CSSPositionFallbackRule",
"description": "CSS position-fallback rule representation.",
"type": "object",
"properties": [
{
"name": "name",
"$ref": "Value"
},
{
"name": "tryRules",
"description": "List of keyframes.",
"type": "array",
"items": {
"$ref": "CSSTryRule"
}
}
]
},
{
"id": "CSSKeyframesRule",
"description": "CSS keyframes rule representation.",
@@ -3840,6 +3919,15 @@
"$ref": "CSSKeyframesRule"
}
},
{
"name": "cssPositionFallbackRules",
"description": "A list of CSS position fallbacks matching this node.",
"optional": true,
"type": "array",
"items": {
"$ref": "CSSPositionFallbackRule"
}
},
{
"name": "parentLayoutNodeId",
"description": "Id of the first parent element that does not have display: contents.",
@@ -15355,6 +15443,7 @@
"payment",
"picture-in-picture",
"private-aggregation",
"private-state-token-redemption",
"publickey-credentials-get",
"run-ad-auction",
"screen-wake-lock",
@@ -15365,7 +15454,6 @@
"smart-card",
"storage-access",
"sync-xhr",
"trust-token-redemption",
"unload",
"usb",
"vertical-scroll",
@@ -19084,6 +19172,7 @@
"cache_storage",
"interest_groups",
"shared_storage",
"storage_buckets",
"all",
"other"
]
@@ -19362,6 +19451,53 @@
"type": "boolean"
}
]
},
{
"id": "StorageBucketsDurability",
"type": "string",
"enum": [
"relaxed",
"strict"
]
},
{
"id": "StorageBucketInfo",
"type": "object",
"properties": [
{
"name": "storageKey",
"$ref": "SerializedStorageKey"
},
{
"name": "id",
"type": "string"
},
{
"name": "name",
"type": "string"
},
{
"name": "isDefault",
"type": "boolean"
},
{
"name": "expiration",
"$ref": "Network.TimeSinceEpoch"
},
{
"name": "quota",
"description": "Storage quota (bytes).",
"type": "number"
},
{
"name": "persistent",
"type": "boolean"
},
{
"name": "durability",
"$ref": "StorageBucketsDurability"
}
]
}
],
"commands": [
@@ -19782,6 +19918,36 @@
"type": "boolean"
}
]
},
{
"name": "setStorageBucketTracking",
"description": "Set tracking for a storage key's buckets.",
"experimental": true,
"parameters": [
{
"name": "storageKey",
"type": "string"
},
{
"name": "enable",
"type": "boolean"
}
]
},
{
"name": "deleteStorageBucket",
"description": "Deletes the Storage Bucket with the given storage key and bucket name.",
"experimental": true,
"parameters": [
{
"name": "storageKey",
"type": "string"
},
{
"name": "bucketName",
"type": "string"
}
]
}
],
"events": [
@@ -19916,6 +20082,24 @@
"$ref": "SharedStorageAccessParams"
}
]
},
{
"name": "storageBucketCreatedOrUpdated",
"parameters": [
{
"name": "bucket",
"$ref": "StorageBucketInfo"
}
]
},
{
"name": "storageBucketDeleted",
"parameters": [
{
"name": "bucketId",
"type": "string"
}
]
}
]
},
@@ -22802,9 +22986,30 @@
"name": "sourceText",
"description": "Source text of JSON representing the rule set. If it comes from\n<script> tag, it is the textContent of the node. Note that it is\na JSON for valid case.\n\nSee also:\n- https://wicg.github.io/nav-speculation/speculation-rules.html\n- https://github.com/WICG/nav-speculation/blob/main/triggers.md",
"type": "string"
},
{
"name": "errorType",
"description": "Error information\n`errorMessage` is null iff `errorType` is null.",
"optional": true,
"$ref": "RuleSetErrorType"
},
{
"name": "errorMessage",
"description": "TODO(https://crbug.com/1425354): Replace this property with structured error.",
"deprecated": true,
"optional": true,
"type": "string"
}
]
},
{
"id": "RuleSetErrorType",
"type": "string",
"enum": [
"SourceIsNotJsonObject",
"InvalidRulesSkipped"
]
},
{
"id": "SpeculationAction",
"description": "The type of preloading attempted. It corresponds to\nmojom::SpeculationAction (although PrefetchWithSubresources is omitted as it\nisn't being used by clients).",
@@ -22934,7 +23139,20 @@
"CrossSiteRedirectInMainFrameNavigation",
"CrossSiteNavigationInMainFrameNavigation",
"SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation",
"SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation"
"SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation",
"MemoryPressureOnTrigger",
"MemoryPressureAfterTriggered"
]
},
{
"id": "PreloadEnabledState",
"type": "string",
"enum": [
"Enabled",
"DisabledByDataSaver",
"DisabledByBatterySaver",
"DisabledByPreference",
"NotSupported"
]
},
{
@@ -23008,6 +23226,16 @@
}
]
},
{
"name": "preloadEnabledStateUpdated",
"description": "Fired when a preload enabled state is updated.",
"parameters": [
{
"name": "state",
"$ref": "PreloadEnabledState"
}
]
},
{
"name": "prefetchStatusUpdated",
"description": "Fired when a prefetch attempt is updated.",
@@ -23152,6 +23380,16 @@
"items": {
"$ref": "Account"
}
},
{
"name": "title",
"description": "These exist primarily so that the caller can verify the\nRP context was used appropriately.",
"type": "string"
},
{
"name": "subtitle",
"optional": true,
"type": "string"
}
]
}
@@ -23190,8 +23428,17 @@
{
"name": "dialogId",
"type": "string"
},
{
"name": "triggerCooldown",
"optional": true,
"type": "boolean"
}
]
},
{
"name": "resetCooldown",
"description": "Resets the cooldown time, if any, to allow the next FedCM call to show\na dialog even if one was recently dismissed by the user."
}
]
}
+5 -4
View File
@@ -1202,7 +1202,8 @@
"OOM",
"other",
"promiseRejection",
"XHR"
"XHR",
"step"
]
},
{
@@ -1293,7 +1294,7 @@
},
{
"name": "executionContextAuxData",
"description": "Embedder-specific auxiliary data.",
"description": "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}",
"optional": true,
"type": "object"
},
@@ -1397,7 +1398,7 @@
},
{
"name": "executionContextAuxData",
"description": "Embedder-specific auxiliary data.",
"description": "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}",
"optional": true,
"type": "object"
},
@@ -2667,7 +2668,7 @@
},
{
"name": "auxData",
"description": "Embedder-specific auxiliary data.",
"description": "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}",
"optional": true,
"type": "object"
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "devtools-protocol",
"version": "0.0.1120988",
"version": "0.0.1135028",
"description": "The Chrome DevTools Protocol JSON",
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
"author": "The Chromium Authors",
+115 -2
View File
@@ -708,7 +708,6 @@ experimental domain Audits
InvalidHeader
InvalidRegisterTriggerHeader
InvalidEligibleHeader
TooManyConcurrentRequests
SourceAndTriggerHeaders
SourceIgnored
TriggerIgnored
@@ -717,6 +716,7 @@ experimental domain Audits
InvalidRegisterOsSourceHeader
InvalidRegisterOsTriggerHeader
WebAndOsHeaders
NoWebOrOsSupport
# Details for issues around "Attribution Reporting API" usage.
# Explainer: https://github.com/WICG/attribution-reporting-api
@@ -765,6 +765,7 @@ experimental domain Audits
GenericIssueErrorType errorType
optional Page.FrameId frameId
optional DOM.BackendNodeId violatingNodeId
optional string violatingNodeAttribute
# This issue tracks information needed to print a deprecation message.
# https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md
@@ -775,6 +776,15 @@ experimental domain Audits
# One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5
string type
# This issue warns about sites in the redirect chain of a finished navigation
# that may be flagged as trackers and have their state cleared if they don't
# receive a user interaction. Note that in this context 'site' means eTLD+1.
# For example, if the URL `https://example.test:80/bounce` was in the
# redirect chain, the site reported would be `example.test`.
type BounceTrackingIssueDetails extends object
properties
array of string trackingSites
type ClientHintIssueReason extends string
enum
# Items in the accept-ch meta tag allow list must be valid origins.
@@ -800,14 +810,17 @@ experimental domain Audits
WellKnownNoResponse
WellKnownInvalidResponse
WellKnownListEmpty
WellKnownInvalidContentType
ConfigNotInWellKnown
WellKnownTooBig
ConfigHttpNotFound
ConfigNoResponse
ConfigInvalidResponse
ConfigInvalidContentType
ClientMetadataHttpNotFound
ClientMetadataNoResponse
ClientMetadataInvalidResponse
ClientMetadataInvalidContentType
DisabledInSettings
ErrorFetchingSignin
InvalidSigninResponse
@@ -815,10 +828,12 @@ experimental domain Audits
AccountsNoResponse
AccountsInvalidResponse
AccountsListEmpty
AccountsInvalidContentType
IdTokenHttpNotFound
IdTokenNoResponse
IdTokenInvalidResponse
IdTokenInvalidRequest
IdTokenInvalidContentType
ErrorIdToken
Canceled
RpPageNotVisible
@@ -851,6 +866,7 @@ experimental domain Audits
DeprecationIssue
ClientHintIssue
FederatedAuthRequestIssue
BounceTrackingIssue
# This struct holds a list of optional fields with additional information
# specific to the kind of issue. When adding a new issue code, please also
@@ -873,6 +889,7 @@ experimental domain Audits
optional DeprecationIssueDetails deprecationIssueDetails
optional ClientHintIssueDetails clientHintIssueDetails
optional FederatedAuthRequestIssueDetails federatedAuthRequestIssueDetails
optional BounceTrackingIssueDetails bounceTrackingIssueDetails
# A unique id for a DevTools inspector issue. Allows other entities (e.g.
# exceptions, CDP message, console messages, etc.) to reference an issue.
@@ -1401,6 +1418,8 @@ experimental domain CSS
number endLine
# Column offset of the end of the stylesheet within the resource (zero based).
number endColumn
# If the style sheet was loaded from a network resource, this indicates when the resource failed to load
experimental optional boolean loadingFailed
# CSS rule representation.
type CSSRule extends object
@@ -1669,6 +1688,24 @@ experimental domain CSS
# Available variation settings (a.k.a. "axes").
optional array of FontVariationAxis fontVariationAxes
# CSS try rule representation.
type CSSTryRule extends object
properties
# The css style sheet identifier (absent for user agent stylesheet and user-specified
# stylesheet rules) this rule came from.
optional StyleSheetId styleSheetId
# Parent stylesheet's origin.
StyleSheetOrigin origin
# Associated style declaration.
CSSStyle style
# CSS position-fallback rule representation.
type CSSPositionFallbackRule extends object
properties
Value name
# List of keyframes.
array of CSSTryRule tryRules
# CSS keyframes rule representation.
type CSSKeyframesRule extends object
properties
@@ -1802,6 +1839,8 @@ experimental domain CSS
optional array of InheritedPseudoElementMatches inheritedPseudoElements
# A list of CSS keyframed animations matching this node.
optional array of CSSKeyframesRule cssKeyframesRules
# A list of CSS position fallbacks matching this node.
optional array of CSSPositionFallbackRule cssPositionFallbackRules
# Id of the first parent element that does not have display: contents.
experimental optional DOM.NodeId parentLayoutNodeId
@@ -7189,6 +7228,7 @@ domain Page
payment
picture-in-picture
private-aggregation
private-state-token-redemption
publickey-credentials-get
run-ad-auction
screen-wake-lock
@@ -7199,7 +7239,6 @@ domain Page
smart-card
storage-access
sync-xhr
trust-token-redemption
unload
usb
vertical-scroll
@@ -8984,6 +9023,7 @@ experimental domain Storage
cache_storage
interest_groups
shared_storage
storage_buckets
all
other
@@ -9119,6 +9159,23 @@ experimental domain Storage
# SharedStorageAccessType.workletSet.
optional boolean ignoreIfPresent
type StorageBucketsDurability extends string
enum
relaxed
strict
type StorageBucketInfo extends object
properties
SerializedStorageKey storageKey
string id
string name
boolean isDefault
Network.TimeSinceEpoch expiration
# Storage quota (bytes).
number quota
boolean persistent
StorageBucketsDurability durability
# Returns a storage key given a frame id.
command getStorageKeyForFrame
parameters
@@ -9315,6 +9372,18 @@ experimental domain Storage
parameters
boolean enable
# Set tracking for a storage key's buckets.
experimental command setStorageBucketTracking
parameters
string storageKey
boolean enable
# Deletes the Storage Bucket with the given storage key and bucket name.
experimental command deleteStorageBucket
parameters
string storageKey
string bucketName
# A cache's contents have been modified.
event cacheStorageContentUpdated
parameters
@@ -9377,6 +9446,14 @@ experimental domain Storage
# presence/absence depends on `type`.
SharedStorageAccessParams params
event storageBucketCreatedOrUpdated
parameters
StorageBucketInfo bucket
event storageBucketDeleted
parameters
string bucketId
# The SystemInfo domain defines methods and events for querying low-level system information.
experimental domain SystemInfo
@@ -10748,6 +10825,16 @@ experimental domain Preload
# - https://wicg.github.io/nav-speculation/speculation-rules.html
# - https://github.com/WICG/nav-speculation/blob/main/triggers.md
string sourceText
# Error information
# `errorMessage` is null iff `errorType` is null.
optional RuleSetErrorType errorType
# TODO(https://crbug.com/1425354): Replace this property with structured error.
deprecated optional string errorMessage
type RuleSetErrorType extends string
enum
SourceIsNotJsonObject
InvalidRulesSkipped
# The type of preloading attempted. It corresponds to
# mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
@@ -10864,6 +10951,8 @@ experimental domain Preload
CrossSiteNavigationInMainFrameNavigation
SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation
SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation
MemoryPressureOnTrigger
MemoryPressureAfterTriggered
# Fired when a prerender attempt is completed.
event prerenderAttemptCompleted
@@ -10877,6 +10966,20 @@ experimental domain Preload
# that is incompatible with prerender and has caused the cancellation of the attempt
optional string disallowedApiMethod
type PreloadEnabledState extends string
enum
Enabled
DisabledByDataSaver
DisabledByBatterySaver
DisabledByPreference
# Service not available.
NotSupported
# Fired when a preload enabled state is updated.
event preloadEnabledStateUpdated
parameters
PreloadEnabledState state
# Preloading status values, see also PreloadingTriggeringOutcome. This
# status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
type PreloadingStatus extends string
@@ -10941,6 +11044,10 @@ experimental domain FedCm
parameters
string dialogId
array of Account accounts
# These exist primarily so that the caller can verify the
# RP context was used appropriately.
string title
optional string subtitle
command enable
parameters
@@ -10959,3 +11066,9 @@ experimental domain FedCm
command dismissDialog
parameters
string dialogId
optional boolean triggerCooldown
# Resets the cooldown time, if any, to allow the next FedCM call to show
# a dialog even if one was recently dismissed by the user.
command resetCooldown
+4 -3
View File
@@ -580,6 +580,7 @@ domain Debugger
other
promiseRejection
XHR
step
# Object containing break-specific auxiliary properties.
optional object data
# Hit breakpoints IDs
@@ -631,7 +632,7 @@ domain Debugger
Runtime.ExecutionContextId executionContextId
# Content hash of the script, SHA-256.
string hash
# Embedder-specific auxiliary data.
# Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
optional object executionContextAuxData
# URL of source map associated with script (if any).
optional string sourceMapURL
@@ -670,7 +671,7 @@ domain Debugger
Runtime.ExecutionContextId executionContextId
# Content hash of the script, SHA-256.
string hash
# Embedder-specific auxiliary data.
# Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
optional object executionContextAuxData
# True, if this script is generated as a result of the live edit operation.
experimental optional boolean isLiveEdit
@@ -1283,7 +1284,7 @@ domain Runtime
# multiple processes, so can be reliably used to identify specific context while backend
# performs a cross-process navigation.
experimental string uniqueId
# Embedder-specific auxiliary data.
# Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
optional object auxData
# Detailed information about exception (or error) that was thrown during script compilation or
+28
View File
@@ -556,6 +556,8 @@ export namespace ProtocolMapping {
* The following parameters are included in all events.
*/
'Storage.sharedStorageAccessed': [Protocol.Storage.SharedStorageAccessedEvent];
'Storage.storageBucketCreatedOrUpdated': [Protocol.Storage.StorageBucketCreatedOrUpdatedEvent];
'Storage.storageBucketDeleted': [Protocol.Storage.StorageBucketDeletedEvent];
/**
* Issued when attached to target because of auto-attach or `attachToTarget` command.
*/
@@ -714,6 +716,10 @@ export namespace ProtocolMapping {
* Fired when a prerender attempt is completed.
*/
'Preload.prerenderAttemptCompleted': [Protocol.Preload.PrerenderAttemptCompletedEvent];
/**
* Fired when a preload enabled state is updated.
*/
'Preload.preloadEnabledStateUpdated': [Protocol.Preload.PreloadEnabledStateUpdatedEvent];
/**
* Fired when a prefetch attempt is updated.
*/
@@ -4201,6 +4207,20 @@ export namespace ProtocolMapping {
paramsType: [Protocol.Storage.SetSharedStorageTrackingRequest];
returnType: void;
};
/**
* Set tracking for a storage key's buckets.
*/
'Storage.setStorageBucketTracking': {
paramsType: [Protocol.Storage.SetStorageBucketTrackingRequest];
returnType: void;
};
/**
* Deletes the Storage Bucket with the given storage key and bucket name.
*/
'Storage.deleteStorageBucket': {
paramsType: [Protocol.Storage.DeleteStorageBucketRequest];
returnType: void;
};
/**
* Returns information about the system.
*/
@@ -4666,6 +4686,14 @@ export namespace ProtocolMapping {
paramsType: [Protocol.FedCm.DismissDialogRequest];
returnType: void;
};
/**
* Resets the cooldown time, if any, to allow the next FedCM call to show
* a dialog even if one was recently dismissed by the user.
*/
'FedCm.resetCooldown': {
paramsType: [];
returnType: void;
};
}
}
+25
View File
@@ -3365,6 +3365,16 @@ export namespace ProtocolProxyApi {
*/
setSharedStorageTracking(params: Protocol.Storage.SetSharedStorageTrackingRequest): Promise<void>;
/**
* Set tracking for a storage key's buckets.
*/
setStorageBucketTracking(params: Protocol.Storage.SetStorageBucketTrackingRequest): Promise<void>;
/**
* Deletes the Storage Bucket with the given storage key and bucket name.
*/
deleteStorageBucket(params: Protocol.Storage.DeleteStorageBucketRequest): Promise<void>;
/**
* A cache's contents have been modified.
*/
@@ -3396,6 +3406,10 @@ export namespace ProtocolProxyApi {
*/
on(event: 'sharedStorageAccessed', listener: (params: Protocol.Storage.SharedStorageAccessedEvent) => void): void;
on(event: 'storageBucketCreatedOrUpdated', listener: (params: Protocol.Storage.StorageBucketCreatedOrUpdatedEvent) => void): void;
on(event: 'storageBucketDeleted', listener: (params: Protocol.Storage.StorageBucketDeletedEvent) => void): void;
}
export interface SystemInfoApi {
@@ -3952,6 +3966,11 @@ export namespace ProtocolProxyApi {
*/
on(event: 'prerenderAttemptCompleted', listener: (params: Protocol.Preload.PrerenderAttemptCompletedEvent) => void): void;
/**
* Fired when a preload enabled state is updated.
*/
on(event: 'preloadEnabledStateUpdated', listener: (params: Protocol.Preload.PreloadEnabledStateUpdatedEvent) => void): void;
/**
* Fired when a prefetch attempt is updated.
*/
@@ -3978,6 +3997,12 @@ export namespace ProtocolProxyApi {
dismissDialog(params: Protocol.FedCm.DismissDialogRequest): Promise<void>;
/**
* Resets the cooldown time, if any, to allow the next FedCM call to show
* a dialog even if one was recently dismissed by the user.
*/
resetCooldown(): Promise<void>;
on(event: 'dialogShown', listener: (params: Protocol.FedCm.DialogShownEvent) => void): void;
}
+123 -10
View File
@@ -838,6 +838,7 @@ export namespace Protocol {
Other = 'other',
PromiseRejection = 'promiseRejection',
XHR = 'XHR',
Step = 'step',
}
/**
@@ -851,7 +852,7 @@ export namespace Protocol {
/**
* Pause reason. (PausedEventReason enum)
*/
reason: ('ambiguous' | 'assert' | 'CSPViolation' | 'debugCommand' | 'DOM' | 'EventListener' | 'exception' | 'instrumentation' | 'OOM' | 'other' | 'promiseRejection' | 'XHR');
reason: ('ambiguous' | 'assert' | 'CSPViolation' | 'debugCommand' | 'DOM' | 'EventListener' | 'exception' | 'instrumentation' | 'OOM' | 'other' | 'promiseRejection' | 'XHR' | 'step');
/**
* Object containing break-specific auxiliary properties.
*/
@@ -911,7 +912,7 @@ export namespace Protocol {
*/
hash: string;
/**
* Embedder-specific auxiliary data.
* Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
*/
executionContextAuxData?: any;
/**
@@ -986,7 +987,7 @@ export namespace Protocol {
*/
hash: string;
/**
* Embedder-specific auxiliary data.
* Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
*/
executionContextAuxData?: any;
/**
@@ -1899,7 +1900,7 @@ export namespace Protocol {
*/
uniqueId: string;
/**
* Embedder-specific auxiliary data.
* Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
*/
auxData?: any;
}
@@ -3409,7 +3410,7 @@ export namespace Protocol {
clientSecurityState?: Network.ClientSecurityState;
}
export type AttributionReportingIssueType = ('PermissionPolicyDisabled' | 'UntrustworthyReportingOrigin' | 'InsecureContext' | 'InvalidHeader' | 'InvalidRegisterTriggerHeader' | 'InvalidEligibleHeader' | 'TooManyConcurrentRequests' | 'SourceAndTriggerHeaders' | 'SourceIgnored' | 'TriggerIgnored' | 'OsSourceIgnored' | 'OsTriggerIgnored' | 'InvalidRegisterOsSourceHeader' | 'InvalidRegisterOsTriggerHeader' | 'WebAndOsHeaders');
export type AttributionReportingIssueType = ('PermissionPolicyDisabled' | 'UntrustworthyReportingOrigin' | 'InsecureContext' | 'InvalidHeader' | 'InvalidRegisterTriggerHeader' | 'InvalidEligibleHeader' | 'SourceAndTriggerHeaders' | 'SourceIgnored' | 'TriggerIgnored' | 'OsSourceIgnored' | 'OsTriggerIgnored' | 'InvalidRegisterOsSourceHeader' | 'InvalidRegisterOsTriggerHeader' | 'WebAndOsHeaders' | 'NoWebOrOsSupport');
/**
* Details for issues around "Attribution Reporting API" usage.
@@ -3455,6 +3456,7 @@ export namespace Protocol {
errorType: GenericIssueErrorType;
frameId?: Page.FrameId;
violatingNodeId?: DOM.BackendNodeId;
violatingNodeAttribute?: string;
}
/**
@@ -3470,6 +3472,17 @@ export namespace Protocol {
type: string;
}
/**
* This issue warns about sites in the redirect chain of a finished navigation
* that may be flagged as trackers and have their state cleared if they don't
* receive a user interaction. Note that in this context 'site' means eTLD+1.
* For example, if the URL `https://example.test:80/bounce` was in the
* redirect chain, the site reported would be `example.test`.
*/
export interface BounceTrackingIssueDetails {
trackingSites: string[];
}
export type ClientHintIssueReason = ('MetaTagAllowListInvalidOrigin' | 'MetaTagModifiedHTML');
export interface FederatedAuthRequestIssueDetails {
@@ -3482,7 +3495,7 @@ export namespace Protocol {
* third_party/blink/public/mojom/devtools/inspector_issue.mojom to include
* all cases except for success.
*/
export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ClientMetadataHttpNotFound' | 'ClientMetadataNoResponse' | 'ClientMetadataInvalidResponse' | 'DisabledInSettings' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenInvalidRequest' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible');
export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'ClientMetadataHttpNotFound' | 'ClientMetadataNoResponse' | 'ClientMetadataInvalidResponse' | 'ClientMetadataInvalidContentType' | 'DisabledInSettings' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible');
/**
* This issue tracks client hints related issues. It's used to deprecate old
@@ -3498,7 +3511,7 @@ export namespace Protocol {
* optional fields in InspectorIssueDetails to convey more specific
* information about the kind of issue.
*/
export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue');
export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue');
/**
* This struct holds a list of optional fields with additional information
@@ -3522,6 +3535,7 @@ export namespace Protocol {
deprecationIssueDetails?: DeprecationIssueDetails;
clientHintIssueDetails?: ClientHintIssueDetails;
federatedAuthRequestIssueDetails?: FederatedAuthRequestIssueDetails;
bounceTrackingIssueDetails?: BounceTrackingIssueDetails;
}
/**
@@ -4239,6 +4253,10 @@ export namespace Protocol {
* Column offset of the end of the stylesheet within the resource (zero based).
*/
endColumn: number;
/**
* If the style sheet was loaded from a network resource, this indicates when the resource failed to load
*/
loadingFailed?: boolean;
}
/**
@@ -4717,6 +4735,36 @@ export namespace Protocol {
fontVariationAxes?: FontVariationAxis[];
}
/**
* CSS try rule representation.
*/
export interface CSSTryRule {
/**
* The css style sheet identifier (absent for user agent stylesheet and user-specified
* stylesheet rules) this rule came from.
*/
styleSheetId?: StyleSheetId;
/**
* Parent stylesheet's origin.
*/
origin: StyleSheetOrigin;
/**
* Associated style declaration.
*/
style: CSSStyle;
}
/**
* CSS position-fallback rule representation.
*/
export interface CSSPositionFallbackRule {
name: Value;
/**
* List of keyframes.
*/
tryRules: CSSTryRule[];
}
/**
* CSS keyframes rule representation.
*/
@@ -4916,6 +4964,10 @@ export namespace Protocol {
* A list of CSS keyframed animations matching this node.
*/
cssKeyframesRules?: CSSKeyframesRule[];
/**
* A list of CSS position fallbacks matching this node.
*/
cssPositionFallbackRules?: CSSPositionFallbackRule[];
/**
* Id of the first parent element that does not have display: contents.
*/
@@ -12362,7 +12414,7 @@ export namespace Protocol {
* All Permissions Policy features. This enum should match the one defined
* in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
*/
export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-full' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-reduced' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'cross-origin-isolated' | 'direct-sockets' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'storage-access' | 'sync-xhr' | 'trust-token-redemption' | 'unload' | 'usb' | 'vertical-scroll' | 'web-share' | 'window-management' | 'window-placement' | 'xr-spatial-tracking');
export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-full' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-reduced' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'cross-origin-isolated' | 'direct-sockets' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-redemption' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'storage-access' | 'sync-xhr' | 'unload' | 'usb' | 'vertical-scroll' | 'web-share' | 'window-management' | 'window-placement' | 'xr-spatial-tracking');
/**
* Reason for a permissions policy feature to be disabled.
@@ -14568,7 +14620,7 @@ export namespace Protocol {
/**
* Enum of possible storage types.
*/
export type StorageType = ('appcache' | 'cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'interest_groups' | 'shared_storage' | 'all' | 'other');
export type StorageType = ('appcache' | 'cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'interest_groups' | 'shared_storage' | 'storage_buckets' | 'all' | 'other');
/**
* Usage for a storage type.
@@ -14722,6 +14774,22 @@ export namespace Protocol {
ignoreIfPresent?: boolean;
}
export type StorageBucketsDurability = ('relaxed' | 'strict');
export interface StorageBucketInfo {
storageKey: SerializedStorageKey;
id: string;
name: string;
isDefault: boolean;
expiration: Network.TimeSinceEpoch;
/**
* Storage quota (bytes).
*/
quota: number;
persistent: boolean;
durability: StorageBucketsDurability;
}
export interface GetStorageKeyForFrameRequest {
frameId: Page.FrameId;
}
@@ -14955,6 +15023,16 @@ export namespace Protocol {
enable: boolean;
}
export interface SetStorageBucketTrackingRequest {
storageKey: string;
enable: boolean;
}
export interface DeleteStorageBucketRequest {
storageKey: string;
bucketName: string;
}
/**
* A cache's contents have been modified.
*/
@@ -15060,6 +15138,14 @@ export namespace Protocol {
*/
params: SharedStorageAccessParams;
}
export interface StorageBucketCreatedOrUpdatedEvent {
bucket: StorageBucketInfo;
}
export interface StorageBucketDeletedEvent {
bucketId: string;
}
}
/**
@@ -16886,8 +16972,19 @@ export namespace Protocol {
* - https://github.com/WICG/nav-speculation/blob/main/triggers.md
*/
sourceText: string;
/**
* Error information
* `errorMessage` is null iff `errorType` is null.
*/
errorType?: RuleSetErrorType;
/**
* TODO(https://crbug.com/1425354): Replace this property with structured error.
*/
errorMessage?: string;
}
export type RuleSetErrorType = ('SourceIsNotJsonObject' | 'InvalidRulesSkipped');
/**
* The type of preloading attempted. It corresponds to
* mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
@@ -16932,7 +17029,9 @@ export namespace Protocol {
/**
* List of FinalStatus reasons for Prerender2.
*/
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation');
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered');
export type PreloadEnabledState = ('Enabled' | 'DisabledByDataSaver' | 'DisabledByBatterySaver' | 'DisabledByPreference' | 'NotSupported');
/**
* Preloading status values, see also PreloadingTriggeringOutcome. This
@@ -16969,6 +17068,13 @@ export namespace Protocol {
disallowedApiMethod?: string;
}
/**
* Fired when a preload enabled state is updated.
*/
export interface PreloadEnabledStateUpdatedEvent {
state: PreloadEnabledState;
}
/**
* Fired when a prefetch attempt is updated.
*/
@@ -17050,11 +17156,18 @@ export namespace Protocol {
export interface DismissDialogRequest {
dialogId: string;
triggerCooldown?: boolean;
}
export interface DialogShownEvent {
dialogId: string;
accounts: Account[];
/**
* These exist primarily so that the caller can verify the
* RP context was used appropriately.
*/
title: string;
subtitle?: string;
}
}
}