Skip to content

Commit 5ee78b3

Browse files
committed
Roll protocol to r1684464
1 parent a12defa commit 5ee78b3

12 files changed

Lines changed: 567 additions & 1198 deletions

‎changelog.md‎

Lines changed: 344 additions & 35 deletions
Large diffs are not rendered by default.

‎json/browser_protocol.json‎

Lines changed: 107 additions & 444 deletions
Large diffs are not rendered by default.

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devtools-protocol",
3-
"version": "0.0.1683682",
3+
"version": "0.0.1684464",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

‎pdl/domains/ServiceWorker.pdl‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,52 @@ experimental domain ServiceWorker
3232
activated
3333
redundant
3434

35+
# Mostly corresponds to `RouterCondition` in ServiceWorker spec
36+
# (https://www.w3.org/TR/service-workers/#dictdef-routercondition) while this
37+
# currently lacks support for the nested conditions ("or" and "not").
38+
# TODO(crbug.com/540469610): Support recursive conditions.
39+
type ServiceWorkerRouterCondition extends object
40+
properties
41+
# Plain text, or JSON serialization of URLPatternInit or URLPattern
42+
optional string urlPattern
43+
optional string requestMethod
44+
optional string requestMode
45+
optional string requestDestination
46+
optional ServiceWorkerVersionRunningStatus runningStatus
47+
48+
type ServiceWorkerRouterSourceType extends string
49+
enum
50+
# https://www.w3.org/TR/service-workers/#enumdef-routersourceenum
51+
cache
52+
fetchEvent
53+
network
54+
raceNetworkAndFetchHandler
55+
raceNetworkAndCache
56+
# Tag for https://www.w3.org/TR/service-workers/#dictdef-routersourcedict
57+
sourceDict
58+
59+
# https://www.w3.org/TR/service-workers/#dictdef-routersourcedict
60+
type ServiceWorkerRouterSourceDict extends object
61+
properties
62+
string cacheName
63+
64+
# Corresponds to `RouterSource` in the spec while the representation is different as follows.
65+
# (https://www.w3.org/TR/service-workers/#typedefdef-routersource)
66+
# - `RouterSourceEnum`: `type` equals `cache`, `sourceDict` is null.
67+
# - `RouterSourceDict`: `type` equals `sourceDict`, `sourceDict` has valid value.
68+
type ServiceWorkerRouterSource extends object
69+
properties
70+
ServiceWorkerRouterSourceType type
71+
# Non-empty iff `type` equals "sourceDict".
72+
optional ServiceWorkerRouterSourceDict sourceDict
73+
74+
type ServiceWorkerRouterRule extends object
75+
properties
76+
ServiceWorkerRouterCondition condition
77+
ServiceWorkerRouterSource source
78+
# Rule ID assigned by the browser. Unique within each ServiceWorkerVersion.
79+
integer id
80+
3581
# ServiceWorker version.
3682
type ServiceWorkerVersion extends object
3783
properties
@@ -47,7 +93,11 @@ experimental domain ServiceWorker
4793
optional number scriptResponseTime
4894
optional array of Target.TargetID controlledClients
4995
optional Target.TargetID targetId
96+
# Migration to `typedRouterRules` is in progress. The browser sends either
97+
# `routerRules` or `typedRouterRules`.
98+
# TODO(crbug.com/540469610): Remove `routerRules` after the migration.
5099
optional string routerRules
100+
optional array of ServiceWorkerRouterRule typedRouterRules
51101

52102
# ServiceWorker error message.
53103
type ServiceWorkerErrorMessage extends object

‎pdl/domains/Storage.pdl‎

Lines changed: 0 additions & 228 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ experimental domain Storage
2121
websql
2222
service_workers
2323
cache_storage
24-
shared_storage
2524
storage_buckets
2625
all
2726
other
@@ -42,147 +41,6 @@ experimental domain Storage
4241
number count
4342

4443

45-
# Enum of shared storage access scopes.
46-
type SharedStorageAccessScope extends string
47-
enum
48-
window
49-
sharedStorageWorklet
50-
header
51-
52-
# Enum of shared storage access methods.
53-
type SharedStorageAccessMethod extends string
54-
enum
55-
addModule
56-
createWorklet
57-
selectURL
58-
run
59-
batchUpdate
60-
set
61-
append
62-
delete
63-
clear
64-
get
65-
keys
66-
values
67-
entries
68-
length
69-
remainingBudget
70-
71-
# Struct for a single key-value pair in an origin's shared storage.
72-
type SharedStorageEntry extends object
73-
properties
74-
string key
75-
string value
76-
77-
# Details for an origin's shared storage.
78-
type SharedStorageMetadata extends object
79-
properties
80-
# Time when the origin's shared storage was last created.
81-
Network.TimeSinceEpoch creationTime
82-
# Number of key-value pairs stored in origin's shared storage.
83-
integer length
84-
# Current amount of bits of entropy remaining in the navigation budget.
85-
number remainingBudget
86-
# Total number of bytes stored as key-value pairs in origin's shared
87-
# storage.
88-
integer bytesUsed
89-
90-
# Represents a dictionary object passed in as privateAggregationConfig to
91-
# run or selectURL.
92-
type SharedStoragePrivateAggregationConfig extends object
93-
properties
94-
# The chosen aggregation service deployment.
95-
optional string aggregationCoordinatorOrigin
96-
# The context ID provided.
97-
optional string contextId
98-
# Configures the maximum size allowed for filtering IDs.
99-
integer filteringIdMaxBytes
100-
# The limit on the number of contributions in the final report.
101-
optional integer maxContributions
102-
103-
# Pair of reporting metadata details for a candidate URL for `selectURL()`.
104-
type SharedStorageReportingMetadata extends object
105-
properties
106-
string eventType
107-
string reportingUrl
108-
109-
# Bundles a candidate URL with its reporting metadata.
110-
type SharedStorageUrlWithMetadata extends object
111-
properties
112-
# Spec of candidate URL.
113-
string url
114-
# Any associated reporting metadata.
115-
array of SharedStorageReportingMetadata reportingMetadata
116-
117-
# Bundles the parameters for shared storage access events whose
118-
# presence/absence can vary according to SharedStorageAccessType.
119-
type SharedStorageAccessParams extends object
120-
properties
121-
# Spec of the module script URL.
122-
# Present only for SharedStorageAccessMethods: addModule and
123-
# createWorklet.
124-
optional string scriptSourceUrl
125-
# String denoting "context-origin", "script-origin", or a custom
126-
# origin to be used as the worklet's data origin.
127-
# Present only for SharedStorageAccessMethod: createWorklet.
128-
optional string dataOrigin
129-
# Name of the registered operation to be run.
130-
# Present only for SharedStorageAccessMethods: run and selectURL.
131-
optional string operationName
132-
# ID of the operation call.
133-
# Present only for SharedStorageAccessMethods: run and selectURL.
134-
optional string operationId
135-
# Whether or not to keep the worket alive for future run or selectURL
136-
# calls.
137-
# Present only for SharedStorageAccessMethods: run and selectURL.
138-
optional boolean keepAlive
139-
# Configures the private aggregation options.
140-
# Present only for SharedStorageAccessMethods: run and selectURL.
141-
optional SharedStoragePrivateAggregationConfig privateAggregationConfig
142-
# The operation's serialized data in bytes (converted to a string).
143-
# Present only for SharedStorageAccessMethods: run and selectURL.
144-
# TODO(crbug.com/401011862): Consider updating this parameter to binary.
145-
optional string serializedData
146-
# Array of candidate URLs' specs, along with any associated metadata.
147-
# Present only for SharedStorageAccessMethod: selectURL.
148-
optional array of SharedStorageUrlWithMetadata urlsWithMetadata
149-
# Spec of the URN:UUID generated for a selectURL call.
150-
# Present only for SharedStorageAccessMethod: selectURL.
151-
optional string urnUuid
152-
# Key for a specific entry in an origin's shared storage.
153-
# Present only for SharedStorageAccessMethods: set, append, delete, and
154-
# get.
155-
optional string key
156-
# Value for a specific entry in an origin's shared storage.
157-
# Present only for SharedStorageAccessMethods: set and append.
158-
optional string value
159-
# Whether or not to set an entry for a key if that key is already present.
160-
# Present only for SharedStorageAccessMethod: set.
161-
optional boolean ignoreIfPresent
162-
# A number denoting the (0-based) order of the worklet's
163-
# creation relative to all other shared storage worklets created by
164-
# documents using the current storage partition.
165-
# Present only for SharedStorageAccessMethods: addModule, createWorklet.
166-
optional integer workletOrdinal
167-
# Hex representation of the DevTools token used as the TargetID for the
168-
# associated shared storage worklet.
169-
# Present only for SharedStorageAccessMethods: addModule, createWorklet,
170-
# run, selectURL, and any other SharedStorageAccessMethod when the
171-
# SharedStorageAccessScope is sharedStorageWorklet.
172-
optional Target.TargetID workletTargetId
173-
# Name of the lock to be acquired, if present.
174-
# Optionally present only for SharedStorageAccessMethods: batchUpdate,
175-
# set, append, delete, and clear.
176-
optional string withLock
177-
# If the method has been called as part of a batchUpdate, then this
178-
# number identifies the batch to which it belongs.
179-
# Optionally present only for SharedStorageAccessMethods:
180-
# batchUpdate (required), set, append, delete, and clear.
181-
optional string batchUpdateId
182-
# Number of modifier methods sent in batch.
183-
# Present only for SharedStorageAccessMethod: batchUpdate.
184-
optional integer batchSize
185-
18644
type StorageBucketsDurability extends string
18745
enum
18846
relaxed
@@ -351,51 +209,6 @@ experimental domain Storage
351209
# True if any tokens were deleted, false otherwise.
352210
boolean didDeleteTokens
353211

354-
# Gets metadata for an origin's shared storage.
355-
experimental command getSharedStorageMetadata
356-
parameters
357-
string ownerOrigin
358-
returns
359-
SharedStorageMetadata metadata
360-
361-
# Gets the entries in an given origin's shared storage.
362-
experimental command getSharedStorageEntries
363-
parameters
364-
string ownerOrigin
365-
returns
366-
array of SharedStorageEntry entries
367-
368-
# Sets entry with `key` and `value` for a given origin's shared storage.
369-
experimental command setSharedStorageEntry
370-
parameters
371-
string ownerOrigin
372-
string key
373-
string value
374-
# If `ignoreIfPresent` is included and true, then only sets the entry if
375-
# `key` doesn't already exist.
376-
optional boolean ignoreIfPresent
377-
378-
# Deletes entry for `key` (if it exists) for a given origin's shared storage.
379-
experimental command deleteSharedStorageEntry
380-
parameters
381-
string ownerOrigin
382-
string key
383-
384-
# Clears all entries for a given origin's shared storage.
385-
experimental command clearSharedStorageEntries
386-
parameters
387-
string ownerOrigin
388-
389-
# Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
390-
experimental command resetSharedStorageBudget
391-
parameters
392-
string ownerOrigin
393-
394-
# Enables/disables issuing of sharedStorageAccessed events.
395-
experimental command setSharedStorageTracking
396-
parameters
397-
boolean enable
398-
399212
# Set tracking for a storage key's buckets.
400213
experimental command setStorageBucketTracking
401214
parameters
@@ -458,47 +271,6 @@ experimental domain Storage
458271
# Storage bucket to update.
459272
string bucketId
460273

461-
# Shared storage was accessed by the associated page.
462-
# The following parameters are included in all events.
463-
event sharedStorageAccessed
464-
parameters
465-
# Time of the access.
466-
Network.TimeSinceEpoch accessTime
467-
# Enum value indicating the access scope.
468-
SharedStorageAccessScope scope
469-
# Enum value indicating the Shared Storage API method invoked.
470-
SharedStorageAccessMethod method
471-
# DevTools Frame Token for the primary frame tree's root.
472-
Page.FrameId mainFrameId
473-
# Serialization of the origin owning the Shared Storage data.
474-
string ownerOrigin
475-
# Serialization of the site owning the Shared Storage data.
476-
string ownerSite
477-
# The sub-parameters wrapped by `params` are all optional and their
478-
# presence/absence depends on `type`.
479-
SharedStorageAccessParams params
480-
481-
# A shared storage run or selectURL operation finished its execution.
482-
# The following parameters are included in all events.
483-
event sharedStorageWorkletOperationExecutionFinished
484-
parameters
485-
# Time that the operation finished.
486-
Network.TimeSinceEpoch finishedTime
487-
# Time, in microseconds, from start of shared storage JS API call until
488-
# end of operation execution in the worklet.
489-
integer executionTime
490-
# Enum value indicating the Shared Storage API method invoked.
491-
SharedStorageAccessMethod method
492-
# ID of the operation call.
493-
string operationId
494-
# Hex representation of the DevTools token used as the TargetID for the
495-
# associated shared storage worklet.
496-
Target.TargetID workletTargetId
497-
# DevTools Frame Token for the primary frame tree's root.
498-
Page.FrameId mainFrameId
499-
# Serialization of the origin owning the Shared Storage data.
500-
string ownerOrigin
501-
502274
event storageBucketCreatedOrUpdated
503275
parameters
504276
StorageBucketInfo bucketInfo

‎pdl/domains/WebMCP.pdl‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ experimental domain WebMCP
1717
optional boolean readOnly
1818
# A hint indicating that the tool output may contain untrusted content, ex: UGC, 3rd party data.
1919
optional boolean untrustedContent
20+
# A hint indicating that executing the tool will result in consequential actions, ex: booking a flight, transferring money.
21+
optional boolean consequential
2022
# If the declarative tool was declared with the autosubmit attribute.
2123
optional boolean autosubmit
2224

‎scripts/inspector_protocol‎

Submodule inspector_protocol updated from abf68ef to 3b2e0c4

0 commit comments

Comments
 (0)