devtools-protocol 0.0.1105486 → 0.0.1107588
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.
@@ -16438,10 +16438,11 @@
|
|
16438
16438
|
]
|
16439
16439
|
},
|
16440
16440
|
{
|
16441
|
-
"id": "
|
16442
|
-
"description": "
|
16441
|
+
"id": "PreloadingStatus",
|
16442
|
+
"description": "Preloading status values, see also PreloadingTriggeringOutcome. This\nstatus is shared by prefetchStatusUpdated and prerenderStatusUpdated.",
|
16443
16443
|
"type": "string",
|
16444
16444
|
"enum": [
|
16445
|
+
"Pending",
|
16445
16446
|
"Running",
|
16446
16447
|
"Ready",
|
16447
16448
|
"Success",
|
@@ -18064,7 +18065,27 @@
|
|
18064
18065
|
},
|
18065
18066
|
{
|
18066
18067
|
"name": "status",
|
18067
|
-
"$ref": "
|
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"
|
18068
18089
|
}
|
18069
18090
|
]
|
18070
18091
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -8555,14 +8555,16 @@ domain Page
|
|
8555
8555
|
# that is incompatible with prerender and has caused the cancellation of the attempt
|
8556
8556
|
optional string disallowedApiMethod
|
8557
8557
|
|
8558
|
-
#
|
8559
|
-
|
8558
|
+
# Preloading status values, see also PreloadingTriggeringOutcome. This
|
8559
|
+
# status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
|
8560
|
+
type PreloadingStatus extends string
|
8560
8561
|
enum
|
8562
|
+
Pending
|
8561
8563
|
Running
|
8562
8564
|
Ready
|
8563
8565
|
Success
|
8564
8566
|
Failure
|
8565
|
-
# PreloadingTriggeringOutcome which not used by prefetch.
|
8567
|
+
# PreloadingTriggeringOutcome which not used by prefetch nor prerender.
|
8566
8568
|
NotSupported
|
8567
8569
|
|
8568
8570
|
# TODO(crbug/1384419): Create a dedicated domain for preloading.
|
@@ -8572,7 +8574,16 @@ domain Page
|
|
8572
8574
|
# The frame id of the frame initiating prefetch.
|
8573
8575
|
FrameId initiatingFrameId
|
8574
8576
|
string prefetchUrl
|
8575
|
-
|
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
|
8576
8587
|
|
8577
8588
|
event loadEventFired
|
8578
8589
|
parameters
|
@@ -491,6 +491,11 @@ export namespace ProtocolMapping {
|
|
491
491
|
* Fired when a prefetch attempt is updated.
|
492
492
|
*/
|
493
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];
|
494
499
|
'Page.loadEventFired': [Protocol.Page.LoadEventFiredEvent];
|
495
500
|
/**
|
496
501
|
* Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.
|
@@ -3079,6 +3079,12 @@ export namespace ProtocolProxyApi {
|
|
3079
3079
|
*/
|
3080
3080
|
on(event: 'prefetchStatusUpdated', listener: (params: Protocol.Page.PrefetchStatusUpdatedEvent) => void): void;
|
3081
3081
|
|
3082
|
+
/**
|
3083
|
+
* TODO(crbug/1384419): Create a dedicated domain for preloading.
|
3084
|
+
* Fired when a prerender attempt is updated.
|
3085
|
+
*/
|
3086
|
+
on(event: 'prerenderStatusUpdated', listener: (params: Protocol.Page.PrerenderStatusUpdatedEvent) => void): void;
|
3087
|
+
|
3082
3088
|
on(event: 'loadEventFired', listener: (params: Protocol.Page.LoadEventFiredEvent) => void): void;
|
3083
3089
|
|
3084
3090
|
/**
|
package/types/protocol.d.ts
CHANGED
@@ -12907,9 +12907,10 @@ export namespace Protocol {
|
|
12907
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
12908
|
|
12909
12909
|
/**
|
12910
|
-
*
|
12910
|
+
* Preloading status values, see also PreloadingTriggeringOutcome. This
|
12911
|
+
* status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
|
12911
12912
|
*/
|
12912
|
-
export type
|
12913
|
+
export type PreloadingStatus = ('Pending' | 'Running' | 'Ready' | 'Success' | 'Failure' | 'NotSupported');
|
12913
12914
|
|
12914
12915
|
export interface AddScriptToEvaluateOnLoadRequest {
|
12915
12916
|
scriptSource: string;
|
@@ -13956,7 +13957,20 @@ export namespace Protocol {
|
|
13956
13957
|
*/
|
13957
13958
|
initiatingFrameId: FrameId;
|
13958
13959
|
prefetchUrl: string;
|
13959
|
-
status:
|
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;
|
13960
13974
|
}
|
13961
13975
|
|
13962
13976
|
export interface LoadEventFiredEvent {
|