diff --git a/common/devtools/chromium/v105/BUILD.bazel b/common/devtools/chromium/v108/BUILD.bazel similarity index 100% rename from common/devtools/chromium/v105/BUILD.bazel rename to common/devtools/chromium/v108/BUILD.bazel diff --git a/common/devtools/chromium/v105/browser_protocol.pdl b/common/devtools/chromium/v108/browser_protocol.pdl similarity index 98% rename from common/devtools/chromium/v105/browser_protocol.pdl rename to common/devtools/chromium/v108/browser_protocol.pdl index 05276d8228cbd..43407720fdfb1 100644 --- a/common/devtools/chromium/v105/browser_protocol.pdl +++ b/common/devtools/chromium/v108/browser_protocol.pdl @@ -1,4 +1,4 @@ -# Copyright 2017 The Chromium Authors. All rights reserved. +# Copyright 2017 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # @@ -481,6 +481,7 @@ experimental domain Audits ExcludeSameSiteStrict ExcludeInvalidSameParty ExcludeSamePartyCrossPartyContext + ExcludeDomainNonASCII type CookieWarningReason extends string enum @@ -493,6 +494,7 @@ experimental domain Audits WarnSameSiteLaxCrossDowngradeStrict WarnSameSiteLaxCrossDowngradeLax WarnAttributeValueExceedsMaxSize + WarnDomainNonASCII type CookieOperation extends string enum @@ -699,16 +701,23 @@ experimental domain Audits type AttributionReportingIssueType extends string enum PermissionPolicyDisabled - AttributionSourceUntrustworthyOrigin - AttributionUntrustworthyOrigin + PermissionPolicyNotDelegated + UntrustworthyReportingOrigin + InsecureContext + # TODO(apaseltiner): Rename this to InvalidRegisterSourceHeader InvalidHeader + InvalidRegisterTriggerHeader + InvalidEligibleHeader + TooManyConcurrentRequests + SourceAndTriggerHeaders + SourceIgnored + TriggerIgnored # Details for issues around "Attribution Reporting API" usage. # Explainer: https://github.com/WICG/attribution-reporting-api type AttributionReportingIssueDetails extends object properties AttributionReportingIssueType violationType - optional AffectedFrame frame optional AffectedRequest request optional DOM.BackendNodeId violatingNodeId optional string invalidParameter @@ -763,25 +772,25 @@ experimental domain Audits HostCandidateAttributeGetter IdentityInCanMakePaymentEvent InsecurePrivateNetworkSubresourceRequest - LegacyConstraintGoogIPv6 LocalCSSFileExtensionRejected MediaSourceAbortRemove MediaSourceDurationTruncatingBuffered - NavigateEventRestoreScroll - NavigateEventTransitionWhile NoSysexWebMIDIWithoutPermission NotificationInsecureOrigin NotificationPermissionRequestedIframe ObsoleteWebRtcCipherSuite OpenWebDatabaseInsecureContext OverflowVisibleOnReplacedElement + PaymentInstruments + PaymentRequestCSPViolation + PersistentQuotaType PictureSourceSrc PrefixedCancelAnimationFrame PrefixedRequestAnimationFrame PrefixedStorageInfo PrefixedVideoDisplayingFullscreen PrefixedVideoEnterFullscreen - PrefixedVideoExitFullScreen + PrefixedVideoExitFullscreen PrefixedVideoSupportsFullscreen RangeExpand RequestedSubresourceWithEmbeddedCredentials @@ -824,7 +833,7 @@ experimental domain Audits # all cases except for success. type FederatedAuthRequestIssueReason extends string enum - ApprovalDeclined + ShouldEmbargo TooManyRequests ManifestListHttpNotFound ManifestListNoResponse @@ -837,7 +846,6 @@ experimental domain Audits ClientMetadataHttpNotFound ClientMetadataNoResponse ClientMetadataInvalidResponse - ClientMetadataMissingPrivacyPolicyUrl DisabledInSettings ErrorFetchingSignin InvalidSigninResponse @@ -850,6 +858,7 @@ experimental domain Audits IdTokenInvalidRequest ErrorIdToken Canceled + RpPageNotVisible # This issue tracks client hints related issues. It's used to deprecate old # features, encourage the use of new ones, and provide general guidance. @@ -1527,6 +1536,9 @@ experimental domain CSS optional boolean disabled # The entire property range in the enclosing style declaration (if available). optional SourceRange range + # Parsed longhand components of this property if it is a shorthand. + # This field will be empty if the given property is not a shorthand. + experimental optional array of CSSProperty longhandProperties # CSS media rule descriptor. type CSSMedia extends object @@ -2912,7 +2924,7 @@ domain DOM parameters # Id of the node that has changed. NodeId parentNodeId - # If of the previous siblint. + # Id of the previous sibling. NodeId previousNodeId # Inserted node data. Node node @@ -4072,8 +4084,11 @@ experimental domain IndexedDB # Clears all entries from an object store. command clearObjectStore parameters + # At least and at most one of securityOrigin, storageKey must be specified. # Security origin. - string securityOrigin + optional string securityOrigin + # Storage key. + optional string storageKey # Database name. string databaseName # Object store name. @@ -4082,15 +4097,22 @@ experimental domain IndexedDB # Deletes a database. command deleteDatabase parameters + # At least and at most one of securityOrigin, storageKey must be specified. # Security origin. - string securityOrigin + optional string securityOrigin + # Storage key. + optional string storageKey # Database name. string databaseName # Delete a range of entries from an object store command deleteObjectStoreEntries parameters - string securityOrigin + # At least and at most one of securityOrigin, storageKey must be specified. + # Security origin. + optional string securityOrigin + # Storage key. + optional string storageKey string databaseName string objectStoreName # Range of entry keys to delete @@ -4105,8 +4127,11 @@ experimental domain IndexedDB # Requests data from object store or index. command requestData parameters + # At least and at most one of securityOrigin, storageKey must be specified. # Security origin. - string securityOrigin + optional string securityOrigin + # Storage key. + optional string storageKey # Database name. string databaseName # Object store name. @@ -4128,8 +4153,11 @@ experimental domain IndexedDB # Gets metadata of an object store command getMetadata parameters + # At least and at most one of securityOrigin, storageKey must be specified. # Security origin. - string securityOrigin + optional string securityOrigin + # Storage key. + optional string storageKey # Database name. string databaseName # Object store name. @@ -4145,8 +4173,11 @@ experimental domain IndexedDB # Requests database with given name in given frame. command requestDatabase parameters + # At least and at most one of securityOrigin, storageKey must be specified. # Security origin. - string securityOrigin + optional string securityOrigin + # Storage key. + optional string storageKey # Database name. string databaseName returns @@ -4156,8 +4187,11 @@ experimental domain IndexedDB # Requests database names for given security origin. command requestDatabaseNames parameters + # At least and at most one of securityOrigin, storageKey must be specified. # Security origin. - string securityOrigin + optional string securityOrigin + # Storage key. + optional string storageKey returns # Database names for origin. array of string databaseNames @@ -5220,6 +5254,30 @@ domain Network # Type "send-redemption-record" in the Trust Token API. Signing + # The reason why Chrome uses a specific transport protocol for HTTP semantics. + experimental type AlternateProtocolUsage extends string + enum + # Alternate Protocol was used without racing a normal connection. + alternativeJobWonWithoutRace + # Alternate Protocol was used by winning a race with a normal connection. + alternativeJobWonRace + # Alternate Protocol was not used by losing a race with a normal connection. + mainJobWonRace + # Alternate Protocol was not used because no Alternate-Protocol information + # was available when the request was issued, but an Alternate-Protocol header + # was present in the response. + mappingMissing + # Alternate Protocol was not used because it was marked broken. + broken + # HTTPS DNS protocol upgrade job was used without racing with a normal + # connection and an Alternate Protocol job. + dnsAlpnH3JobWonWithoutRace + # HTTPS DNS protocol upgrade job won a race with a normal connection and + # an Alternate Protocol job. + dnsAlpnH3JobWonRace + # This value is used when the reason is unknown. + unspecifiedReason + # HTTP response data. type Response extends object properties @@ -5265,6 +5323,8 @@ domain Network optional string cacheStorageCacheName # Protocol used to fetch this request. optional string protocol + # The reason why Chrome uses a specific transport protocol for HTTP semantics. + experimental optional AlternateProtocolUsage alternateProtocolUsage # Security state of the request resource. Security.SecurityState securityState # Security details for the request. @@ -7070,6 +7130,7 @@ domain Page ch-downlink ch-ect ch-prefers-color-scheme + ch-prefers-reduced-motion ch-rtt ch-save-data ch-ua @@ -7096,7 +7157,6 @@ domain Page encrypted-media execution-while-out-of-viewport execution-while-not-rendered - federated-credentials focus-without-user-activation fullscreen frobulate @@ -7104,6 +7164,7 @@ domain Page geolocation gyroscope hid + identity-credentials-get idle-detection interest-cohort join-ad-interest-group @@ -7121,9 +7182,10 @@ domain Page serial shared-autofill shared-storage - storage-access-api + storage-access sync-xhr trust-token-redemption + unload usb vertical-scroll web-share @@ -7618,8 +7680,9 @@ domain Page # Recommendation for manifest's id attribute to match current id computed from start_url optional string recommendedId - # Returns all browser cookies. Depending on the backend support, will return detailed cookie - # information in the `cookies` field. + # Returns all browser cookies for the page and all of its subframes. Depending + # on the backend support, will return detailed cookie information in the + # `cookies` field. experimental deprecated command getCookies # Use 'Network.getCookies' instead redirect Network @@ -8421,17 +8484,28 @@ domain Page AudioOutputDeviceRequested MixedContent TriggerBackgrounded - EmbedderTriggeredAndSameOriginRedirected EmbedderTriggeredAndCrossOriginRedirected - EmbedderTriggeredAndDestroyed + MemoryLimitExceeded + # Prerenders can be cancelled when Chrome uses excessive memory. This is + # recorded when it fails to get the memory usage. + FailToGetMemoryUsage + DataSaverEnabled + HasEffectiveUrl + ActivatedBeforeStarted + InactivePageRestriction + StartFailed + TimeoutBackgrounded # Fired when a prerender attempt is completed. - event prerenderAttemptCompleted + experimental event prerenderAttemptCompleted parameters # The frame id of the frame initiating prerendering. FrameId initiatingFrameId string prerenderingUrl PrerenderFinalStatus finalStatus + # This is used to give users more information about the name of the API call + # that is incompatible with prerender and has caused the cancellation of the attempt + optional string disallowedApiMethod event loadEventFired parameters @@ -9063,6 +9137,12 @@ experimental domain Storage # Security origin. string origin + # Registers storage key to be notified when an update occurs to its IndexedDB. + command trackIndexedDBForStorageKey + parameters + # Storage key. + string storageKey + # Unregisters origin from receiving notifications for cache storage. command untrackCacheStorageForOrigin parameters @@ -9075,6 +9155,12 @@ experimental domain Storage # Security origin. string origin + # Unregisters storage key from receiving notifications for IndexedDB. + command untrackIndexedDBForStorageKey + parameters + # Storage key. + string storageKey + # Returns the number of stored Trust Tokens per issuer for the # current browsing context. experimental command getTrustTokens @@ -9122,6 +9208,8 @@ experimental domain Storage parameters # Origin to update. string origin + # Storage key to update. + string storageKey # Database to update. string databaseName # ObjectStore to update. @@ -9132,6 +9220,8 @@ experimental domain Storage parameters # Origin to update. string origin + # Storage key to update. + string storageKey # One of the interest groups was accessed by the associated page. event interestGroupAccessed @@ -9297,6 +9387,25 @@ domain Target # Frame id of originating window (is only set if target has an opener). experimental optional Page.FrameId openerFrameId experimental optional Browser.BrowserContextID browserContextId + # Provides additional details for specific target types. For example, for + # the type of "page", this may be set to "portal" or "prerender". + experimental optional string subtype + + # A filter used by target query/discovery/auto-attach operations. + experimental type FilterEntry extends object + properties + # If set, causes exclusion of mathcing targets from the list. + optional boolean exclude + # If not present, matches any type. + optional string type + + # The entries in TargetFilter are matched sequentially against targets and + # the first entry that matches determines if the target is included or not, + # depending on the value of `exclude` field in the entry. + # If filter is not specified, the one assumed is + # [{type: "browser", exclude: true}, {type: "tab", exclude: true}, {}] + # (i.e. include everything but `browser` and `tab`). + experimental type TargetFilter extends array of FilterEntry experimental type RemoteLocation extends object properties @@ -9361,7 +9470,6 @@ domain Target # An optional list of origins to grant unlimited cross-origin access to. # Parts of the URL other than those constituting origin are ignored. optional array of string originsWithUniversalNetworkAccess - returns # The id of the context created. Browser.BrowserContextID browserContextId @@ -9418,6 +9526,11 @@ domain Target # Retrieves a list of available targets. command getTargets + parameters + # Only targets matching filter will be reported. If filter is not specified + # and target discovery is currently enabled, a filter used for target discovery + # is used for consistency. + experimental optional TargetFilter filter returns # The list of targets. array of TargetInfo targetInfos @@ -9449,6 +9562,8 @@ domain Target # We plan to make this the default, deprecate non-flattened mode, # and eventually retire it. See crbug.com/991325. optional boolean flatten + # Only targets matching filter will be attached. + experimental optional TargetFilter filter # Adds the specified target to the list of targets that will be monitored for any related target # creation (such as child frames, child workers and new versions of service worker) and reported @@ -9461,6 +9576,8 @@ domain Target # Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger` # to run paused targets. boolean waitForDebuggerOnStart + # Only targets matching filter will be attached. + experimental optional TargetFilter filter # Controls whether to discover available targets and notify via # `targetCreated/targetInfoChanged/targetDestroyed` events. @@ -9468,6 +9585,9 @@ domain Target parameters # Whether to discover available targets. boolean discover + # Only targets matching filter will be attached. If `discover` is false, + # `filter` must be omitted or empty. + experimental optional TargetFilter filter # Enables target discovery for the specified locations, when `setDiscoverTargets` was set to # `true`. @@ -9914,7 +10034,10 @@ domain Fetch optional array of HeaderEntry responseHeaders # If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, # then this networkId will be the same as the requestId present in the requestWillBeSent event. - optional RequestId networkId + optional Network.RequestId networkId + # If the request is due to a redirect response from the server, the id of the request that + # has caused the redirect. + experimental optional RequestId redirectedRequestId # Issued when the domain is enabled with handleAuthRequests set to true. # The request is paused until client responds with continueWithAuth. diff --git a/common/devtools/chromium/v105/js_protocol.pdl b/common/devtools/chromium/v108/js_protocol.pdl similarity index 97% rename from common/devtools/chromium/v105/js_protocol.pdl rename to common/devtools/chromium/v108/js_protocol.pdl index 7fd51df5aceb9..b3b97fa11768e 100644 --- a/common/devtools/chromium/v105/js_protocol.pdl +++ b/common/devtools/chromium/v108/js_protocol.pdl @@ -261,8 +261,8 @@ domain Debugger optional string streamId # The total number of lines in the disassembly text. integer totalNumberOfLines - # The offsets of all function bodies plus one additional entry pointing - # one by past the end of the last function. + # The offsets of all function bodies, in the format [start1, end1, + # start2, end2, ...] where all ends are exclusive. array of integer functionBodyOffsets # The first chunk of disassembly. WasmDisassemblyChunk chunk @@ -766,6 +766,22 @@ experimental domain HeapProfiler # Average sample interval in bytes. Poisson distribution is used for the intervals. The # default value is 32768 bytes. optional number samplingInterval + # By default, the sampling heap profiler reports only objects which are + # still alive when the profile is returned via getSamplingProfile or + # stopSampling, which is useful for determining what functions contribute + # the most to steady-state memory usage. This flag instructs the sampling + # heap profiler to also include information about objects discarded by + # major GC, which will show which functions cause large temporary memory + # usage or long GC pauses. + optional boolean includeObjectsCollectedByMajorGC + # By default, the sampling heap profiler reports only objects which are + # still alive when the profile is returned via getSamplingProfile or + # stopSampling, which is useful for determining what functions contribute + # the most to steady-state memory usage. This flag instructs the sampling + # heap profiler to also include information about objects discarded by + # minor GC, which is useful when tuning a latency-sensitive application + # for minimal GC activity. + optional boolean includeObjectsCollectedByMinorGC command startTrackingHeapObjects parameters @@ -902,30 +918,6 @@ domain Profiler # Functions contained in the script that has coverage data. array of FunctionCoverage functions - # Describes a type collected during runtime. - experimental type TypeObject extends object - properties - # Name of a type collected with type profiling. - string name - - # Source offset and types for a parameter or return value. - experimental type TypeProfileEntry extends object - properties - # Source offset of the parameter or end of function for return values. - integer offset - # The types for this parameter or return value. - array of TypeObject types - - # Type profile data collected during runtime for a JavaScript script. - experimental type ScriptTypeProfile extends object - properties - # JavaScript script id. - Runtime.ScriptId scriptId - # JavaScript script name or url. - string url - # Type profile entries for parameters and return values of the functions in the script. - array of TypeProfileEntry entries - command disable command enable @@ -960,9 +952,6 @@ domain Profiler # Monotonically increasing time (in seconds) when the coverage update was taken in the backend. number timestamp - # Enable type profile. - experimental command startTypeProfile - command stop returns # Recorded profile. @@ -972,9 +961,6 @@ domain Profiler # executing optimized code. command stopPreciseCoverage - # Disable type profile. Disabling releases type profile data collected so far. - experimental command stopTypeProfile - # Collect coverage data for the current isolate, and resets execution counters. Precise code # coverage needs to have started. command takePreciseCoverage @@ -984,12 +970,6 @@ domain Profiler # Monotonically increasing time (in seconds) when the coverage update was taken in the backend. number timestamp - # Collect type profile. - experimental command takeTypeProfile - returns - # Type profile for all scripts since startTypeProfile() was turned on. - array of ScriptTypeProfile result - event consoleProfileFinished parameters string id