Skip to content

Commit

Permalink
Roll protocol to r1282316
Browse files Browse the repository at this point in the history
  • Loading branch information
devtools-bot committed Apr 4, 2024
1 parent 5f4d1e6 commit 85c9096
Show file tree
Hide file tree
Showing 8 changed files with 209 additions and 17 deletions.
56 changes: 40 additions & 16 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,46 @@


## Roll protocol to r1282316 — _2024-04-04T04:27:08.000Z_
###### Diff: [`5f4d1e6...0d982b2`](https://github.com/ChromeDevTools/devtools-protocol/compare/5f4d1e6...0d982b2)

```diff
@@ browser_protocol.pdl:12123 @@ experimental domain FedCm
# Resets the cooldown time, if any, to allow the next FedCM call to show
# a dialog even if one was recently dismissed by the user.
command resetCooldown
+
+# This domain allows interacting with the browser to control PWAs.
+experimental domain PWA
+
+ # The following types are the replica of
+ # https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67
+ type FileHandlerAccept extends object
+ properties
+ # New name of the mimetype according to
+ # https://www.iana.org/assignments/media-types/media-types.xhtml
+ string mediaType
+ array of string fileExtensions
+
+ type FileHandler extends object
+ properties
+ string action
+ array of FileHandlerAccept accepts
+ string displayName
+
+ # Returns the following OS state for the given manifest id.
+ command getOsAppState
+ parameters
+ # The id from the webapp's manifest file, commonly it's the url of the
+ # site installing the webapp. See
+ # https://web.dev/learn/pwa/web-app-manifest.
+ string manifestId
+ returns
+ integer badgeCount
+ array of FileHandler fileHandlers
```

## Roll protocol to r1281655 — _2024-04-03T04:26:30.000Z_
###### Diff: [`a0b1761...d2903b6`](https://github.com/ChromeDevTools/devtools-protocol/compare/a0b1761...d2903b6)
###### Diff: [`a0b1761...5f4d1e6`](https://github.com/ChromeDevTools/devtools-protocol/compare/a0b1761...5f4d1e6)

```diff
@@ browser_protocol.pdl:6123 @@ domain Network
Expand Down Expand Up @@ -11598,21 +11637,6 @@ index 09c420e..bd277eb 100644
+ InvalidTriggerPriority
+ InvalidTriggerDedupKey

# Details for issues around "Attribution Reporting API" usage.
# Explainer: https://github.com/WICG/conversion-measurement-api
```

## Roll protocol to r947303 — _2021-12-02T01:15:26.000Z_
###### Diff: [`2a18d25...11ea32a`](https://github.com/ChromeDevTools/devtools-protocol/compare/2a18d25...11ea32a)

```diff
@@ browser_protocol.pdl:703 @@ experimental domain Audits
AttributionUntrustworthyOrigin
AttributionTriggerDataTooLarge
AttributionEventSourceTriggerDataTooLarge
+ InvalidAttributionSourceExpiry
+ InvalidAttributionSourcePriority

# Details for issues around "Attribution Reporting API" usage.
# Explainer: https://github.com/WICG/conversion-measurement-api
```
73 changes: 73 additions & 0 deletions json/browser_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -25579,6 +25579,79 @@
"description": "Resets the cooldown time, if any, to allow the next FedCM call to show\na dialog even if one was recently dismissed by the user."
}
]
},
{
"domain": "PWA",
"description": "This domain allows interacting with the browser to control PWAs.",
"experimental": true,
"types": [
{
"id": "FileHandlerAccept",
"description": "The following types are the replica of\nhttps://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67",
"type": "object",
"properties": [
{
"name": "mediaType",
"description": "New name of the mimetype according to\nhttps://www.iana.org/assignments/media-types/media-types.xhtml",
"type": "string"
},
{
"name": "fileExtensions",
"type": "array",
"items": {
"type": "string"
}
}
]
},
{
"id": "FileHandler",
"type": "object",
"properties": [
{
"name": "action",
"type": "string"
},
{
"name": "accepts",
"type": "array",
"items": {
"$ref": "FileHandlerAccept"
}
},
{
"name": "displayName",
"type": "string"
}
]
}
],
"commands": [
{
"name": "getOsAppState",
"description": "Returns the following OS state for the given manifest id.",
"parameters": [
{
"name": "manifestId",
"description": "The id from the webapp's manifest file, commonly it's the url of the\nsite installing the webapp. See\nhttps://web.dev/learn/pwa/web-app-manifest.",
"type": "string"
}
],
"returns": [
{
"name": "badgeCount",
"type": "integer"
},
{
"name": "fileHandlers",
"type": "array",
"items": {
"$ref": "FileHandler"
}
}
]
}
]
}
]
}
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.1281655",
"version": "0.0.1282316",
"description": "The Chrome DevTools Protocol JSON",
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
"author": "The Chromium Authors",
Expand Down
29 changes: 29 additions & 0 deletions pdl/browser_protocol.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -12123,3 +12123,32 @@ experimental domain FedCm
# Resets the cooldown time, if any, to allow the next FedCM call to show
# a dialog even if one was recently dismissed by the user.
command resetCooldown

# This domain allows interacting with the browser to control PWAs.
experimental domain PWA

# The following types are the replica of
# https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67
type FileHandlerAccept extends object
properties
# New name of the mimetype according to
# https://www.iana.org/assignments/media-types/media-types.xhtml
string mediaType
array of string fileExtensions

type FileHandler extends object
properties
string action
array of FileHandlerAccept accepts
string displayName

# Returns the following OS state for the given manifest id.
command getOsAppState
parameters
# The id from the webapp's manifest file, commonly it's the url of the
# site installing the webapp. See
# https://web.dev/learn/pwa/web-app-manifest.
string manifestId
returns
integer badgeCount
array of FileHandler fileHandlers
7 changes: 7 additions & 0 deletions types/protocol-mapping.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4925,6 +4925,13 @@ export namespace ProtocolMapping {
paramsType: [];
returnType: void;
};
/**
* Returns the following OS state for the given manifest id.
*/
'PWA.getOsAppState': {
paramsType: [Protocol.PWA.GetOsAppStateRequest];
returnType: Protocol.PWA.GetOsAppStateResponse;
};
}
}

Expand Down
10 changes: 10 additions & 0 deletions types/protocol-proxy-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ export namespace ProtocolProxyApi {

FedCm: FedCmApi;

PWA: PWAApi;

}


Expand Down Expand Up @@ -4196,6 +4198,14 @@ export namespace ProtocolProxyApi {
on(event: 'dialogClosed', listener: (params: Protocol.FedCm.DialogClosedEvent) => void): void;

}

export interface PWAApi {
/**
* Returns the following OS state for the given manifest id.
*/
getOsAppState(params: Protocol.PWA.GetOsAppStateRequest): Promise<Protocol.PWA.GetOsAppStateResponse>;

}
}

export default ProtocolProxyApi;
10 changes: 10 additions & 0 deletions types/protocol-tests-proxy-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ export namespace ProtocolTestsProxyApi {

FedCm: FedCmApi;

PWA: PWAApi;

}


Expand Down Expand Up @@ -4578,6 +4580,14 @@ export namespace ProtocolTestsProxyApi {
onceDialogClosed(eventMatcher?: (event: { params: Protocol.FedCm.DialogClosedEvent }) => boolean): Promise<{ params: Protocol.FedCm.DialogClosedEvent }>;

}

export interface PWAApi {
/**
* Returns the following OS state for the given manifest id.
*/
getOsAppState(params: Protocol.PWA.GetOsAppStateRequest): Promise<{id: number, result: Protocol.PWA.GetOsAppStateResponse, sessionId: string}>;

}
}

export default ProtocolTestsProxyApi;
39 changes: 39 additions & 0 deletions types/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18277,6 +18277,45 @@ export namespace Protocol {
dialogId: string;
}
}

/**
* This domain allows interacting with the browser to control PWAs.
*/
export namespace PWA {

/**
* The following types are the replica of
* https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67
*/
export interface FileHandlerAccept {
/**
* New name of the mimetype according to
* https://www.iana.org/assignments/media-types/media-types.xhtml
*/
mediaType: string;
fileExtensions: string[];
}

export interface FileHandler {
action: string;
accepts: FileHandlerAccept[];
displayName: string;
}

export interface GetOsAppStateRequest {
/**
* The id from the webapp's manifest file, commonly it's the url of the
* site installing the webapp. See
* https://web.dev/learn/pwa/web-app-manifest.
*/
manifestId: string;
}

export interface GetOsAppStateResponse {
badgeCount: integer;
fileHandlers: FileHandler[];
}
}
}

export default Protocol;

0 comments on commit 85c9096

Please sign in to comment.