devtools-protocol 0.0.1304228 → 0.0.1305504
Sign up to get free protection for your applications and to get access to all the features.
@@ -1704,6 +1704,10 @@
|
|
1704
1704
|
{
|
1705
1705
|
"name": "isOptOutTopLevel",
|
1706
1706
|
"type": "boolean"
|
1707
|
+
},
|
1708
|
+
{
|
1709
|
+
"name": "operation",
|
1710
|
+
"$ref": "CookieOperation"
|
1707
1711
|
}
|
1708
1712
|
]
|
1709
1713
|
},
|
@@ -12124,6 +12128,20 @@
|
|
12124
12128
|
"experimental": true,
|
12125
12129
|
"type": "number"
|
12126
12130
|
},
|
12131
|
+
{
|
12132
|
+
"name": "workerRouterEvaluationStart",
|
12133
|
+
"description": "Started ServiceWorker static routing source evaluation.",
|
12134
|
+
"experimental": true,
|
12135
|
+
"optional": true,
|
12136
|
+
"type": "number"
|
12137
|
+
},
|
12138
|
+
{
|
12139
|
+
"name": "workerCacheLookupStart",
|
12140
|
+
"description": "Started cache lookup when the source was evaluated to `cache`.",
|
12141
|
+
"experimental": true,
|
12142
|
+
"optional": true,
|
12143
|
+
"type": "number"
|
12144
|
+
},
|
12127
12145
|
{
|
12128
12146
|
"name": "sendStart",
|
12129
12147
|
"description": "Started sending request.",
|
@@ -12596,6 +12614,12 @@
|
|
12596
12614
|
"description": "The router source of the matched rule. If there is a matched rule, this\nfield will be set, otherwise no value will be set.",
|
12597
12615
|
"optional": true,
|
12598
12616
|
"$ref": "ServiceWorkerRouterSource"
|
12617
|
+
},
|
12618
|
+
{
|
12619
|
+
"name": "actualSourceType",
|
12620
|
+
"description": "The actual router source used.",
|
12621
|
+
"optional": true,
|
12622
|
+
"$ref": "ServiceWorkerRouterSource"
|
12599
12623
|
}
|
12600
12624
|
]
|
12601
12625
|
},
|
@@ -26223,6 +26247,33 @@
|
|
26223
26247
|
"$ref": "Target.TargetID"
|
26224
26248
|
}
|
26225
26249
|
]
|
26250
|
+
},
|
26251
|
+
{
|
26252
|
+
"name": "launchFilesInApp",
|
26253
|
+
"description": "Opens one or more local files from an installed web app identified by its\nmanifestId. The web app needs to have file handlers registered to process\nthe files. The API returns one or more tabs / web contents' based\nTarget.TargetIDs which can be used to attach to via Target.attachToTarget or\nsimilar APIs.\nIf some files in the parameters cannot be handled by the web app, they will\nbe ignored. If none of the files can be handled, this API returns an error.\nIf no files provided as the parameter, this API also returns an error.\n\nAccording to the definition of the file handlers in the manifest file, one\nTarget.TargetID may represent a tab handling one or more files. The order of\nthe returned Target.TargetIDs is also not guaranteed.\n\nTODO(crbug.com/339454034): Check the existences of the input files.",
|
26254
|
+
"parameters": [
|
26255
|
+
{
|
26256
|
+
"name": "manifestId",
|
26257
|
+
"type": "string"
|
26258
|
+
},
|
26259
|
+
{
|
26260
|
+
"name": "files",
|
26261
|
+
"type": "array",
|
26262
|
+
"items": {
|
26263
|
+
"type": "string"
|
26264
|
+
}
|
26265
|
+
}
|
26266
|
+
],
|
26267
|
+
"returns": [
|
26268
|
+
{
|
26269
|
+
"name": "targetIds",
|
26270
|
+
"description": "IDs of the tab targets created as the result.",
|
26271
|
+
"type": "array",
|
26272
|
+
"items": {
|
26273
|
+
"$ref": "Target.TargetID"
|
26274
|
+
}
|
26275
|
+
}
|
26276
|
+
]
|
26226
26277
|
}
|
26227
26278
|
]
|
26228
26279
|
}
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -851,6 +851,7 @@ experimental domain Audits
|
|
851
851
|
array of string allowedSites
|
852
852
|
number optOutPercentage
|
853
853
|
boolean isOptOutTopLevel
|
854
|
+
CookieOperation operation
|
854
855
|
|
855
856
|
type ClientHintIssueReason extends string
|
856
857
|
enum
|
@@ -5589,6 +5590,10 @@ domain Network
|
|
5589
5590
|
experimental number workerFetchStart
|
5590
5591
|
# Settled fetch event respondWith promise.
|
5591
5592
|
experimental number workerRespondWithSettled
|
5593
|
+
# Started ServiceWorker static routing source evaluation.
|
5594
|
+
experimental optional number workerRouterEvaluationStart
|
5595
|
+
# Started cache lookup when the source was evaluated to `cache`.
|
5596
|
+
experimental optional number workerCacheLookupStart
|
5592
5597
|
# Started sending request.
|
5593
5598
|
number sendStart
|
5594
5599
|
# Finished sending request.
|
@@ -5874,6 +5879,8 @@ domain Network
|
|
5874
5879
|
# The router source of the matched rule. If there is a matched rule, this
|
5875
5880
|
# field will be set, otherwise no value will be set.
|
5876
5881
|
optional ServiceWorkerRouterSource matchedSourceType
|
5882
|
+
# The actual router source used.
|
5883
|
+
optional ServiceWorkerRouterSource actualSourceType
|
5877
5884
|
|
5878
5885
|
# HTTP response data.
|
5879
5886
|
type Response extends object
|
@@ -12394,3 +12401,25 @@ experimental domain PWA
|
|
12394
12401
|
returns
|
12395
12402
|
# ID of the tab target created as a result.
|
12396
12403
|
Target.TargetID targetId
|
12404
|
+
|
12405
|
+
# Opens one or more local files from an installed web app identified by its
|
12406
|
+
# manifestId. The web app needs to have file handlers registered to process
|
12407
|
+
# the files. The API returns one or more tabs / web contents' based
|
12408
|
+
# Target.TargetIDs which can be used to attach to via Target.attachToTarget or
|
12409
|
+
# similar APIs.
|
12410
|
+
# If some files in the parameters cannot be handled by the web app, they will
|
12411
|
+
# be ignored. If none of the files can be handled, this API returns an error.
|
12412
|
+
# If no files provided as the parameter, this API also returns an error.
|
12413
|
+
#
|
12414
|
+
# According to the definition of the file handlers in the manifest file, one
|
12415
|
+
# Target.TargetID may represent a tab handling one or more files. The order of
|
12416
|
+
# the returned Target.TargetIDs is also not guaranteed.
|
12417
|
+
#
|
12418
|
+
# TODO(crbug.com/339454034): Check the existences of the input files.
|
12419
|
+
command launchFilesInApp
|
12420
|
+
parameters
|
12421
|
+
string manifestId
|
12422
|
+
array of string files
|
12423
|
+
returns
|
12424
|
+
# IDs of the tab targets created as the result.
|
12425
|
+
array of Target.TargetID targetIds
|
@@ -4992,6 +4992,26 @@ export namespace ProtocolMapping {
|
|
4992
4992
|
paramsType: [Protocol.PWA.LaunchRequest];
|
4993
4993
|
returnType: Protocol.PWA.LaunchResponse;
|
4994
4994
|
};
|
4995
|
+
/**
|
4996
|
+
* Opens one or more local files from an installed web app identified by its
|
4997
|
+
* manifestId. The web app needs to have file handlers registered to process
|
4998
|
+
* the files. The API returns one or more tabs / web contents' based
|
4999
|
+
* Target.TargetIDs which can be used to attach to via Target.attachToTarget or
|
5000
|
+
* similar APIs.
|
5001
|
+
* If some files in the parameters cannot be handled by the web app, they will
|
5002
|
+
* be ignored. If none of the files can be handled, this API returns an error.
|
5003
|
+
* If no files provided as the parameter, this API also returns an error.
|
5004
|
+
*
|
5005
|
+
* According to the definition of the file handlers in the manifest file, one
|
5006
|
+
* Target.TargetID may represent a tab handling one or more files. The order of
|
5007
|
+
* the returned Target.TargetIDs is also not guaranteed.
|
5008
|
+
*
|
5009
|
+
* TODO(crbug.com/339454034): Check the existences of the input files.
|
5010
|
+
*/
|
5011
|
+
'PWA.launchFilesInApp': {
|
5012
|
+
paramsType: [Protocol.PWA.LaunchFilesInAppRequest];
|
5013
|
+
returnType: Protocol.PWA.LaunchFilesInAppResponse;
|
5014
|
+
};
|
4995
5015
|
}
|
4996
5016
|
}
|
4997
5017
|
|
@@ -4261,6 +4261,24 @@ export namespace ProtocolProxyApi {
|
|
4261
4261
|
*/
|
4262
4262
|
launch(params: Protocol.PWA.LaunchRequest): Promise<Protocol.PWA.LaunchResponse>;
|
4263
4263
|
|
4264
|
+
/**
|
4265
|
+
* Opens one or more local files from an installed web app identified by its
|
4266
|
+
* manifestId. The web app needs to have file handlers registered to process
|
4267
|
+
* the files. The API returns one or more tabs / web contents' based
|
4268
|
+
* Target.TargetIDs which can be used to attach to via Target.attachToTarget or
|
4269
|
+
* similar APIs.
|
4270
|
+
* If some files in the parameters cannot be handled by the web app, they will
|
4271
|
+
* be ignored. If none of the files can be handled, this API returns an error.
|
4272
|
+
* If no files provided as the parameter, this API also returns an error.
|
4273
|
+
*
|
4274
|
+
* According to the definition of the file handlers in the manifest file, one
|
4275
|
+
* Target.TargetID may represent a tab handling one or more files. The order of
|
4276
|
+
* the returned Target.TargetIDs is also not guaranteed.
|
4277
|
+
*
|
4278
|
+
* TODO(crbug.com/339454034): Check the existences of the input files.
|
4279
|
+
*/
|
4280
|
+
launchFilesInApp(params: Protocol.PWA.LaunchFilesInAppRequest): Promise<Protocol.PWA.LaunchFilesInAppResponse>;
|
4281
|
+
|
4264
4282
|
}
|
4265
4283
|
}
|
4266
4284
|
|
@@ -4645,6 +4645,24 @@ export namespace ProtocolTestsProxyApi {
|
|
4645
4645
|
*/
|
4646
4646
|
launch(params: Protocol.PWA.LaunchRequest): Promise<{id: number, result: Protocol.PWA.LaunchResponse, sessionId: string}>;
|
4647
4647
|
|
4648
|
+
/**
|
4649
|
+
* Opens one or more local files from an installed web app identified by its
|
4650
|
+
* manifestId. The web app needs to have file handlers registered to process
|
4651
|
+
* the files. The API returns one or more tabs / web contents' based
|
4652
|
+
* Target.TargetIDs which can be used to attach to via Target.attachToTarget or
|
4653
|
+
* similar APIs.
|
4654
|
+
* If some files in the parameters cannot be handled by the web app, they will
|
4655
|
+
* be ignored. If none of the files can be handled, this API returns an error.
|
4656
|
+
* If no files provided as the parameter, this API also returns an error.
|
4657
|
+
*
|
4658
|
+
* According to the definition of the file handlers in the manifest file, one
|
4659
|
+
* Target.TargetID may represent a tab handling one or more files. The order of
|
4660
|
+
* the returned Target.TargetIDs is also not guaranteed.
|
4661
|
+
*
|
4662
|
+
* TODO(crbug.com/339454034): Check the existences of the input files.
|
4663
|
+
*/
|
4664
|
+
launchFilesInApp(params: Protocol.PWA.LaunchFilesInAppRequest): Promise<{id: number, result: Protocol.PWA.LaunchFilesInAppResponse, sessionId: string}>;
|
4665
|
+
|
4648
4666
|
}
|
4649
4667
|
}
|
4650
4668
|
|
package/types/protocol.d.ts
CHANGED
@@ -3564,6 +3564,7 @@ export namespace Protocol {
|
|
3564
3564
|
allowedSites: string[];
|
3565
3565
|
optOutPercentage: number;
|
3566
3566
|
isOptOutTopLevel: boolean;
|
3567
|
+
operation: CookieOperation;
|
3567
3568
|
}
|
3568
3569
|
|
3569
3570
|
export type ClientHintIssueReason = ('MetaTagAllowListInvalidOrigin' | 'MetaTagModifiedHTML');
|
@@ -10155,6 +10156,14 @@ export namespace Protocol {
|
|
10155
10156
|
* Settled fetch event respondWith promise.
|
10156
10157
|
*/
|
10157
10158
|
workerRespondWithSettled: number;
|
10159
|
+
/**
|
10160
|
+
* Started ServiceWorker static routing source evaluation.
|
10161
|
+
*/
|
10162
|
+
workerRouterEvaluationStart?: number;
|
10163
|
+
/**
|
10164
|
+
* Started cache lookup when the source was evaluated to `cache`.
|
10165
|
+
*/
|
10166
|
+
workerCacheLookupStart?: number;
|
10158
10167
|
/**
|
10159
10168
|
* Started sending request.
|
10160
10169
|
*/
|
@@ -10444,6 +10453,10 @@ export namespace Protocol {
|
|
10444
10453
|
* field will be set, otherwise no value will be set.
|
10445
10454
|
*/
|
10446
10455
|
matchedSourceType?: ServiceWorkerRouterSource;
|
10456
|
+
/**
|
10457
|
+
* The actual router source used.
|
10458
|
+
*/
|
10459
|
+
actualSourceType?: ServiceWorkerRouterSource;
|
10447
10460
|
}
|
10448
10461
|
|
10449
10462
|
/**
|
@@ -18556,6 +18569,18 @@ export namespace Protocol {
|
|
18556
18569
|
*/
|
18557
18570
|
targetId: Target.TargetID;
|
18558
18571
|
}
|
18572
|
+
|
18573
|
+
export interface LaunchFilesInAppRequest {
|
18574
|
+
manifestId: string;
|
18575
|
+
files: string[];
|
18576
|
+
}
|
18577
|
+
|
18578
|
+
export interface LaunchFilesInAppResponse {
|
18579
|
+
/**
|
18580
|
+
* IDs of the tab targets created as the result.
|
18581
|
+
*/
|
18582
|
+
targetIds: Target.TargetID[];
|
18583
|
+
}
|
18559
18584
|
}
|
18560
18585
|
}
|
18561
18586
|
|