Skip to content

Commit

Permalink
Roll protocol to r1409451
Browse files Browse the repository at this point in the history
  • Loading branch information
devtools-bot committed Jan 22, 2025
1 parent 2ecbfaf commit 0e9f04b
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 2 deletions.
29 changes: 28 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,34 @@


## Roll protocol to r1409451 — _2025-01-22T04:28:58.000Z_
###### Diff: [`2ecbfaf...813414b`](https://github.com/ChromeDevTools/devtools-protocol/compare/2ecbfaf...813414b)

```diff
@@ browser_protocol.pdl:10985 @@ experimental domain Storage
returns
array of RelatedWebsiteSet sets

+ # Returns the list of URLs from a page and its embedded resources that match
+ # existing grace period URL pattern rules.
+ # https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period
+ experimental command getAffectedUrlsForThirdPartyCookieMetadata
+ parameters
+ # The URL of the page currently being visited.
+ string firstPartyUrl
+ # The list of embedded resource URLs from the page.
+ array of string thirdPartyUrls
+
+ returns
+ # Array of matching URLs. If there is a primary pattern match for the first-
+ # party URL, only the first-party URL is returned in the array.
+ array of string matchedUrls
+
# The SystemInfo domain defines methods and events for querying low-level system information.
experimental domain SystemInfo
```

## Roll protocol to r1406504 — _2025-01-15T04:28:35.000Z_
###### Diff: [`713993e...e45a917`](https://github.com/ChromeDevTools/devtools-protocol/compare/713993e...e45a917)
###### Diff: [`713993e...2ecbfaf`](https://github.com/ChromeDevTools/devtools-protocol/compare/713993e...2ecbfaf)

```diff
@@ browser_protocol.pdl:11174 @@ domain Target
Expand Down
30 changes: 30 additions & 0 deletions json/browser_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -23063,6 +23063,36 @@
}
}
]
},
{
"name": "getAffectedUrlsForThirdPartyCookieMetadata",
"description": "Returns the list of URLs from a page and its embedded resources that match\nexisting grace period URL pattern rules.\nhttps://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period",
"experimental": true,
"parameters": [
{
"name": "firstPartyUrl",
"description": "The URL of the page currently being visited.",
"type": "string"
},
{
"name": "thirdPartyUrls",
"description": "The list of embedded resource URLs from the page.",
"type": "array",
"items": {
"type": "string"
}
}
],
"returns": [
{
"name": "matchedUrls",
"description": "Array of matching URLs. If there is a primary pattern match for the first-\nparty URL, only the first-party URL is returned in the array.",
"type": "array",
"items": {
"type": "string"
}
}
]
}
],
"events": [
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.1406504",
"version": "0.0.1409451",
"description": "The Chrome DevTools Protocol JSON",
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
"author": "The Chromium Authors",
Expand Down
15 changes: 15 additions & 0 deletions pdl/browser_protocol.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -10985,6 +10985,21 @@ experimental domain Storage
returns
array of RelatedWebsiteSet sets

# Returns the list of URLs from a page and its embedded resources that match
# existing grace period URL pattern rules.
# https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period
experimental command getAffectedUrlsForThirdPartyCookieMetadata
parameters
# The URL of the page currently being visited.
string firstPartyUrl
# The list of embedded resource URLs from the page.
array of string thirdPartyUrls

returns
# Array of matching URLs. If there is a primary pattern match for the first-
# party URL, only the first-party URL is returned in the array.
array of string matchedUrls

# The SystemInfo domain defines methods and events for querying low-level system information.
experimental domain SystemInfo

Expand Down
9 changes: 9 additions & 0 deletions types/protocol-mapping.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4604,6 +4604,15 @@ export namespace ProtocolMapping {
paramsType: [];
returnType: Protocol.Storage.GetRelatedWebsiteSetsResponse;
};
/**
* Returns the list of URLs from a page and its embedded resources that match
* existing grace period URL pattern rules.
* https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period
*/
'Storage.getAffectedUrlsForThirdPartyCookieMetadata': {
paramsType: [Protocol.Storage.GetAffectedUrlsForThirdPartyCookieMetadataRequest];
returnType: Protocol.Storage.GetAffectedUrlsForThirdPartyCookieMetadataResponse;
};
/**
* Returns information about the system.
*/
Expand Down
7 changes: 7 additions & 0 deletions types/protocol-proxy-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3671,6 +3671,13 @@ export namespace ProtocolProxyApi {
*/
getRelatedWebsiteSets(): Promise<Protocol.Storage.GetRelatedWebsiteSetsResponse>;

/**
* Returns the list of URLs from a page and its embedded resources that match
* existing grace period URL pattern rules.
* https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period
*/
getAffectedUrlsForThirdPartyCookieMetadata(params: Protocol.Storage.GetAffectedUrlsForThirdPartyCookieMetadataRequest): Promise<Protocol.Storage.GetAffectedUrlsForThirdPartyCookieMetadataResponse>;

/**
* A cache's contents have been modified.
*/
Expand Down
7 changes: 7 additions & 0 deletions types/protocol-tests-proxy-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3953,6 +3953,13 @@ export namespace ProtocolTestsProxyApi {
*/
getRelatedWebsiteSets(): Promise<{id: number, result: Protocol.Storage.GetRelatedWebsiteSetsResponse, sessionId: string}>;

/**
* Returns the list of URLs from a page and its embedded resources that match
* existing grace period URL pattern rules.
* https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period
*/
getAffectedUrlsForThirdPartyCookieMetadata(params: Protocol.Storage.GetAffectedUrlsForThirdPartyCookieMetadataRequest): Promise<{id: number, result: Protocol.Storage.GetAffectedUrlsForThirdPartyCookieMetadataResponse, sessionId: string}>;

/**
* A cache's contents have been modified.
*/
Expand Down
19 changes: 19 additions & 0 deletions types/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16614,6 +16614,25 @@ export namespace Protocol {
sets: RelatedWebsiteSet[];
}

export interface GetAffectedUrlsForThirdPartyCookieMetadataRequest {
/**
* The URL of the page currently being visited.
*/
firstPartyUrl: string;
/**
* The list of embedded resource URLs from the page.
*/
thirdPartyUrls: string[];
}

export interface GetAffectedUrlsForThirdPartyCookieMetadataResponse {
/**
* Array of matching URLs. If there is a primary pattern match for the first-
* party URL, only the first-party URL is returned in the array.
*/
matchedUrls: string[];
}

/**
* A cache's contents have been modified.
*/
Expand Down

0 comments on commit 0e9f04b

Please sign in to comment.