devtools-protocol 0.0.1064177 → 0.0.1065144
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 +152 -1
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +93 -1
- package/types/protocol-mapping.d.ts +12 -0
- package/types/protocol-proxy-api.d.ts +11 -0
- package/types/protocol.d.ts +114 -1
@@ -16203,7 +16203,6 @@
|
|
16203
16203
|
"DedicatedWorkerOrWorklet",
|
16204
16204
|
"OutstandingNetworkRequestOthers",
|
16205
16205
|
"OutstandingIndexedDBTransaction",
|
16206
|
-
"RequestedNotificationsPermission",
|
16207
16206
|
"RequestedMIDIPermission",
|
16208
16207
|
"RequestedAudioCapturePermission",
|
16209
16208
|
"RequestedVideoCapturePermission",
|
@@ -19223,6 +19222,29 @@
|
|
19223
19222
|
}
|
19224
19223
|
]
|
19225
19224
|
},
|
19225
|
+
{
|
19226
|
+
"id": "SharedStorageAccessType",
|
19227
|
+
"description": "Enum of shared storage access types.",
|
19228
|
+
"type": "string",
|
19229
|
+
"enum": [
|
19230
|
+
"documentAddModule",
|
19231
|
+
"documentSelectURL",
|
19232
|
+
"documentRun",
|
19233
|
+
"documentSet",
|
19234
|
+
"documentAppend",
|
19235
|
+
"documentDelete",
|
19236
|
+
"documentClear",
|
19237
|
+
"workletSet",
|
19238
|
+
"workletAppend",
|
19239
|
+
"workletDelete",
|
19240
|
+
"workletClear",
|
19241
|
+
"workletGet",
|
19242
|
+
"workletKeys",
|
19243
|
+
"workletEntries",
|
19244
|
+
"workletLength",
|
19245
|
+
"workletRemainingBudget"
|
19246
|
+
]
|
19247
|
+
},
|
19226
19248
|
{
|
19227
19249
|
"id": "SharedStorageEntry",
|
19228
19250
|
"description": "Struct for a single key-value pair in an origin's shared storage.",
|
@@ -19256,6 +19278,93 @@
|
|
19256
19278
|
"type": "number"
|
19257
19279
|
}
|
19258
19280
|
]
|
19281
|
+
},
|
19282
|
+
{
|
19283
|
+
"id": "SharedStorageReportingMetadata",
|
19284
|
+
"description": "Pair of reporting metadata details for a candidate URL for `selectURL()`.",
|
19285
|
+
"type": "object",
|
19286
|
+
"properties": [
|
19287
|
+
{
|
19288
|
+
"name": "eventType",
|
19289
|
+
"type": "string"
|
19290
|
+
},
|
19291
|
+
{
|
19292
|
+
"name": "reportingUrl",
|
19293
|
+
"type": "string"
|
19294
|
+
}
|
19295
|
+
]
|
19296
|
+
},
|
19297
|
+
{
|
19298
|
+
"id": "SharedStorageUrlWithMetadata",
|
19299
|
+
"description": "Bundles a candidate URL with its reporting metadata.",
|
19300
|
+
"type": "object",
|
19301
|
+
"properties": [
|
19302
|
+
{
|
19303
|
+
"name": "url",
|
19304
|
+
"description": "Spec of candidate URL.",
|
19305
|
+
"type": "string"
|
19306
|
+
},
|
19307
|
+
{
|
19308
|
+
"name": "reportingMetadata",
|
19309
|
+
"description": "Any associated reporting metadata.",
|
19310
|
+
"type": "array",
|
19311
|
+
"items": {
|
19312
|
+
"$ref": "SharedStorageReportingMetadata"
|
19313
|
+
}
|
19314
|
+
}
|
19315
|
+
]
|
19316
|
+
},
|
19317
|
+
{
|
19318
|
+
"id": "SharedStorageAccessParams",
|
19319
|
+
"description": "Bundles the parameters for shared storage access events whose\npresence/absence can vary according to SharedStorageAccessType.",
|
19320
|
+
"type": "object",
|
19321
|
+
"properties": [
|
19322
|
+
{
|
19323
|
+
"name": "scriptSourceUrl",
|
19324
|
+
"description": "Spec of the module script URL.\nPresent only for SharedStorageAccessType.documentAddModule.",
|
19325
|
+
"optional": true,
|
19326
|
+
"type": "string"
|
19327
|
+
},
|
19328
|
+
{
|
19329
|
+
"name": "operationName",
|
19330
|
+
"description": "Name of the registered operation to be run.\nPresent only for SharedStorageAccessType.documentRun and\nSharedStorageAccessType.documentSelectURL.",
|
19331
|
+
"optional": true,
|
19332
|
+
"type": "string"
|
19333
|
+
},
|
19334
|
+
{
|
19335
|
+
"name": "serializedData",
|
19336
|
+
"description": "The operation's serialized data in bytes (converted to a string).\nPresent only for SharedStorageAccessType.documentRun and\nSharedStorageAccessType.documentSelectURL.",
|
19337
|
+
"optional": true,
|
19338
|
+
"type": "string"
|
19339
|
+
},
|
19340
|
+
{
|
19341
|
+
"name": "urlsWithMetadata",
|
19342
|
+
"description": "Array of candidate URLs' specs, along with any associated metadata.\nPresent only for SharedStorageAccessType.documentSelectURL.",
|
19343
|
+
"optional": true,
|
19344
|
+
"type": "array",
|
19345
|
+
"items": {
|
19346
|
+
"$ref": "SharedStorageUrlWithMetadata"
|
19347
|
+
}
|
19348
|
+
},
|
19349
|
+
{
|
19350
|
+
"name": "key",
|
19351
|
+
"description": "Key for a specific entry in an origin's shared storage.\nPresent only for SharedStorageAccessType.documentSet,\nSharedStorageAccessType.documentAppend,\nSharedStorageAccessType.documentDelete,\nSharedStorageAccessType.workletSet,\nSharedStorageAccessType.workletAppend,\nSharedStorageAccessType.workletDelete, and\nSharedStorageAccessType.workletGet.",
|
19352
|
+
"optional": true,
|
19353
|
+
"type": "string"
|
19354
|
+
},
|
19355
|
+
{
|
19356
|
+
"name": "value",
|
19357
|
+
"description": "Value for a specific entry in an origin's shared storage.\nPresent only for SharedStorageAccessType.documentSet,\nSharedStorageAccessType.documentAppend,\nSharedStorageAccessType.workletSet, and\nSharedStorageAccessType.workletAppend.",
|
19358
|
+
"optional": true,
|
19359
|
+
"type": "string"
|
19360
|
+
},
|
19361
|
+
{
|
19362
|
+
"name": "ignoreIfPresent",
|
19363
|
+
"description": "Whether or not to set an entry for a key if that key is already present.\nPresent only for SharedStorageAccessType.documentSet and\nSharedStorageAccessType.workletSet.",
|
19364
|
+
"optional": true,
|
19365
|
+
"type": "boolean"
|
19366
|
+
}
|
19367
|
+
]
|
19259
19368
|
}
|
19260
19369
|
],
|
19261
19370
|
"commands": [
|
@@ -19581,6 +19690,17 @@
|
|
19581
19690
|
}
|
19582
19691
|
}
|
19583
19692
|
]
|
19693
|
+
},
|
19694
|
+
{
|
19695
|
+
"name": "setSharedStorageTracking",
|
19696
|
+
"description": "Enables/disables issuing of sharedStorageAccessed events.",
|
19697
|
+
"experimental": true,
|
19698
|
+
"parameters": [
|
19699
|
+
{
|
19700
|
+
"name": "enable",
|
19701
|
+
"type": "boolean"
|
19702
|
+
}
|
19703
|
+
]
|
19584
19704
|
}
|
19585
19705
|
],
|
19586
19706
|
"events": [
|
@@ -19674,6 +19794,37 @@
|
|
19674
19794
|
"type": "string"
|
19675
19795
|
}
|
19676
19796
|
]
|
19797
|
+
},
|
19798
|
+
{
|
19799
|
+
"name": "sharedStorageAccessed",
|
19800
|
+
"description": "Shared storage was accessed by the associated page.\nThe following parameters are included in all events.",
|
19801
|
+
"parameters": [
|
19802
|
+
{
|
19803
|
+
"name": "accessTime",
|
19804
|
+
"description": "Time of the access.",
|
19805
|
+
"$ref": "Network.TimeSinceEpoch"
|
19806
|
+
},
|
19807
|
+
{
|
19808
|
+
"name": "type",
|
19809
|
+
"description": "Enum value indicating the Shared Storage API method invoked.",
|
19810
|
+
"$ref": "SharedStorageAccessType"
|
19811
|
+
},
|
19812
|
+
{
|
19813
|
+
"name": "mainFrameId",
|
19814
|
+
"description": "DevTools Frame Token for the primary frame tree's root.",
|
19815
|
+
"$ref": "Page.FrameId"
|
19816
|
+
},
|
19817
|
+
{
|
19818
|
+
"name": "ownerOrigin",
|
19819
|
+
"description": "Serialized origin for the context that invoked the Shared Storage API.",
|
19820
|
+
"type": "string"
|
19821
|
+
},
|
19822
|
+
{
|
19823
|
+
"name": "params",
|
19824
|
+
"description": "The sub-parameters warapped by `params` are all optional and their\npresence/absence depends on `type`.",
|
19825
|
+
"$ref": "SharedStorageAccessParams"
|
19826
|
+
}
|
19827
|
+
]
|
19677
19828
|
}
|
19678
19829
|
]
|
19679
19830
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -8359,7 +8359,6 @@ domain Page
|
|
8359
8359
|
DedicatedWorkerOrWorklet
|
8360
8360
|
OutstandingNetworkRequestOthers
|
8361
8361
|
OutstandingIndexedDBTransaction
|
8362
|
-
RequestedNotificationsPermission
|
8363
8362
|
RequestedMIDIPermission
|
8364
8363
|
RequestedAudioCapturePermission
|
8365
8364
|
RequestedVideoCapturePermission
|
@@ -9070,6 +9069,26 @@ experimental domain Storage
|
|
9070
9069
|
array of InterestGroupAd ads
|
9071
9070
|
array of InterestGroupAd adComponents
|
9072
9071
|
|
9072
|
+
# Enum of shared storage access types.
|
9073
|
+
type SharedStorageAccessType extends string
|
9074
|
+
enum
|
9075
|
+
documentAddModule
|
9076
|
+
documentSelectURL
|
9077
|
+
documentRun
|
9078
|
+
documentSet
|
9079
|
+
documentAppend
|
9080
|
+
documentDelete
|
9081
|
+
documentClear
|
9082
|
+
workletSet
|
9083
|
+
workletAppend
|
9084
|
+
workletDelete
|
9085
|
+
workletClear
|
9086
|
+
workletGet
|
9087
|
+
workletKeys
|
9088
|
+
workletEntries
|
9089
|
+
workletLength
|
9090
|
+
workletRemainingBudget
|
9091
|
+
|
9073
9092
|
# Struct for a single key-value pair in an origin's shared storage.
|
9074
9093
|
type SharedStorageEntry extends object
|
9075
9094
|
properties
|
@@ -9083,6 +9102,58 @@ experimental domain Storage
|
|
9083
9102
|
integer length
|
9084
9103
|
number remainingBudget
|
9085
9104
|
|
9105
|
+
# Pair of reporting metadata details for a candidate URL for `selectURL()`.
|
9106
|
+
type SharedStorageReportingMetadata extends object
|
9107
|
+
properties
|
9108
|
+
string eventType
|
9109
|
+
string reportingUrl
|
9110
|
+
|
9111
|
+
# Bundles a candidate URL with its reporting metadata.
|
9112
|
+
type SharedStorageUrlWithMetadata extends object
|
9113
|
+
properties
|
9114
|
+
# Spec of candidate URL.
|
9115
|
+
string url
|
9116
|
+
# Any associated reporting metadata.
|
9117
|
+
array of SharedStorageReportingMetadata reportingMetadata
|
9118
|
+
|
9119
|
+
# Bundles the parameters for shared storage access events whose
|
9120
|
+
# presence/absence can vary according to SharedStorageAccessType.
|
9121
|
+
type SharedStorageAccessParams extends object
|
9122
|
+
properties
|
9123
|
+
# Spec of the module script URL.
|
9124
|
+
# Present only for SharedStorageAccessType.documentAddModule.
|
9125
|
+
optional string scriptSourceUrl
|
9126
|
+
# Name of the registered operation to be run.
|
9127
|
+
# Present only for SharedStorageAccessType.documentRun and
|
9128
|
+
# SharedStorageAccessType.documentSelectURL.
|
9129
|
+
optional string operationName
|
9130
|
+
# The operation's serialized data in bytes (converted to a string).
|
9131
|
+
# Present only for SharedStorageAccessType.documentRun and
|
9132
|
+
# SharedStorageAccessType.documentSelectURL.
|
9133
|
+
optional string serializedData
|
9134
|
+
# Array of candidate URLs' specs, along with any associated metadata.
|
9135
|
+
# Present only for SharedStorageAccessType.documentSelectURL.
|
9136
|
+
optional array of SharedStorageUrlWithMetadata urlsWithMetadata
|
9137
|
+
# Key for a specific entry in an origin's shared storage.
|
9138
|
+
# Present only for SharedStorageAccessType.documentSet,
|
9139
|
+
# SharedStorageAccessType.documentAppend,
|
9140
|
+
# SharedStorageAccessType.documentDelete,
|
9141
|
+
# SharedStorageAccessType.workletSet,
|
9142
|
+
# SharedStorageAccessType.workletAppend,
|
9143
|
+
# SharedStorageAccessType.workletDelete, and
|
9144
|
+
# SharedStorageAccessType.workletGet.
|
9145
|
+
optional string key
|
9146
|
+
# Value for a specific entry in an origin's shared storage.
|
9147
|
+
# Present only for SharedStorageAccessType.documentSet,
|
9148
|
+
# SharedStorageAccessType.documentAppend,
|
9149
|
+
# SharedStorageAccessType.workletSet, and
|
9150
|
+
# SharedStorageAccessType.workletAppend.
|
9151
|
+
optional string value
|
9152
|
+
# Whether or not to set an entry for a key if that key is already present.
|
9153
|
+
# Present only for SharedStorageAccessType.documentSet and
|
9154
|
+
# SharedStorageAccessType.workletSet.
|
9155
|
+
optional boolean ignoreIfPresent
|
9156
|
+
|
9086
9157
|
# Returns a storage key given a frame id.
|
9087
9158
|
command getStorageKeyForFrame
|
9088
9159
|
parameters
|
@@ -9236,6 +9307,11 @@ experimental domain Storage
|
|
9236
9307
|
returns
|
9237
9308
|
array of SharedStorageEntry entries
|
9238
9309
|
|
9310
|
+
# Enables/disables issuing of sharedStorageAccessed events.
|
9311
|
+
experimental command setSharedStorageTracking
|
9312
|
+
parameters
|
9313
|
+
boolean enable
|
9314
|
+
|
9239
9315
|
# A cache's contents have been modified.
|
9240
9316
|
event cacheStorageContentUpdated
|
9241
9317
|
parameters
|
@@ -9278,6 +9354,22 @@ experimental domain Storage
|
|
9278
9354
|
string ownerOrigin
|
9279
9355
|
string name
|
9280
9356
|
|
9357
|
+
# Shared storage was accessed by the associated page.
|
9358
|
+
# The following parameters are included in all events.
|
9359
|
+
event sharedStorageAccessed
|
9360
|
+
parameters
|
9361
|
+
# Time of the access.
|
9362
|
+
Network.TimeSinceEpoch accessTime
|
9363
|
+
# Enum value indicating the Shared Storage API method invoked.
|
9364
|
+
SharedStorageAccessType type
|
9365
|
+
# DevTools Frame Token for the primary frame tree's root.
|
9366
|
+
Page.FrameId mainFrameId
|
9367
|
+
# Serialized origin for the context that invoked the Shared Storage API.
|
9368
|
+
string ownerOrigin
|
9369
|
+
# The sub-parameters warapped by `params` are all optional and their
|
9370
|
+
# presence/absence depends on `type`.
|
9371
|
+
SharedStorageAccessParams params
|
9372
|
+
|
9281
9373
|
# The SystemInfo domain defines methods and events for querying low-level system information.
|
9282
9374
|
experimental domain SystemInfo
|
9283
9375
|
|
@@ -561,6 +561,11 @@ export namespace ProtocolMapping {
|
|
561
561
|
* One of the interest groups was accessed by the associated page.
|
562
562
|
*/
|
563
563
|
'Storage.interestGroupAccessed': [Protocol.Storage.InterestGroupAccessedEvent];
|
564
|
+
/**
|
565
|
+
* Shared storage was accessed by the associated page.
|
566
|
+
* The following parameters are included in all events.
|
567
|
+
*/
|
568
|
+
'Storage.sharedStorageAccessed': [Protocol.Storage.SharedStorageAccessedEvent];
|
564
569
|
/**
|
565
570
|
* Issued when attached to target because of auto-attach or `attachToTarget` command.
|
566
571
|
*/
|
@@ -4108,6 +4113,13 @@ export namespace ProtocolMapping {
|
|
4108
4113
|
paramsType: [Protocol.Storage.GetSharedStorageEntriesRequest];
|
4109
4114
|
returnType: Protocol.Storage.GetSharedStorageEntriesResponse;
|
4110
4115
|
};
|
4116
|
+
/**
|
4117
|
+
* Enables/disables issuing of sharedStorageAccessed events.
|
4118
|
+
*/
|
4119
|
+
'Storage.setSharedStorageTracking': {
|
4120
|
+
paramsType: [Protocol.Storage.SetSharedStorageTrackingRequest];
|
4121
|
+
returnType: void;
|
4122
|
+
};
|
4111
4123
|
/**
|
4112
4124
|
* Returns information about the system.
|
4113
4125
|
*/
|
@@ -3324,6 +3324,11 @@ export namespace ProtocolProxyApi {
|
|
3324
3324
|
*/
|
3325
3325
|
getSharedStorageEntries(params: Protocol.Storage.GetSharedStorageEntriesRequest): Promise<Protocol.Storage.GetSharedStorageEntriesResponse>;
|
3326
3326
|
|
3327
|
+
/**
|
3328
|
+
* Enables/disables issuing of sharedStorageAccessed events.
|
3329
|
+
*/
|
3330
|
+
setSharedStorageTracking(params: Protocol.Storage.SetSharedStorageTrackingRequest): Promise<void>;
|
3331
|
+
|
3327
3332
|
/**
|
3328
3333
|
* A cache's contents have been modified.
|
3329
3334
|
*/
|
@@ -3349,6 +3354,12 @@ export namespace ProtocolProxyApi {
|
|
3349
3354
|
*/
|
3350
3355
|
on(event: 'interestGroupAccessed', listener: (params: Protocol.Storage.InterestGroupAccessedEvent) => void): void;
|
3351
3356
|
|
3357
|
+
/**
|
3358
|
+
* Shared storage was accessed by the associated page.
|
3359
|
+
* The following parameters are included in all events.
|
3360
|
+
*/
|
3361
|
+
on(event: 'sharedStorageAccessed', listener: (params: Protocol.Storage.SharedStorageAccessedEvent) => void): void;
|
3362
|
+
|
3352
3363
|
}
|
3353
3364
|
|
3354
3365
|
export interface SystemInfoApi {
|
package/types/protocol.d.ts
CHANGED
@@ -12797,7 +12797,7 @@ export namespace Protocol {
|
|
12797
12797
|
/**
|
12798
12798
|
* List of not restored reasons for back-forward cache.
|
12799
12799
|
*/
|
12800
|
-
export type BackForwardCacheNotRestoredReason = ('NotPrimaryMainFrame' | 'BackForwardCacheDisabled' | 'RelatedActiveContentsExist' | 'HTTPStatusNotOK' | 'SchemeNotHTTPOrHTTPS' | 'Loading' | 'WasGrantedMediaAccess' | 'DisableForRenderFrameHostCalled' | 'DomainNotAllowed' | 'HTTPMethodNotGET' | 'SubframeIsNavigating' | 'Timeout' | 'CacheLimit' | 'JavaScriptExecution' | 'RendererProcessKilled' | 'RendererProcessCrashed' | 'SchedulerTrackedFeatureUsed' | 'ConflictingBrowsingInstance' | 'CacheFlushed' | 'ServiceWorkerVersionActivation' | 'SessionRestored' | 'ServiceWorkerPostMessage' | 'EnteredBackForwardCacheBeforeServiceWorkerHostAdded' | 'RenderFrameHostReused_SameSite' | 'RenderFrameHostReused_CrossSite' | 'ServiceWorkerClaim' | 'IgnoreEventAndEvict' | 'HaveInnerContents' | 'TimeoutPuttingInCache' | 'BackForwardCacheDisabledByLowMemory' | 'BackForwardCacheDisabledByCommandLine' | 'NetworkRequestDatapipeDrainedAsBytesConsumer' | 'NetworkRequestRedirected' | 'NetworkRequestTimeout' | 'NetworkExceedsBufferLimit' | 'NavigationCancelledWhileRestoring' | 'NotMostRecentNavigationEntry' | 'BackForwardCacheDisabledForPrerender' | 'UserAgentOverrideDiffers' | 'ForegroundCacheLimit' | 'BrowsingInstanceNotSwapped' | 'BackForwardCacheDisabledForDelegate' | 'UnloadHandlerExistsInMainFrame' | 'UnloadHandlerExistsInSubFrame' | 'ServiceWorkerUnregistration' | 'CacheControlNoStore' | 'CacheControlNoStoreCookieModified' | 'CacheControlNoStoreHTTPOnlyCookieModified' | 'NoResponseHead' | 'Unknown' | 'ActivationNavigationsDisallowedForBug1234857' | 'ErrorDocument' | 'FencedFramesEmbedder' | 'WebSocket' | 'WebTransport' | 'WebRTC' | 'MainResourceHasCacheControlNoStore' | 'MainResourceHasCacheControlNoCache' | 'SubresourceHasCacheControlNoStore' | 'SubresourceHasCacheControlNoCache' | 'ContainsPlugins' | 'DocumentLoaded' | 'DedicatedWorkerOrWorklet' | 'OutstandingNetworkRequestOthers' | 'OutstandingIndexedDBTransaction' | '
|
12800
|
+
export type BackForwardCacheNotRestoredReason = ('NotPrimaryMainFrame' | 'BackForwardCacheDisabled' | 'RelatedActiveContentsExist' | 'HTTPStatusNotOK' | 'SchemeNotHTTPOrHTTPS' | 'Loading' | 'WasGrantedMediaAccess' | 'DisableForRenderFrameHostCalled' | 'DomainNotAllowed' | 'HTTPMethodNotGET' | 'SubframeIsNavigating' | 'Timeout' | 'CacheLimit' | 'JavaScriptExecution' | 'RendererProcessKilled' | 'RendererProcessCrashed' | 'SchedulerTrackedFeatureUsed' | 'ConflictingBrowsingInstance' | 'CacheFlushed' | 'ServiceWorkerVersionActivation' | 'SessionRestored' | 'ServiceWorkerPostMessage' | 'EnteredBackForwardCacheBeforeServiceWorkerHostAdded' | 'RenderFrameHostReused_SameSite' | 'RenderFrameHostReused_CrossSite' | 'ServiceWorkerClaim' | 'IgnoreEventAndEvict' | 'HaveInnerContents' | 'TimeoutPuttingInCache' | 'BackForwardCacheDisabledByLowMemory' | 'BackForwardCacheDisabledByCommandLine' | 'NetworkRequestDatapipeDrainedAsBytesConsumer' | 'NetworkRequestRedirected' | 'NetworkRequestTimeout' | 'NetworkExceedsBufferLimit' | 'NavigationCancelledWhileRestoring' | 'NotMostRecentNavigationEntry' | 'BackForwardCacheDisabledForPrerender' | 'UserAgentOverrideDiffers' | 'ForegroundCacheLimit' | 'BrowsingInstanceNotSwapped' | 'BackForwardCacheDisabledForDelegate' | 'UnloadHandlerExistsInMainFrame' | 'UnloadHandlerExistsInSubFrame' | 'ServiceWorkerUnregistration' | 'CacheControlNoStore' | 'CacheControlNoStoreCookieModified' | 'CacheControlNoStoreHTTPOnlyCookieModified' | 'NoResponseHead' | 'Unknown' | 'ActivationNavigationsDisallowedForBug1234857' | 'ErrorDocument' | 'FencedFramesEmbedder' | 'WebSocket' | 'WebTransport' | 'WebRTC' | 'MainResourceHasCacheControlNoStore' | 'MainResourceHasCacheControlNoCache' | 'SubresourceHasCacheControlNoStore' | 'SubresourceHasCacheControlNoCache' | 'ContainsPlugins' | 'DocumentLoaded' | 'DedicatedWorkerOrWorklet' | 'OutstandingNetworkRequestOthers' | 'OutstandingIndexedDBTransaction' | 'RequestedMIDIPermission' | 'RequestedAudioCapturePermission' | 'RequestedVideoCapturePermission' | 'RequestedBackForwardCacheBlockedSensors' | 'RequestedBackgroundWorkPermission' | 'BroadcastChannel' | 'IndexedDBConnection' | 'WebXR' | 'SharedWorker' | 'WebLocks' | 'WebHID' | 'WebShare' | 'RequestedStorageAccessGrant' | 'WebNfc' | 'OutstandingNetworkRequestFetch' | 'OutstandingNetworkRequestXHR' | 'AppBanner' | 'Printing' | 'WebDatabase' | 'PictureInPicture' | 'Portal' | 'SpeechRecognizer' | 'IdleManager' | 'PaymentManager' | 'SpeechSynthesis' | 'KeyboardLock' | 'WebOTPService' | 'OutstandingNetworkRequestDirectSocket' | 'InjectedJavascript' | 'InjectedStyleSheet' | 'KeepaliveRequest' | 'Dummy' | 'ContentSecurityHandler' | 'ContentWebAuthenticationAPI' | 'ContentFileChooser' | 'ContentSerial' | 'ContentFileSystemAccess' | 'ContentMediaDevicesDispatcherHost' | 'ContentWebBluetooth' | 'ContentWebUSB' | 'ContentMediaSessionService' | 'ContentScreenReader' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame');
|
12801
12801
|
|
12802
12802
|
/**
|
12803
12803
|
* Types of not restored reasons for back-forward cache.
|
@@ -14582,6 +14582,11 @@ export namespace Protocol {
|
|
14582
14582
|
adComponents: InterestGroupAd[];
|
14583
14583
|
}
|
14584
14584
|
|
14585
|
+
/**
|
14586
|
+
* Enum of shared storage access types.
|
14587
|
+
*/
|
14588
|
+
export type SharedStorageAccessType = ('documentAddModule' | 'documentSelectURL' | 'documentRun' | 'documentSet' | 'documentAppend' | 'documentDelete' | 'documentClear' | 'workletSet' | 'workletAppend' | 'workletDelete' | 'workletClear' | 'workletGet' | 'workletKeys' | 'workletEntries' | 'workletLength' | 'workletRemainingBudget');
|
14589
|
+
|
14585
14590
|
/**
|
14586
14591
|
* Struct for a single key-value pair in an origin's shared storage.
|
14587
14592
|
*/
|
@@ -14599,6 +14604,82 @@ export namespace Protocol {
|
|
14599
14604
|
remainingBudget: number;
|
14600
14605
|
}
|
14601
14606
|
|
14607
|
+
/**
|
14608
|
+
* Pair of reporting metadata details for a candidate URL for `selectURL()`.
|
14609
|
+
*/
|
14610
|
+
export interface SharedStorageReportingMetadata {
|
14611
|
+
eventType: string;
|
14612
|
+
reportingUrl: string;
|
14613
|
+
}
|
14614
|
+
|
14615
|
+
/**
|
14616
|
+
* Bundles a candidate URL with its reporting metadata.
|
14617
|
+
*/
|
14618
|
+
export interface SharedStorageUrlWithMetadata {
|
14619
|
+
/**
|
14620
|
+
* Spec of candidate URL.
|
14621
|
+
*/
|
14622
|
+
url: string;
|
14623
|
+
/**
|
14624
|
+
* Any associated reporting metadata.
|
14625
|
+
*/
|
14626
|
+
reportingMetadata: SharedStorageReportingMetadata[];
|
14627
|
+
}
|
14628
|
+
|
14629
|
+
/**
|
14630
|
+
* Bundles the parameters for shared storage access events whose
|
14631
|
+
* presence/absence can vary according to SharedStorageAccessType.
|
14632
|
+
*/
|
14633
|
+
export interface SharedStorageAccessParams {
|
14634
|
+
/**
|
14635
|
+
* Spec of the module script URL.
|
14636
|
+
* Present only for SharedStorageAccessType.documentAddModule.
|
14637
|
+
*/
|
14638
|
+
scriptSourceUrl?: string;
|
14639
|
+
/**
|
14640
|
+
* Name of the registered operation to be run.
|
14641
|
+
* Present only for SharedStorageAccessType.documentRun and
|
14642
|
+
* SharedStorageAccessType.documentSelectURL.
|
14643
|
+
*/
|
14644
|
+
operationName?: string;
|
14645
|
+
/**
|
14646
|
+
* The operation's serialized data in bytes (converted to a string).
|
14647
|
+
* Present only for SharedStorageAccessType.documentRun and
|
14648
|
+
* SharedStorageAccessType.documentSelectURL.
|
14649
|
+
*/
|
14650
|
+
serializedData?: string;
|
14651
|
+
/**
|
14652
|
+
* Array of candidate URLs' specs, along with any associated metadata.
|
14653
|
+
* Present only for SharedStorageAccessType.documentSelectURL.
|
14654
|
+
*/
|
14655
|
+
urlsWithMetadata?: SharedStorageUrlWithMetadata[];
|
14656
|
+
/**
|
14657
|
+
* Key for a specific entry in an origin's shared storage.
|
14658
|
+
* Present only for SharedStorageAccessType.documentSet,
|
14659
|
+
* SharedStorageAccessType.documentAppend,
|
14660
|
+
* SharedStorageAccessType.documentDelete,
|
14661
|
+
* SharedStorageAccessType.workletSet,
|
14662
|
+
* SharedStorageAccessType.workletAppend,
|
14663
|
+
* SharedStorageAccessType.workletDelete, and
|
14664
|
+
* SharedStorageAccessType.workletGet.
|
14665
|
+
*/
|
14666
|
+
key?: string;
|
14667
|
+
/**
|
14668
|
+
* Value for a specific entry in an origin's shared storage.
|
14669
|
+
* Present only for SharedStorageAccessType.documentSet,
|
14670
|
+
* SharedStorageAccessType.documentAppend,
|
14671
|
+
* SharedStorageAccessType.workletSet, and
|
14672
|
+
* SharedStorageAccessType.workletAppend.
|
14673
|
+
*/
|
14674
|
+
value?: string;
|
14675
|
+
/**
|
14676
|
+
* Whether or not to set an entry for a key if that key is already present.
|
14677
|
+
* Present only for SharedStorageAccessType.documentSet and
|
14678
|
+
* SharedStorageAccessType.workletSet.
|
14679
|
+
*/
|
14680
|
+
ignoreIfPresent?: boolean;
|
14681
|
+
}
|
14682
|
+
|
14602
14683
|
export interface GetStorageKeyForFrameRequest {
|
14603
14684
|
frameId: Page.FrameId;
|
14604
14685
|
}
|
@@ -14790,6 +14871,10 @@ export namespace Protocol {
|
|
14790
14871
|
entries: SharedStorageEntry[];
|
14791
14872
|
}
|
14792
14873
|
|
14874
|
+
export interface SetSharedStorageTrackingRequest {
|
14875
|
+
enable: boolean;
|
14876
|
+
}
|
14877
|
+
|
14793
14878
|
/**
|
14794
14879
|
* A cache's contents have been modified.
|
14795
14880
|
*/
|
@@ -14859,6 +14944,34 @@ export namespace Protocol {
|
|
14859
14944
|
ownerOrigin: string;
|
14860
14945
|
name: string;
|
14861
14946
|
}
|
14947
|
+
|
14948
|
+
/**
|
14949
|
+
* Shared storage was accessed by the associated page.
|
14950
|
+
* The following parameters are included in all events.
|
14951
|
+
*/
|
14952
|
+
export interface SharedStorageAccessedEvent {
|
14953
|
+
/**
|
14954
|
+
* Time of the access.
|
14955
|
+
*/
|
14956
|
+
accessTime: Network.TimeSinceEpoch;
|
14957
|
+
/**
|
14958
|
+
* Enum value indicating the Shared Storage API method invoked.
|
14959
|
+
*/
|
14960
|
+
type: SharedStorageAccessType;
|
14961
|
+
/**
|
14962
|
+
* DevTools Frame Token for the primary frame tree's root.
|
14963
|
+
*/
|
14964
|
+
mainFrameId: Page.FrameId;
|
14965
|
+
/**
|
14966
|
+
* Serialized origin for the context that invoked the Shared Storage API.
|
14967
|
+
*/
|
14968
|
+
ownerOrigin: string;
|
14969
|
+
/**
|
14970
|
+
* The sub-parameters warapped by `params` are all optional and their
|
14971
|
+
* presence/absence depends on `type`.
|
14972
|
+
*/
|
14973
|
+
params: SharedStorageAccessParams;
|
14974
|
+
}
|
14862
14975
|
}
|
14863
14976
|
|
14864
14977
|
/**
|