devtools-protocol 0.0.1120988 → 0.0.1122063
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 +136 -0
- package/json/js_protocol.json +2 -1
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +58 -0
- package/pdl/js_protocol.pdl +1 -0
- package/types/protocol-mapping.d.ts +24 -0
- package/types/protocol-proxy-api.d.ts +20 -0
- package/types/protocol.d.ts +55 -2
@@ -19084,6 +19084,7 @@
|
|
19084
19084
|
"cache_storage",
|
19085
19085
|
"interest_groups",
|
19086
19086
|
"shared_storage",
|
19087
|
+
"storage_buckets",
|
19087
19088
|
"all",
|
19088
19089
|
"other"
|
19089
19090
|
]
|
@@ -19362,6 +19363,53 @@
|
|
19362
19363
|
"type": "boolean"
|
19363
19364
|
}
|
19364
19365
|
]
|
19366
|
+
},
|
19367
|
+
{
|
19368
|
+
"id": "StorageBucketsDurability",
|
19369
|
+
"type": "string",
|
19370
|
+
"enum": [
|
19371
|
+
"relaxed",
|
19372
|
+
"strict"
|
19373
|
+
]
|
19374
|
+
},
|
19375
|
+
{
|
19376
|
+
"id": "StorageBucketInfo",
|
19377
|
+
"type": "object",
|
19378
|
+
"properties": [
|
19379
|
+
{
|
19380
|
+
"name": "storageKey",
|
19381
|
+
"$ref": "SerializedStorageKey"
|
19382
|
+
},
|
19383
|
+
{
|
19384
|
+
"name": "id",
|
19385
|
+
"type": "string"
|
19386
|
+
},
|
19387
|
+
{
|
19388
|
+
"name": "name",
|
19389
|
+
"type": "string"
|
19390
|
+
},
|
19391
|
+
{
|
19392
|
+
"name": "isDefault",
|
19393
|
+
"type": "boolean"
|
19394
|
+
},
|
19395
|
+
{
|
19396
|
+
"name": "expiration",
|
19397
|
+
"$ref": "Network.TimeSinceEpoch"
|
19398
|
+
},
|
19399
|
+
{
|
19400
|
+
"name": "quota",
|
19401
|
+
"description": "Storage quota (bytes).",
|
19402
|
+
"type": "number"
|
19403
|
+
},
|
19404
|
+
{
|
19405
|
+
"name": "persistent",
|
19406
|
+
"type": "boolean"
|
19407
|
+
},
|
19408
|
+
{
|
19409
|
+
"name": "durability",
|
19410
|
+
"$ref": "StorageBucketsDurability"
|
19411
|
+
}
|
19412
|
+
]
|
19365
19413
|
}
|
19366
19414
|
],
|
19367
19415
|
"commands": [
|
@@ -19782,6 +19830,36 @@
|
|
19782
19830
|
"type": "boolean"
|
19783
19831
|
}
|
19784
19832
|
]
|
19833
|
+
},
|
19834
|
+
{
|
19835
|
+
"name": "setStorageBucketTracking",
|
19836
|
+
"description": "Set tracking for a storage key's buckets.",
|
19837
|
+
"experimental": true,
|
19838
|
+
"parameters": [
|
19839
|
+
{
|
19840
|
+
"name": "storageKey",
|
19841
|
+
"type": "string"
|
19842
|
+
},
|
19843
|
+
{
|
19844
|
+
"name": "enable",
|
19845
|
+
"type": "boolean"
|
19846
|
+
}
|
19847
|
+
]
|
19848
|
+
},
|
19849
|
+
{
|
19850
|
+
"name": "deleteStorageBucket",
|
19851
|
+
"description": "Deletes the Storage Bucket with the given storage key and bucket name.",
|
19852
|
+
"experimental": true,
|
19853
|
+
"parameters": [
|
19854
|
+
{
|
19855
|
+
"name": "storageKey",
|
19856
|
+
"type": "string"
|
19857
|
+
},
|
19858
|
+
{
|
19859
|
+
"name": "bucketName",
|
19860
|
+
"type": "string"
|
19861
|
+
}
|
19862
|
+
]
|
19785
19863
|
}
|
19786
19864
|
],
|
19787
19865
|
"events": [
|
@@ -19916,6 +19994,24 @@
|
|
19916
19994
|
"$ref": "SharedStorageAccessParams"
|
19917
19995
|
}
|
19918
19996
|
]
|
19997
|
+
},
|
19998
|
+
{
|
19999
|
+
"name": "storageBucketCreatedOrUpdated",
|
20000
|
+
"parameters": [
|
20001
|
+
{
|
20002
|
+
"name": "bucket",
|
20003
|
+
"$ref": "StorageBucketInfo"
|
20004
|
+
}
|
20005
|
+
]
|
20006
|
+
},
|
20007
|
+
{
|
20008
|
+
"name": "storageBucketDeleted",
|
20009
|
+
"parameters": [
|
20010
|
+
{
|
20011
|
+
"name": "bucketId",
|
20012
|
+
"type": "string"
|
20013
|
+
}
|
20014
|
+
]
|
19919
20015
|
}
|
19920
20016
|
]
|
19921
20017
|
},
|
@@ -22802,9 +22898,30 @@
|
|
22802
22898
|
"name": "sourceText",
|
22803
22899
|
"description": "Source text of JSON representing the rule set. If it comes from\n<script> tag, it is the textContent of the node. Note that it is\na JSON for valid case.\n\nSee also:\n- https://wicg.github.io/nav-speculation/speculation-rules.html\n- https://github.com/WICG/nav-speculation/blob/main/triggers.md",
|
22804
22900
|
"type": "string"
|
22901
|
+
},
|
22902
|
+
{
|
22903
|
+
"name": "errorType",
|
22904
|
+
"description": "Error information\n`errorMessage` is null iff `errorType` is null.",
|
22905
|
+
"optional": true,
|
22906
|
+
"$ref": "RuleSetErrorType"
|
22907
|
+
},
|
22908
|
+
{
|
22909
|
+
"name": "errorMessage",
|
22910
|
+
"description": "TODO(https://crbug.com/1425354): Replace this property with structured error.",
|
22911
|
+
"deprecated": true,
|
22912
|
+
"optional": true,
|
22913
|
+
"type": "string"
|
22805
22914
|
}
|
22806
22915
|
]
|
22807
22916
|
},
|
22917
|
+
{
|
22918
|
+
"id": "RuleSetErrorType",
|
22919
|
+
"type": "string",
|
22920
|
+
"enum": [
|
22921
|
+
"SourceIsNotJsonObject",
|
22922
|
+
"InvalidRulesSkipped"
|
22923
|
+
]
|
22924
|
+
},
|
22808
22925
|
{
|
22809
22926
|
"id": "SpeculationAction",
|
22810
22927
|
"description": "The type of preloading attempted. It corresponds to\nmojom::SpeculationAction (although PrefetchWithSubresources is omitted as it\nisn't being used by clients).",
|
@@ -23152,6 +23269,16 @@
|
|
23152
23269
|
"items": {
|
23153
23270
|
"$ref": "Account"
|
23154
23271
|
}
|
23272
|
+
},
|
23273
|
+
{
|
23274
|
+
"name": "title",
|
23275
|
+
"description": "These exist primarily so that the caller can verify the\nRP context was used appropriately.",
|
23276
|
+
"type": "string"
|
23277
|
+
},
|
23278
|
+
{
|
23279
|
+
"name": "subtitle",
|
23280
|
+
"optional": true,
|
23281
|
+
"type": "string"
|
23155
23282
|
}
|
23156
23283
|
]
|
23157
23284
|
}
|
@@ -23190,8 +23317,17 @@
|
|
23190
23317
|
{
|
23191
23318
|
"name": "dialogId",
|
23192
23319
|
"type": "string"
|
23320
|
+
},
|
23321
|
+
{
|
23322
|
+
"name": "triggerCooldown",
|
23323
|
+
"optional": true,
|
23324
|
+
"type": "boolean"
|
23193
23325
|
}
|
23194
23326
|
]
|
23327
|
+
},
|
23328
|
+
{
|
23329
|
+
"name": "resetCooldown",
|
23330
|
+
"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."
|
23195
23331
|
}
|
23196
23332
|
]
|
23197
23333
|
}
|
package/json/js_protocol.json
CHANGED
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -8984,6 +8984,7 @@ experimental domain Storage
|
|
8984
8984
|
cache_storage
|
8985
8985
|
interest_groups
|
8986
8986
|
shared_storage
|
8987
|
+
storage_buckets
|
8987
8988
|
all
|
8988
8989
|
other
|
8989
8990
|
|
@@ -9119,6 +9120,23 @@ experimental domain Storage
|
|
9119
9120
|
# SharedStorageAccessType.workletSet.
|
9120
9121
|
optional boolean ignoreIfPresent
|
9121
9122
|
|
9123
|
+
type StorageBucketsDurability extends string
|
9124
|
+
enum
|
9125
|
+
relaxed
|
9126
|
+
strict
|
9127
|
+
|
9128
|
+
type StorageBucketInfo extends object
|
9129
|
+
properties
|
9130
|
+
SerializedStorageKey storageKey
|
9131
|
+
string id
|
9132
|
+
string name
|
9133
|
+
boolean isDefault
|
9134
|
+
Network.TimeSinceEpoch expiration
|
9135
|
+
# Storage quota (bytes).
|
9136
|
+
number quota
|
9137
|
+
boolean persistent
|
9138
|
+
StorageBucketsDurability durability
|
9139
|
+
|
9122
9140
|
# Returns a storage key given a frame id.
|
9123
9141
|
command getStorageKeyForFrame
|
9124
9142
|
parameters
|
@@ -9315,6 +9333,18 @@ experimental domain Storage
|
|
9315
9333
|
parameters
|
9316
9334
|
boolean enable
|
9317
9335
|
|
9336
|
+
# Set tracking for a storage key's buckets.
|
9337
|
+
experimental command setStorageBucketTracking
|
9338
|
+
parameters
|
9339
|
+
string storageKey
|
9340
|
+
boolean enable
|
9341
|
+
|
9342
|
+
# Deletes the Storage Bucket with the given storage key and bucket name.
|
9343
|
+
experimental command deleteStorageBucket
|
9344
|
+
parameters
|
9345
|
+
string storageKey
|
9346
|
+
string bucketName
|
9347
|
+
|
9318
9348
|
# A cache's contents have been modified.
|
9319
9349
|
event cacheStorageContentUpdated
|
9320
9350
|
parameters
|
@@ -9377,6 +9407,14 @@ experimental domain Storage
|
|
9377
9407
|
# presence/absence depends on `type`.
|
9378
9408
|
SharedStorageAccessParams params
|
9379
9409
|
|
9410
|
+
event storageBucketCreatedOrUpdated
|
9411
|
+
parameters
|
9412
|
+
StorageBucketInfo bucket
|
9413
|
+
|
9414
|
+
event storageBucketDeleted
|
9415
|
+
parameters
|
9416
|
+
string bucketId
|
9417
|
+
|
9380
9418
|
# The SystemInfo domain defines methods and events for querying low-level system information.
|
9381
9419
|
experimental domain SystemInfo
|
9382
9420
|
|
@@ -10748,6 +10786,16 @@ experimental domain Preload
|
|
10748
10786
|
# - https://wicg.github.io/nav-speculation/speculation-rules.html
|
10749
10787
|
# - https://github.com/WICG/nav-speculation/blob/main/triggers.md
|
10750
10788
|
string sourceText
|
10789
|
+
# Error information
|
10790
|
+
# `errorMessage` is null iff `errorType` is null.
|
10791
|
+
optional RuleSetErrorType errorType
|
10792
|
+
# TODO(https://crbug.com/1425354): Replace this property with structured error.
|
10793
|
+
deprecated optional string errorMessage
|
10794
|
+
|
10795
|
+
type RuleSetErrorType extends string
|
10796
|
+
enum
|
10797
|
+
SourceIsNotJsonObject
|
10798
|
+
InvalidRulesSkipped
|
10751
10799
|
|
10752
10800
|
# The type of preloading attempted. It corresponds to
|
10753
10801
|
# mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
|
@@ -10941,6 +10989,10 @@ experimental domain FedCm
|
|
10941
10989
|
parameters
|
10942
10990
|
string dialogId
|
10943
10991
|
array of Account accounts
|
10992
|
+
# These exist primarily so that the caller can verify the
|
10993
|
+
# RP context was used appropriately.
|
10994
|
+
string title
|
10995
|
+
optional string subtitle
|
10944
10996
|
|
10945
10997
|
command enable
|
10946
10998
|
parameters
|
@@ -10959,3 +11011,9 @@ experimental domain FedCm
|
|
10959
11011
|
command dismissDialog
|
10960
11012
|
parameters
|
10961
11013
|
string dialogId
|
11014
|
+
optional boolean triggerCooldown
|
11015
|
+
|
11016
|
+
# Resets the cooldown time, if any, to allow the next FedCM call to show
|
11017
|
+
# a dialog even if one was recently dismissed by the user.
|
11018
|
+
command resetCooldown
|
11019
|
+
|
package/pdl/js_protocol.pdl
CHANGED
@@ -556,6 +556,8 @@ export namespace ProtocolMapping {
|
|
556
556
|
* The following parameters are included in all events.
|
557
557
|
*/
|
558
558
|
'Storage.sharedStorageAccessed': [Protocol.Storage.SharedStorageAccessedEvent];
|
559
|
+
'Storage.storageBucketCreatedOrUpdated': [Protocol.Storage.StorageBucketCreatedOrUpdatedEvent];
|
560
|
+
'Storage.storageBucketDeleted': [Protocol.Storage.StorageBucketDeletedEvent];
|
559
561
|
/**
|
560
562
|
* Issued when attached to target because of auto-attach or `attachToTarget` command.
|
561
563
|
*/
|
@@ -4201,6 +4203,20 @@ export namespace ProtocolMapping {
|
|
4201
4203
|
paramsType: [Protocol.Storage.SetSharedStorageTrackingRequest];
|
4202
4204
|
returnType: void;
|
4203
4205
|
};
|
4206
|
+
/**
|
4207
|
+
* Set tracking for a storage key's buckets.
|
4208
|
+
*/
|
4209
|
+
'Storage.setStorageBucketTracking': {
|
4210
|
+
paramsType: [Protocol.Storage.SetStorageBucketTrackingRequest];
|
4211
|
+
returnType: void;
|
4212
|
+
};
|
4213
|
+
/**
|
4214
|
+
* Deletes the Storage Bucket with the given storage key and bucket name.
|
4215
|
+
*/
|
4216
|
+
'Storage.deleteStorageBucket': {
|
4217
|
+
paramsType: [Protocol.Storage.DeleteStorageBucketRequest];
|
4218
|
+
returnType: void;
|
4219
|
+
};
|
4204
4220
|
/**
|
4205
4221
|
* Returns information about the system.
|
4206
4222
|
*/
|
@@ -4666,6 +4682,14 @@ export namespace ProtocolMapping {
|
|
4666
4682
|
paramsType: [Protocol.FedCm.DismissDialogRequest];
|
4667
4683
|
returnType: void;
|
4668
4684
|
};
|
4685
|
+
/**
|
4686
|
+
* Resets the cooldown time, if any, to allow the next FedCM call to show
|
4687
|
+
* a dialog even if one was recently dismissed by the user.
|
4688
|
+
*/
|
4689
|
+
'FedCm.resetCooldown': {
|
4690
|
+
paramsType: [];
|
4691
|
+
returnType: void;
|
4692
|
+
};
|
4669
4693
|
}
|
4670
4694
|
}
|
4671
4695
|
|
@@ -3365,6 +3365,16 @@ export namespace ProtocolProxyApi {
|
|
3365
3365
|
*/
|
3366
3366
|
setSharedStorageTracking(params: Protocol.Storage.SetSharedStorageTrackingRequest): Promise<void>;
|
3367
3367
|
|
3368
|
+
/**
|
3369
|
+
* Set tracking for a storage key's buckets.
|
3370
|
+
*/
|
3371
|
+
setStorageBucketTracking(params: Protocol.Storage.SetStorageBucketTrackingRequest): Promise<void>;
|
3372
|
+
|
3373
|
+
/**
|
3374
|
+
* Deletes the Storage Bucket with the given storage key and bucket name.
|
3375
|
+
*/
|
3376
|
+
deleteStorageBucket(params: Protocol.Storage.DeleteStorageBucketRequest): Promise<void>;
|
3377
|
+
|
3368
3378
|
/**
|
3369
3379
|
* A cache's contents have been modified.
|
3370
3380
|
*/
|
@@ -3396,6 +3406,10 @@ export namespace ProtocolProxyApi {
|
|
3396
3406
|
*/
|
3397
3407
|
on(event: 'sharedStorageAccessed', listener: (params: Protocol.Storage.SharedStorageAccessedEvent) => void): void;
|
3398
3408
|
|
3409
|
+
on(event: 'storageBucketCreatedOrUpdated', listener: (params: Protocol.Storage.StorageBucketCreatedOrUpdatedEvent) => void): void;
|
3410
|
+
|
3411
|
+
on(event: 'storageBucketDeleted', listener: (params: Protocol.Storage.StorageBucketDeletedEvent) => void): void;
|
3412
|
+
|
3399
3413
|
}
|
3400
3414
|
|
3401
3415
|
export interface SystemInfoApi {
|
@@ -3978,6 +3992,12 @@ export namespace ProtocolProxyApi {
|
|
3978
3992
|
|
3979
3993
|
dismissDialog(params: Protocol.FedCm.DismissDialogRequest): Promise<void>;
|
3980
3994
|
|
3995
|
+
/**
|
3996
|
+
* Resets the cooldown time, if any, to allow the next FedCM call to show
|
3997
|
+
* a dialog even if one was recently dismissed by the user.
|
3998
|
+
*/
|
3999
|
+
resetCooldown(): Promise<void>;
|
4000
|
+
|
3981
4001
|
on(event: 'dialogShown', listener: (params: Protocol.FedCm.DialogShownEvent) => void): void;
|
3982
4002
|
|
3983
4003
|
}
|
package/types/protocol.d.ts
CHANGED
@@ -838,6 +838,7 @@ export namespace Protocol {
|
|
838
838
|
Other = 'other',
|
839
839
|
PromiseRejection = 'promiseRejection',
|
840
840
|
XHR = 'XHR',
|
841
|
+
Step = 'step',
|
841
842
|
}
|
842
843
|
|
843
844
|
/**
|
@@ -851,7 +852,7 @@ export namespace Protocol {
|
|
851
852
|
/**
|
852
853
|
* Pause reason. (PausedEventReason enum)
|
853
854
|
*/
|
854
|
-
reason: ('ambiguous' | 'assert' | 'CSPViolation' | 'debugCommand' | 'DOM' | 'EventListener' | 'exception' | 'instrumentation' | 'OOM' | 'other' | 'promiseRejection' | 'XHR');
|
855
|
+
reason: ('ambiguous' | 'assert' | 'CSPViolation' | 'debugCommand' | 'DOM' | 'EventListener' | 'exception' | 'instrumentation' | 'OOM' | 'other' | 'promiseRejection' | 'XHR' | 'step');
|
855
856
|
/**
|
856
857
|
* Object containing break-specific auxiliary properties.
|
857
858
|
*/
|
@@ -14568,7 +14569,7 @@ export namespace Protocol {
|
|
14568
14569
|
/**
|
14569
14570
|
* Enum of possible storage types.
|
14570
14571
|
*/
|
14571
|
-
export type StorageType = ('appcache' | 'cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'interest_groups' | 'shared_storage' | 'all' | 'other');
|
14572
|
+
export type StorageType = ('appcache' | 'cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'interest_groups' | 'shared_storage' | 'storage_buckets' | 'all' | 'other');
|
14572
14573
|
|
14573
14574
|
/**
|
14574
14575
|
* Usage for a storage type.
|
@@ -14722,6 +14723,22 @@ export namespace Protocol {
|
|
14722
14723
|
ignoreIfPresent?: boolean;
|
14723
14724
|
}
|
14724
14725
|
|
14726
|
+
export type StorageBucketsDurability = ('relaxed' | 'strict');
|
14727
|
+
|
14728
|
+
export interface StorageBucketInfo {
|
14729
|
+
storageKey: SerializedStorageKey;
|
14730
|
+
id: string;
|
14731
|
+
name: string;
|
14732
|
+
isDefault: boolean;
|
14733
|
+
expiration: Network.TimeSinceEpoch;
|
14734
|
+
/**
|
14735
|
+
* Storage quota (bytes).
|
14736
|
+
*/
|
14737
|
+
quota: number;
|
14738
|
+
persistent: boolean;
|
14739
|
+
durability: StorageBucketsDurability;
|
14740
|
+
}
|
14741
|
+
|
14725
14742
|
export interface GetStorageKeyForFrameRequest {
|
14726
14743
|
frameId: Page.FrameId;
|
14727
14744
|
}
|
@@ -14955,6 +14972,16 @@ export namespace Protocol {
|
|
14955
14972
|
enable: boolean;
|
14956
14973
|
}
|
14957
14974
|
|
14975
|
+
export interface SetStorageBucketTrackingRequest {
|
14976
|
+
storageKey: string;
|
14977
|
+
enable: boolean;
|
14978
|
+
}
|
14979
|
+
|
14980
|
+
export interface DeleteStorageBucketRequest {
|
14981
|
+
storageKey: string;
|
14982
|
+
bucketName: string;
|
14983
|
+
}
|
14984
|
+
|
14958
14985
|
/**
|
14959
14986
|
* A cache's contents have been modified.
|
14960
14987
|
*/
|
@@ -15060,6 +15087,14 @@ export namespace Protocol {
|
|
15060
15087
|
*/
|
15061
15088
|
params: SharedStorageAccessParams;
|
15062
15089
|
}
|
15090
|
+
|
15091
|
+
export interface StorageBucketCreatedOrUpdatedEvent {
|
15092
|
+
bucket: StorageBucketInfo;
|
15093
|
+
}
|
15094
|
+
|
15095
|
+
export interface StorageBucketDeletedEvent {
|
15096
|
+
bucketId: string;
|
15097
|
+
}
|
15063
15098
|
}
|
15064
15099
|
|
15065
15100
|
/**
|
@@ -16886,8 +16921,19 @@ export namespace Protocol {
|
|
16886
16921
|
* - https://github.com/WICG/nav-speculation/blob/main/triggers.md
|
16887
16922
|
*/
|
16888
16923
|
sourceText: string;
|
16924
|
+
/**
|
16925
|
+
* Error information
|
16926
|
+
* `errorMessage` is null iff `errorType` is null.
|
16927
|
+
*/
|
16928
|
+
errorType?: RuleSetErrorType;
|
16929
|
+
/**
|
16930
|
+
* TODO(https://crbug.com/1425354): Replace this property with structured error.
|
16931
|
+
*/
|
16932
|
+
errorMessage?: string;
|
16889
16933
|
}
|
16890
16934
|
|
16935
|
+
export type RuleSetErrorType = ('SourceIsNotJsonObject' | 'InvalidRulesSkipped');
|
16936
|
+
|
16891
16937
|
/**
|
16892
16938
|
* The type of preloading attempted. It corresponds to
|
16893
16939
|
* mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
|
@@ -17050,11 +17096,18 @@ export namespace Protocol {
|
|
17050
17096
|
|
17051
17097
|
export interface DismissDialogRequest {
|
17052
17098
|
dialogId: string;
|
17099
|
+
triggerCooldown?: boolean;
|
17053
17100
|
}
|
17054
17101
|
|
17055
17102
|
export interface DialogShownEvent {
|
17056
17103
|
dialogId: string;
|
17057
17104
|
accounts: Account[];
|
17105
|
+
/**
|
17106
|
+
* These exist primarily so that the caller can verify the
|
17107
|
+
* RP context was used appropriately.
|
17108
|
+
*/
|
17109
|
+
title: string;
|
17110
|
+
subtitle?: string;
|
17058
17111
|
}
|
17059
17112
|
}
|
17060
17113
|
}
|