devtools-protocol 0.0.1583009 → 0.0.1587613
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 +32 -3
- package/package.json +1 -1
- package/pdl/domains/Audits.pdl +12 -0
- package/pdl/domains/Emulation.pdl +2 -1
- package/pdl/domains/Network.pdl +2 -0
- package/types/protocol-mapping.d.ts +2 -1
- package/types/protocol-proxy-api.d.ts +2 -1
- package/types/protocol-tests-proxy-api.d.ts +2 -1
- package/types/protocol.d.ts +14 -1
|
@@ -1183,6 +1183,29 @@
|
|
|
1183
1183
|
}
|
|
1184
1184
|
]
|
|
1185
1185
|
},
|
|
1186
|
+
{
|
|
1187
|
+
"id": "PerformanceIssueType",
|
|
1188
|
+
"type": "string",
|
|
1189
|
+
"enum": [
|
|
1190
|
+
"DocumentCookie"
|
|
1191
|
+
]
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"id": "PerformanceIssueDetails",
|
|
1195
|
+
"description": "Details for a performance issue.",
|
|
1196
|
+
"type": "object",
|
|
1197
|
+
"properties": [
|
|
1198
|
+
{
|
|
1199
|
+
"name": "performanceIssueType",
|
|
1200
|
+
"$ref": "PerformanceIssueType"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"name": "sourceCodeLocation",
|
|
1204
|
+
"optional": true,
|
|
1205
|
+
"$ref": "SourceCodeLocation"
|
|
1206
|
+
}
|
|
1207
|
+
]
|
|
1208
|
+
},
|
|
1186
1209
|
{
|
|
1187
1210
|
"id": "MixedContentResolutionStatus",
|
|
1188
1211
|
"type": "string",
|
|
@@ -2270,7 +2293,8 @@
|
|
|
2270
2293
|
"UnencodedDigestIssue",
|
|
2271
2294
|
"ConnectionAllowlistIssue",
|
|
2272
2295
|
"UserReidentificationIssue",
|
|
2273
|
-
"PermissionElementIssue"
|
|
2296
|
+
"PermissionElementIssue",
|
|
2297
|
+
"PerformanceIssue"
|
|
2274
2298
|
]
|
|
2275
2299
|
},
|
|
2276
2300
|
{
|
|
@@ -2418,6 +2442,11 @@
|
|
|
2418
2442
|
"name": "permissionElementIssueDetails",
|
|
2419
2443
|
"optional": true,
|
|
2420
2444
|
"$ref": "PermissionElementIssueDetails"
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"name": "performanceIssueDetails",
|
|
2448
|
+
"optional": true,
|
|
2449
|
+
"$ref": "PerformanceIssueDetails"
|
|
2421
2450
|
}
|
|
2422
2451
|
]
|
|
2423
2452
|
},
|
|
@@ -11463,7 +11492,7 @@
|
|
|
11463
11492
|
},
|
|
11464
11493
|
{
|
|
11465
11494
|
"name": "getScreenInfos",
|
|
11466
|
-
"description": "Returns device's screen configuration.",
|
|
11495
|
+
"description": "Returns device's screen configuration. In headful mode, the physical screens configuration is returned,\nwhereas in headless mode, a virtual headless screen configuration is provided instead.",
|
|
11467
11496
|
"experimental": true,
|
|
11468
11497
|
"returns": [
|
|
11469
11498
|
{
|
|
@@ -17891,7 +17920,7 @@
|
|
|
17891
17920
|
"parameters": [
|
|
17892
17921
|
{
|
|
17893
17922
|
"name": "maxTotalBufferSize",
|
|
17894
|
-
"description": "Buffer size in bytes to use when preserving network payloads (XHRs, etc).",
|
|
17923
|
+
"description": "Buffer size in bytes to use when preserving network payloads (XHRs, etc).\nThis is the maximum number of bytes that will be collected by this\nDevTools session.",
|
|
17895
17924
|
"experimental": true,
|
|
17896
17925
|
"optional": true,
|
|
17897
17926
|
"type": "integer"
|
package/package.json
CHANGED
package/pdl/domains/Audits.pdl
CHANGED
|
@@ -105,6 +105,16 @@ experimental domain Audits
|
|
|
105
105
|
# The recommended solution to the issue.
|
|
106
106
|
optional CookieIssueInsight insight
|
|
107
107
|
|
|
108
|
+
type PerformanceIssueType extends string
|
|
109
|
+
enum
|
|
110
|
+
DocumentCookie
|
|
111
|
+
|
|
112
|
+
# Details for a performance issue.
|
|
113
|
+
type PerformanceIssueDetails extends object
|
|
114
|
+
properties
|
|
115
|
+
PerformanceIssueType performanceIssueType
|
|
116
|
+
optional SourceCodeLocation sourceCodeLocation
|
|
117
|
+
|
|
108
118
|
type MixedContentResolutionStatus extends string
|
|
109
119
|
enum
|
|
110
120
|
MixedContentBlocked
|
|
@@ -720,6 +730,7 @@ experimental domain Audits
|
|
|
720
730
|
ConnectionAllowlistIssue
|
|
721
731
|
UserReidentificationIssue
|
|
722
732
|
PermissionElementIssue
|
|
733
|
+
PerformanceIssue
|
|
723
734
|
|
|
724
735
|
# This struct holds a list of optional fields with additional information
|
|
725
736
|
# specific to the kind of issue. When adding a new issue code, please also
|
|
@@ -754,6 +765,7 @@ experimental domain Audits
|
|
|
754
765
|
optional ConnectionAllowlistIssueDetails connectionAllowlistIssueDetails
|
|
755
766
|
optional UserReidentificationIssueDetails userReidentificationIssueDetails
|
|
756
767
|
optional PermissionElementIssueDetails permissionElementIssueDetails
|
|
768
|
+
optional PerformanceIssueDetails performanceIssueDetails
|
|
757
769
|
|
|
758
770
|
# A unique id for a DevTools inspector issue. Allows other entities (e.g.
|
|
759
771
|
# exceptions, CDP message, console messages, etc.) to reference an issue.
|
|
@@ -571,7 +571,8 @@ domain Emulation
|
|
|
571
571
|
# of size 100lvh.
|
|
572
572
|
integer difference
|
|
573
573
|
|
|
574
|
-
# Returns device's screen configuration.
|
|
574
|
+
# Returns device's screen configuration. In headful mode, the physical screens configuration is returned,
|
|
575
|
+
# whereas in headless mode, a virtual headless screen configuration is provided instead.
|
|
575
576
|
experimental command getScreenInfos
|
|
576
577
|
returns
|
|
577
578
|
array of ScreenInfo screenInfos
|
package/pdl/domains/Network.pdl
CHANGED
|
@@ -1113,6 +1113,8 @@ domain Network
|
|
|
1113
1113
|
command enable
|
|
1114
1114
|
parameters
|
|
1115
1115
|
# Buffer size in bytes to use when preserving network payloads (XHRs, etc).
|
|
1116
|
+
# This is the maximum number of bytes that will be collected by this
|
|
1117
|
+
# DevTools session.
|
|
1116
1118
|
experimental optional integer maxTotalBufferSize
|
|
1117
1119
|
# Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
|
|
1118
1120
|
experimental optional integer maxResourceBufferSize
|
|
@@ -3562,7 +3562,8 @@ export namespace ProtocolMapping {
|
|
|
3562
3562
|
returnType: void;
|
|
3563
3563
|
};
|
|
3564
3564
|
/**
|
|
3565
|
-
* Returns device's screen configuration.
|
|
3565
|
+
* Returns device's screen configuration. In headful mode, the physical screens configuration is returned,
|
|
3566
|
+
* whereas in headless mode, a virtual headless screen configuration is provided instead.
|
|
3566
3567
|
* @experimental
|
|
3567
3568
|
*/
|
|
3568
3569
|
'Emulation.getScreenInfos': {
|
|
@@ -2366,7 +2366,8 @@ export namespace ProtocolProxyApi {
|
|
|
2366
2366
|
setSmallViewportHeightDifferenceOverride(params: Protocol.Emulation.SetSmallViewportHeightDifferenceOverrideRequest): Promise<void>;
|
|
2367
2367
|
|
|
2368
2368
|
/**
|
|
2369
|
-
* Returns device's screen configuration.
|
|
2369
|
+
* Returns device's screen configuration. In headful mode, the physical screens configuration is returned,
|
|
2370
|
+
* whereas in headless mode, a virtual headless screen configuration is provided instead.
|
|
2370
2371
|
* @experimental
|
|
2371
2372
|
*/
|
|
2372
2373
|
getScreenInfos(): Promise<Protocol.Emulation.GetScreenInfosResponse>;
|
|
@@ -2502,7 +2502,8 @@ export namespace ProtocolTestsProxyApi {
|
|
|
2502
2502
|
setSmallViewportHeightDifferenceOverride(params: Protocol.Emulation.SetSmallViewportHeightDifferenceOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
2503
2503
|
|
|
2504
2504
|
/**
|
|
2505
|
-
* Returns device's screen configuration.
|
|
2505
|
+
* Returns device's screen configuration. In headful mode, the physical screens configuration is returned,
|
|
2506
|
+
* whereas in headless mode, a virtual headless screen configuration is provided instead.
|
|
2506
2507
|
* @experimental
|
|
2507
2508
|
*/
|
|
2508
2509
|
getScreenInfos(): Promise<{id: number, result: Protocol.Emulation.GetScreenInfosResponse, sessionId: string}>;
|
package/types/protocol.d.ts
CHANGED
|
@@ -3505,6 +3505,16 @@ export namespace Protocol {
|
|
|
3505
3505
|
insight?: CookieIssueInsight;
|
|
3506
3506
|
}
|
|
3507
3507
|
|
|
3508
|
+
export type PerformanceIssueType = ('DocumentCookie');
|
|
3509
|
+
|
|
3510
|
+
/**
|
|
3511
|
+
* Details for a performance issue.
|
|
3512
|
+
*/
|
|
3513
|
+
export interface PerformanceIssueDetails {
|
|
3514
|
+
performanceIssueType: PerformanceIssueType;
|
|
3515
|
+
sourceCodeLocation?: SourceCodeLocation;
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3508
3518
|
export type MixedContentResolutionStatus = ('MixedContentBlocked' | 'MixedContentAutomaticallyUpgraded' | 'MixedContentWarning');
|
|
3509
3519
|
|
|
3510
3520
|
export type MixedContentResourceType = ('AttributionSrc' | 'Audio' | 'Beacon' | 'CSPReport' | 'Download' | 'EventSource' | 'Favicon' | 'Font' | 'Form' | 'Frame' | 'Image' | 'Import' | 'JSON' | 'Manifest' | 'Ping' | 'PluginData' | 'PluginResource' | 'Prefetch' | 'Resource' | 'Script' | 'ServiceWorker' | 'SharedWorker' | 'SpeculationRules' | 'Stylesheet' | 'Track' | 'Video' | 'Worker' | 'XMLHttpRequest' | 'XSLT');
|
|
@@ -3931,7 +3941,7 @@ export namespace Protocol {
|
|
|
3931
3941
|
* optional fields in InspectorIssueDetails to convey more specific
|
|
3932
3942
|
* information about the kind of issue.
|
|
3933
3943
|
*/
|
|
3934
|
-
export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'PartitioningBlobURLIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue' | 'SharedDictionaryIssue' | 'ElementAccessibilityIssue' | 'SRIMessageSignatureIssue' | 'UnencodedDigestIssue' | 'ConnectionAllowlistIssue' | 'UserReidentificationIssue' | 'PermissionElementIssue');
|
|
3944
|
+
export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'PartitioningBlobURLIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue' | 'SharedDictionaryIssue' | 'ElementAccessibilityIssue' | 'SRIMessageSignatureIssue' | 'UnencodedDigestIssue' | 'ConnectionAllowlistIssue' | 'UserReidentificationIssue' | 'PermissionElementIssue' | 'PerformanceIssue');
|
|
3935
3945
|
|
|
3936
3946
|
/**
|
|
3937
3947
|
* This struct holds a list of optional fields with additional information
|
|
@@ -3970,6 +3980,7 @@ export namespace Protocol {
|
|
|
3970
3980
|
connectionAllowlistIssueDetails?: ConnectionAllowlistIssueDetails;
|
|
3971
3981
|
userReidentificationIssueDetails?: UserReidentificationIssueDetails;
|
|
3972
3982
|
permissionElementIssueDetails?: PermissionElementIssueDetails;
|
|
3983
|
+
performanceIssueDetails?: PerformanceIssueDetails;
|
|
3973
3984
|
}
|
|
3974
3985
|
|
|
3975
3986
|
/**
|
|
@@ -14017,6 +14028,8 @@ export namespace Protocol {
|
|
|
14017
14028
|
export interface EnableRequest {
|
|
14018
14029
|
/**
|
|
14019
14030
|
* Buffer size in bytes to use when preserving network payloads (XHRs, etc).
|
|
14031
|
+
* This is the maximum number of bytes that will be collected by this
|
|
14032
|
+
* DevTools session.
|
|
14020
14033
|
* @experimental
|
|
14021
14034
|
*/
|
|
14022
14035
|
maxTotalBufferSize?: integer;
|