devtools-protocol 0.0.1148337 → 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.
@@ -17806,6 +17806,17 @@
17806
17806
  "type": "boolean"
17807
17807
  }
17808
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
+ ]
17809
17820
  }
17810
17821
  ],
17811
17822
  "events": [
@@ -23327,7 +23338,8 @@
23327
23338
  "SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation",
23328
23339
  "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation",
23329
23340
  "MemoryPressureOnTrigger",
23330
- "MemoryPressureAfterTriggered"
23341
+ "MemoryPressureAfterTriggered",
23342
+ "PrerenderingDisabledByDevTools"
23331
23343
  ]
23332
23344
  },
23333
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.1148337",
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",
@@ -8631,6 +8631,17 @@ domain Page
8631
8631
  # Base64-encoded data
8632
8632
  binary data
8633
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
+
8634
8645
  domain Performance
8635
8646
 
8636
8647
  # Run-time execution metric.
@@ -11036,6 +11047,7 @@ experimental domain Preload
11036
11047
  SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation
11037
11048
  MemoryPressureOnTrigger
11038
11049
  MemoryPressureAfterTriggered
11050
+ PrerenderingDisabledByDevTools
11039
11051
 
11040
11052
  # Fired when a prerender attempt is completed.
11041
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
  }
@@ -13817,6 +13817,10 @@ export namespace Protocol {
13817
13817
  enabled: boolean;
13818
13818
  }
13819
13819
 
13820
+ export interface SetPrerenderingAllowedRequest {
13821
+ isAllowed: boolean;
13822
+ }
13823
+
13820
13824
  export interface DomContentEventFiredEvent {
13821
13825
  timestamp: Network.MonotonicTime;
13822
13826
  }
@@ -17209,7 +17213,7 @@ export namespace Protocol {
17209
17213
  /**
17210
17214
  * List of FinalStatus reasons for Prerender2.
17211
17215
  */
17212
- 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');
17213
17217
 
17214
17218
  /**
17215
17219
  * Preloading status values, see also PreloadingTriggeringOutcome. This