From 4537bcbfcf9d18c47d8b30d110a726aa2f41a974 Mon Sep 17 00:00:00 2001 From: DevTools Bot <24444246+devtools-bot@users.noreply.github.com> Date: Fri, 15 Mar 2024 04:26:20 +0000 Subject: [PATCH] Roll protocol to r1273222 --- changelog.md | 94 +++++++++++++++++++++----------------- json/browser_protocol.json | 40 ++++++++++++++++ package.json | 2 +- pdl/browser_protocol.pdl | 20 +++++++- types/protocol.d.ts | 29 +++++++++++- 5 files changed, 140 insertions(+), 45 deletions(-) diff --git a/changelog.md b/changelog.md index 63f6b41a1f..10bc68a379 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,59 @@ +## Roll protocol to r1273222 — _2024-03-15T04:26:20.000Z_ +###### Diff: [`c804ef9...b067874`](https://github.com/ChromeDevTools/devtools-protocol/compare/c804ef9...b067874) + +```diff +@@ browser_protocol.pdl:1944 @@ experimental domain CSS + CSSStyle style + + # CSS position-fallback rule representation. +- type CSSPositionFallbackRule extends object ++ deprecated type CSSPositionFallbackRule extends object + properties + Value name + # List of keyframes. + array of CSSTryRule tryRules + ++ # CSS @position-try rule representation. ++ type CSSPositionTryRule extends object ++ properties ++ # The prelude dashed-ident name ++ Value name ++ # 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 keyframes rule representation. + type CSSKeyframesRule extends object + properties +@@ -2123,7 +2136,9 @@ experimental domain CSS + # 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 ++ deprecated optional array of CSSPositionFallbackRule cssPositionFallbackRules ++ # A list of CSS @position-try rules matching this node, based on the position-try-options property. ++ optional array of CSSPositionTryRule cssPositionTryRules + # A list of CSS at-property rules matching this node. + optional array of CSSPropertyRule cssPropertyRules + # A list of CSS property registrations matching this node. +@@ -9674,6 +9689,7 @@ experimental domain Storage + documentAppend + documentDelete + documentClear ++ documentGet + workletSet + workletAppend + workletDelete +``` + ## Roll protocol to r1272579 — _2024-03-14T04:25:42.000Z_ -###### Diff: [`1af74d1...5b153d7`](https://github.com/ChromeDevTools/devtools-protocol/compare/1af74d1...5b153d7) +###### Diff: [`1af74d1...c804ef9`](https://github.com/ChromeDevTools/devtools-protocol/compare/1af74d1...c804ef9) ```diff @@ browser_protocol.pdl:2165 @@ experimental domain CSS @@ -11548,44 +11600,4 @@ index 09c420e..bd277eb 100644 # An object providing the result of a network resource load. experimental type LoadNetworkResourcePageResult extends object properties -``` - -## Roll protocol to r943026 — _2021-11-18T11:15:23.000Z_ -###### Diff: [`22bc316...bee0143`](https://github.com/ChromeDevTools/devtools-protocol/compare/22bc316...bee0143) - -```diff -@@ browser_protocol.pdl:5117 @@ domain Network - # An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. - # This is a temporary ability and it will be removed in the future. - experimental integer sourcePort -+ # Cookie partition key. The site of the top-level URL the browser was visiting at the start -+ # of the request to the endpoint that set the cookie. -+ experimental optional string partitionKey -+ # True if cookie partition key is opaque. -+ experimental optional boolean partitionKeyOpaque - - # Types of reasons why a cookie may not be stored from a response. - experimental type SetCookieBlockedReason extends string -@@ -5275,6 +5280,10 @@ domain Network - # An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. - # This is a temporary ability and it will be removed in the future. - experimental optional integer sourcePort -+ # Cookie partition key. The site of the top-level URL the browser was visiting at the start -+ # of the request to the endpoint that set the cookie. -+ # If not set, the cookie will be set as not partitioned. -+ experimental optional string partitionKey - - # Authorization challenge for HTTP status code 401 or 407. - experimental type AuthChallenge extends object -@@ -5645,6 +5654,10 @@ domain Network - # An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. - # This is a temporary ability and it will be removed in the future. - experimental optional integer sourcePort -+ # Cookie partition key. The site of the top-level URL the browser was visiting at the start -+ # of the request to the endpoint that set the cookie. -+ # If not set, the cookie will be set as not partitioned. -+ experimental optional string partitionKey - returns - # Always set to true. If an error occurs, the response indicates protocol error. - deprecated boolean success ``` \ No newline at end of file diff --git a/json/browser_protocol.json b/json/browser_protocol.json index 41ead677a1..e8f46bfc9e 100644 --- a/json/browser_protocol.json +++ b/json/browser_protocol.json @@ -4062,6 +4062,7 @@ { "id": "CSSPositionFallbackRule", "description": "CSS position-fallback rule representation.", + "deprecated": true, "type": "object", "properties": [ { @@ -4078,6 +4079,34 @@ } ] }, + { + "id": "CSSPositionTryRule", + "description": "CSS @position-try rule representation.", + "type": "object", + "properties": [ + { + "name": "name", + "description": "The prelude dashed-ident name", + "$ref": "Value" + }, + { + "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": "CSSKeyframesRule", "description": "CSS keyframes rule representation.", @@ -4477,12 +4506,22 @@ { "name": "cssPositionFallbackRules", "description": "A list of CSS position fallbacks matching this node.", + "deprecated": true, "optional": true, "type": "array", "items": { "$ref": "CSSPositionFallbackRule" } }, + { + "name": "cssPositionTryRules", + "description": "A list of CSS @position-try rules matching this node, based on the position-try-options property.", + "optional": true, + "type": "array", + "items": { + "$ref": "CSSPositionTryRule" + } + }, { "name": "cssPropertyRules", "description": "A list of CSS at-property rules matching this node.", @@ -20444,6 +20483,7 @@ "documentAppend", "documentDelete", "documentClear", + "documentGet", "workletSet", "workletAppend", "workletDelete", diff --git a/package.json b/package.json index d5dd0432fd..cd3ac3ab16 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "devtools-protocol", - "version": "0.0.1272579", + "version": "0.0.1273222", "description": "The Chrome DevTools Protocol JSON", "repository": "https://github.com/ChromeDevTools/devtools-protocol", "author": "The Chromium Authors", diff --git a/pdl/browser_protocol.pdl b/pdl/browser_protocol.pdl index 71d6272651..94d45cbee6 100644 --- a/pdl/browser_protocol.pdl +++ b/pdl/browser_protocol.pdl @@ -1944,12 +1944,25 @@ experimental domain CSS CSSStyle style # CSS position-fallback rule representation. - type CSSPositionFallbackRule extends object + deprecated type CSSPositionFallbackRule extends object properties Value name # List of keyframes. array of CSSTryRule tryRules + # CSS @position-try rule representation. + type CSSPositionTryRule extends object + properties + # The prelude dashed-ident name + Value name + # 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 keyframes rule representation. type CSSKeyframesRule extends object properties @@ -2123,7 +2136,9 @@ experimental domain CSS # 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 + deprecated optional array of CSSPositionFallbackRule cssPositionFallbackRules + # A list of CSS @position-try rules matching this node, based on the position-try-options property. + optional array of CSSPositionTryRule cssPositionTryRules # A list of CSS at-property rules matching this node. optional array of CSSPropertyRule cssPropertyRules # A list of CSS property registrations matching this node. @@ -9674,6 +9689,7 @@ experimental domain Storage documentAppend documentDelete documentClear + documentGet workletSet workletAppend workletDelete diff --git a/types/protocol.d.ts b/types/protocol.d.ts index 1444533e5c..5d9eef1503 100644 --- a/types/protocol.d.ts +++ b/types/protocol.d.ts @@ -5086,6 +5086,29 @@ export namespace Protocol { tryRules: CSSTryRule[]; } + /** + * CSS @position-try rule representation. + */ + export interface CSSPositionTryRule { + /** + * The prelude dashed-ident name + */ + name: Value; + /** + * 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 keyframes rule representation. */ @@ -5351,6 +5374,10 @@ export namespace Protocol { * A list of CSS position fallbacks matching this node. */ cssPositionFallbackRules?: CSSPositionFallbackRule[]; + /** + * A list of CSS @position-try rules matching this node, based on the position-try-options property. + */ + cssPositionTryRules?: CSSPositionTryRule[]; /** * A list of CSS at-property rules matching this node. */ @@ -15352,7 +15379,7 @@ export namespace Protocol { /** * Enum of shared storage access types. */ - export type SharedStorageAccessType = ('documentAddModule' | 'documentSelectURL' | 'documentRun' | 'documentSet' | 'documentAppend' | 'documentDelete' | 'documentClear' | 'workletSet' | 'workletAppend' | 'workletDelete' | 'workletClear' | 'workletGet' | 'workletKeys' | 'workletEntries' | 'workletLength' | 'workletRemainingBudget' | 'headerSet' | 'headerAppend' | 'headerDelete' | 'headerClear'); + export type SharedStorageAccessType = ('documentAddModule' | 'documentSelectURL' | 'documentRun' | 'documentSet' | 'documentAppend' | 'documentDelete' | 'documentClear' | 'documentGet' | 'workletSet' | 'workletAppend' | 'workletDelete' | 'workletClear' | 'workletGet' | 'workletKeys' | 'workletEntries' | 'workletLength' | 'workletRemainingBudget' | 'headerSet' | 'headerAppend' | 'headerDelete' | 'headerClear'); /** * Struct for a single key-value pair in an origin's shared storage.