Skip to content

Commit

Permalink
Roll protocol to r1253724
Browse files Browse the repository at this point in the history
  • Loading branch information
devtools-bot committed Jan 30, 2024
1 parent fcda9c0 commit 97a9147
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 37 deletions.
104 changes: 88 additions & 16 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,94 @@


## Roll protocol to r1253724 — _2024-01-30T04:25:31.000Z_
###### Diff: [`fcda9c0...896638e`](https://github.com/ChromeDevTools/devtools-protocol/compare/`fcda9c0...896638e`)

```diff
@@ browser_protocol.pdl:5991 @@ domain Network
# RFC6265bis.
NameValuePairExceedsMaxSize

- # Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
- experimental type CookieExemptionReason extends string
- enum
- # The default value. Cookie with this reason could either be blocked or included.
- None
- # The cookie should have been blocked by 3PCD but is exempted by explicit user setting.
- UserSetting
- # The cookie should have been blocked by 3PCD but is exempted by metadata mitigation.
- TPCDMetadata
- # The cookie should have been blocked by 3PCD but is exempted by Deprecation Trial mitigation.
- TPCDDeprecationTrial
- # The cookie should have been blocked by 3PCD but is exempted by heuristics mitigation.
- TPCDHeuristics
- # The cookie should have been blocked by 3PCD but is exempted by Enterprise Policy.
- EnterprisePolicy
- # The cookie should have been blocked by 3PCD but is exempted by Storage Access API.
- StorageAccess
- # The cookie should have been blocked by 3PCD but is exempted by Top-level Storage Access API.
- TopLevelStorageAccess
- # The cookie should have been blocked by 3PCD but is exempted by browser heuristics.
- BrowserHeuristics
-
# A cookie which was not stored from a response with the corresponding reason.
experimental type BlockedSetCookieWithReason extends object
properties
@@ -6026,26 +6004,13 @@ domain Network
# errors.
optional Cookie cookie

- # A cookie should have been blocked by 3PCD but is exempted and stored from a response with the
- # corresponding reason. A cookie could only have at most one exemption reason.
- experimental type ExemptedSetCookieWithReason extends object
- properties
- # The reason the cookie was exempted.
- CookieExemptionReason exemptionReason
- # The cookie object representing the cookie.
- Cookie cookie
-
- # A cookie associated with the request which may or may not be sent with it.
- # Includes the cookies itself and reasons for blocking or exemption.
- experimental type AssociatedCookie extends object
+ # A cookie with was not sent with a request with the corresponding reason.
+ experimental type BlockedCookieWithReason extends object
properties
+ # The reason(s) the cookie was blocked.
+ array of CookieBlockedReason blockedReasons
# The cookie object representing the cookie which was not sent.
Cookie cookie
- # The reason(s) the cookie was blocked. If empty means the cookie is included.
- array of CookieBlockedReason blockedReasons
- # The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could
- # only have at most one exemption reason.
- optional CookieExemptionReason exemptionReason

# Cookie parameter object
type CookieParam extends object
@@ -6814,8 +6779,8 @@ domain Network
# Request identifier. Used to match this information to an existing requestWillBeSent event.
RequestId requestId
# A list of cookies potentially associated to the requested URL. This includes both cookies sent with
- # the request and the ones not sent; the latter are distinguished by having blockedReasons field set.
- array of AssociatedCookie associatedCookies
+ # the request and the ones not sent; the latter are distinguished by having blockedReason field set.
+ array of BlockedCookieWithReason associatedCookies
# Raw request headers as they will be sent over the wire.
Headers headers
# Connection timing information for the request.
@@ -6853,9 +6818,6 @@ domain Network
optional string cookiePartitionKey
# True if partitioned cookies are enabled, but the partition key is not serializeable to string.
optional boolean cookiePartitionKeyOpaque
- # A list of cookies which should have been blocked by 3PCD but are exempted and stored from
- # the response with the corresponding reason.
- optional array of ExemptedSetCookieWithReason exemptedCookies

# Fired exactly once for each Trust Token operation. Depending on
# the type of the operation and whether the operation succeeded or
```

## Roll protocol to r1253004 — _2024-01-27T04:25:19.000Z_
###### Diff: [`b402173...4d0afd5`](https://github.com/ChromeDevTools/devtools-protocol/compare/`b402173...4d0afd5`)
###### Diff: [`b402173...fcda9c0`](https://github.com/ChromeDevTools/devtools-protocol/compare/`b402173...fcda9c0`)

```diff
@@ browser_protocol.pdl:10649 @@ experimental domain Tethering
Expand Down Expand Up @@ -10984,19 +11071,4 @@ index bd277eb..09c420e 100644

# See components/back_forward_cache/back_forward_cache_disable.h for explanations.
EmbedderPopupBlockerTabHelper
```

## Roll protocol to r931720 — _2021-10-14T22:15:25.000Z_
###### Diff: [`5095a49...204c97a`](https://github.com/ChromeDevTools/devtools-protocol/compare/`5095a49...204c97a`)

```diff
@@ browser_protocol.pdl:8829 @@ domain Target
# Frame height in DIP (headless chrome only).
optional integer height
# The browser context to create the page in.
- experimental optional Browser.BrowserContextID browserContextId
+ optional Browser.BrowserContextID browserContextId
# Whether BeginFrames for this target will be controlled via DevTools (headless chrome only,
# not supported on MacOS yet, false by default).
experimental optional boolean enableBeginFrameControl
```
66 changes: 58 additions & 8 deletions json/browser_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -12770,6 +12770,23 @@
"NameValuePairExceedsMaxSize"
]
},
{
"id": "CookieExemptionReason",
"description": "Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.",
"experimental": true,
"type": "string",
"enum": [
"None",
"UserSetting",
"TPCDMetadata",
"TPCDDeprecationTrial",
"TPCDHeuristics",
"EnterprisePolicy",
"StorageAccess",
"TopLevelStorageAccess",
"BrowserHeuristics"
]
},
{
"id": "BlockedSetCookieWithReason",
"description": "A cookie which was not stored from a response with the corresponding reason.",
Expand Down Expand Up @@ -12798,23 +12815,47 @@
]
},
{
"id": "BlockedCookieWithReason",
"description": "A cookie with was not sent with a request with the corresponding reason.",
"id": "ExemptedSetCookieWithReason",
"description": "A cookie should have been blocked by 3PCD but is exempted and stored from a response with the\ncorresponding reason. A cookie could only have at most one exemption reason.",
"experimental": true,
"type": "object",
"properties": [
{
"name": "exemptionReason",
"description": "The reason the cookie was exempted.",
"$ref": "CookieExemptionReason"
},
{
"name": "cookie",
"description": "The cookie object representing the cookie.",
"$ref": "Cookie"
}
]
},
{
"id": "AssociatedCookie",
"description": "A cookie associated with the request which may or may not be sent with it.\nIncludes the cookies itself and reasons for blocking or exemption.",
"experimental": true,
"type": "object",
"properties": [
{
"name": "cookie",
"description": "The cookie object representing the cookie which was not sent.",
"$ref": "Cookie"
},
{
"name": "blockedReasons",
"description": "The reason(s) the cookie was blocked.",
"description": "The reason(s) the cookie was blocked. If empty means the cookie is included.",
"type": "array",
"items": {
"$ref": "CookieBlockedReason"
}
},
{
"name": "cookie",
"description": "The cookie object representing the cookie which was not sent.",
"$ref": "Cookie"
"name": "exemptionReason",
"description": "The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could\nonly have at most one exemption reason.",
"optional": true,
"$ref": "CookieExemptionReason"
}
]
},
Expand Down Expand Up @@ -14805,10 +14846,10 @@
},
{
"name": "associatedCookies",
"description": "A list of cookies potentially associated to the requested URL. This includes both cookies sent with\nthe request and the ones not sent; the latter are distinguished by having blockedReason field set.",
"description": "A list of cookies potentially associated to the requested URL. This includes both cookies sent with\nthe request and the ones not sent; the latter are distinguished by having blockedReasons field set.",
"type": "array",
"items": {
"$ref": "BlockedCookieWithReason"
"$ref": "AssociatedCookie"
}
},
{
Expand Down Expand Up @@ -14886,6 +14927,15 @@
"description": "True if partitioned cookies are enabled, but the partition key is not serializeable to string.",
"optional": true,
"type": "boolean"
},
{
"name": "exemptedCookies",
"description": "A list of cookies which should have been blocked by 3PCD but are exempted and stored from\nthe response with the corresponding reason.",
"optional": true,
"type": "array",
"items": {
"$ref": "ExemptedSetCookieWithReason"
}
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devtools-protocol",
"version": "0.0.1253004",
"version": "0.0.1253724",
"description": "The Chrome DevTools Protocol JSON",
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
"author": "The Chromium Authors",
Expand Down
50 changes: 44 additions & 6 deletions pdl/browser_protocol.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -5991,6 +5991,28 @@ domain Network
# RFC6265bis.
NameValuePairExceedsMaxSize

# Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
experimental type CookieExemptionReason extends string
enum
# The default value. Cookie with this reason could either be blocked or included.
None
# The cookie should have been blocked by 3PCD but is exempted by explicit user setting.
UserSetting
# The cookie should have been blocked by 3PCD but is exempted by metadata mitigation.
TPCDMetadata
# The cookie should have been blocked by 3PCD but is exempted by Deprecation Trial mitigation.
TPCDDeprecationTrial
# The cookie should have been blocked by 3PCD but is exempted by heuristics mitigation.
TPCDHeuristics
# The cookie should have been blocked by 3PCD but is exempted by Enterprise Policy.
EnterprisePolicy
# The cookie should have been blocked by 3PCD but is exempted by Storage Access API.
StorageAccess
# The cookie should have been blocked by 3PCD but is exempted by Top-level Storage Access API.
TopLevelStorageAccess
# The cookie should have been blocked by 3PCD but is exempted by browser heuristics.
BrowserHeuristics

# A cookie which was not stored from a response with the corresponding reason.
experimental type BlockedSetCookieWithReason extends object
properties
Expand All @@ -6004,13 +6026,26 @@ domain Network
# errors.
optional Cookie cookie

# A cookie with was not sent with a request with the corresponding reason.
experimental type BlockedCookieWithReason extends object
# A cookie should have been blocked by 3PCD but is exempted and stored from a response with the
# corresponding reason. A cookie could only have at most one exemption reason.
experimental type ExemptedSetCookieWithReason extends object
properties
# The reason the cookie was exempted.
CookieExemptionReason exemptionReason
# The cookie object representing the cookie.
Cookie cookie

# A cookie associated with the request which may or may not be sent with it.
# Includes the cookies itself and reasons for blocking or exemption.
experimental type AssociatedCookie extends object
properties
# The reason(s) the cookie was blocked.
array of CookieBlockedReason blockedReasons
# The cookie object representing the cookie which was not sent.
Cookie cookie
# The reason(s) the cookie was blocked. If empty means the cookie is included.
array of CookieBlockedReason blockedReasons
# The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could
# only have at most one exemption reason.
optional CookieExemptionReason exemptionReason

# Cookie parameter object
type CookieParam extends object
Expand Down Expand Up @@ -6779,8 +6814,8 @@ domain Network
# Request identifier. Used to match this information to an existing requestWillBeSent event.
RequestId requestId
# A list of cookies potentially associated to the requested URL. This includes both cookies sent with
# the request and the ones not sent; the latter are distinguished by having blockedReason field set.
array of BlockedCookieWithReason associatedCookies
# the request and the ones not sent; the latter are distinguished by having blockedReasons field set.
array of AssociatedCookie associatedCookies
# Raw request headers as they will be sent over the wire.
Headers headers
# Connection timing information for the request.
Expand Down Expand Up @@ -6818,6 +6853,9 @@ domain Network
optional string cookiePartitionKey
# True if partitioned cookies are enabled, but the partition key is not serializeable to string.
optional boolean cookiePartitionKeyOpaque
# A list of cookies which should have been blocked by 3PCD but are exempted and stored from
# the response with the corresponding reason.
optional array of ExemptedSetCookieWithReason exemptedCookies

# Fired exactly once for each Trust Token operation. Depending on
# the type of the operation and whether the operation succeeded or
Expand Down
43 changes: 37 additions & 6 deletions types/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10592,6 +10592,11 @@ export namespace Protocol {
*/
export type CookieBlockedReason = ('SecureOnly' | 'NotOnPath' | 'DomainMismatch' | 'SameSiteStrict' | 'SameSiteLax' | 'SameSiteUnspecifiedTreatedAsLax' | 'SameSiteNoneInsecure' | 'UserPreferences' | 'ThirdPartyPhaseout' | 'ThirdPartyBlockedInFirstPartySet' | 'UnknownError' | 'SchemefulSameSiteStrict' | 'SchemefulSameSiteLax' | 'SchemefulSameSiteUnspecifiedTreatedAsLax' | 'SamePartyFromCrossPartyContext' | 'NameValuePairExceedsMaxSize');

/**
* Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
*/
export type CookieExemptionReason = ('None' | 'UserSetting' | 'TPCDMetadata' | 'TPCDDeprecationTrial' | 'TPCDHeuristics' | 'EnterprisePolicy' | 'StorageAccess' | 'TopLevelStorageAccess' | 'BrowserHeuristics');

/**
* A cookie which was not stored from a response with the corresponding reason.
*/
Expand All @@ -10614,17 +10619,38 @@ export namespace Protocol {
}

/**
* A cookie with was not sent with a request with the corresponding reason.
* A cookie should have been blocked by 3PCD but is exempted and stored from a response with the
* corresponding reason. A cookie could only have at most one exemption reason.
*/
export interface BlockedCookieWithReason {
export interface ExemptedSetCookieWithReason {
/**
* The reason(s) the cookie was blocked.
* The reason the cookie was exempted.
*/
blockedReasons: CookieBlockedReason[];
exemptionReason: CookieExemptionReason;
/**
* The cookie object representing the cookie.
*/
cookie: Cookie;
}

/**
* A cookie associated with the request which may or may not be sent with it.
* Includes the cookies itself and reasons for blocking or exemption.
*/
export interface AssociatedCookie {
/**
* The cookie object representing the cookie which was not sent.
*/
cookie: Cookie;
/**
* The reason(s) the cookie was blocked. If empty means the cookie is included.
*/
blockedReasons: CookieBlockedReason[];
/**
* The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could
* only have at most one exemption reason.
*/
exemptionReason?: CookieExemptionReason;
}

/**
Expand Down Expand Up @@ -11954,9 +11980,9 @@ export namespace Protocol {
requestId: RequestId;
/**
* A list of cookies potentially associated to the requested URL. This includes both cookies sent with
* the request and the ones not sent; the latter are distinguished by having blockedReason field set.
* the request and the ones not sent; the latter are distinguished by having blockedReasons field set.
*/
associatedCookies: BlockedCookieWithReason[];
associatedCookies: AssociatedCookie[];
/**
* Raw request headers as they will be sent over the wire.
*/
Expand Down Expand Up @@ -12020,6 +12046,11 @@ export namespace Protocol {
* True if partitioned cookies are enabled, but the partition key is not serializeable to string.
*/
cookiePartitionKeyOpaque?: boolean;
/**
* A list of cookies which should have been blocked by 3PCD but are exempted and stored from
* the response with the corresponding reason.
*/
exemptedCookies?: ExemptedSetCookieWithReason[];
}

export const enum TrustTokenOperationDoneEventStatus {
Expand Down

0 comments on commit 97a9147

Please sign in to comment.