devtools-protocol 0.0.1523305 → 0.0.1525085
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/browser_protocol.json +13 -1
- package/package.json +1 -1
- package/pdl/domains/Browser.pdl +3 -2
- package/pdl/domains/Network.pdl +4 -1
- package/types/protocol-mapping.d.ts +4 -2
- package/types/protocol-proxy-api.d.ts +3 -1
- package/types/protocol-tests-proxy-api.d.ts +3 -1
- package/types/protocol.d.ts +7 -1
@@ -3567,8 +3567,9 @@
|
|
3567
3567
|
},
|
3568
3568
|
{
|
3569
3569
|
"name": "grantPermissions",
|
3570
|
-
"description": "Grant specific permissions to the given origin and reject all others.",
|
3570
|
+
"description": "Grant specific permissions to the given origin and reject all others. Deprecated. Use\nsetPermission instead.",
|
3571
3571
|
"experimental": true,
|
3572
|
+
"deprecated": true,
|
3572
3573
|
"parameters": [
|
3573
3574
|
{
|
3574
3575
|
"name": "permissions",
|
@@ -17571,9 +17572,20 @@
|
|
17571
17572
|
"description": "Blocks URLs from loading.",
|
17572
17573
|
"experimental": true,
|
17573
17574
|
"parameters": [
|
17575
|
+
{
|
17576
|
+
"name": "urlPatterns",
|
17577
|
+
"description": "URL patterns to block. Patterns use the URLPattern constructor string syntax\n(https://urlpattern.spec.whatwg.org/). Example: `*://*:*/*.css`.",
|
17578
|
+
"optional": true,
|
17579
|
+
"type": "array",
|
17580
|
+
"items": {
|
17581
|
+
"type": "string"
|
17582
|
+
}
|
17583
|
+
},
|
17574
17584
|
{
|
17575
17585
|
"name": "urls",
|
17576
17586
|
"description": "URL patterns to block. Wildcards ('*') are allowed.",
|
17587
|
+
"deprecated": true,
|
17588
|
+
"optional": true,
|
17577
17589
|
"type": "array",
|
17578
17590
|
"items": {
|
17579
17591
|
"type": "string"
|
package/package.json
CHANGED
package/pdl/domains/Browser.pdl
CHANGED
@@ -119,8 +119,9 @@ domain Browser
|
|
119
119
|
# Context to override. When omitted, default browser context is used.
|
120
120
|
optional BrowserContextID browserContextId
|
121
121
|
|
122
|
-
# Grant specific permissions to the given origin and reject all others.
|
123
|
-
|
122
|
+
# Grant specific permissions to the given origin and reject all others. Deprecated. Use
|
123
|
+
# setPermission instead.
|
124
|
+
experimental deprecated command grantPermissions
|
124
125
|
parameters
|
125
126
|
array of PermissionType permissions
|
126
127
|
# Origin the permission applies to, all origins if not specified.
|
package/pdl/domains/Network.pdl
CHANGED
@@ -1268,8 +1268,11 @@ domain Network
|
|
1268
1268
|
# Blocks URLs from loading.
|
1269
1269
|
experimental command setBlockedURLs
|
1270
1270
|
parameters
|
1271
|
+
# URL patterns to block. Patterns use the URLPattern constructor string syntax
|
1272
|
+
# (https://urlpattern.spec.whatwg.org/). Example: `*://*:*/*.css`.
|
1273
|
+
optional array of string urlPatterns
|
1271
1274
|
# URL patterns to block. Wildcards ('*') are allowed.
|
1272
|
-
array of string urls
|
1275
|
+
deprecated optional array of string urls
|
1273
1276
|
|
1274
1277
|
# Toggles ignoring of service worker for each request.
|
1275
1278
|
command setBypassServiceWorker
|
@@ -1936,7 +1936,9 @@ export namespace ProtocolMapping {
|
|
1936
1936
|
returnType: void;
|
1937
1937
|
};
|
1938
1938
|
/**
|
1939
|
-
* Grant specific permissions to the given origin and reject all others.
|
1939
|
+
* Grant specific permissions to the given origin and reject all others. Deprecated. Use
|
1940
|
+
* setPermission instead.
|
1941
|
+
* @deprecated
|
1940
1942
|
* @experimental
|
1941
1943
|
*/
|
1942
1944
|
'Browser.grantPermissions': {
|
@@ -4277,7 +4279,7 @@ export namespace ProtocolMapping {
|
|
4277
4279
|
* @experimental
|
4278
4280
|
*/
|
4279
4281
|
'Network.setBlockedURLs': {
|
4280
|
-
paramsType: [Protocol.Network.SetBlockedURLsRequest];
|
4282
|
+
paramsType: [Protocol.Network.SetBlockedURLsRequest?];
|
4281
4283
|
returnType: void;
|
4282
4284
|
};
|
4283
4285
|
/**
|
@@ -1041,7 +1041,9 @@ export namespace ProtocolProxyApi {
|
|
1041
1041
|
setPermission(params: Protocol.Browser.SetPermissionRequest): Promise<void>;
|
1042
1042
|
|
1043
1043
|
/**
|
1044
|
-
* Grant specific permissions to the given origin and reject all others.
|
1044
|
+
* Grant specific permissions to the given origin and reject all others. Deprecated. Use
|
1045
|
+
* setPermission instead.
|
1046
|
+
* @deprecated
|
1045
1047
|
* @experimental
|
1046
1048
|
*/
|
1047
1049
|
grantPermissions(params: Protocol.Browser.GrantPermissionsRequest): Promise<void>;
|
@@ -1111,7 +1111,9 @@ export namespace ProtocolTestsProxyApi {
|
|
1111
1111
|
setPermission(params: Protocol.Browser.SetPermissionRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1112
1112
|
|
1113
1113
|
/**
|
1114
|
-
* Grant specific permissions to the given origin and reject all others.
|
1114
|
+
* Grant specific permissions to the given origin and reject all others. Deprecated. Use
|
1115
|
+
* setPermission instead.
|
1116
|
+
* @deprecated
|
1115
1117
|
* @experimental
|
1116
1118
|
*/
|
1117
1119
|
grantPermissions(params: Protocol.Browser.GrantPermissionsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
package/types/protocol.d.ts
CHANGED
@@ -13814,10 +13814,16 @@ export namespace Protocol {
|
|
13814
13814
|
}
|
13815
13815
|
|
13816
13816
|
export interface SetBlockedURLsRequest {
|
13817
|
+
/**
|
13818
|
+
* URL patterns to block. Patterns use the URLPattern constructor string syntax
|
13819
|
+
* (https://urlpattern.spec.whatwg.org/). Example: `*://*:*\/*.css`.
|
13820
|
+
*/
|
13821
|
+
urlPatterns?: string[];
|
13817
13822
|
/**
|
13818
13823
|
* URL patterns to block. Wildcards ('*') are allowed.
|
13824
|
+
* @deprecated
|
13819
13825
|
*/
|
13820
|
-
urls
|
13826
|
+
urls?: string[];
|
13821
13827
|
}
|
13822
13828
|
|
13823
13829
|
export interface SetBypassServiceWorkerRequest {
|