devtools-protocol 0.0.1432532 → 0.0.1433962

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.
@@ -1678,6 +1678,10 @@
1678
1678
  "name": "error",
1679
1679
  "$ref": "SRIMessageSignatureError"
1680
1680
  },
1681
+ {
1682
+ "name": "signatureBase",
1683
+ "type": "string"
1684
+ },
1681
1685
  {
1682
1686
  "name": "request",
1683
1687
  "$ref": "AffectedRequest"
@@ -9962,8 +9966,9 @@
9962
9966
  },
9963
9967
  {
9964
9968
  "name": "displayFeature",
9965
- "description": "If set, the display feature of a multi-segment screen. If not set, multi-segment support\nis turned-off.",
9969
+ "description": "If set, the display feature of a multi-segment screen. If not set, multi-segment support\nis turned-off.\nDeprecated, use Emulation.setDisplayFeaturesOverride.",
9966
9970
  "experimental": true,
9971
+ "deprecated": true,
9967
9972
  "optional": true,
9968
9973
  "$ref": "DisplayFeature"
9969
9974
  },
@@ -9993,6 +9998,25 @@
9993
9998
  "description": "Clears a device posture override set with either setDeviceMetricsOverride()\nor setDevicePostureOverride() and starts using posture information from the\nplatform again.\nDoes nothing if no override is set.",
9994
9999
  "experimental": true
9995
10000
  },
10001
+ {
10002
+ "name": "setDisplayFeaturesOverride",
10003
+ "description": "Start using the given display features to pupulate the Viewport Segments API.\nThis override can also be set in setDeviceMetricsOverride().",
10004
+ "experimental": true,
10005
+ "parameters": [
10006
+ {
10007
+ "name": "features",
10008
+ "type": "array",
10009
+ "items": {
10010
+ "$ref": "DisplayFeature"
10011
+ }
10012
+ }
10013
+ ]
10014
+ },
10015
+ {
10016
+ "name": "clearDisplayFeaturesOverride",
10017
+ "description": "Clears the display features override set with either setDeviceMetricsOverride()\nor setDisplayFeaturesOverride() and starts using display features from the\nplatform again.\nDoes nothing if no override is set.",
10018
+ "experimental": true
10019
+ },
9996
10020
  {
9997
10021
  "name": "setScrollbarsHidden",
9998
10022
  "experimental": true,
@@ -27169,6 +27193,7 @@
27169
27193
  "PrefetchFailedMIMENotSupported",
27170
27194
  "PrefetchFailedNetError",
27171
27195
  "PrefetchFailedNon2XX",
27196
+ "PrefetchEvictedAfterBrowsingDataRemoved",
27172
27197
  "PrefetchEvictedAfterCandidateRemoved",
27173
27198
  "PrefetchEvictedForNewerPrefetch",
27174
27199
  "PrefetchHeldback",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1432532",
3
+ "version": "0.0.1433962",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -858,6 +858,7 @@ experimental domain Audits
858
858
  type SRIMessageSignatureIssueDetails extends object
859
859
  properties
860
860
  SRIMessageSignatureError error
861
+ string signatureBase
861
862
  AffectedRequest request
862
863
 
863
864
  type GenericIssueErrorType extends string
@@ -4594,7 +4595,8 @@ domain Emulation
4594
4595
  experimental optional Page.Viewport viewport
4595
4596
  # If set, the display feature of a multi-segment screen. If not set, multi-segment support
4596
4597
  # is turned-off.
4597
- experimental optional DisplayFeature displayFeature
4598
+ # Deprecated, use Emulation.setDisplayFeaturesOverride.
4599
+ experimental deprecated optional DisplayFeature displayFeature
4598
4600
  # If set, the posture of a foldable device. If not set the posture is set
4599
4601
  # to continuous.
4600
4602
  # Deprecated, use Emulation.setDevicePostureOverride.
@@ -4612,6 +4614,18 @@ domain Emulation
4612
4614
  # Does nothing if no override is set.
4613
4615
  experimental command clearDevicePostureOverride
4614
4616
 
4617
+ # Start using the given display features to pupulate the Viewport Segments API.
4618
+ # This override can also be set in setDeviceMetricsOverride().
4619
+ experimental command setDisplayFeaturesOverride
4620
+ parameters
4621
+ array of DisplayFeature features
4622
+
4623
+ # Clears the display features override set with either setDeviceMetricsOverride()
4624
+ # or setDisplayFeaturesOverride() and starts using display features from the
4625
+ # platform again.
4626
+ # Does nothing if no override is set.
4627
+ experimental command clearDisplayFeaturesOverride
4628
+
4615
4629
  experimental command setScrollbarsHidden
4616
4630
  parameters
4617
4631
  # Whether scrollbars should be always hidden.
@@ -12903,6 +12917,7 @@ experimental domain Preload
12903
12917
  PrefetchFailedMIMENotSupported
12904
12918
  PrefetchFailedNetError
12905
12919
  PrefetchFailedNon2XX
12920
+ PrefetchEvictedAfterBrowsingDataRemoved
12906
12921
  PrefetchEvictedAfterCandidateRemoved
12907
12922
  PrefetchEvictedForNewerPrefetch
12908
12923
  PrefetchHeldback
@@ -2813,6 +2813,24 @@ export namespace ProtocolMapping {
2813
2813
  paramsType: [];
2814
2814
  returnType: void;
2815
2815
  };
2816
+ /**
2817
+ * Start using the given display features to pupulate the Viewport Segments API.
2818
+ * This override can also be set in setDeviceMetricsOverride().
2819
+ */
2820
+ 'Emulation.setDisplayFeaturesOverride': {
2821
+ paramsType: [Protocol.Emulation.SetDisplayFeaturesOverrideRequest];
2822
+ returnType: void;
2823
+ };
2824
+ /**
2825
+ * Clears the display features override set with either setDeviceMetricsOverride()
2826
+ * or setDisplayFeaturesOverride() and starts using display features from the
2827
+ * platform again.
2828
+ * Does nothing if no override is set.
2829
+ */
2830
+ 'Emulation.clearDisplayFeaturesOverride': {
2831
+ paramsType: [];
2832
+ returnType: void;
2833
+ };
2816
2834
  'Emulation.setScrollbarsHidden': {
2817
2835
  paramsType: [Protocol.Emulation.SetScrollbarsHiddenRequest];
2818
2836
  returnType: void;
@@ -1926,6 +1926,20 @@ export namespace ProtocolProxyApi {
1926
1926
  */
1927
1927
  clearDevicePostureOverride(): Promise<void>;
1928
1928
 
1929
+ /**
1930
+ * Start using the given display features to pupulate the Viewport Segments API.
1931
+ * This override can also be set in setDeviceMetricsOverride().
1932
+ */
1933
+ setDisplayFeaturesOverride(params: Protocol.Emulation.SetDisplayFeaturesOverrideRequest): Promise<void>;
1934
+
1935
+ /**
1936
+ * Clears the display features override set with either setDeviceMetricsOverride()
1937
+ * or setDisplayFeaturesOverride() and starts using display features from the
1938
+ * platform again.
1939
+ * Does nothing if no override is set.
1940
+ */
1941
+ clearDisplayFeaturesOverride(): Promise<void>;
1942
+
1929
1943
  setScrollbarsHidden(params: Protocol.Emulation.SetScrollbarsHiddenRequest): Promise<void>;
1930
1944
 
1931
1945
  setDocumentCookieDisabled(params: Protocol.Emulation.SetDocumentCookieDisabledRequest): Promise<void>;
@@ -2050,6 +2050,20 @@ export namespace ProtocolTestsProxyApi {
2050
2050
  */
2051
2051
  clearDevicePostureOverride(): Promise<{id: number, result: void, sessionId: string}>;
2052
2052
 
2053
+ /**
2054
+ * Start using the given display features to pupulate the Viewport Segments API.
2055
+ * This override can also be set in setDeviceMetricsOverride().
2056
+ */
2057
+ setDisplayFeaturesOverride(params: Protocol.Emulation.SetDisplayFeaturesOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2058
+
2059
+ /**
2060
+ * Clears the display features override set with either setDeviceMetricsOverride()
2061
+ * or setDisplayFeaturesOverride() and starts using display features from the
2062
+ * platform again.
2063
+ * Does nothing if no override is set.
2064
+ */
2065
+ clearDisplayFeaturesOverride(): Promise<{id: number, result: void, sessionId: string}>;
2066
+
2053
2067
  setScrollbarsHidden(params: Protocol.Emulation.SetScrollbarsHiddenRequest): Promise<{id: number, result: void, sessionId: string}>;
2054
2068
 
2055
2069
  setDocumentCookieDisabled(params: Protocol.Emulation.SetDocumentCookieDisabledRequest): Promise<{id: number, result: void, sessionId: string}>;
@@ -3581,6 +3581,7 @@ export namespace Protocol {
3581
3581
 
3582
3582
  export interface SRIMessageSignatureIssueDetails {
3583
3583
  error: SRIMessageSignatureError;
3584
+ signatureBase: string;
3584
3585
  request: AffectedRequest;
3585
3586
  }
3586
3587
 
@@ -8686,6 +8687,7 @@ export namespace Protocol {
8686
8687
  /**
8687
8688
  * If set, the display feature of a multi-segment screen. If not set, multi-segment support
8688
8689
  * is turned-off.
8690
+ * Deprecated, use Emulation.setDisplayFeaturesOverride.
8689
8691
  */
8690
8692
  displayFeature?: DisplayFeature;
8691
8693
  /**
@@ -8700,6 +8702,10 @@ export namespace Protocol {
8700
8702
  posture: DevicePosture;
8701
8703
  }
8702
8704
 
8705
+ export interface SetDisplayFeaturesOverrideRequest {
8706
+ features: DisplayFeature[];
8707
+ }
8708
+
8703
8709
  export interface SetScrollbarsHiddenRequest {
8704
8710
  /**
8705
8711
  * Whether scrollbars should be always hidden.
@@ -19180,7 +19186,7 @@ export namespace Protocol {
19180
19186
  * TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
19181
19187
  * filter out the ones that aren't necessary to the developers.
19182
19188
  */
19183
- export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchEvictedAfterCandidateRemoved' | 'PrefetchEvictedForNewerPrefetch' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler' | 'PrefetchNotEligibleRedirectFromServiceWorker' | 'PrefetchNotEligibleRedirectToServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
19189
+ export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchEvictedAfterBrowsingDataRemoved' | 'PrefetchEvictedAfterCandidateRemoved' | 'PrefetchEvictedForNewerPrefetch' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler' | 'PrefetchNotEligibleRedirectFromServiceWorker' | 'PrefetchNotEligibleRedirectToServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
19184
19190
 
19185
19191
  /**
19186
19192
  * Information of headers to be displayed when the header mismatch occurred.