devtools-protocol 0.0.1695166 → 0.0.1696802

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.
@@ -2405,6 +2405,33 @@
2405
2405
  }
2406
2406
  ]
2407
2407
  },
2408
+ {
2409
+ "id": "WebInstallIssueReason",
2410
+ "type": "string",
2411
+ "enum": [
2412
+ "ManifestParsingOrNetworkError",
2413
+ "StartUrlInvalid",
2414
+ "ManifestMissingNameOrShortName",
2415
+ "ManifestMissingId",
2416
+ "NoManifest"
2417
+ ]
2418
+ },
2419
+ {
2420
+ "id": "WebInstallIssueDetails",
2421
+ "description": "This issue reports a failure involving a web app manifest used by a Web\nInstall operation.",
2422
+ "type": "object",
2423
+ "properties": [
2424
+ {
2425
+ "name": "manifestUrl",
2426
+ "optional": true,
2427
+ "type": "string"
2428
+ },
2429
+ {
2430
+ "name": "reason",
2431
+ "$ref": "WebInstallIssueReason"
2432
+ }
2433
+ ]
2434
+ },
2408
2435
  {
2409
2436
  "id": "SelectivePermissionsInterventionIssueDetails",
2410
2437
  "description": "The issue warns about blocked calls to privacy sensitive APIs via the\nSelective Permissions Intervention.",
@@ -2484,7 +2511,8 @@
2484
2511
  "PerformanceIssue",
2485
2512
  "SelectivePermissionsInterventionIssue",
2486
2513
  "EmailVerificationRequestIssue",
2487
- "LazyLoadImageIssue"
2514
+ "LazyLoadImageIssue",
2515
+ "WebInstallIssue"
2488
2516
  ]
2489
2517
  },
2490
2518
  {
@@ -2642,6 +2670,11 @@
2642
2670
  "name": "lazyLoadImageIssueDetails",
2643
2671
  "optional": true,
2644
2672
  "$ref": "LazyLoadImageIssueDetails"
2673
+ },
2674
+ {
2675
+ "name": "webInstallIssueDetails",
2676
+ "optional": true,
2677
+ "$ref": "WebInstallIssueDetails"
2645
2678
  }
2646
2679
  ]
2647
2680
  },
@@ -8973,6 +9006,28 @@
8973
9006
  }
8974
9007
  ]
8975
9008
  },
9009
+ {
9010
+ "name": "getImplicitAnchorCandidates",
9011
+ "description": "Returns candidate nodes that are configured as triggers for the given popover.",
9012
+ "experimental": true,
9013
+ "parameters": [
9014
+ {
9015
+ "name": "nodeId",
9016
+ "description": "Id of the popover HTMLElement.",
9017
+ "$ref": "NodeId"
9018
+ }
9019
+ ],
9020
+ "returns": [
9021
+ {
9022
+ "name": "backendNodeIds",
9023
+ "description": "Candidate elements that can invoke this popover.",
9024
+ "type": "array",
9025
+ "items": {
9026
+ "$ref": "BackendNodeId"
9027
+ }
9028
+ }
9029
+ ]
9030
+ },
8976
9031
  {
8977
9032
  "name": "forceShowInterest",
8978
9033
  "description": "When enabling, this API forces an element to gain interest in its target,\nkeeping interest active until disabled.",
@@ -26473,7 +26528,7 @@
26473
26528
  },
26474
26529
  {
26475
26530
  "id": "ServiceWorkerRouterCondition",
26476
- "description": "Mostly corresponds to `RouterCondition` in ServiceWorker spec\n(https://www.w3.org/TR/service-workers/#dictdef-routercondition) while this\ncurrently lacks support for the nested conditions (\"or\" and \"not\").\nTODO(crbug.com/540469610): Support recursive conditions.",
26531
+ "description": "Mostly corresponds to `RouterCondition` in ServiceWorker spec\n(https://www.w3.org/TR/service-workers/#dictdef-routercondition)",
26477
26532
  "type": "object",
26478
26533
  "properties": [
26479
26534
  {
@@ -26501,6 +26556,19 @@
26501
26556
  "name": "runningStatus",
26502
26557
  "optional": true,
26503
26558
  "$ref": "ServiceWorkerVersionRunningStatus"
26559
+ },
26560
+ {
26561
+ "name": "or",
26562
+ "optional": true,
26563
+ "type": "array",
26564
+ "items": {
26565
+ "$ref": "ServiceWorkerRouterCondition"
26566
+ }
26567
+ },
26568
+ {
26569
+ "name": "not",
26570
+ "optional": true,
26571
+ "$ref": "ServiceWorkerRouterCondition"
26504
26572
  }
26505
26573
  ]
26506
26574
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1695166",
3
+ "version": "0.0.1696802",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -741,6 +741,21 @@ experimental domain Audits
741
741
  # Used for messages about activation disabled reason
742
742
  optional string disableReason
743
743
 
744
+ type WebInstallIssueReason extends string
745
+ enum
746
+ ManifestParsingOrNetworkError
747
+ StartUrlInvalid
748
+ ManifestMissingNameOrShortName
749
+ ManifestMissingId
750
+ NoManifest
751
+
752
+ # This issue reports a failure involving a web app manifest used by a Web
753
+ # Install operation.
754
+ type WebInstallIssueDetails extends object
755
+ properties
756
+ optional string manifestUrl
757
+ WebInstallIssueReason reason
758
+
744
759
  # The issue warns about blocked calls to privacy sensitive APIs via the
745
760
  # Selective Permissions Intervention.
746
761
  type SelectivePermissionsInterventionIssueDetails extends object
@@ -798,6 +813,7 @@ experimental domain Audits
798
813
  SelectivePermissionsInterventionIssue
799
814
  EmailVerificationRequestIssue
800
815
  LazyLoadImageIssue
816
+ WebInstallIssue
801
817
 
802
818
  # This struct holds a list of optional fields with additional information
803
819
  # specific to the kind of issue. When adding a new issue code, please also
@@ -834,6 +850,7 @@ experimental domain Audits
834
850
  optional SelectivePermissionsInterventionIssueDetails selectivePermissionsInterventionIssueDetails
835
851
  optional EmailVerificationRequestIssueDetails emailVerificationRequestIssueDetails
836
852
  optional LazyLoadImageIssueDetails lazyLoadImageIssueDetails
853
+ optional WebInstallIssueDetails webInstallIssueDetails
837
854
 
838
855
  # A unique id for a DevTools inspector issue. Allows other entities (e.g.
839
856
  # exceptions, CDP message, console messages, etc.) to reference an issue.
@@ -827,6 +827,15 @@ domain DOM
827
827
  # List of popovers that were closed in order to respect popover stacking order.
828
828
  array of NodeId nodeIds
829
829
 
830
+ # Returns candidate nodes that are configured as triggers for the given popover.
831
+ experimental command getImplicitAnchorCandidates
832
+ parameters
833
+ # Id of the popover HTMLElement.
834
+ NodeId nodeId
835
+ returns
836
+ # Candidate elements that can invoke this popover.
837
+ array of BackendNodeId backendNodeIds
838
+
830
839
  # When enabling, this API forces an element to gain interest in its target,
831
840
  # keeping interest active until disabled.
832
841
  experimental command forceShowInterest
@@ -33,9 +33,7 @@ experimental domain ServiceWorker
33
33
  redundant
34
34
 
35
35
  # Mostly corresponds to `RouterCondition` in ServiceWorker spec
36
- # (https://www.w3.org/TR/service-workers/#dictdef-routercondition) while this
37
- # currently lacks support for the nested conditions ("or" and "not").
38
- # TODO(crbug.com/540469610): Support recursive conditions.
36
+ # (https://www.w3.org/TR/service-workers/#dictdef-routercondition)
39
37
  type ServiceWorkerRouterCondition extends object
40
38
  properties
41
39
  # Plain text, or JSON serialization of URLPatternInit or URLPattern
@@ -44,6 +42,8 @@ experimental domain ServiceWorker
44
42
  optional string requestMode
45
43
  optional string requestDestination
46
44
  optional ServiceWorkerVersionRunningStatus runningStatus
45
+ optional array of ServiceWorkerRouterCondition or
46
+ optional ServiceWorkerRouterCondition not
47
47
 
48
48
  type ServiceWorkerRouterSourceType extends string
49
49
  enum
@@ -3045,6 +3045,14 @@ export namespace ProtocolMapping {
3045
3045
  paramsType: [Protocol.DOM.ForceShowPopoverRequest];
3046
3046
  returnType: Protocol.DOM.ForceShowPopoverResponse;
3047
3047
  };
3048
+ /**
3049
+ * Returns candidate nodes that are configured as triggers for the given popover.
3050
+ * @experimental
3051
+ */
3052
+ 'DOM.getImplicitAnchorCandidates': {
3053
+ paramsType: [Protocol.DOM.GetImplicitAnchorCandidatesRequest];
3054
+ returnType: Protocol.DOM.GetImplicitAnchorCandidatesResponse;
3055
+ };
3048
3056
  /**
3049
3057
  * When enabling, this API forces an element to gain interest in its target,
3050
3058
  * keeping interest active until disabled.
@@ -1879,6 +1879,12 @@ export namespace ProtocolProxyApi {
1879
1879
  */
1880
1880
  forceShowPopover(params: Protocol.DOM.ForceShowPopoverRequest): Promise<Protocol.DOM.ForceShowPopoverResponse>;
1881
1881
 
1882
+ /**
1883
+ * Returns candidate nodes that are configured as triggers for the given popover.
1884
+ * @experimental
1885
+ */
1886
+ getImplicitAnchorCandidates(params: Protocol.DOM.GetImplicitAnchorCandidatesRequest): Promise<Protocol.DOM.GetImplicitAnchorCandidatesResponse>;
1887
+
1882
1888
  /**
1883
1889
  * When enabling, this API forces an element to gain interest in its target,
1884
1890
  * keeping interest active until disabled.
@@ -1969,6 +1969,12 @@ export namespace ProtocolTestsProxyApi {
1969
1969
  */
1970
1970
  forceShowPopover(params: Protocol.DOM.ForceShowPopoverRequest): Promise<{id: number, result: Protocol.DOM.ForceShowPopoverResponse, sessionId: string}>;
1971
1971
 
1972
+ /**
1973
+ * Returns candidate nodes that are configured as triggers for the given popover.
1974
+ * @experimental
1975
+ */
1976
+ getImplicitAnchorCandidates(params: Protocol.DOM.GetImplicitAnchorCandidatesRequest): Promise<{id: number, result: Protocol.DOM.GetImplicitAnchorCandidatesResponse, sessionId: string}>;
1977
+
1972
1978
  /**
1973
1979
  * When enabling, this API forces an element to gain interest in its target,
1974
1980
  * keeping interest active until disabled.
@@ -4039,6 +4039,17 @@ export namespace Protocol {
4039
4039
  disableReason?: string;
4040
4040
  }
4041
4041
 
4042
+ export type WebInstallIssueReason = ('ManifestParsingOrNetworkError' | 'StartUrlInvalid' | 'ManifestMissingNameOrShortName' | 'ManifestMissingId' | 'NoManifest');
4043
+
4044
+ /**
4045
+ * This issue reports a failure involving a web app manifest used by a Web
4046
+ * Install operation.
4047
+ */
4048
+ export interface WebInstallIssueDetails {
4049
+ manifestUrl?: string;
4050
+ reason: WebInstallIssueReason;
4051
+ }
4052
+
4042
4053
  /**
4043
4054
  * The issue warns about blocked calls to privacy sensitive APIs via the
4044
4055
  * Selective Permissions Intervention.
@@ -4081,7 +4092,7 @@ export namespace Protocol {
4081
4092
  * optional fields in InspectorIssueDetails to convey more specific
4082
4093
  * information about the kind of issue.
4083
4094
  */
4084
- export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'CorsIssue' | 'QuirksModeIssue' | 'PartitioningBlobURLIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue' | 'SharedDictionaryIssue' | 'ElementAccessibilityIssue' | 'SRIMessageSignatureIssue' | 'UnencodedDigestIssue' | 'ConnectionAllowlistIssue' | 'UserReidentificationIssue' | 'PermissionElementIssue' | 'PerformanceIssue' | 'SelectivePermissionsInterventionIssue' | 'EmailVerificationRequestIssue' | 'LazyLoadImageIssue');
4095
+ export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'CorsIssue' | 'QuirksModeIssue' | 'PartitioningBlobURLIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue' | 'SharedDictionaryIssue' | 'ElementAccessibilityIssue' | 'SRIMessageSignatureIssue' | 'UnencodedDigestIssue' | 'ConnectionAllowlistIssue' | 'UserReidentificationIssue' | 'PermissionElementIssue' | 'PerformanceIssue' | 'SelectivePermissionsInterventionIssue' | 'EmailVerificationRequestIssue' | 'LazyLoadImageIssue' | 'WebInstallIssue');
4085
4096
 
4086
4097
  /**
4087
4098
  * This struct holds a list of optional fields with additional information
@@ -4122,6 +4133,7 @@ export namespace Protocol {
4122
4133
  selectivePermissionsInterventionIssueDetails?: SelectivePermissionsInterventionIssueDetails;
4123
4134
  emailVerificationRequestIssueDetails?: EmailVerificationRequestIssueDetails;
4124
4135
  lazyLoadImageIssueDetails?: LazyLoadImageIssueDetails;
4136
+ webInstallIssueDetails?: WebInstallIssueDetails;
4125
4137
  }
4126
4138
 
4127
4139
  /**
@@ -8181,6 +8193,20 @@ export namespace Protocol {
8181
8193
  nodeIds: NodeId[];
8182
8194
  }
8183
8195
 
8196
+ export interface GetImplicitAnchorCandidatesRequest {
8197
+ /**
8198
+ * Id of the popover HTMLElement.
8199
+ */
8200
+ nodeId: NodeId;
8201
+ }
8202
+
8203
+ export interface GetImplicitAnchorCandidatesResponse {
8204
+ /**
8205
+ * Candidate elements that can invoke this popover.
8206
+ */
8207
+ backendNodeIds: BackendNodeId[];
8208
+ }
8209
+
8184
8210
  export interface ForceShowInterestRequest {
8185
8211
  /**
8186
8212
  * Id of the interest invoker HTMLElement.
@@ -19533,9 +19559,7 @@ export namespace Protocol {
19533
19559
 
19534
19560
  /**
19535
19561
  * Mostly corresponds to `RouterCondition` in ServiceWorker spec
19536
- * (https://www.w3.org/TR/service-workers/#dictdef-routercondition) while this
19537
- * currently lacks support for the nested conditions ("or" and "not").
19538
- * TODO(crbug.com/540469610): Support recursive conditions.
19562
+ * (https://www.w3.org/TR/service-workers/#dictdef-routercondition)
19539
19563
  */
19540
19564
  export interface ServiceWorkerRouterCondition {
19541
19565
  /**
@@ -19546,6 +19570,8 @@ export namespace Protocol {
19546
19570
  requestMode?: string;
19547
19571
  requestDestination?: string;
19548
19572
  runningStatus?: ServiceWorkerVersionRunningStatus;
19573
+ or?: ServiceWorkerRouterCondition[];
19574
+ not?: ServiceWorkerRouterCondition;
19549
19575
  }
19550
19576
 
19551
19577
  export type ServiceWorkerRouterSourceType = ('cache' | 'fetchEvent' | 'network' | 'raceNetworkAndFetchHandler' | 'raceNetworkAndCache' | 'sourceDict');