devtools-protocol 0.0.1113120 → 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.
@@ -22790,6 +22790,73 @@
|
|
22790
22790
|
}
|
22791
22791
|
]
|
22792
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
|
+
},
|
22793
22860
|
{
|
22794
22861
|
"id": "PrerenderFinalStatus",
|
22795
22862
|
"description": "List of FinalStatus reasons for Prerender2.",
|
@@ -22957,6 +23024,19 @@
|
|
22957
23024
|
"$ref": "PreloadingStatus"
|
22958
23025
|
}
|
22959
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
|
+
]
|
22960
23040
|
}
|
22961
23041
|
]
|
22962
23042
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -10742,6 +10742,45 @@ experimental domain Preload
|
|
10742
10742
|
# - https://github.com/WICG/nav-speculation/blob/main/triggers.md
|
10743
10743
|
string sourceText
|
10744
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
|
+
|
10745
10784
|
command enable
|
10746
10785
|
|
10747
10786
|
command disable
|
@@ -10856,6 +10895,11 @@ experimental domain Preload
|
|
10856
10895
|
string prerenderingUrl
|
10857
10896
|
PreloadingStatus status
|
10858
10897
|
|
10898
|
+
# Send a list of sources for all preloading attempts.
|
10899
|
+
event preloadingAttemptSourcesUpdated
|
10900
|
+
parameters
|
10901
|
+
array of PreloadingAttemptSource preloadingAttemptSources
|
10902
|
+
|
10859
10903
|
# This domain allows interacting with the FedCM dialog.
|
10860
10904
|
experimental domain FedCm
|
10861
10905
|
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 {
|
package/types/protocol.d.ts
CHANGED
@@ -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
|
/**
|