devtools-protocol 0.0.1132318 → 0.0.1134181

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.
@@ -23138,7 +23138,20 @@
23138
23138
  "CrossSiteRedirectInMainFrameNavigation",
23139
23139
  "CrossSiteNavigationInMainFrameNavigation",
23140
23140
  "SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation",
23141
- "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation"
23141
+ "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation",
23142
+ "MemoryPressureOnTrigger",
23143
+ "MemoryPressureAfterTriggered"
23144
+ ]
23145
+ },
23146
+ {
23147
+ "id": "PreloadEnabledState",
23148
+ "type": "string",
23149
+ "enum": [
23150
+ "Enabled",
23151
+ "DisabledByDataSaver",
23152
+ "DisabledByBatterySaver",
23153
+ "DisabledByPreference",
23154
+ "NotSupported"
23142
23155
  ]
23143
23156
  },
23144
23157
  {
@@ -23212,6 +23225,16 @@
23212
23225
  }
23213
23226
  ]
23214
23227
  },
23228
+ {
23229
+ "name": "preloadEnabledStateUpdated",
23230
+ "description": "Fired when a preload enabled state is updated.",
23231
+ "parameters": [
23232
+ {
23233
+ "name": "state",
23234
+ "$ref": "PreloadEnabledState"
23235
+ }
23236
+ ]
23237
+ },
23215
23238
  {
23216
23239
  "name": "prefetchStatusUpdated",
23217
23240
  "description": "Fired when a prefetch attempt is updated.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1132318",
3
+ "version": "0.0.1134181",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -777,8 +777,8 @@ experimental domain Audits
777
777
 
778
778
  # This issue warns about sites in the redirect chain of a finished navigation
779
779
  # that may be flagged as trackers and have their state cleared if they don't
780
- # receive a user interaction. Note that in this context 'site' means eTLD+1.
781
- # For example, if the URL `https://example.test:80/bounce` was in the
780
+ # receive a user interaction. Note that in this context 'site' means eTLD+1.
781
+ # For example, if the URL `https://example.test:80/bounce` was in the
782
782
  # redirect chain, the site reported would be `example.test`.
783
783
  type BounceTrackingIssueDetails extends object
784
784
  properties
@@ -10950,6 +10950,8 @@ experimental domain Preload
10950
10950
  CrossSiteNavigationInMainFrameNavigation
10951
10951
  SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation
10952
10952
  SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation
10953
+ MemoryPressureOnTrigger
10954
+ MemoryPressureAfterTriggered
10953
10955
 
10954
10956
  # Fired when a prerender attempt is completed.
10955
10957
  event prerenderAttemptCompleted
@@ -10963,6 +10965,20 @@ experimental domain Preload
10963
10965
  # that is incompatible with prerender and has caused the cancellation of the attempt
10964
10966
  optional string disallowedApiMethod
10965
10967
 
10968
+ type PreloadEnabledState extends string
10969
+ enum
10970
+ Enabled
10971
+ DisabledByDataSaver
10972
+ DisabledByBatterySaver
10973
+ DisabledByPreference
10974
+ # Service not available.
10975
+ NotSupported
10976
+
10977
+ # Fired when a preload enabled state is updated.
10978
+ event preloadEnabledStateUpdated
10979
+ parameters
10980
+ PreloadEnabledState state
10981
+
10966
10982
  # Preloading status values, see also PreloadingTriggeringOutcome. This
10967
10983
  # status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
10968
10984
  type PreloadingStatus extends string
@@ -716,6 +716,10 @@ export namespace ProtocolMapping {
716
716
  * Fired when a prerender attempt is completed.
717
717
  */
718
718
  'Preload.prerenderAttemptCompleted': [Protocol.Preload.PrerenderAttemptCompletedEvent];
719
+ /**
720
+ * Fired when a preload enabled state is updated.
721
+ */
722
+ 'Preload.preloadEnabledStateUpdated': [Protocol.Preload.PreloadEnabledStateUpdatedEvent];
719
723
  /**
720
724
  * Fired when a prefetch attempt is updated.
721
725
  */
@@ -3966,6 +3966,11 @@ export namespace ProtocolProxyApi {
3966
3966
  */
3967
3967
  on(event: 'prerenderAttemptCompleted', listener: (params: Protocol.Preload.PrerenderAttemptCompletedEvent) => void): void;
3968
3968
 
3969
+ /**
3970
+ * Fired when a preload enabled state is updated.
3971
+ */
3972
+ on(event: 'preloadEnabledStateUpdated', listener: (params: Protocol.Preload.PreloadEnabledStateUpdatedEvent) => void): void;
3973
+
3969
3974
  /**
3970
3975
  * Fired when a prefetch attempt is updated.
3971
3976
  */
@@ -17029,7 +17029,9 @@ export namespace Protocol {
17029
17029
  /**
17030
17030
  * List of FinalStatus reasons for Prerender2.
17031
17031
  */
17032
- 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' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation');
17032
+ 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' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered');
17033
+
17034
+ export type PreloadEnabledState = ('Enabled' | 'DisabledByDataSaver' | 'DisabledByBatterySaver' | 'DisabledByPreference' | 'NotSupported');
17033
17035
 
17034
17036
  /**
17035
17037
  * Preloading status values, see also PreloadingTriggeringOutcome. This
@@ -17066,6 +17068,13 @@ export namespace Protocol {
17066
17068
  disallowedApiMethod?: string;
17067
17069
  }
17068
17070
 
17071
+ /**
17072
+ * Fired when a preload enabled state is updated.
17073
+ */
17074
+ export interface PreloadEnabledStateUpdatedEvent {
17075
+ state: PreloadEnabledState;
17076
+ }
17077
+
17069
17078
  /**
17070
17079
  * Fired when a prefetch attempt is updated.
17071
17080
  */