devtools-protocol 0.0.1462568 → 0.0.1464554
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.
@@ -7407,7 +7407,8 @@
|
|
7407
7407
|
"type": "string",
|
7408
7408
|
"enum": [
|
7409
7409
|
"PopoverTarget",
|
7410
|
-
"InterestTarget"
|
7410
|
+
"InterestTarget",
|
7411
|
+
"CommandFor"
|
7411
7412
|
]
|
7412
7413
|
}
|
7413
7414
|
],
|
@@ -22825,6 +22826,12 @@
|
|
22825
22826
|
"optional": true,
|
22826
22827
|
"type": "string"
|
22827
22828
|
},
|
22829
|
+
{
|
22830
|
+
"name": "operationId",
|
22831
|
+
"description": "ID of the operation call.\nPresent only for SharedStorageAccessMethods: run and selectURL.",
|
22832
|
+
"optional": true,
|
22833
|
+
"type": "string"
|
22834
|
+
},
|
22828
22835
|
{
|
22829
22836
|
"name": "keepAlive",
|
22830
22837
|
"description": "Whether or not to keep the worket alive for future run or selectURL\ncalls.\nPresent only for SharedStorageAccessMethods: run and selectURL.",
|
@@ -22877,10 +22884,16 @@
|
|
22877
22884
|
"type": "boolean"
|
22878
22885
|
},
|
22879
22886
|
{
|
22880
|
-
"name": "
|
22881
|
-
"description": "If the method is called on a worklet, or as part of\na worklet script, it will have
|
22887
|
+
"name": "workletOrdinal",
|
22888
|
+
"description": "If the method is called on a shared storage worklet, or as part of\na shared storage worklet script, it will have a number for the\nassociated worklet, denoting the (0-indexed) order of the worklet's\ncreation relative to all other shared storage worklets created by\ndocuments using the current storage partition.\nPresent only for SharedStorageAccessMethods: addModule, createWorklet,\nrun, selectURL, and any other SharedStorageAccessMethod when the\nSharedStorageAccessScope is sharedStorageWorklet.\nTODO(crbug.com/401011862): Pass this only for addModule & createWorklet.",
|
22882
22889
|
"optional": true,
|
22883
|
-
"type": "
|
22890
|
+
"type": "integer"
|
22891
|
+
},
|
22892
|
+
{
|
22893
|
+
"name": "workletTargetId",
|
22894
|
+
"description": "Hex representation of the DevTools token used as the TargetID for the\nassociated shared storage worklet.\nPresent only for SharedStorageAccessMethods: addModule, createWorklet,\nrun, selectURL, and any other SharedStorageAccessMethod when the\nSharedStorageAccessScope is sharedStorageWorklet.",
|
22895
|
+
"optional": true,
|
22896
|
+
"$ref": "Target.TargetID"
|
22884
22897
|
},
|
22885
22898
|
{
|
22886
22899
|
"name": "withLock",
|
@@ -24422,6 +24435,47 @@
|
|
24422
24435
|
}
|
24423
24436
|
]
|
24424
24437
|
},
|
24438
|
+
{
|
24439
|
+
"name": "sharedStorageWorkletOperationExecutionFinished",
|
24440
|
+
"description": "A shared storage run or selectURL operation finished its execution.\nThe following parameters are included in all events.",
|
24441
|
+
"parameters": [
|
24442
|
+
{
|
24443
|
+
"name": "finishedTime",
|
24444
|
+
"description": "Time that the operation finished.",
|
24445
|
+
"$ref": "Network.TimeSinceEpoch"
|
24446
|
+
},
|
24447
|
+
{
|
24448
|
+
"name": "executionTime",
|
24449
|
+
"description": "Time, in microseconds, from start of shared storage JS API call until\nend of operation execution in the worklet.",
|
24450
|
+
"type": "integer"
|
24451
|
+
},
|
24452
|
+
{
|
24453
|
+
"name": "method",
|
24454
|
+
"description": "Enum value indicating the Shared Storage API method invoked.",
|
24455
|
+
"$ref": "SharedStorageAccessMethod"
|
24456
|
+
},
|
24457
|
+
{
|
24458
|
+
"name": "operationId",
|
24459
|
+
"description": "ID of the operation call.",
|
24460
|
+
"type": "string"
|
24461
|
+
},
|
24462
|
+
{
|
24463
|
+
"name": "workletTargetId",
|
24464
|
+
"description": "Hex representation of the DevTools token used as the TargetID for the\nassociated shared storage worklet.",
|
24465
|
+
"$ref": "Target.TargetID"
|
24466
|
+
},
|
24467
|
+
{
|
24468
|
+
"name": "mainFrameId",
|
24469
|
+
"description": "DevTools Frame Token for the primary frame tree's root.",
|
24470
|
+
"$ref": "Page.FrameId"
|
24471
|
+
},
|
24472
|
+
{
|
24473
|
+
"name": "ownerOrigin",
|
24474
|
+
"description": "Serialization of the origin owning the Shared Storage data.",
|
24475
|
+
"type": "string"
|
24476
|
+
}
|
24477
|
+
]
|
24478
|
+
},
|
24425
24479
|
{
|
24426
24480
|
"name": "storageBucketCreatedOrUpdated",
|
24427
24481
|
"parameters": [
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -3513,6 +3513,9 @@ domain DOM
|
|
3513
3513
|
PopoverTarget
|
3514
3514
|
# Get the interest target for a given element.
|
3515
3515
|
InterestTarget
|
3516
|
+
# Get the commandfor target for a given element. In this case, this given
|
3517
|
+
# element can only be an HTMLButtonElement.
|
3518
|
+
CommandFor
|
3516
3519
|
returns
|
3517
3520
|
# NodeId of the element matching the queried relation.
|
3518
3521
|
NodeId nodeId
|
@@ -10800,6 +10803,9 @@ experimental domain Storage
|
|
10800
10803
|
# Name of the registered operation to be run.
|
10801
10804
|
# Present only for SharedStorageAccessMethods: run and selectURL.
|
10802
10805
|
optional string operationName
|
10806
|
+
# ID of the operation call.
|
10807
|
+
# Present only for SharedStorageAccessMethods: run and selectURL.
|
10808
|
+
optional string operationId
|
10803
10809
|
# Whether or not to keep the worket alive for future run or selectURL
|
10804
10810
|
# calls.
|
10805
10811
|
# Present only for SharedStorageAccessMethods: run and selectURL.
|
@@ -10827,12 +10833,22 @@ experimental domain Storage
|
|
10827
10833
|
# Whether or not to set an entry for a key if that key is already present.
|
10828
10834
|
# Present only for SharedStorageAccessMethod: set.
|
10829
10835
|
optional boolean ignoreIfPresent
|
10830
|
-
# If the method is called on a worklet, or as part of
|
10831
|
-
# a worklet script, it will have
|
10836
|
+
# If the method is called on a shared storage worklet, or as part of
|
10837
|
+
# a shared storage worklet script, it will have a number for the
|
10838
|
+
# associated worklet, denoting the (0-indexed) order of the worklet's
|
10839
|
+
# creation relative to all other shared storage worklets created by
|
10840
|
+
# documents using the current storage partition.
|
10841
|
+
# Present only for SharedStorageAccessMethods: addModule, createWorklet,
|
10842
|
+
# run, selectURL, and any other SharedStorageAccessMethod when the
|
10843
|
+
# SharedStorageAccessScope is sharedStorageWorklet.
|
10844
|
+
# TODO(crbug.com/401011862): Pass this only for addModule & createWorklet.
|
10845
|
+
optional integer workletOrdinal
|
10846
|
+
# Hex representation of the DevTools token used as the TargetID for the
|
10847
|
+
# associated shared storage worklet.
|
10832
10848
|
# Present only for SharedStorageAccessMethods: addModule, createWorklet,
|
10833
10849
|
# run, selectURL, and any other SharedStorageAccessMethod when the
|
10834
|
-
# SharedStorageAccessScope is
|
10835
|
-
optional
|
10850
|
+
# SharedStorageAccessScope is sharedStorageWorklet.
|
10851
|
+
optional Target.TargetID workletTargetId
|
10836
10852
|
# Name of the lock to be acquired, if present.
|
10837
10853
|
# Optionally present only for SharedStorageAccessMethods: batchUpdate,
|
10838
10854
|
# set, append, delete, and clear.
|
@@ -11197,6 +11213,27 @@ experimental domain Storage
|
|
11197
11213
|
# presence/absence depends on `type`.
|
11198
11214
|
SharedStorageAccessParams params
|
11199
11215
|
|
11216
|
+
# A shared storage run or selectURL operation finished its execution.
|
11217
|
+
# The following parameters are included in all events.
|
11218
|
+
event sharedStorageWorkletOperationExecutionFinished
|
11219
|
+
parameters
|
11220
|
+
# Time that the operation finished.
|
11221
|
+
Network.TimeSinceEpoch finishedTime
|
11222
|
+
# Time, in microseconds, from start of shared storage JS API call until
|
11223
|
+
# end of operation execution in the worklet.
|
11224
|
+
integer executionTime
|
11225
|
+
# Enum value indicating the Shared Storage API method invoked.
|
11226
|
+
SharedStorageAccessMethod method
|
11227
|
+
# ID of the operation call.
|
11228
|
+
string operationId
|
11229
|
+
# Hex representation of the DevTools token used as the TargetID for the
|
11230
|
+
# associated shared storage worklet.
|
11231
|
+
Target.TargetID workletTargetId
|
11232
|
+
# DevTools Frame Token for the primary frame tree's root.
|
11233
|
+
Page.FrameId mainFrameId
|
11234
|
+
# Serialization of the origin owning the Shared Storage data.
|
11235
|
+
string ownerOrigin
|
11236
|
+
|
11200
11237
|
event storageBucketCreatedOrUpdated
|
11201
11238
|
parameters
|
11202
11239
|
StorageBucketInfo bucketInfo
|
@@ -656,6 +656,11 @@ export namespace ProtocolMapping {
|
|
656
656
|
* The following parameters are included in all events.
|
657
657
|
*/
|
658
658
|
'Storage.sharedStorageAccessed': [Protocol.Storage.SharedStorageAccessedEvent];
|
659
|
+
/**
|
660
|
+
* A shared storage run or selectURL operation finished its execution.
|
661
|
+
* The following parameters are included in all events.
|
662
|
+
*/
|
663
|
+
'Storage.sharedStorageWorkletOperationExecutionFinished': [Protocol.Storage.SharedStorageWorkletOperationExecutionFinishedEvent];
|
659
664
|
'Storage.storageBucketCreatedOrUpdated': [Protocol.Storage.StorageBucketCreatedOrUpdatedEvent];
|
660
665
|
'Storage.storageBucketDeleted': [Protocol.Storage.StorageBucketDeletedEvent];
|
661
666
|
'Storage.attributionReportingSourceRegistered': [Protocol.Storage.AttributionReportingSourceRegisteredEvent];
|
@@ -3852,6 +3852,12 @@ export namespace ProtocolProxyApi {
|
|
3852
3852
|
*/
|
3853
3853
|
on(event: 'sharedStorageAccessed', listener: (params: Protocol.Storage.SharedStorageAccessedEvent) => void): void;
|
3854
3854
|
|
3855
|
+
/**
|
3856
|
+
* A shared storage run or selectURL operation finished its execution.
|
3857
|
+
* The following parameters are included in all events.
|
3858
|
+
*/
|
3859
|
+
on(event: 'sharedStorageWorkletOperationExecutionFinished', listener: (params: Protocol.Storage.SharedStorageWorkletOperationExecutionFinishedEvent) => void): void;
|
3860
|
+
|
3855
3861
|
on(event: 'storageBucketCreatedOrUpdated', listener: (params: Protocol.Storage.StorageBucketCreatedOrUpdatedEvent) => void): void;
|
3856
3862
|
|
3857
3863
|
on(event: 'storageBucketDeleted', listener: (params: Protocol.Storage.StorageBucketDeletedEvent) => void): void;
|
@@ -4176,6 +4176,14 @@ export namespace ProtocolTestsProxyApi {
|
|
4176
4176
|
offSharedStorageAccessed(listener: (event: { params: Protocol.Storage.SharedStorageAccessedEvent }) => void): void;
|
4177
4177
|
onceSharedStorageAccessed(eventMatcher?: (event: { params: Protocol.Storage.SharedStorageAccessedEvent }) => boolean): Promise<{ params: Protocol.Storage.SharedStorageAccessedEvent }>;
|
4178
4178
|
|
4179
|
+
/**
|
4180
|
+
* A shared storage run or selectURL operation finished its execution.
|
4181
|
+
* The following parameters are included in all events.
|
4182
|
+
*/
|
4183
|
+
onSharedStorageWorkletOperationExecutionFinished(listener: (event: { params: Protocol.Storage.SharedStorageWorkletOperationExecutionFinishedEvent }) => void): void;
|
4184
|
+
offSharedStorageWorkletOperationExecutionFinished(listener: (event: { params: Protocol.Storage.SharedStorageWorkletOperationExecutionFinishedEvent }) => void): void;
|
4185
|
+
onceSharedStorageWorkletOperationExecutionFinished(eventMatcher?: (event: { params: Protocol.Storage.SharedStorageWorkletOperationExecutionFinishedEvent }) => boolean): Promise<{ params: Protocol.Storage.SharedStorageWorkletOperationExecutionFinishedEvent }>;
|
4186
|
+
|
4179
4187
|
onStorageBucketCreatedOrUpdated(listener: (event: { params: Protocol.Storage.StorageBucketCreatedOrUpdatedEvent }) => void): void;
|
4180
4188
|
offStorageBucketCreatedOrUpdated(listener: (event: { params: Protocol.Storage.StorageBucketCreatedOrUpdatedEvent }) => void): void;
|
4181
4189
|
onceStorageBucketCreatedOrUpdated(eventMatcher?: (event: { params: Protocol.Storage.StorageBucketCreatedOrUpdatedEvent }) => boolean): Promise<{ params: Protocol.Storage.StorageBucketCreatedOrUpdatedEvent }>;
|
package/types/protocol.d.ts
CHANGED
@@ -7110,6 +7110,7 @@ export namespace Protocol {
|
|
7110
7110
|
export const enum GetElementByRelationRequestRelation {
|
7111
7111
|
PopoverTarget = 'PopoverTarget',
|
7112
7112
|
InterestTarget = 'InterestTarget',
|
7113
|
+
CommandFor = 'CommandFor',
|
7113
7114
|
}
|
7114
7115
|
|
7115
7116
|
export interface GetElementByRelationRequest {
|
@@ -7120,7 +7121,7 @@ export namespace Protocol {
|
|
7120
7121
|
/**
|
7121
7122
|
* Type of relation to get. (GetElementByRelationRequestRelation enum)
|
7122
7123
|
*/
|
7123
|
-
relation: ('PopoverTarget' | 'InterestTarget');
|
7124
|
+
relation: ('PopoverTarget' | 'InterestTarget' | 'CommandFor');
|
7124
7125
|
}
|
7125
7126
|
|
7126
7127
|
export interface GetElementByRelationResponse {
|
@@ -16644,6 +16645,11 @@ export namespace Protocol {
|
|
16644
16645
|
* Present only for SharedStorageAccessMethods: run and selectURL.
|
16645
16646
|
*/
|
16646
16647
|
operationName?: string;
|
16648
|
+
/**
|
16649
|
+
* ID of the operation call.
|
16650
|
+
* Present only for SharedStorageAccessMethods: run and selectURL.
|
16651
|
+
*/
|
16652
|
+
operationId?: string;
|
16647
16653
|
/**
|
16648
16654
|
* Whether or not to keep the worket alive for future run or selectURL
|
16649
16655
|
* calls.
|
@@ -16688,13 +16694,25 @@ export namespace Protocol {
|
|
16688
16694
|
*/
|
16689
16695
|
ignoreIfPresent?: boolean;
|
16690
16696
|
/**
|
16691
|
-
* If the method is called on a worklet, or as part of
|
16692
|
-
* a worklet script, it will have
|
16697
|
+
* If the method is called on a shared storage worklet, or as part of
|
16698
|
+
* a shared storage worklet script, it will have a number for the
|
16699
|
+
* associated worklet, denoting the (0-indexed) order of the worklet's
|
16700
|
+
* creation relative to all other shared storage worklets created by
|
16701
|
+
* documents using the current storage partition.
|
16702
|
+
* Present only for SharedStorageAccessMethods: addModule, createWorklet,
|
16703
|
+
* run, selectURL, and any other SharedStorageAccessMethod when the
|
16704
|
+
* SharedStorageAccessScope is sharedStorageWorklet.
|
16705
|
+
* TODO(crbug.com/401011862): Pass this only for addModule & createWorklet.
|
16706
|
+
*/
|
16707
|
+
workletOrdinal?: integer;
|
16708
|
+
/**
|
16709
|
+
* Hex representation of the DevTools token used as the TargetID for the
|
16710
|
+
* associated shared storage worklet.
|
16693
16711
|
* Present only for SharedStorageAccessMethods: addModule, createWorklet,
|
16694
16712
|
* run, selectURL, and any other SharedStorageAccessMethod when the
|
16695
|
-
* SharedStorageAccessScope is
|
16713
|
+
* SharedStorageAccessScope is sharedStorageWorklet.
|
16696
16714
|
*/
|
16697
|
-
|
16715
|
+
workletTargetId?: Target.TargetID;
|
16698
16716
|
/**
|
16699
16717
|
* Name of the lock to be acquired, if present.
|
16700
16718
|
* Optionally present only for SharedStorageAccessMethods: batchUpdate,
|
@@ -17418,6 +17436,43 @@ export namespace Protocol {
|
|
17418
17436
|
params: SharedStorageAccessParams;
|
17419
17437
|
}
|
17420
17438
|
|
17439
|
+
/**
|
17440
|
+
* A shared storage run or selectURL operation finished its execution.
|
17441
|
+
* The following parameters are included in all events.
|
17442
|
+
*/
|
17443
|
+
export interface SharedStorageWorkletOperationExecutionFinishedEvent {
|
17444
|
+
/**
|
17445
|
+
* Time that the operation finished.
|
17446
|
+
*/
|
17447
|
+
finishedTime: Network.TimeSinceEpoch;
|
17448
|
+
/**
|
17449
|
+
* Time, in microseconds, from start of shared storage JS API call until
|
17450
|
+
* end of operation execution in the worklet.
|
17451
|
+
*/
|
17452
|
+
executionTime: integer;
|
17453
|
+
/**
|
17454
|
+
* Enum value indicating the Shared Storage API method invoked.
|
17455
|
+
*/
|
17456
|
+
method: SharedStorageAccessMethod;
|
17457
|
+
/**
|
17458
|
+
* ID of the operation call.
|
17459
|
+
*/
|
17460
|
+
operationId: string;
|
17461
|
+
/**
|
17462
|
+
* Hex representation of the DevTools token used as the TargetID for the
|
17463
|
+
* associated shared storage worklet.
|
17464
|
+
*/
|
17465
|
+
workletTargetId: Target.TargetID;
|
17466
|
+
/**
|
17467
|
+
* DevTools Frame Token for the primary frame tree's root.
|
17468
|
+
*/
|
17469
|
+
mainFrameId: Page.FrameId;
|
17470
|
+
/**
|
17471
|
+
* Serialization of the origin owning the Shared Storage data.
|
17472
|
+
*/
|
17473
|
+
ownerOrigin: string;
|
17474
|
+
}
|
17475
|
+
|
17421
17476
|
export interface StorageBucketCreatedOrUpdatedEvent {
|
17422
17477
|
bucketInfo: StorageBucketInfo;
|
17423
17478
|
}
|