Skip to content

Commit

Permalink
Roll protocol to r1272579
Browse files Browse the repository at this point in the history
  • Loading branch information
devtools-bot committed Mar 14, 2024
1 parent 1af74d1 commit c804ef9
Show file tree
Hide file tree
Showing 8 changed files with 212 additions and 28 deletions.
72 changes: 45 additions & 27 deletions changelog.md
@@ -1,7 +1,51 @@


## Roll protocol to r1272579 — _2024-03-14T04:25:42.000Z_
###### Diff: [`1af74d1...5b153d7`](https://github.com/ChromeDevTools/devtools-protocol/compare/1af74d1...5b153d7)

```diff
@@ browser_protocol.pdl:2165 @@ experimental domain CSS
returns
CSSLayerData rootLayer

+ # Given a CSS selector text and a style sheet ID, getLocationForSelector
+ # returns an array of locations of the CSS selector in the style sheet.
+ experimental command getLocationForSelector
+ parameters
+ StyleSheetId styleSheetId
+ string selectorText
+ returns
+ array of SourceRange ranges
+
# Starts tracking the given computed styles for updates. The specified array of properties
# replaces the one previously specified. Pass empty array to disable tracking.
# Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.
@@ -10303,6 +10312,22 @@ experimental domain Storage
AttributionReportingEventLevelResult eventLevel
AttributionReportingAggregatableResult aggregatable

+ # A single Related Website Set object.
+ experimental type RelatedWebsiteSet extends object
+ properties
+ # The primary site of this set, along with the ccTLDs if there is any.
+ array of string primarySites
+ # The associated sites of this set, along with the ccTLDs if there is any.
+ array of string associatedSites
+ # The service sites of this set, along with the ccTLDs if there is any.
+ array of string serviceSites
+
+ # Returns the effective Related Website Sets in use by this profile for the browser
+ # session. The effective Related Website Sets will not change during a browser session.
+ experimental command getRelatedWebsiteSets
+ returns
+ array of RelatedWebsiteSet sets
+
# The SystemInfo domain defines methods and events for querying low-level system information.
experimental domain SystemInfo
```

## Roll protocol to r1271979 — _2024-03-13T04:25:43.000Z_
###### Diff: [`08fa435...45b0f6d`](https://github.com/ChromeDevTools/devtools-protocol/compare/08fa435...45b0f6d)
###### Diff: [`08fa435...1af74d1`](https://github.com/ChromeDevTools/devtools-protocol/compare/08fa435...1af74d1)

```diff
@@ browser_protocol.pdl:7735 @@ domain Page
Expand Down Expand Up @@ -11544,30 +11588,4 @@ index 09c420e..bd277eb 100644
returns
# Always set to true. If an error occurs, the response indicates protocol error.
deprecated boolean success
```

## Roll protocol to r942138 — _2021-11-16T14:15:29.000Z_
###### Diff: [`0308368...22bc316`](https://github.com/ChromeDevTools/devtools-protocol/compare/0308368...22bc316)

```diff
@@ browser_protocol.pdl:278 @@ experimental domain Accessibility
# including nodes that are ignored for accessibility.
array of AXNode nodes

+ # The loadComplete event mirrors the load complete event sent by the browser to assistive
+ # technology when the web page has finished loading.
+ experimental event loadComplete
+ parameters
+ # New document root node.
+ AXNode root
+
+ # The nodesUpdated event is sent every time a previously requested node has changed the in tree.
+ experimental event nodesUpdated
+ parameters
+ # Updated node data.
+ array of AXNode nodes
+
experimental domain Animation
depends on Runtime
depends on DOM
```
70 changes: 70 additions & 0 deletions json/browser_protocol.json
Expand Up @@ -4583,6 +4583,30 @@
}
]
},
{
"name": "getLocationForSelector",
"description": "Given a CSS selector text and a style sheet ID, getLocationForSelector\nreturns an array of locations of the CSS selector in the style sheet.",
"experimental": true,
"parameters": [
{
"name": "styleSheetId",
"$ref": "StyleSheetId"
},
{
"name": "selectorText",
"type": "string"
}
],
"returns": [
{
"name": "ranges",
"type": "array",
"items": {
"$ref": "SourceRange"
}
}
]
},
{
"name": "trackComputedStyleUpdates",
"description": "Starts tracking the given computed styles for updates. The specified array of properties\nreplaces the one previously specified. Pass empty array to disable tracking.\nUse takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.\nThe changes to computed style properties are only tracked for nodes pushed to the front-end\nby the DOM agent. If no changes to the tracked properties occur after the node has been pushed\nto the front-end, no updates will be issued for the node.",
Expand Down Expand Up @@ -21075,6 +21099,38 @@
"reportWindowPassed",
"excessiveReports"
]
},
{
"id": "RelatedWebsiteSet",
"description": "A single Related Website Set object.",
"experimental": true,
"type": "object",
"properties": [
{
"name": "primarySites",
"description": "The primary site of this set, along with the ccTLDs if there is any.",
"type": "array",
"items": {
"type": "string"
}
},
{
"name": "associatedSites",
"description": "The associated sites of this set, along with the ccTLDs if there is any.",
"type": "array",
"items": {
"type": "string"
}
},
{
"name": "serviceSites",
"description": "The service sites of this set, along with the ccTLDs if there is any.",
"type": "array",
"items": {
"type": "string"
}
}
]
}
],
"commands": [
Expand Down Expand Up @@ -21570,6 +21626,20 @@
"type": "boolean"
}
]
},
{
"name": "getRelatedWebsiteSets",
"description": "Returns the effective Related Website Sets in use by this profile for the browser\nsession. The effective Related Website Sets will not change during a browser session.",
"experimental": true,
"returns": [
{
"name": "sets",
"type": "array",
"items": {
"$ref": "RelatedWebsiteSet"
}
}
]
}
],
"events": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "devtools-protocol",
"version": "0.0.1271979",
"version": "0.0.1272579",
"description": "The Chrome DevTools Protocol JSON",
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
"author": "The Chromium Authors",
Expand Down
25 changes: 25 additions & 0 deletions pdl/browser_protocol.pdl
Expand Up @@ -2165,6 +2165,15 @@ experimental domain CSS
returns
CSSLayerData rootLayer

# Given a CSS selector text and a style sheet ID, getLocationForSelector
# returns an array of locations of the CSS selector in the style sheet.
experimental command getLocationForSelector
parameters
StyleSheetId styleSheetId
string selectorText
returns
array of SourceRange ranges

# Starts tracking the given computed styles for updates. The specified array of properties
# replaces the one previously specified. Pass empty array to disable tracking.
# Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.
Expand Down Expand Up @@ -10303,6 +10312,22 @@ experimental domain Storage
AttributionReportingEventLevelResult eventLevel
AttributionReportingAggregatableResult aggregatable

# A single Related Website Set object.
experimental type RelatedWebsiteSet extends object
properties
# The primary site of this set, along with the ccTLDs if there is any.
array of string primarySites
# The associated sites of this set, along with the ccTLDs if there is any.
array of string associatedSites
# The service sites of this set, along with the ccTLDs if there is any.
array of string serviceSites

# Returns the effective Related Website Sets in use by this profile for the browser
# session. The effective Related Website Sets will not change during a browser session.
experimental command getRelatedWebsiteSets
returns
array of RelatedWebsiteSet sets

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

Expand Down
16 changes: 16 additions & 0 deletions types/protocol-mapping.d.ts
Expand Up @@ -1780,6 +1780,14 @@ export namespace ProtocolMapping {
paramsType: [Protocol.CSS.GetLayersForNodeRequest];
returnType: Protocol.CSS.GetLayersForNodeResponse;
};
/**
* Given a CSS selector text and a style sheet ID, getLocationForSelector
* returns an array of locations of the CSS selector in the style sheet.
*/
'CSS.getLocationForSelector': {
paramsType: [Protocol.CSS.GetLocationForSelectorRequest];
returnType: Protocol.CSS.GetLocationForSelectorResponse;
};
/**
* Starts tracking the given computed styles for updates. The specified array of properties
* replaces the one previously specified. Pass empty array to disable tracking.
Expand Down Expand Up @@ -4384,6 +4392,14 @@ export namespace ProtocolMapping {
paramsType: [Protocol.Storage.SetAttributionReportingTrackingRequest];
returnType: void;
};
/**
* Returns the effective Related Website Sets in use by this profile for the browser
* session. The effective Related Website Sets will not change during a browser session.
*/
'Storage.getRelatedWebsiteSets': {
paramsType: [];
returnType: Protocol.Storage.GetRelatedWebsiteSetsResponse;
};
/**
* Returns information about the system.
*/
Expand Down
12 changes: 12 additions & 0 deletions types/protocol-proxy-api.d.ts
Expand Up @@ -1042,6 +1042,12 @@ export namespace ProtocolProxyApi {
*/
getLayersForNode(params: Protocol.CSS.GetLayersForNodeRequest): Promise<Protocol.CSS.GetLayersForNodeResponse>;

/**
* Given a CSS selector text and a style sheet ID, getLocationForSelector
* returns an array of locations of the CSS selector in the style sheet.
*/
getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<Protocol.CSS.GetLocationForSelectorResponse>;

/**
* Starts tracking the given computed styles for updates. The specified array of properties
* replaces the one previously specified. Pass empty array to disable tracking.
Expand Down Expand Up @@ -3487,6 +3493,12 @@ export namespace ProtocolProxyApi {
*/
setAttributionReportingTracking(params: Protocol.Storage.SetAttributionReportingTrackingRequest): Promise<void>;

/**
* Returns the effective Related Website Sets in use by this profile for the browser
* session. The effective Related Website Sets will not change during a browser session.
*/
getRelatedWebsiteSets(): Promise<Protocol.Storage.GetRelatedWebsiteSetsResponse>;

/**
* A cache's contents have been modified.
*/
Expand Down
12 changes: 12 additions & 0 deletions types/protocol-tests-proxy-api.d.ts
Expand Up @@ -1108,6 +1108,12 @@ export namespace ProtocolTestsProxyApi {
*/
getLayersForNode(params: Protocol.CSS.GetLayersForNodeRequest): Promise<Protocol.CSS.GetLayersForNodeResponse>;

/**
* Given a CSS selector text and a style sheet ID, getLocationForSelector
* returns an array of locations of the CSS selector in the style sheet.
*/
getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<Protocol.CSS.GetLocationForSelectorResponse>;

/**
* Starts tracking the given computed styles for updates. The specified array of properties
* replaces the one previously specified. Pass empty array to disable tracking.
Expand Down Expand Up @@ -3759,6 +3765,12 @@ export namespace ProtocolTestsProxyApi {
*/
setAttributionReportingTracking(params: Protocol.Storage.SetAttributionReportingTrackingRequest): Promise<void>;

/**
* Returns the effective Related Website Sets in use by this profile for the browser
* session. The effective Related Website Sets will not change during a browser session.
*/
getRelatedWebsiteSets(): Promise<Protocol.Storage.GetRelatedWebsiteSetsResponse>;

/**
* A cache's contents have been modified.
*/
Expand Down
31 changes: 31 additions & 0 deletions types/protocol.d.ts
Expand Up @@ -5403,6 +5403,15 @@ export namespace Protocol {
rootLayer: CSSLayerData;
}

export interface GetLocationForSelectorRequest {
styleSheetId: StyleSheetId;
selectorText: string;
}

export interface GetLocationForSelectorResponse {
ranges: SourceRange[];
}

export interface TrackComputedStyleUpdatesRequest {
propertiesToTrack: CSSComputedStyleProperty[];
}
Expand Down Expand Up @@ -15609,6 +15618,24 @@ export namespace Protocol {

export type AttributionReportingAggregatableResult = ('success' | 'internalError' | 'noCapacityForAttributionDestination' | 'noMatchingSources' | 'excessiveAttributions' | 'excessiveReportingOrigins' | 'noHistograms' | 'insufficientBudget' | 'noMatchingSourceFilterData' | 'notRegistered' | 'prohibitedByBrowserPolicy' | 'deduplicated' | 'reportWindowPassed' | 'excessiveReports');

/**
* A single Related Website Set object.
*/
export interface RelatedWebsiteSet {
/**
* The primary site of this set, along with the ccTLDs if there is any.
*/
primarySites: string[];
/**
* The associated sites of this set, along with the ccTLDs if there is any.
*/
associatedSites: string[];
/**
* The service sites of this set, along with the ccTLDs if there is any.
*/
serviceSites: string[];
}

export interface GetStorageKeyForFrameRequest {
frameId: Page.FrameId;
}
Expand Down Expand Up @@ -15876,6 +15903,10 @@ export namespace Protocol {
enable: boolean;
}

export interface GetRelatedWebsiteSetsResponse {
sets: RelatedWebsiteSet[];
}

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

0 comments on commit c804ef9

Please sign in to comment.