devtools-protocol 0.0.1112051 → 0.0.1113774

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.
@@ -16373,82 +16373,6 @@
16373
16373
  }
16374
16374
  }
16375
16375
  ]
16376
- },
16377
- {
16378
- "id": "PrerenderFinalStatus",
16379
- "description": "List of FinalStatus reasons for Prerender2.",
16380
- "type": "string",
16381
- "enum": [
16382
- "Activated",
16383
- "Destroyed",
16384
- "LowEndDevice",
16385
- "InvalidSchemeRedirect",
16386
- "InvalidSchemeNavigation",
16387
- "InProgressNavigation",
16388
- "NavigationRequestBlockedByCsp",
16389
- "MainFrameNavigation",
16390
- "MojoBinderPolicy",
16391
- "RendererProcessCrashed",
16392
- "RendererProcessKilled",
16393
- "Download",
16394
- "TriggerDestroyed",
16395
- "NavigationNotCommitted",
16396
- "NavigationBadHttpStatus",
16397
- "ClientCertRequested",
16398
- "NavigationRequestNetworkError",
16399
- "MaxNumOfRunningPrerendersExceeded",
16400
- "CancelAllHostsForTesting",
16401
- "DidFailLoad",
16402
- "Stop",
16403
- "SslCertificateError",
16404
- "LoginAuthRequested",
16405
- "UaChangeRequiresReload",
16406
- "BlockedByClient",
16407
- "AudioOutputDeviceRequested",
16408
- "MixedContent",
16409
- "TriggerBackgrounded",
16410
- "EmbedderTriggeredAndCrossOriginRedirected",
16411
- "MemoryLimitExceeded",
16412
- "FailToGetMemoryUsage",
16413
- "DataSaverEnabled",
16414
- "HasEffectiveUrl",
16415
- "ActivatedBeforeStarted",
16416
- "InactivePageRestriction",
16417
- "StartFailed",
16418
- "TimeoutBackgrounded",
16419
- "CrossSiteRedirect",
16420
- "CrossSiteNavigation",
16421
- "SameSiteCrossOriginRedirect",
16422
- "SameSiteCrossOriginNavigation",
16423
- "SameSiteCrossOriginRedirectNotOptIn",
16424
- "SameSiteCrossOriginNavigationNotOptIn",
16425
- "ActivationNavigationParameterMismatch",
16426
- "ActivatedInBackground",
16427
- "EmbedderHostDisallowed",
16428
- "ActivationNavigationDestroyedBeforeSuccess",
16429
- "TabClosedByUserGesture",
16430
- "TabClosedWithoutUserGesture",
16431
- "PrimaryMainFrameRendererProcessCrashed",
16432
- "PrimaryMainFrameRendererProcessKilled",
16433
- "ActivationFramePolicyNotCompatible",
16434
- "PreloadingDisabled",
16435
- "BatterySaverEnabled",
16436
- "ActivatedDuringMainFrameNavigation",
16437
- "PreloadingUnsupportedByWebContents"
16438
- ]
16439
- },
16440
- {
16441
- "id": "PreloadingStatus",
16442
- "description": "Preloading status values, see also PreloadingTriggeringOutcome. This\nstatus is shared by prefetchStatusUpdated and prerenderStatusUpdated.",
16443
- "type": "string",
16444
- "enum": [
16445
- "Pending",
16446
- "Running",
16447
- "Ready",
16448
- "Success",
16449
- "Failure",
16450
- "NotSupported"
16451
- ]
16452
16376
  }
16453
16377
  ],
16454
16378
  "commands": [
@@ -18023,72 +17947,6 @@
18023
17947
  }
18024
17948
  ]
18025
17949
  },
18026
- {
18027
- "name": "prerenderAttemptCompleted",
18028
- "description": "Fired when a prerender attempt is completed.",
18029
- "experimental": true,
18030
- "parameters": [
18031
- {
18032
- "name": "initiatingFrameId",
18033
- "description": "The frame id of the frame initiating prerendering.",
18034
- "$ref": "FrameId"
18035
- },
18036
- {
18037
- "name": "prerenderingUrl",
18038
- "type": "string"
18039
- },
18040
- {
18041
- "name": "finalStatus",
18042
- "$ref": "PrerenderFinalStatus"
18043
- },
18044
- {
18045
- "name": "disallowedApiMethod",
18046
- "description": "This is used to give users more information about the name of the API call\nthat is incompatible with prerender and has caused the cancellation of the attempt",
18047
- "optional": true,
18048
- "type": "string"
18049
- }
18050
- ]
18051
- },
18052
- {
18053
- "name": "prefetchStatusUpdated",
18054
- "description": "TODO(crbug/1384419): Create a dedicated domain for preloading.\nFired when a prefetch attempt is updated.",
18055
- "experimental": true,
18056
- "parameters": [
18057
- {
18058
- "name": "initiatingFrameId",
18059
- "description": "The frame id of the frame initiating prefetch.",
18060
- "$ref": "FrameId"
18061
- },
18062
- {
18063
- "name": "prefetchUrl",
18064
- "type": "string"
18065
- },
18066
- {
18067
- "name": "status",
18068
- "$ref": "PreloadingStatus"
18069
- }
18070
- ]
18071
- },
18072
- {
18073
- "name": "prerenderStatusUpdated",
18074
- "description": "TODO(crbug/1384419): Create a dedicated domain for preloading.\nFired when a prerender attempt is updated.",
18075
- "experimental": true,
18076
- "parameters": [
18077
- {
18078
- "name": "initiatingFrameId",
18079
- "description": "The frame id of the frame initiating prerender.",
18080
- "$ref": "FrameId"
18081
- },
18082
- {
18083
- "name": "prerenderingUrl",
18084
- "type": "string"
18085
- },
18086
- {
18087
- "name": "status",
18088
- "$ref": "PreloadingStatus"
18089
- }
18090
- ]
18091
- },
18092
17950
  {
18093
17951
  "name": "loadEventFired",
18094
17952
  "parameters": [
@@ -22931,6 +22789,149 @@
22931
22789
  "type": "string"
22932
22790
  }
22933
22791
  ]
22792
+ },
22793
+ {
22794
+ "id": "SpeculationAction",
22795
+ "description": "The type of preloading attempted. It corresponds to\nmojom::SpeculationAction (although PrefetchWithSubresources is omitted as it\nisn't being used by clients).",
22796
+ "type": "string",
22797
+ "enum": [
22798
+ "Prefetch",
22799
+ "Prerender"
22800
+ ]
22801
+ },
22802
+ {
22803
+ "id": "SpeculationTargetHint",
22804
+ "description": "Corresponds to mojom::SpeculationTargetHint.\nSee https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints",
22805
+ "type": "string",
22806
+ "enum": [
22807
+ "Blank",
22808
+ "Self"
22809
+ ]
22810
+ },
22811
+ {
22812
+ "id": "PreloadingAttemptKey",
22813
+ "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.",
22814
+ "type": "object",
22815
+ "properties": [
22816
+ {
22817
+ "name": "loaderId",
22818
+ "$ref": "Network.LoaderId"
22819
+ },
22820
+ {
22821
+ "name": "action",
22822
+ "$ref": "SpeculationAction"
22823
+ },
22824
+ {
22825
+ "name": "url",
22826
+ "type": "string"
22827
+ },
22828
+ {
22829
+ "name": "targetHint",
22830
+ "optional": true,
22831
+ "$ref": "SpeculationTargetHint"
22832
+ }
22833
+ ]
22834
+ },
22835
+ {
22836
+ "id": "PreloadingAttemptSource",
22837
+ "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.",
22838
+ "type": "object",
22839
+ "properties": [
22840
+ {
22841
+ "name": "key",
22842
+ "$ref": "PreloadingAttemptKey"
22843
+ },
22844
+ {
22845
+ "name": "ruleSetIds",
22846
+ "type": "array",
22847
+ "items": {
22848
+ "$ref": "RuleSetId"
22849
+ }
22850
+ },
22851
+ {
22852
+ "name": "nodeIds",
22853
+ "type": "array",
22854
+ "items": {
22855
+ "$ref": "DOM.BackendNodeId"
22856
+ }
22857
+ }
22858
+ ]
22859
+ },
22860
+ {
22861
+ "id": "PrerenderFinalStatus",
22862
+ "description": "List of FinalStatus reasons for Prerender2.",
22863
+ "type": "string",
22864
+ "enum": [
22865
+ "Activated",
22866
+ "Destroyed",
22867
+ "LowEndDevice",
22868
+ "InvalidSchemeRedirect",
22869
+ "InvalidSchemeNavigation",
22870
+ "InProgressNavigation",
22871
+ "NavigationRequestBlockedByCsp",
22872
+ "MainFrameNavigation",
22873
+ "MojoBinderPolicy",
22874
+ "RendererProcessCrashed",
22875
+ "RendererProcessKilled",
22876
+ "Download",
22877
+ "TriggerDestroyed",
22878
+ "NavigationNotCommitted",
22879
+ "NavigationBadHttpStatus",
22880
+ "ClientCertRequested",
22881
+ "NavigationRequestNetworkError",
22882
+ "MaxNumOfRunningPrerendersExceeded",
22883
+ "CancelAllHostsForTesting",
22884
+ "DidFailLoad",
22885
+ "Stop",
22886
+ "SslCertificateError",
22887
+ "LoginAuthRequested",
22888
+ "UaChangeRequiresReload",
22889
+ "BlockedByClient",
22890
+ "AudioOutputDeviceRequested",
22891
+ "MixedContent",
22892
+ "TriggerBackgrounded",
22893
+ "EmbedderTriggeredAndCrossOriginRedirected",
22894
+ "MemoryLimitExceeded",
22895
+ "FailToGetMemoryUsage",
22896
+ "DataSaverEnabled",
22897
+ "HasEffectiveUrl",
22898
+ "ActivatedBeforeStarted",
22899
+ "InactivePageRestriction",
22900
+ "StartFailed",
22901
+ "TimeoutBackgrounded",
22902
+ "CrossSiteRedirect",
22903
+ "CrossSiteNavigation",
22904
+ "SameSiteCrossOriginRedirect",
22905
+ "SameSiteCrossOriginNavigation",
22906
+ "SameSiteCrossOriginRedirectNotOptIn",
22907
+ "SameSiteCrossOriginNavigationNotOptIn",
22908
+ "ActivationNavigationParameterMismatch",
22909
+ "ActivatedInBackground",
22910
+ "EmbedderHostDisallowed",
22911
+ "ActivationNavigationDestroyedBeforeSuccess",
22912
+ "TabClosedByUserGesture",
22913
+ "TabClosedWithoutUserGesture",
22914
+ "PrimaryMainFrameRendererProcessCrashed",
22915
+ "PrimaryMainFrameRendererProcessKilled",
22916
+ "ActivationFramePolicyNotCompatible",
22917
+ "PreloadingDisabled",
22918
+ "BatterySaverEnabled",
22919
+ "ActivatedDuringMainFrameNavigation",
22920
+ "PreloadingUnsupportedByWebContents"
22921
+ ]
22922
+ },
22923
+ {
22924
+ "id": "PreloadingStatus",
22925
+ "description": "Preloading status values, see also PreloadingTriggeringOutcome. This\nstatus is shared by prefetchStatusUpdated and prerenderStatusUpdated.",
22926
+ "type": "string",
22927
+ "enum": [
22928
+ "Pending",
22929
+ "Running",
22930
+ "Ready",
22931
+ "Success",
22932
+ "Failure",
22933
+ "NotSupported"
22934
+ ]
22934
22935
  }
22935
22936
  ],
22936
22937
  "commands": [
@@ -22960,6 +22961,82 @@
22960
22961
  "$ref": "RuleSetId"
22961
22962
  }
22962
22963
  ]
22964
+ },
22965
+ {
22966
+ "name": "prerenderAttemptCompleted",
22967
+ "description": "Fired when a prerender attempt is completed.",
22968
+ "parameters": [
22969
+ {
22970
+ "name": "initiatingFrameId",
22971
+ "description": "The frame id of the frame initiating prerendering.",
22972
+ "$ref": "Page.FrameId"
22973
+ },
22974
+ {
22975
+ "name": "prerenderingUrl",
22976
+ "type": "string"
22977
+ },
22978
+ {
22979
+ "name": "finalStatus",
22980
+ "$ref": "PrerenderFinalStatus"
22981
+ },
22982
+ {
22983
+ "name": "disallowedApiMethod",
22984
+ "description": "This is used to give users more information about the name of the API call\nthat is incompatible with prerender and has caused the cancellation of the attempt",
22985
+ "optional": true,
22986
+ "type": "string"
22987
+ }
22988
+ ]
22989
+ },
22990
+ {
22991
+ "name": "prefetchStatusUpdated",
22992
+ "description": "Fired when a prefetch attempt is updated.",
22993
+ "parameters": [
22994
+ {
22995
+ "name": "initiatingFrameId",
22996
+ "description": "The frame id of the frame initiating prefetch.",
22997
+ "$ref": "Page.FrameId"
22998
+ },
22999
+ {
23000
+ "name": "prefetchUrl",
23001
+ "type": "string"
23002
+ },
23003
+ {
23004
+ "name": "status",
23005
+ "$ref": "PreloadingStatus"
23006
+ }
23007
+ ]
23008
+ },
23009
+ {
23010
+ "name": "prerenderStatusUpdated",
23011
+ "description": "Fired when a prerender attempt is updated.",
23012
+ "parameters": [
23013
+ {
23014
+ "name": "initiatingFrameId",
23015
+ "description": "The frame id of the frame initiating prerender.",
23016
+ "$ref": "Page.FrameId"
23017
+ },
23018
+ {
23019
+ "name": "prerenderingUrl",
23020
+ "type": "string"
23021
+ },
23022
+ {
23023
+ "name": "status",
23024
+ "$ref": "PreloadingStatus"
23025
+ }
23026
+ ]
23027
+ },
23028
+ {
23029
+ "name": "preloadingAttemptSourcesUpdated",
23030
+ "description": "Send a list of sources for all preloading attempts.",
23031
+ "parameters": [
23032
+ {
23033
+ "name": "preloadingAttemptSources",
23034
+ "type": "array",
23035
+ "items": {
23036
+ "$ref": "PreloadingAttemptSource"
23037
+ }
23038
+ }
23039
+ ]
22963
23040
  }
22964
23041
  ]
22965
23042
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1112051",
3
+ "version": "0.0.1113774",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -8482,109 +8482,6 @@ domain Page
8482
8482
  # Tree structure of reasons why the page could not be cached for each frame.
8483
8483
  optional BackForwardCacheNotRestoredExplanationTree notRestoredExplanationsTree
8484
8484
 
8485
- # List of FinalStatus reasons for Prerender2.
8486
- type PrerenderFinalStatus extends string
8487
- enum
8488
- Activated
8489
- Destroyed
8490
- LowEndDevice
8491
- InvalidSchemeRedirect
8492
- InvalidSchemeNavigation
8493
- InProgressNavigation
8494
- NavigationRequestBlockedByCsp
8495
- MainFrameNavigation
8496
- MojoBinderPolicy
8497
- RendererProcessCrashed
8498
- RendererProcessKilled
8499
- Download
8500
- TriggerDestroyed
8501
- NavigationNotCommitted
8502
- NavigationBadHttpStatus
8503
- ClientCertRequested
8504
- NavigationRequestNetworkError
8505
- MaxNumOfRunningPrerendersExceeded
8506
- CancelAllHostsForTesting
8507
- DidFailLoad
8508
- Stop
8509
- SslCertificateError
8510
- LoginAuthRequested
8511
- UaChangeRequiresReload
8512
- BlockedByClient
8513
- AudioOutputDeviceRequested
8514
- MixedContent
8515
- TriggerBackgrounded
8516
- EmbedderTriggeredAndCrossOriginRedirected
8517
- MemoryLimitExceeded
8518
- # Prerenders can be cancelled when Chrome uses excessive memory. This is
8519
- # recorded when it fails to get the memory usage.
8520
- FailToGetMemoryUsage
8521
- DataSaverEnabled
8522
- HasEffectiveUrl
8523
- ActivatedBeforeStarted
8524
- InactivePageRestriction
8525
- StartFailed
8526
- TimeoutBackgrounded
8527
- CrossSiteRedirect
8528
- CrossSiteNavigation
8529
- SameSiteCrossOriginRedirect
8530
- SameSiteCrossOriginNavigation
8531
- SameSiteCrossOriginRedirectNotOptIn
8532
- SameSiteCrossOriginNavigationNotOptIn
8533
- ActivationNavigationParameterMismatch
8534
- ActivatedInBackground
8535
- EmbedderHostDisallowed
8536
- ActivationNavigationDestroyedBeforeSuccess
8537
- TabClosedByUserGesture
8538
- TabClosedWithoutUserGesture
8539
- PrimaryMainFrameRendererProcessCrashed
8540
- PrimaryMainFrameRendererProcessKilled
8541
- ActivationFramePolicyNotCompatible
8542
- PreloadingDisabled
8543
- BatterySaverEnabled
8544
- ActivatedDuringMainFrameNavigation
8545
- PreloadingUnsupportedByWebContents
8546
-
8547
- # Fired when a prerender attempt is completed.
8548
- experimental event prerenderAttemptCompleted
8549
- parameters
8550
- # The frame id of the frame initiating prerendering.
8551
- FrameId initiatingFrameId
8552
- string prerenderingUrl
8553
- PrerenderFinalStatus finalStatus
8554
- # This is used to give users more information about the name of the API call
8555
- # that is incompatible with prerender and has caused the cancellation of the attempt
8556
- optional string disallowedApiMethod
8557
-
8558
- # Preloading status values, see also PreloadingTriggeringOutcome. This
8559
- # status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
8560
- type PreloadingStatus extends string
8561
- enum
8562
- Pending
8563
- Running
8564
- Ready
8565
- Success
8566
- Failure
8567
- # PreloadingTriggeringOutcome which not used by prefetch nor prerender.
8568
- NotSupported
8569
-
8570
- # TODO(crbug/1384419): Create a dedicated domain for preloading.
8571
- # Fired when a prefetch attempt is updated.
8572
- experimental event prefetchStatusUpdated
8573
- parameters
8574
- # The frame id of the frame initiating prefetch.
8575
- FrameId initiatingFrameId
8576
- string prefetchUrl
8577
- PreloadingStatus status
8578
-
8579
- # TODO(crbug/1384419): Create a dedicated domain for preloading.
8580
- # Fired when a prerender attempt is updated.
8581
- experimental event prerenderStatusUpdated
8582
- parameters
8583
- # The frame id of the frame initiating prerender.
8584
- FrameId initiatingFrameId
8585
- string prerenderingUrl
8586
- PreloadingStatus status
8587
-
8588
8485
  event loadEventFired
8589
8486
  parameters
8590
8487
  Network.MonotonicTime timestamp
@@ -10845,6 +10742,45 @@ experimental domain Preload
10845
10742
  # - https://github.com/WICG/nav-speculation/blob/main/triggers.md
10846
10743
  string sourceText
10847
10744
 
10745
+ # The type of preloading attempted. It corresponds to
10746
+ # mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
10747
+ # isn't being used by clients).
10748
+ type SpeculationAction extends string
10749
+ enum
10750
+ Prefetch
10751
+ Prerender
10752
+
10753
+ # Corresponds to mojom::SpeculationTargetHint.
10754
+ # See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints
10755
+ type SpeculationTargetHint extends string
10756
+ enum
10757
+ Blank
10758
+ Self
10759
+
10760
+ # A key that identifies a preloading attempt.
10761
+ #
10762
+ # The url used is the url specified by the trigger (i.e. the initial URL), and
10763
+ # not the final url that is navigated to. For example, prerendering allows
10764
+ # same-origin main frame navigations during the attempt, but the attempt is
10765
+ # still keyed with the initial URL.
10766
+ type PreloadingAttemptKey extends object
10767
+ properties
10768
+ Network.LoaderId loaderId
10769
+ SpeculationAction action
10770
+ string url
10771
+ optional SpeculationTargetHint targetHint
10772
+
10773
+ # Lists sources for a preloading attempt, specifically the ids of rule sets
10774
+ # that had a speculation rule that triggered the attempt, and the
10775
+ # BackendNodeIds of <a href> or <area href> elements that triggered the
10776
+ # attempt (in the case of attempts triggered by a document rule). It is
10777
+ # possible for mulitple rule sets and links to trigger a single attempt.
10778
+ type PreloadingAttemptSource extends object
10779
+ properties
10780
+ PreloadingAttemptKey key
10781
+ array of RuleSetId ruleSetIds
10782
+ array of DOM.BackendNodeId nodeIds
10783
+
10848
10784
  command enable
10849
10785
 
10850
10786
  command disable
@@ -10858,6 +10794,112 @@ experimental domain Preload
10858
10794
  parameters
10859
10795
  RuleSetId id
10860
10796
 
10797
+ # List of FinalStatus reasons for Prerender2.
10798
+ type PrerenderFinalStatus extends string
10799
+ enum
10800
+ Activated
10801
+ Destroyed
10802
+ LowEndDevice
10803
+ InvalidSchemeRedirect
10804
+ InvalidSchemeNavigation
10805
+ InProgressNavigation
10806
+ NavigationRequestBlockedByCsp
10807
+ MainFrameNavigation
10808
+ MojoBinderPolicy
10809
+ RendererProcessCrashed
10810
+ RendererProcessKilled
10811
+ Download
10812
+ TriggerDestroyed
10813
+ NavigationNotCommitted
10814
+ NavigationBadHttpStatus
10815
+ ClientCertRequested
10816
+ NavigationRequestNetworkError
10817
+ MaxNumOfRunningPrerendersExceeded
10818
+ CancelAllHostsForTesting
10819
+ DidFailLoad
10820
+ Stop
10821
+ SslCertificateError
10822
+ LoginAuthRequested
10823
+ UaChangeRequiresReload
10824
+ BlockedByClient
10825
+ AudioOutputDeviceRequested
10826
+ MixedContent
10827
+ TriggerBackgrounded
10828
+ EmbedderTriggeredAndCrossOriginRedirected
10829
+ MemoryLimitExceeded
10830
+ # Prerenders can be cancelled when Chrome uses excessive memory. This is
10831
+ # recorded when it fails to get the memory usage.
10832
+ FailToGetMemoryUsage
10833
+ DataSaverEnabled
10834
+ HasEffectiveUrl
10835
+ ActivatedBeforeStarted
10836
+ InactivePageRestriction
10837
+ StartFailed
10838
+ TimeoutBackgrounded
10839
+ CrossSiteRedirect
10840
+ CrossSiteNavigation
10841
+ SameSiteCrossOriginRedirect
10842
+ SameSiteCrossOriginNavigation
10843
+ SameSiteCrossOriginRedirectNotOptIn
10844
+ SameSiteCrossOriginNavigationNotOptIn
10845
+ ActivationNavigationParameterMismatch
10846
+ ActivatedInBackground
10847
+ EmbedderHostDisallowed
10848
+ ActivationNavigationDestroyedBeforeSuccess
10849
+ TabClosedByUserGesture
10850
+ TabClosedWithoutUserGesture
10851
+ PrimaryMainFrameRendererProcessCrashed
10852
+ PrimaryMainFrameRendererProcessKilled
10853
+ ActivationFramePolicyNotCompatible
10854
+ PreloadingDisabled
10855
+ BatterySaverEnabled
10856
+ ActivatedDuringMainFrameNavigation
10857
+ PreloadingUnsupportedByWebContents
10858
+
10859
+ # Fired when a prerender attempt is completed.
10860
+ event prerenderAttemptCompleted
10861
+ parameters
10862
+ # The frame id of the frame initiating prerendering.
10863
+ Page.FrameId initiatingFrameId
10864
+ string prerenderingUrl
10865
+ PrerenderFinalStatus finalStatus
10866
+ # This is used to give users more information about the name of the API call
10867
+ # that is incompatible with prerender and has caused the cancellation of the attempt
10868
+ optional string disallowedApiMethod
10869
+
10870
+ # Preloading status values, see also PreloadingTriggeringOutcome. This
10871
+ # status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
10872
+ type PreloadingStatus extends string
10873
+ enum
10874
+ Pending
10875
+ Running
10876
+ Ready
10877
+ Success
10878
+ Failure
10879
+ # PreloadingTriggeringOutcome which not used by prefetch nor prerender.
10880
+ NotSupported
10881
+
10882
+ # Fired when a prefetch attempt is updated.
10883
+ event prefetchStatusUpdated
10884
+ parameters
10885
+ # The frame id of the frame initiating prefetch.
10886
+ Page.FrameId initiatingFrameId
10887
+ string prefetchUrl
10888
+ PreloadingStatus status
10889
+
10890
+ # Fired when a prerender attempt is updated.
10891
+ event prerenderStatusUpdated
10892
+ parameters
10893
+ # The frame id of the frame initiating prerender.
10894
+ Page.FrameId initiatingFrameId
10895
+ string prerenderingUrl
10896
+ PreloadingStatus status
10897
+
10898
+ # Send a list of sources for all preloading attempts.
10899
+ event preloadingAttemptSourcesUpdated
10900
+ parameters
10901
+ array of PreloadingAttemptSource preloadingAttemptSources
10902
+
10861
10903
  # This domain allows interacting with the FedCM dialog.
10862
10904
  experimental domain FedCm
10863
10905
  event dialogShown
@@ -482,20 +482,6 @@ export namespace ProtocolMapping {
482
482
  * when bfcache navigation fails.
483
483
  */
484
484
  'Page.backForwardCacheNotUsed': [Protocol.Page.BackForwardCacheNotUsedEvent];
485
- /**
486
- * Fired when a prerender attempt is completed.
487
- */
488
- 'Page.prerenderAttemptCompleted': [Protocol.Page.PrerenderAttemptCompletedEvent];
489
- /**
490
- * TODO(crbug/1384419): Create a dedicated domain for preloading.
491
- * Fired when a prefetch attempt is updated.
492
- */
493
- 'Page.prefetchStatusUpdated': [Protocol.Page.PrefetchStatusUpdatedEvent];
494
- /**
495
- * TODO(crbug/1384419): Create a dedicated domain for preloading.
496
- * Fired when a prerender attempt is updated.
497
- */
498
- 'Page.prerenderStatusUpdated': [Protocol.Page.PrerenderStatusUpdatedEvent];
499
485
  'Page.loadEventFired': [Protocol.Page.LoadEventFiredEvent];
500
486
  /**
501
487
  * Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.
@@ -724,6 +710,22 @@ export namespace ProtocolMapping {
724
710
  */
725
711
  'Preload.ruleSetUpdated': [Protocol.Preload.RuleSetUpdatedEvent];
726
712
  'Preload.ruleSetRemoved': [Protocol.Preload.RuleSetRemovedEvent];
713
+ /**
714
+ * Fired when a prerender attempt is completed.
715
+ */
716
+ 'Preload.prerenderAttemptCompleted': [Protocol.Preload.PrerenderAttemptCompletedEvent];
717
+ /**
718
+ * Fired when a prefetch attempt is updated.
719
+ */
720
+ 'Preload.prefetchStatusUpdated': [Protocol.Preload.PrefetchStatusUpdatedEvent];
721
+ /**
722
+ * Fired when a prerender attempt is updated.
723
+ */
724
+ 'Preload.prerenderStatusUpdated': [Protocol.Preload.PrerenderStatusUpdatedEvent];
725
+ /**
726
+ * Send a list of sources for all preloading attempts.
727
+ */
728
+ 'Preload.preloadingAttemptSourcesUpdated': [Protocol.Preload.PreloadingAttemptSourcesUpdatedEvent];
727
729
  'FedCm.dialogShown': [];
728
730
  }
729
731
 
@@ -3070,23 +3070,6 @@ export namespace ProtocolProxyApi {
3070
3070
  */
3071
3071
  on(event: 'backForwardCacheNotUsed', listener: (params: Protocol.Page.BackForwardCacheNotUsedEvent) => void): void;
3072
3072
 
3073
- /**
3074
- * Fired when a prerender attempt is completed.
3075
- */
3076
- on(event: 'prerenderAttemptCompleted', listener: (params: Protocol.Page.PrerenderAttemptCompletedEvent) => void): void;
3077
-
3078
- /**
3079
- * TODO(crbug/1384419): Create a dedicated domain for preloading.
3080
- * Fired when a prefetch attempt is updated.
3081
- */
3082
- on(event: 'prefetchStatusUpdated', listener: (params: Protocol.Page.PrefetchStatusUpdatedEvent) => void): void;
3083
-
3084
- /**
3085
- * TODO(crbug/1384419): Create a dedicated domain for preloading.
3086
- * Fired when a prerender attempt is updated.
3087
- */
3088
- on(event: 'prerenderStatusUpdated', listener: (params: Protocol.Page.PrerenderStatusUpdatedEvent) => void): void;
3089
-
3090
3073
  on(event: 'loadEventFired', listener: (params: Protocol.Page.LoadEventFiredEvent) => void): void;
3091
3074
 
3092
3075
  /**
@@ -3964,6 +3947,26 @@ export namespace ProtocolProxyApi {
3964
3947
 
3965
3948
  on(event: 'ruleSetRemoved', listener: (params: Protocol.Preload.RuleSetRemovedEvent) => void): void;
3966
3949
 
3950
+ /**
3951
+ * Fired when a prerender attempt is completed.
3952
+ */
3953
+ on(event: 'prerenderAttemptCompleted', listener: (params: Protocol.Preload.PrerenderAttemptCompletedEvent) => void): void;
3954
+
3955
+ /**
3956
+ * Fired when a prefetch attempt is updated.
3957
+ */
3958
+ on(event: 'prefetchStatusUpdated', listener: (params: Protocol.Preload.PrefetchStatusUpdatedEvent) => void): void;
3959
+
3960
+ /**
3961
+ * Fired when a prerender attempt is updated.
3962
+ */
3963
+ on(event: 'prerenderStatusUpdated', listener: (params: Protocol.Preload.PrerenderStatusUpdatedEvent) => void): void;
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
+
3967
3970
  }
3968
3971
 
3969
3972
  export interface FedCmApi {
@@ -12901,17 +12901,6 @@ export namespace Protocol {
12901
12901
  children: BackForwardCacheNotRestoredExplanationTree[];
12902
12902
  }
12903
12903
 
12904
- /**
12905
- * List of FinalStatus reasons for Prerender2.
12906
- */
12907
- 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' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents');
12908
-
12909
- /**
12910
- * Preloading status values, see also PreloadingTriggeringOutcome. This
12911
- * status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
12912
- */
12913
- export type PreloadingStatus = ('Pending' | 'Running' | 'Ready' | 'Success' | 'Failure' | 'NotSupported');
12914
-
12915
12904
  export interface AddScriptToEvaluateOnLoadRequest {
12916
12905
  scriptSource: string;
12917
12906
  }
@@ -13930,49 +13919,6 @@ export namespace Protocol {
13930
13919
  notRestoredExplanationsTree?: BackForwardCacheNotRestoredExplanationTree;
13931
13920
  }
13932
13921
 
13933
- /**
13934
- * Fired when a prerender attempt is completed.
13935
- */
13936
- export interface PrerenderAttemptCompletedEvent {
13937
- /**
13938
- * The frame id of the frame initiating prerendering.
13939
- */
13940
- initiatingFrameId: FrameId;
13941
- prerenderingUrl: string;
13942
- finalStatus: PrerenderFinalStatus;
13943
- /**
13944
- * This is used to give users more information about the name of the API call
13945
- * that is incompatible with prerender and has caused the cancellation of the attempt
13946
- */
13947
- disallowedApiMethod?: string;
13948
- }
13949
-
13950
- /**
13951
- * TODO(crbug/1384419): Create a dedicated domain for preloading.
13952
- * Fired when a prefetch attempt is updated.
13953
- */
13954
- export interface PrefetchStatusUpdatedEvent {
13955
- /**
13956
- * The frame id of the frame initiating prefetch.
13957
- */
13958
- initiatingFrameId: FrameId;
13959
- prefetchUrl: string;
13960
- status: PreloadingStatus;
13961
- }
13962
-
13963
- /**
13964
- * TODO(crbug/1384419): Create a dedicated domain for preloading.
13965
- * Fired when a prerender attempt is updated.
13966
- */
13967
- export interface PrerenderStatusUpdatedEvent {
13968
- /**
13969
- * The frame id of the frame initiating prerender.
13970
- */
13971
- initiatingFrameId: FrameId;
13972
- prerenderingUrl: string;
13973
- status: PreloadingStatus;
13974
- }
13975
-
13976
13922
  export interface LoadEventFiredEvent {
13977
13923
  timestamp: Network.MonotonicTime;
13978
13924
  }
@@ -16938,6 +16884,58 @@ export namespace Protocol {
16938
16884
  sourceText: string;
16939
16885
  }
16940
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
+
16928
+ /**
16929
+ * List of FinalStatus reasons for Prerender2.
16930
+ */
16931
+ 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' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents');
16932
+
16933
+ /**
16934
+ * Preloading status values, see also PreloadingTriggeringOutcome. This
16935
+ * status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
16936
+ */
16937
+ export type PreloadingStatus = ('Pending' | 'Running' | 'Ready' | 'Success' | 'Failure' | 'NotSupported');
16938
+
16941
16939
  /**
16942
16940
  * Upsert. Currently, it is only emitted when a rule set added.
16943
16941
  */
@@ -16948,6 +16946,54 @@ export namespace Protocol {
16948
16946
  export interface RuleSetRemovedEvent {
16949
16947
  id: RuleSetId;
16950
16948
  }
16949
+
16950
+ /**
16951
+ * Fired when a prerender attempt is completed.
16952
+ */
16953
+ export interface PrerenderAttemptCompletedEvent {
16954
+ /**
16955
+ * The frame id of the frame initiating prerendering.
16956
+ */
16957
+ initiatingFrameId: Page.FrameId;
16958
+ prerenderingUrl: string;
16959
+ finalStatus: PrerenderFinalStatus;
16960
+ /**
16961
+ * This is used to give users more information about the name of the API call
16962
+ * that is incompatible with prerender and has caused the cancellation of the attempt
16963
+ */
16964
+ disallowedApiMethod?: string;
16965
+ }
16966
+
16967
+ /**
16968
+ * Fired when a prefetch attempt is updated.
16969
+ */
16970
+ export interface PrefetchStatusUpdatedEvent {
16971
+ /**
16972
+ * The frame id of the frame initiating prefetch.
16973
+ */
16974
+ initiatingFrameId: Page.FrameId;
16975
+ prefetchUrl: string;
16976
+ status: PreloadingStatus;
16977
+ }
16978
+
16979
+ /**
16980
+ * Fired when a prerender attempt is updated.
16981
+ */
16982
+ export interface PrerenderStatusUpdatedEvent {
16983
+ /**
16984
+ * The frame id of the frame initiating prerender.
16985
+ */
16986
+ initiatingFrameId: Page.FrameId;
16987
+ prerenderingUrl: string;
16988
+ status: PreloadingStatus;
16989
+ }
16990
+
16991
+ /**
16992
+ * Send a list of sources for all preloading attempts.
16993
+ */
16994
+ export interface PreloadingAttemptSourcesUpdatedEvent {
16995
+ preloadingAttemptSources: PreloadingAttemptSource[];
16996
+ }
16951
16997
  }
16952
16998
 
16953
16999
  /**