devtools-protocol 0.0.1113120 → 0.0.1114386

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.
@@ -1449,7 +1449,6 @@
1449
1449
  "type": "string",
1450
1450
  "enum": [
1451
1451
  "PermissionPolicyDisabled",
1452
- "PermissionPolicyNotDelegated",
1453
1452
  "UntrustworthyReportingOrigin",
1454
1453
  "InsecureContext",
1455
1454
  "InvalidHeader",
@@ -22790,6 +22789,73 @@
22790
22789
  }
22791
22790
  ]
22792
22791
  },
22792
+ {
22793
+ "id": "SpeculationAction",
22794
+ "description": "The type of preloading attempted. It corresponds to\nmojom::SpeculationAction (although PrefetchWithSubresources is omitted as it\nisn't being used by clients).",
22795
+ "type": "string",
22796
+ "enum": [
22797
+ "Prefetch",
22798
+ "Prerender"
22799
+ ]
22800
+ },
22801
+ {
22802
+ "id": "SpeculationTargetHint",
22803
+ "description": "Corresponds to mojom::SpeculationTargetHint.\nSee https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints",
22804
+ "type": "string",
22805
+ "enum": [
22806
+ "Blank",
22807
+ "Self"
22808
+ ]
22809
+ },
22810
+ {
22811
+ "id": "PreloadingAttemptKey",
22812
+ "description": "A key that identifies a preloading attempt.\n\nThe url used is the url specified by the trigger (i.e. the initial URL), and\nnot the final url that is navigated to. For example, prerendering allows\nsame-origin main frame navigations during the attempt, but the attempt is\nstill keyed with the initial URL.",
22813
+ "type": "object",
22814
+ "properties": [
22815
+ {
22816
+ "name": "loaderId",
22817
+ "$ref": "Network.LoaderId"
22818
+ },
22819
+ {
22820
+ "name": "action",
22821
+ "$ref": "SpeculationAction"
22822
+ },
22823
+ {
22824
+ "name": "url",
22825
+ "type": "string"
22826
+ },
22827
+ {
22828
+ "name": "targetHint",
22829
+ "optional": true,
22830
+ "$ref": "SpeculationTargetHint"
22831
+ }
22832
+ ]
22833
+ },
22834
+ {
22835
+ "id": "PreloadingAttemptSource",
22836
+ "description": "Lists sources for a preloading attempt, specifically the ids of rule sets\nthat had a speculation rule that triggered the attempt, and the\nBackendNodeIds of <a href> or <area href> elements that triggered the\nattempt (in the case of attempts triggered by a document rule). It is\npossible for mulitple rule sets and links to trigger a single attempt.",
22837
+ "type": "object",
22838
+ "properties": [
22839
+ {
22840
+ "name": "key",
22841
+ "$ref": "PreloadingAttemptKey"
22842
+ },
22843
+ {
22844
+ "name": "ruleSetIds",
22845
+ "type": "array",
22846
+ "items": {
22847
+ "$ref": "RuleSetId"
22848
+ }
22849
+ },
22850
+ {
22851
+ "name": "nodeIds",
22852
+ "type": "array",
22853
+ "items": {
22854
+ "$ref": "DOM.BackendNodeId"
22855
+ }
22856
+ }
22857
+ ]
22858
+ },
22793
22859
  {
22794
22860
  "id": "PrerenderFinalStatus",
22795
22861
  "description": "List of FinalStatus reasons for Prerender2.",
@@ -22957,6 +23023,19 @@
22957
23023
  "$ref": "PreloadingStatus"
22958
23024
  }
22959
23025
  ]
23026
+ },
23027
+ {
23028
+ "name": "preloadingAttemptSourcesUpdated",
23029
+ "description": "Send a list of sources for all preloading attempts.",
23030
+ "parameters": [
23031
+ {
23032
+ "name": "preloadingAttemptSources",
23033
+ "type": "array",
23034
+ "items": {
23035
+ "$ref": "PreloadingAttemptSource"
23036
+ }
23037
+ }
23038
+ ]
22960
23039
  }
22961
23040
  ]
22962
23041
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1113120",
3
+ "version": "0.0.1114386",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -702,7 +702,6 @@ experimental domain Audits
702
702
  type AttributionReportingIssueType extends string
703
703
  enum
704
704
  PermissionPolicyDisabled
705
- PermissionPolicyNotDelegated
706
705
  UntrustworthyReportingOrigin
707
706
  InsecureContext
708
707
  # TODO(apaseltiner): Rename this to InvalidRegisterSourceHeader
@@ -10742,6 +10741,45 @@ experimental domain Preload
10742
10741
  # - https://github.com/WICG/nav-speculation/blob/main/triggers.md
10743
10742
  string sourceText
10744
10743
 
10744
+ # The type of preloading attempted. It corresponds to
10745
+ # mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
10746
+ # isn't being used by clients).
10747
+ type SpeculationAction extends string
10748
+ enum
10749
+ Prefetch
10750
+ Prerender
10751
+
10752
+ # Corresponds to mojom::SpeculationTargetHint.
10753
+ # See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints
10754
+ type SpeculationTargetHint extends string
10755
+ enum
10756
+ Blank
10757
+ Self
10758
+
10759
+ # A key that identifies a preloading attempt.
10760
+ #
10761
+ # The url used is the url specified by the trigger (i.e. the initial URL), and
10762
+ # not the final url that is navigated to. For example, prerendering allows
10763
+ # same-origin main frame navigations during the attempt, but the attempt is
10764
+ # still keyed with the initial URL.
10765
+ type PreloadingAttemptKey extends object
10766
+ properties
10767
+ Network.LoaderId loaderId
10768
+ SpeculationAction action
10769
+ string url
10770
+ optional SpeculationTargetHint targetHint
10771
+
10772
+ # Lists sources for a preloading attempt, specifically the ids of rule sets
10773
+ # that had a speculation rule that triggered the attempt, and the
10774
+ # BackendNodeIds of <a href> or <area href> elements that triggered the
10775
+ # attempt (in the case of attempts triggered by a document rule). It is
10776
+ # possible for mulitple rule sets and links to trigger a single attempt.
10777
+ type PreloadingAttemptSource extends object
10778
+ properties
10779
+ PreloadingAttemptKey key
10780
+ array of RuleSetId ruleSetIds
10781
+ array of DOM.BackendNodeId nodeIds
10782
+
10745
10783
  command enable
10746
10784
 
10747
10785
  command disable
@@ -10856,6 +10894,11 @@ experimental domain Preload
10856
10894
  string prerenderingUrl
10857
10895
  PreloadingStatus status
10858
10896
 
10897
+ # Send a list of sources for all preloading attempts.
10898
+ event preloadingAttemptSourcesUpdated
10899
+ parameters
10900
+ array of PreloadingAttemptSource preloadingAttemptSources
10901
+
10859
10902
  # This domain allows interacting with the FedCM dialog.
10860
10903
  experimental domain FedCm
10861
10904
  event dialogShown
@@ -722,6 +722,10 @@ export namespace ProtocolMapping {
722
722
  * Fired when a prerender attempt is updated.
723
723
  */
724
724
  'Preload.prerenderStatusUpdated': [Protocol.Preload.PrerenderStatusUpdatedEvent];
725
+ /**
726
+ * Send a list of sources for all preloading attempts.
727
+ */
728
+ 'Preload.preloadingAttemptSourcesUpdated': [Protocol.Preload.PreloadingAttemptSourcesUpdatedEvent];
725
729
  'FedCm.dialogShown': [];
726
730
  }
727
731
 
@@ -3962,6 +3962,11 @@ export namespace ProtocolProxyApi {
3962
3962
  */
3963
3963
  on(event: 'prerenderStatusUpdated', listener: (params: Protocol.Preload.PrerenderStatusUpdatedEvent) => void): void;
3964
3964
 
3965
+ /**
3966
+ * Send a list of sources for all preloading attempts.
3967
+ */
3968
+ on(event: 'preloadingAttemptSourcesUpdated', listener: (params: Protocol.Preload.PreloadingAttemptSourcesUpdatedEvent) => void): void;
3969
+
3965
3970
  }
3966
3971
 
3967
3972
  export interface FedCmApi {
@@ -3409,7 +3409,7 @@ export namespace Protocol {
3409
3409
  clientSecurityState?: Network.ClientSecurityState;
3410
3410
  }
3411
3411
 
3412
- export type AttributionReportingIssueType = ('PermissionPolicyDisabled' | 'PermissionPolicyNotDelegated' | 'UntrustworthyReportingOrigin' | 'InsecureContext' | 'InvalidHeader' | 'InvalidRegisterTriggerHeader' | 'InvalidEligibleHeader' | 'TooManyConcurrentRequests' | 'SourceAndTriggerHeaders' | 'SourceIgnored' | 'TriggerIgnored');
3412
+ export type AttributionReportingIssueType = ('PermissionPolicyDisabled' | 'UntrustworthyReportingOrigin' | 'InsecureContext' | 'InvalidHeader' | 'InvalidRegisterTriggerHeader' | 'InvalidEligibleHeader' | 'TooManyConcurrentRequests' | 'SourceAndTriggerHeaders' | 'SourceIgnored' | 'TriggerIgnored');
3413
3413
 
3414
3414
  /**
3415
3415
  * Details for issues around "Attribution Reporting API" usage.
@@ -16884,6 +16884,47 @@ export namespace Protocol {
16884
16884
  sourceText: string;
16885
16885
  }
16886
16886
 
16887
+ /**
16888
+ * The type of preloading attempted. It corresponds to
16889
+ * mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
16890
+ * isn't being used by clients).
16891
+ */
16892
+ export type SpeculationAction = ('Prefetch' | 'Prerender');
16893
+
16894
+ /**
16895
+ * Corresponds to mojom::SpeculationTargetHint.
16896
+ * See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints
16897
+ */
16898
+ export type SpeculationTargetHint = ('Blank' | 'Self');
16899
+
16900
+ /**
16901
+ * A key that identifies a preloading attempt.
16902
+ *
16903
+ * The url used is the url specified by the trigger (i.e. the initial URL), and
16904
+ * not the final url that is navigated to. For example, prerendering allows
16905
+ * same-origin main frame navigations during the attempt, but the attempt is
16906
+ * still keyed with the initial URL.
16907
+ */
16908
+ export interface PreloadingAttemptKey {
16909
+ loaderId: Network.LoaderId;
16910
+ action: SpeculationAction;
16911
+ url: string;
16912
+ targetHint?: SpeculationTargetHint;
16913
+ }
16914
+
16915
+ /**
16916
+ * Lists sources for a preloading attempt, specifically the ids of rule sets
16917
+ * that had a speculation rule that triggered the attempt, and the
16918
+ * BackendNodeIds of <a href> or <area href> elements that triggered the
16919
+ * attempt (in the case of attempts triggered by a document rule). It is
16920
+ * possible for mulitple rule sets and links to trigger a single attempt.
16921
+ */
16922
+ export interface PreloadingAttemptSource {
16923
+ key: PreloadingAttemptKey;
16924
+ ruleSetIds: RuleSetId[];
16925
+ nodeIds: DOM.BackendNodeId[];
16926
+ }
16927
+
16887
16928
  /**
16888
16929
  * List of FinalStatus reasons for Prerender2.
16889
16930
  */
@@ -16946,6 +16987,13 @@ export namespace Protocol {
16946
16987
  prerenderingUrl: string;
16947
16988
  status: PreloadingStatus;
16948
16989
  }
16990
+
16991
+ /**
16992
+ * Send a list of sources for all preloading attempts.
16993
+ */
16994
+ export interface PreloadingAttemptSourcesUpdatedEvent {
16995
+ preloadingAttemptSources: PreloadingAttemptSource[];
16996
+ }
16949
16997
  }
16950
16998
 
16951
16999
  /**