devtools-protocol 0.0.1061415 → 0.0.1063155
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.
@@ -8523,7 +8523,8 @@
|
|
8523
8523
|
"type": "string",
|
8524
8524
|
"enum": [
|
8525
8525
|
"jpeg",
|
8526
|
-
"png"
|
8526
|
+
"png",
|
8527
|
+
"webp"
|
8527
8528
|
]
|
8528
8529
|
},
|
8529
8530
|
{
|
@@ -8531,6 +8532,12 @@
|
|
8531
8532
|
"description": "Compression quality from range [0..100] (jpeg only).",
|
8532
8533
|
"optional": true,
|
8533
8534
|
"type": "integer"
|
8535
|
+
},
|
8536
|
+
{
|
8537
|
+
"name": "optimizeForSpeed",
|
8538
|
+
"description": "Optimize image encoding for speed, not for resulting size (defaults to false)",
|
8539
|
+
"optional": true,
|
8540
|
+
"type": "boolean"
|
8534
8541
|
}
|
8535
8542
|
]
|
8536
8543
|
}
|
@@ -16325,8 +16332,6 @@
|
|
16325
16332
|
"Activated",
|
16326
16333
|
"Destroyed",
|
16327
16334
|
"LowEndDevice",
|
16328
|
-
"CrossOriginRedirect",
|
16329
|
-
"CrossOriginNavigation",
|
16330
16335
|
"InvalidSchemeRedirect",
|
16331
16336
|
"InvalidSchemeNavigation",
|
16332
16337
|
"InProgressNavigation",
|
@@ -16360,7 +16365,13 @@
|
|
16360
16365
|
"ActivatedBeforeStarted",
|
16361
16366
|
"InactivePageRestriction",
|
16362
16367
|
"StartFailed",
|
16363
|
-
"TimeoutBackgrounded"
|
16368
|
+
"TimeoutBackgrounded",
|
16369
|
+
"CrossSiteRedirect",
|
16370
|
+
"CrossSiteNavigation",
|
16371
|
+
"SameSiteCrossOriginRedirect",
|
16372
|
+
"SameSiteCrossOriginNavigation",
|
16373
|
+
"SameSiteCrossOriginRedirectNotOptIn",
|
16374
|
+
"SameSiteCrossOriginNavigationNotOptIn"
|
16364
16375
|
]
|
16365
16376
|
}
|
16366
16377
|
],
|
@@ -19075,6 +19086,7 @@
|
|
19075
19086
|
"service_workers",
|
19076
19087
|
"cache_storage",
|
19077
19088
|
"interest_groups",
|
19089
|
+
"shared_storage",
|
19078
19090
|
"all",
|
19079
19091
|
"other"
|
19080
19092
|
]
|
@@ -19208,6 +19220,40 @@
|
|
19208
19220
|
}
|
19209
19221
|
}
|
19210
19222
|
]
|
19223
|
+
},
|
19224
|
+
{
|
19225
|
+
"id": "SharedStorageEntry",
|
19226
|
+
"description": "Struct for a single key-value pair in an origin's shared storage.",
|
19227
|
+
"type": "object",
|
19228
|
+
"properties": [
|
19229
|
+
{
|
19230
|
+
"name": "key",
|
19231
|
+
"type": "string"
|
19232
|
+
},
|
19233
|
+
{
|
19234
|
+
"name": "value",
|
19235
|
+
"type": "string"
|
19236
|
+
}
|
19237
|
+
]
|
19238
|
+
},
|
19239
|
+
{
|
19240
|
+
"id": "SharedStorageMetadata",
|
19241
|
+
"description": "Details for an origin's shared storage.",
|
19242
|
+
"type": "object",
|
19243
|
+
"properties": [
|
19244
|
+
{
|
19245
|
+
"name": "creationTime",
|
19246
|
+
"$ref": "Network.TimeSinceEpoch"
|
19247
|
+
},
|
19248
|
+
{
|
19249
|
+
"name": "length",
|
19250
|
+
"type": "integer"
|
19251
|
+
},
|
19252
|
+
{
|
19253
|
+
"name": "remainingBudget",
|
19254
|
+
"type": "number"
|
19255
|
+
}
|
19256
|
+
]
|
19211
19257
|
}
|
19212
19258
|
],
|
19213
19259
|
"commands": [
|
@@ -19496,6 +19542,43 @@
|
|
19496
19542
|
"type": "boolean"
|
19497
19543
|
}
|
19498
19544
|
]
|
19545
|
+
},
|
19546
|
+
{
|
19547
|
+
"name": "getSharedStorageMetadata",
|
19548
|
+
"description": "Gets metadata for an origin's shared storage.",
|
19549
|
+
"experimental": true,
|
19550
|
+
"parameters": [
|
19551
|
+
{
|
19552
|
+
"name": "ownerOrigin",
|
19553
|
+
"type": "string"
|
19554
|
+
}
|
19555
|
+
],
|
19556
|
+
"returns": [
|
19557
|
+
{
|
19558
|
+
"name": "metadata",
|
19559
|
+
"$ref": "SharedStorageMetadata"
|
19560
|
+
}
|
19561
|
+
]
|
19562
|
+
},
|
19563
|
+
{
|
19564
|
+
"name": "getSharedStorageEntries",
|
19565
|
+
"description": "Gets the entries in an given origin's shared storage.",
|
19566
|
+
"experimental": true,
|
19567
|
+
"parameters": [
|
19568
|
+
{
|
19569
|
+
"name": "ownerOrigin",
|
19570
|
+
"type": "string"
|
19571
|
+
}
|
19572
|
+
],
|
19573
|
+
"returns": [
|
19574
|
+
{
|
19575
|
+
"name": "entries",
|
19576
|
+
"type": "array",
|
19577
|
+
"items": {
|
19578
|
+
"$ref": "SharedStorageEntry"
|
19579
|
+
}
|
19580
|
+
}
|
19581
|
+
]
|
19499
19582
|
}
|
19500
19583
|
],
|
19501
19584
|
"events": [
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -3908,8 +3908,11 @@ experimental domain HeadlessExperimental
|
|
3908
3908
|
optional enum format
|
3909
3909
|
jpeg
|
3910
3910
|
png
|
3911
|
+
webp
|
3911
3912
|
# Compression quality from range [0..100] (jpeg only).
|
3912
3913
|
optional integer quality
|
3914
|
+
# Optimize image encoding for speed, not for resulting size (defaults to false)
|
3915
|
+
optional boolean optimizeForSpeed
|
3913
3916
|
|
3914
3917
|
# Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
|
3915
3918
|
# screenshot from the resulting frame. Requires that the target was created with enabled
|
@@ -8388,7 +8391,7 @@ domain Page
|
|
8388
8391
|
InjectedStyleSheet
|
8389
8392
|
KeepaliveRequest
|
8390
8393
|
Dummy
|
8391
|
-
# Disabled for
|
8394
|
+
# Disabled for RenderFrameHost reasons
|
8392
8395
|
# See content/browser/renderer_host/back_forward_cache_disable.h for explanations.
|
8393
8396
|
ContentSecurityHandler
|
8394
8397
|
ContentWebAuthenticationAPI
|
@@ -8467,8 +8470,6 @@ domain Page
|
|
8467
8470
|
Activated
|
8468
8471
|
Destroyed
|
8469
8472
|
LowEndDevice
|
8470
|
-
CrossOriginRedirect
|
8471
|
-
CrossOriginNavigation
|
8472
8473
|
InvalidSchemeRedirect
|
8473
8474
|
InvalidSchemeNavigation
|
8474
8475
|
InProgressNavigation
|
@@ -8505,6 +8506,12 @@ domain Page
|
|
8505
8506
|
InactivePageRestriction
|
8506
8507
|
StartFailed
|
8507
8508
|
TimeoutBackgrounded
|
8509
|
+
CrossSiteRedirect
|
8510
|
+
CrossSiteNavigation
|
8511
|
+
SameSiteCrossOriginRedirect
|
8512
|
+
SameSiteCrossOriginNavigation
|
8513
|
+
SameSiteCrossOriginRedirectNotOptIn
|
8514
|
+
SameSiteCrossOriginNavigationNotOptIn
|
8508
8515
|
|
8509
8516
|
# Fired when a prerender attempt is completed.
|
8510
8517
|
experimental event prerenderAttemptCompleted
|
@@ -9011,6 +9018,7 @@ experimental domain Storage
|
|
9011
9018
|
service_workers
|
9012
9019
|
cache_storage
|
9013
9020
|
interest_groups
|
9021
|
+
shared_storage
|
9014
9022
|
all
|
9015
9023
|
other
|
9016
9024
|
|
@@ -9060,6 +9068,19 @@ experimental domain Storage
|
|
9060
9068
|
array of InterestGroupAd ads
|
9061
9069
|
array of InterestGroupAd adComponents
|
9062
9070
|
|
9071
|
+
# Struct for a single key-value pair in an origin's shared storage.
|
9072
|
+
type SharedStorageEntry extends object
|
9073
|
+
properties
|
9074
|
+
string key
|
9075
|
+
string value
|
9076
|
+
|
9077
|
+
# Details for an origin's shared storage.
|
9078
|
+
type SharedStorageMetadata extends object
|
9079
|
+
properties
|
9080
|
+
Network.TimeSinceEpoch creationTime
|
9081
|
+
integer length
|
9082
|
+
number remainingBudget
|
9083
|
+
|
9063
9084
|
# Returns a storage key given a frame id.
|
9064
9085
|
command getStorageKeyForFrame
|
9065
9086
|
parameters
|
@@ -9199,6 +9220,20 @@ experimental domain Storage
|
|
9199
9220
|
parameters
|
9200
9221
|
boolean enable
|
9201
9222
|
|
9223
|
+
# Gets metadata for an origin's shared storage.
|
9224
|
+
experimental command getSharedStorageMetadata
|
9225
|
+
parameters
|
9226
|
+
string ownerOrigin
|
9227
|
+
returns
|
9228
|
+
SharedStorageMetadata metadata
|
9229
|
+
|
9230
|
+
# Gets the entries in an given origin's shared storage.
|
9231
|
+
experimental command getSharedStorageEntries
|
9232
|
+
parameters
|
9233
|
+
string ownerOrigin
|
9234
|
+
returns
|
9235
|
+
array of SharedStorageEntry entries
|
9236
|
+
|
9202
9237
|
# A cache's contents have been modified.
|
9203
9238
|
event cacheStorageContentUpdated
|
9204
9239
|
parameters
|
@@ -4094,6 +4094,20 @@ export namespace ProtocolMapping {
|
|
4094
4094
|
paramsType: [Protocol.Storage.SetInterestGroupTrackingRequest];
|
4095
4095
|
returnType: void;
|
4096
4096
|
};
|
4097
|
+
/**
|
4098
|
+
* Gets metadata for an origin's shared storage.
|
4099
|
+
*/
|
4100
|
+
'Storage.getSharedStorageMetadata': {
|
4101
|
+
paramsType: [Protocol.Storage.GetSharedStorageMetadataRequest];
|
4102
|
+
returnType: Protocol.Storage.GetSharedStorageMetadataResponse;
|
4103
|
+
};
|
4104
|
+
/**
|
4105
|
+
* Gets the entries in an given origin's shared storage.
|
4106
|
+
*/
|
4107
|
+
'Storage.getSharedStorageEntries': {
|
4108
|
+
paramsType: [Protocol.Storage.GetSharedStorageEntriesRequest];
|
4109
|
+
returnType: Protocol.Storage.GetSharedStorageEntriesResponse;
|
4110
|
+
};
|
4097
4111
|
/**
|
4098
4112
|
* Returns information about the system.
|
4099
4113
|
*/
|
@@ -3314,6 +3314,16 @@ export namespace ProtocolProxyApi {
|
|
3314
3314
|
*/
|
3315
3315
|
setInterestGroupTracking(params: Protocol.Storage.SetInterestGroupTrackingRequest): Promise<void>;
|
3316
3316
|
|
3317
|
+
/**
|
3318
|
+
* Gets metadata for an origin's shared storage.
|
3319
|
+
*/
|
3320
|
+
getSharedStorageMetadata(params: Protocol.Storage.GetSharedStorageMetadataRequest): Promise<Protocol.Storage.GetSharedStorageMetadataResponse>;
|
3321
|
+
|
3322
|
+
/**
|
3323
|
+
* Gets the entries in an given origin's shared storage.
|
3324
|
+
*/
|
3325
|
+
getSharedStorageEntries(params: Protocol.Storage.GetSharedStorageEntriesRequest): Promise<Protocol.Storage.GetSharedStorageEntriesResponse>;
|
3326
|
+
|
3317
3327
|
/**
|
3318
3328
|
* A cache's contents have been modified.
|
3319
3329
|
*/
|
package/types/protocol.d.ts
CHANGED
@@ -7787,6 +7787,7 @@ export namespace Protocol {
|
|
7787
7787
|
export const enum ScreenshotParamsFormat {
|
7788
7788
|
Jpeg = 'jpeg',
|
7789
7789
|
Png = 'png',
|
7790
|
+
Webp = 'webp',
|
7790
7791
|
}
|
7791
7792
|
|
7792
7793
|
/**
|
@@ -7796,11 +7797,15 @@ export namespace Protocol {
|
|
7796
7797
|
/**
|
7797
7798
|
* Image compression format (defaults to png). (ScreenshotParamsFormat enum)
|
7798
7799
|
*/
|
7799
|
-
format?: ('jpeg' | 'png');
|
7800
|
+
format?: ('jpeg' | 'png' | 'webp');
|
7800
7801
|
/**
|
7801
7802
|
* Compression quality from range [0..100] (jpeg only).
|
7802
7803
|
*/
|
7803
7804
|
quality?: integer;
|
7805
|
+
/**
|
7806
|
+
* Optimize image encoding for speed, not for resulting size (defaults to false)
|
7807
|
+
*/
|
7808
|
+
optimizeForSpeed?: boolean;
|
7804
7809
|
}
|
7805
7810
|
|
7806
7811
|
export interface BeginFrameRequest {
|
@@ -12834,7 +12839,7 @@ export namespace Protocol {
|
|
12834
12839
|
/**
|
12835
12840
|
* List of FinalStatus reasons for Prerender2.
|
12836
12841
|
*/
|
12837
|
-
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | '
|
12842
|
+
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirect' | 'CrossSiteNavigation' | 'SameSiteCrossOriginRedirect' | 'SameSiteCrossOriginNavigation' | 'SameSiteCrossOriginRedirectNotOptIn' | 'SameSiteCrossOriginNavigationNotOptIn');
|
12838
12843
|
|
12839
12844
|
export interface AddScriptToEvaluateOnLoadRequest {
|
12840
12845
|
scriptSource: string;
|
@@ -14521,7 +14526,7 @@ export namespace Protocol {
|
|
14521
14526
|
/**
|
14522
14527
|
* Enum of possible storage types.
|
14523
14528
|
*/
|
14524
|
-
export type StorageType = ('appcache' | 'cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'interest_groups' | 'all' | 'other');
|
14529
|
+
export type StorageType = ('appcache' | 'cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'interest_groups' | 'shared_storage' | 'all' | 'other');
|
14525
14530
|
|
14526
14531
|
/**
|
14527
14532
|
* Usage for a storage type.
|
@@ -14577,6 +14582,23 @@ export namespace Protocol {
|
|
14577
14582
|
adComponents: InterestGroupAd[];
|
14578
14583
|
}
|
14579
14584
|
|
14585
|
+
/**
|
14586
|
+
* Struct for a single key-value pair in an origin's shared storage.
|
14587
|
+
*/
|
14588
|
+
export interface SharedStorageEntry {
|
14589
|
+
key: string;
|
14590
|
+
value: string;
|
14591
|
+
}
|
14592
|
+
|
14593
|
+
/**
|
14594
|
+
* Details for an origin's shared storage.
|
14595
|
+
*/
|
14596
|
+
export interface SharedStorageMetadata {
|
14597
|
+
creationTime: Network.TimeSinceEpoch;
|
14598
|
+
length: integer;
|
14599
|
+
remainingBudget: number;
|
14600
|
+
}
|
14601
|
+
|
14580
14602
|
export interface GetStorageKeyForFrameRequest {
|
14581
14603
|
frameId: Page.FrameId;
|
14582
14604
|
}
|
@@ -14752,6 +14774,22 @@ export namespace Protocol {
|
|
14752
14774
|
enable: boolean;
|
14753
14775
|
}
|
14754
14776
|
|
14777
|
+
export interface GetSharedStorageMetadataRequest {
|
14778
|
+
ownerOrigin: string;
|
14779
|
+
}
|
14780
|
+
|
14781
|
+
export interface GetSharedStorageMetadataResponse {
|
14782
|
+
metadata: SharedStorageMetadata;
|
14783
|
+
}
|
14784
|
+
|
14785
|
+
export interface GetSharedStorageEntriesRequest {
|
14786
|
+
ownerOrigin: string;
|
14787
|
+
}
|
14788
|
+
|
14789
|
+
export interface GetSharedStorageEntriesResponse {
|
14790
|
+
entries: SharedStorageEntry[];
|
14791
|
+
}
|
14792
|
+
|
14755
14793
|
/**
|
14756
14794
|
* A cache's contents have been modified.
|
14757
14795
|
*/
|