devtools-protocol 0.0.1581282 → 0.0.1585077

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.
@@ -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",
@@ -1914,10 +1937,6 @@
1914
1937
  "ConfigNoResponse",
1915
1938
  "ConfigInvalidResponse",
1916
1939
  "ConfigInvalidContentType",
1917
- "ClientMetadataHttpNotFound",
1918
- "ClientMetadataNoResponse",
1919
- "ClientMetadataInvalidResponse",
1920
- "ClientMetadataInvalidContentType",
1921
1940
  "IdpNotPotentiallyTrustworthy",
1922
1941
  "DisabledInSettings",
1923
1942
  "DisabledInFlags",
@@ -1939,11 +1958,9 @@
1939
1958
  "Canceled",
1940
1959
  "RpPageNotVisible",
1941
1960
  "SilentMediationFailure",
1942
- "ThirdPartyCookiesBlocked",
1943
1961
  "NotSignedInWithIdp",
1944
1962
  "MissingTransientUserActivation",
1945
1963
  "ReplacedByActiveMode",
1946
- "InvalidFieldsSpecified",
1947
1964
  "RelyingPartyOriginIsOpaque",
1948
1965
  "TypeNotMatching",
1949
1966
  "UiDismissedNoEmbargo",
@@ -2276,7 +2293,8 @@
2276
2293
  "UnencodedDigestIssue",
2277
2294
  "ConnectionAllowlistIssue",
2278
2295
  "UserReidentificationIssue",
2279
- "PermissionElementIssue"
2296
+ "PermissionElementIssue",
2297
+ "PerformanceIssue"
2280
2298
  ]
2281
2299
  },
2282
2300
  {
@@ -2424,6 +2442,11 @@
2424
2442
  "name": "permissionElementIssueDetails",
2425
2443
  "optional": true,
2426
2444
  "$ref": "PermissionElementIssueDetails"
2445
+ },
2446
+ {
2447
+ "name": "performanceIssueDetails",
2448
+ "optional": true,
2449
+ "$ref": "PerformanceIssueDetails"
2427
2450
  }
2428
2451
  ]
2429
2452
  },
@@ -11469,7 +11492,7 @@
11469
11492
  },
11470
11493
  {
11471
11494
  "name": "getScreenInfos",
11472
- "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.",
11473
11496
  "experimental": true,
11474
11497
  "returns": [
11475
11498
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1581282",
3
+ "version": "0.0.1585077",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -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
@@ -500,10 +510,6 @@ experimental domain Audits
500
510
  ConfigNoResponse
501
511
  ConfigInvalidResponse
502
512
  ConfigInvalidContentType
503
- ClientMetadataHttpNotFound
504
- ClientMetadataNoResponse
505
- ClientMetadataInvalidResponse
506
- ClientMetadataInvalidContentType
507
513
  IdpNotPotentiallyTrustworthy
508
514
  DisabledInSettings
509
515
  DisabledInFlags
@@ -525,11 +531,9 @@ experimental domain Audits
525
531
  Canceled
526
532
  RpPageNotVisible
527
533
  SilentMediationFailure
528
- ThirdPartyCookiesBlocked
529
534
  NotSignedInWithIdp
530
535
  MissingTransientUserActivation
531
536
  ReplacedByActiveMode
532
- InvalidFieldsSpecified
533
537
  RelyingPartyOriginIsOpaque
534
538
  TypeNotMatching
535
539
  UiDismissedNoEmbargo
@@ -726,6 +730,7 @@ experimental domain Audits
726
730
  ConnectionAllowlistIssue
727
731
  UserReidentificationIssue
728
732
  PermissionElementIssue
733
+ PerformanceIssue
729
734
 
730
735
  # This struct holds a list of optional fields with additional information
731
736
  # specific to the kind of issue. When adding a new issue code, please also
@@ -760,6 +765,7 @@ experimental domain Audits
760
765
  optional ConnectionAllowlistIssueDetails connectionAllowlistIssueDetails
761
766
  optional UserReidentificationIssueDetails userReidentificationIssueDetails
762
767
  optional PermissionElementIssueDetails permissionElementIssueDetails
768
+ optional PerformanceIssueDetails performanceIssueDetails
763
769
 
764
770
  # A unique id for a DevTools inspector issue. Allows other entities (e.g.
765
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
@@ -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}>;
@@ -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');
@@ -3771,7 +3781,7 @@ export namespace Protocol {
3771
3781
  * third_party/blink/public/mojom/devtools/inspector_issue.mojom to include
3772
3782
  * all cases except for success.
3773
3783
  */
3774
- export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'ClientMetadataHttpNotFound' | 'ClientMetadataNoResponse' | 'ClientMetadataInvalidResponse' | 'ClientMetadataInvalidContentType' | 'IdpNotPotentiallyTrustworthy' | 'DisabledInSettings' | 'DisabledInFlags' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenIdpErrorResponse' | 'IdTokenCrossSiteIdpErrorResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible' | 'SilentMediationFailure' | 'ThirdPartyCookiesBlocked' | 'NotSignedInWithIdp' | 'MissingTransientUserActivation' | 'ReplacedByActiveMode' | 'InvalidFieldsSpecified' | 'RelyingPartyOriginIsOpaque' | 'TypeNotMatching' | 'UiDismissedNoEmbargo' | 'CorsError' | 'SuppressedBySegmentationPlatform');
3784
+ export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'IdpNotPotentiallyTrustworthy' | 'DisabledInSettings' | 'DisabledInFlags' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenIdpErrorResponse' | 'IdTokenCrossSiteIdpErrorResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible' | 'SilentMediationFailure' | 'NotSignedInWithIdp' | 'MissingTransientUserActivation' | 'ReplacedByActiveMode' | 'RelyingPartyOriginIsOpaque' | 'TypeNotMatching' | 'UiDismissedNoEmbargo' | 'CorsError' | 'SuppressedBySegmentationPlatform');
3775
3785
 
3776
3786
  export interface FederatedAuthUserInfoRequestIssueDetails {
3777
3787
  federatedAuthUserInfoRequestIssueReason: FederatedAuthUserInfoRequestIssueReason;
@@ -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
  /**