Skip to content

Commit

Permalink
Roll protocol to r1335233
Browse files Browse the repository at this point in the history
  • Loading branch information
devtools-bot committed Jul 31, 2024
1 parent a313e79 commit 62fe5c9
Show file tree
Hide file tree
Showing 8 changed files with 198 additions and 31 deletions.
82 changes: 67 additions & 15 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,73 @@


## Roll protocol to r1335233 — _2024-07-31T04:25:01.000Z_
###### Diff: [`a313e79...19a1f45`](https://github.com/ChromeDevTools/devtools-protocol/compare/a313e79...19a1f45)

```diff
@@ browser_protocol.pdl:1102 @@ experimental domain Audits
parameters
InspectorIssue issue

-# Defines commands and events for browser extensions. Available if the client
-# is connected using the --remote-debugging-pipe flag and
-# the --enable-unsafe-extension-debugging flag is set.
+# Defines commands and events for browser extensions.
experimental domain Extensions
+ # Storage areas.
+ type StorageArea extends string
+ enum
+ session
+ local
+ sync
+ managed
# Installs an unpacked extension from the filesystem similar to
# --load-extension CLI flags. Returns extension ID once the extension
- # has been installed.
+ # has been installed. Available if the client is connected using the
+ # --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
+ # flag is set.
command loadUnpacked
parameters
# Absolute file path.
@@ -1116,6 +1123,18 @@ experimental domain Extensions
returns
# Extension id.
string id
+ # Gets data from extension storage in the given `area`. If `keys` is
+ # specified, these are used to filter the result.
+ command getStorageItems
+ parameters
+ # ID of extension.
+ string id
+ # StorageArea to retrieve data from.
+ StorageArea storageArea
+ # Keys to retrieve.
+ optional array of string keys
+ returns
+ object data

# Defines commands and events for Autofill.
experimental domain Autofill
@@ -7964,6 +7983,7 @@ domain Page
experimental type PermissionsPolicyFeature extends string
enum
accelerometer
+ all-screens-capture
ambient-light-sensor
attribution-reporting
autoplay
@@ -12285,6 +12305,7 @@ experimental domain Preload
AllPrerenderingCanceled
WindowClosed
SlowNetwork
+ OtherPrerenderedPageActivated

# Fired when a preload enabled state is updated.
event preloadEnabledStateUpdated
```

## Roll protocol to r1334619 — _2024-07-30T04:27:32.000Z_
###### Diff: [`20344f9...3590b49`](https://github.com/ChromeDevTools/devtools-protocol/compare/20344f9...3590b49)
###### Diff: [`20344f9...a313e79`](https://github.com/ChromeDevTools/devtools-protocol/compare/20344f9...a313e79)

```diff
@@ browser_protocol.pdl:12284 @@ experimental domain Preload
Expand Down Expand Up @@ -12183,18 +12249,4 @@ index 09c420e..bd277eb 100644

type CookieOperation extends string
enum
```

## Roll protocol to r975498 — _2022-02-26T20:15:19.000Z_
###### Diff: [`14c3fe0...a7bfbac`](https://github.com/ChromeDevTools/devtools-protocol/compare/14c3fe0...a7bfbac)

```diff
@@ browser_protocol.pdl:6540 @@ experimental domain Overlay
enum
rgb
hsl
+ hwb
hex

# Configurations for Persistent Grid Highlight
```
52 changes: 49 additions & 3 deletions json/browser_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2177,12 +2177,25 @@
},
{
"domain": "Extensions",
"description": "Defines commands and events for browser extensions. Available if the client\nis connected using the --remote-debugging-pipe flag and\nthe --enable-unsafe-extension-debugging flag is set.",
"description": "Defines commands and events for browser extensions.",
"experimental": true,
"types": [
{
"id": "StorageArea",
"description": "Storage areas.",
"type": "string",
"enum": [
"session",
"local",
"sync",
"managed"
]
}
],
"commands": [
{
"name": "loadUnpacked",
"description": "Installs an unpacked extension from the filesystem similar to\n--load-extension CLI flags. Returns extension ID once the extension\nhas been installed.",
"description": "Installs an unpacked extension from the filesystem similar to\n--load-extension CLI flags. Returns extension ID once the extension\nhas been installed. Available if the client is connected using the\n--remote-debugging-pipe flag and the --enable-unsafe-extension-debugging\nflag is set.",
"parameters": [
{
"name": "path",
Expand All @@ -2197,6 +2210,37 @@
"type": "string"
}
]
},
{
"name": "getStorageItems",
"description": "Gets data from extension storage in the given `area`. If `keys` is\nspecified, these are used to filter the result.",
"parameters": [
{
"name": "id",
"description": "ID of extension.",
"type": "string"
},
{
"name": "storageArea",
"description": "StorageArea to retrieve data from.",
"$ref": "StorageArea"
},
{
"name": "keys",
"description": "Keys to retrieve.",
"optional": true,
"type": "array",
"items": {
"type": "string"
}
}
],
"returns": [
{
"name": "data",
"type": "object"
}
]
}
]
},
Expand Down Expand Up @@ -16978,6 +17022,7 @@
"type": "string",
"enum": [
"accelerometer",
"all-screens-capture",
"ambient-light-sensor",
"attribution-reporting",
"autoplay",
Expand Down Expand Up @@ -26025,7 +26070,8 @@
"JavaScriptInterfaceRemoved",
"AllPrerenderingCanceled",
"WindowClosed",
"SlowNetwork"
"SlowNetwork",
"OtherPrerenderedPageActivated"
]
},
{
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.1334619",
"version": "0.0.1335233",
"description": "The Chrome DevTools Protocol JSON",
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
"author": "The Chromium Authors",
Expand Down
29 changes: 25 additions & 4 deletions pdl/browser_protocol.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -1102,20 +1102,39 @@ experimental domain Audits
parameters
InspectorIssue issue

# Defines commands and events for browser extensions. Available if the client
# is connected using the --remote-debugging-pipe flag and
# the --enable-unsafe-extension-debugging flag is set.
# Defines commands and events for browser extensions.
experimental domain Extensions
# Storage areas.
type StorageArea extends string
enum
session
local
sync
managed
# Installs an unpacked extension from the filesystem similar to
# --load-extension CLI flags. Returns extension ID once the extension
# has been installed.
# has been installed. Available if the client is connected using the
# --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
# flag is set.
command loadUnpacked
parameters
# Absolute file path.
string path
returns
# Extension id.
string id
# Gets data from extension storage in the given `area`. If `keys` is
# specified, these are used to filter the result.
command getStorageItems
parameters
# ID of extension.
string id
# StorageArea to retrieve data from.
StorageArea storageArea
# Keys to retrieve.
optional array of string keys
returns
object data

# Defines commands and events for Autofill.
experimental domain Autofill
Expand Down Expand Up @@ -7964,6 +7983,7 @@ domain Page
experimental type PermissionsPolicyFeature extends string
enum
accelerometer
all-screens-capture
ambient-light-sensor
attribution-reporting
autoplay
Expand Down Expand Up @@ -12285,6 +12305,7 @@ experimental domain Preload
AllPrerenderingCanceled
WindowClosed
SlowNetwork
OtherPrerenderedPageActivated

# Fired when a preload enabled state is updated.
event preloadEnabledStateUpdated
Expand Down
12 changes: 11 additions & 1 deletion types/protocol-mapping.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1509,12 +1509,22 @@ export namespace ProtocolMapping {
/**
* Installs an unpacked extension from the filesystem similar to
* --load-extension CLI flags. Returns extension ID once the extension
* has been installed.
* has been installed. Available if the client is connected using the
* --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
* flag is set.
*/
'Extensions.loadUnpacked': {
paramsType: [Protocol.Extensions.LoadUnpackedRequest];
returnType: Protocol.Extensions.LoadUnpackedResponse;
};
/**
* Gets data from extension storage in the given `area`. If `keys` is
* specified, these are used to filter the result.
*/
'Extensions.getStorageItems': {
paramsType: [Protocol.Extensions.GetStorageItemsRequest];
returnType: Protocol.Extensions.GetStorageItemsResponse;
};
/**
* Trigger autofill on a form identified by the fieldId.
* If the field and related form cannot be autofilled, returns an error.
Expand Down
10 changes: 9 additions & 1 deletion types/protocol-proxy-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -813,10 +813,18 @@ export namespace ProtocolProxyApi {
/**
* Installs an unpacked extension from the filesystem similar to
* --load-extension CLI flags. Returns extension ID once the extension
* has been installed.
* has been installed. Available if the client is connected using the
* --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
* flag is set.
*/
loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<Protocol.Extensions.LoadUnpackedResponse>;

/**
* Gets data from extension storage in the given `area`. If `keys` is
* specified, these are used to filter the result.
*/
getStorageItems(params: Protocol.Extensions.GetStorageItemsRequest): Promise<Protocol.Extensions.GetStorageItemsResponse>;

}

export interface AutofillApi {
Expand Down
10 changes: 9 additions & 1 deletion types/protocol-tests-proxy-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,10 +871,18 @@ export namespace ProtocolTestsProxyApi {
/**
* Installs an unpacked extension from the filesystem similar to
* --load-extension CLI flags. Returns extension ID once the extension
* has been installed.
* has been installed. Available if the client is connected using the
* --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
* flag is set.
*/
loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<{id: number, result: Protocol.Extensions.LoadUnpackedResponse, sessionId: string}>;

/**
* Gets data from extension storage in the given `area`. If `keys` is
* specified, these are used to filter the result.
*/
getStorageItems(params: Protocol.Extensions.GetStorageItemsRequest): Promise<{id: number, result: Protocol.Extensions.GetStorageItemsResponse, sessionId: string}>;

}

export interface AutofillApi {
Expand Down
Loading

0 comments on commit 62fe5c9

Please sign in to comment.