diff --git a/changelog.md b/changelog.md index 1dbd39a3ab..ac8edc55fd 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/json/browser_protocol.json b/json/browser_protocol.json index 6bacdfcb39..659283370c 100644 --- a/json/browser_protocol.json +++ b/json/browser_protocol.json @@ -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": [ diff --git a/package.json b/package.json index 2ea7e8585b..b11ecb171e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pdl/browser_protocol.pdl b/pdl/browser_protocol.pdl index e10e5495fa..a38c747bbe 100644 --- a/pdl/browser_protocol.pdl +++ b/pdl/browser_protocol.pdl @@ -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 diff --git a/types/protocol-mapping.d.ts b/types/protocol-mapping.d.ts index 3e75b6359d..fff1037d80 100644 --- a/types/protocol-mapping.d.ts +++ b/types/protocol-mapping.d.ts @@ -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. */ diff --git a/types/protocol-proxy-api.d.ts b/types/protocol-proxy-api.d.ts index 82ab87de6e..bcb6d5ed05 100644 --- a/types/protocol-proxy-api.d.ts +++ b/types/protocol-proxy-api.d.ts @@ -3671,6 +3671,13 @@ export namespace ProtocolProxyApi { */ getRelatedWebsiteSets(): Promise; + /** + * 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; + /** * A cache's contents have been modified. */ diff --git a/types/protocol-tests-proxy-api.d.ts b/types/protocol-tests-proxy-api.d.ts index 733b89ac34..82da020f01 100644 --- a/types/protocol-tests-proxy-api.d.ts +++ b/types/protocol-tests-proxy-api.d.ts @@ -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. */ diff --git a/types/protocol.d.ts b/types/protocol.d.ts index 1e63ed1600..b414d7e393 100644 --- a/types/protocol.d.ts +++ b/types/protocol.d.ts @@ -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. */