devtools-protocol 0.0.1147663 → 0.0.1149535

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.
@@ -11199,6 +11199,12 @@
11199
11199
  "experimental": true,
11200
11200
  "type": "number"
11201
11201
  },
11202
+ {
11203
+ "name": "receiveHeadersStart",
11204
+ "description": "Started receiving response headers.",
11205
+ "experimental": true,
11206
+ "type": "number"
11207
+ },
11202
11208
  {
11203
11209
  "name": "receiveHeadersEnd",
11204
11210
  "description": "Finished receiving response headers.",
@@ -17800,6 +17806,17 @@
17800
17806
  "type": "boolean"
17801
17807
  }
17802
17808
  ]
17809
+ },
17810
+ {
17811
+ "name": "setPrerenderingAllowed",
17812
+ "description": "Enable/disable prerendering manually.\n\nThis command is a short-term solution for https://crbug.com/1440085.\nSee https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA\nfor more details.\n\nTODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.",
17813
+ "experimental": true,
17814
+ "parameters": [
17815
+ {
17816
+ "name": "isAllowed",
17817
+ "type": "boolean"
17818
+ }
17819
+ ]
17803
17820
  }
17804
17821
  ],
17805
17822
  "events": [
@@ -23321,7 +23338,8 @@
23321
23338
  "SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation",
23322
23339
  "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation",
23323
23340
  "MemoryPressureOnTrigger",
23324
- "MemoryPressureAfterTriggered"
23341
+ "MemoryPressureAfterTriggered",
23342
+ "PrerenderingDisabledByDevTools"
23325
23343
  ]
23326
23344
  },
23327
23345
  {
@@ -3000,7 +3000,7 @@
3000
3000
  },
3001
3001
  {
3002
3002
  "name": "serializationOptions",
3003
- "description": "Specifies the result serialization. If provided, overrides\n`returnByValue` and `generateWebDriverValue`.",
3003
+ "description": "Specifies the result serialization. If provided, overrides\n`generatePreview`, `returnByValue` and `generateWebDriverValue`.",
3004
3004
  "experimental": true,
3005
3005
  "optional": true,
3006
3006
  "$ref": "SerializationOptions"
@@ -3182,7 +3182,7 @@
3182
3182
  },
3183
3183
  {
3184
3184
  "name": "serializationOptions",
3185
- "description": "Specifies the result serialization. If provided, overrides\n`returnByValue` and `generateWebDriverValue`.",
3185
+ "description": "Specifies the result serialization. If provided, overrides\n`generatePreview`, `returnByValue` and `generateWebDriverValue`.",
3186
3186
  "experimental": true,
3187
3187
  "optional": true,
3188
3188
  "$ref": "SerializationOptions"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1147663",
3
+ "version": "0.0.1149535",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -5121,6 +5121,8 @@ domain Network
5121
5121
  experimental number pushStart
5122
5122
  # Time the server finished pushing request.
5123
5123
  experimental number pushEnd
5124
+ # Started receiving response headers.
5125
+ experimental number receiveHeadersStart
5124
5126
  # Finished receiving response headers.
5125
5127
  number receiveHeadersEnd
5126
5128
 
@@ -8629,6 +8631,17 @@ domain Page
8629
8631
  # Base64-encoded data
8630
8632
  binary data
8631
8633
 
8634
+ # Enable/disable prerendering manually.
8635
+ #
8636
+ # This command is a short-term solution for https://crbug.com/1440085.
8637
+ # See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA
8638
+ # for more details.
8639
+ #
8640
+ # TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
8641
+ experimental command setPrerenderingAllowed
8642
+ parameters
8643
+ boolean isAllowed
8644
+
8632
8645
  domain Performance
8633
8646
 
8634
8647
  # Run-time execution metric.
@@ -11034,6 +11047,7 @@ experimental domain Preload
11034
11047
  SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation
11035
11048
  MemoryPressureOnTrigger
11036
11049
  MemoryPressureAfterTriggered
11050
+ PrerenderingDisabledByDevTools
11037
11051
 
11038
11052
  # Fired when a prerender attempt is completed.
11039
11053
  event prerenderAttemptCompleted
@@ -1443,7 +1443,7 @@ domain Runtime
1443
1443
  # resulting `objectId` is still provided.
1444
1444
  deprecated optional boolean generateWebDriverValue
1445
1445
  # Specifies the result serialization. If provided, overrides
1446
- # `returnByValue` and `generateWebDriverValue`.
1446
+ # `generatePreview`, `returnByValue` and `generateWebDriverValue`.
1447
1447
  experimental optional SerializationOptions serializationOptions
1448
1448
 
1449
1449
  returns
@@ -1538,7 +1538,7 @@ domain Runtime
1538
1538
  # resulting `objectId` is still provided.
1539
1539
  deprecated optional boolean generateWebDriverValue
1540
1540
  # Specifies the result serialization. If provided, overrides
1541
- # `returnByValue` and `generateWebDriverValue`.
1541
+ # `generatePreview`, `returnByValue` and `generateWebDriverValue`.
1542
1542
  experimental optional SerializationOptions serializationOptions
1543
1543
  returns
1544
1544
  # Evaluation result.
@@ -3914,6 +3914,19 @@ export namespace ProtocolMapping {
3914
3914
  paramsType: [Protocol.Page.SetInterceptFileChooserDialogRequest];
3915
3915
  returnType: void;
3916
3916
  };
3917
+ /**
3918
+ * Enable/disable prerendering manually.
3919
+ *
3920
+ * This command is a short-term solution for https://crbug.com/1440085.
3921
+ * See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA
3922
+ * for more details.
3923
+ *
3924
+ * TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
3925
+ */
3926
+ 'Page.setPrerenderingAllowed': {
3927
+ paramsType: [Protocol.Page.SetPrerenderingAllowedRequest];
3928
+ returnType: void;
3929
+ };
3917
3930
  /**
3918
3931
  * Disable collecting and reporting metrics.
3919
3932
  */
@@ -2991,6 +2991,17 @@ export namespace ProtocolProxyApi {
2991
2991
  */
2992
2992
  setInterceptFileChooserDialog(params: Protocol.Page.SetInterceptFileChooserDialogRequest): Promise<void>;
2993
2993
 
2994
+ /**
2995
+ * Enable/disable prerendering manually.
2996
+ *
2997
+ * This command is a short-term solution for https://crbug.com/1440085.
2998
+ * See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA
2999
+ * for more details.
3000
+ *
3001
+ * TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
3002
+ */
3003
+ setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<void>;
3004
+
2994
3005
  on(event: 'domContentEventFired', listener: (params: Protocol.Page.DomContentEventFiredEvent) => void): void;
2995
3006
 
2996
3007
  /**
@@ -2153,7 +2153,7 @@ export namespace Protocol {
2153
2153
  generateWebDriverValue?: boolean;
2154
2154
  /**
2155
2155
  * Specifies the result serialization. If provided, overrides
2156
- * `returnByValue` and `generateWebDriverValue`.
2156
+ * `generatePreview`, `returnByValue` and `generateWebDriverValue`.
2157
2157
  */
2158
2158
  serializationOptions?: SerializationOptions;
2159
2159
  }
@@ -2288,7 +2288,7 @@ export namespace Protocol {
2288
2288
  generateWebDriverValue?: boolean;
2289
2289
  /**
2290
2290
  * Specifies the result serialization. If provided, overrides
2291
- * `returnByValue` and `generateWebDriverValue`.
2291
+ * `generatePreview`, `returnByValue` and `generateWebDriverValue`.
2292
2292
  */
2293
2293
  serializationOptions?: SerializationOptions;
2294
2294
  }
@@ -9676,6 +9676,10 @@ export namespace Protocol {
9676
9676
  * Time the server finished pushing request.
9677
9677
  */
9678
9678
  pushEnd: number;
9679
+ /**
9680
+ * Started receiving response headers.
9681
+ */
9682
+ receiveHeadersStart: number;
9679
9683
  /**
9680
9684
  * Finished receiving response headers.
9681
9685
  */
@@ -13813,6 +13817,10 @@ export namespace Protocol {
13813
13817
  enabled: boolean;
13814
13818
  }
13815
13819
 
13820
+ export interface SetPrerenderingAllowedRequest {
13821
+ isAllowed: boolean;
13822
+ }
13823
+
13816
13824
  export interface DomContentEventFiredEvent {
13817
13825
  timestamp: Network.MonotonicTime;
13818
13826
  }
@@ -17205,7 +17213,7 @@ export namespace Protocol {
17205
17213
  /**
17206
17214
  * List of FinalStatus reasons for Prerender2.
17207
17215
  */
17208
- 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');
17216
+ 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' | 'PrerenderingDisabledByDevTools');
17209
17217
 
17210
17218
  /**
17211
17219
  * Preloading status values, see also PreloadingTriggeringOutcome. This