devtools-protocol 0.0.1209236 → 0.0.1211954

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.
@@ -1011,7 +1011,8 @@
1011
1011
  "WarnSameSiteLaxCrossDowngradeLax",
1012
1012
  "WarnAttributeValueExceedsMaxSize",
1013
1013
  "WarnDomainNonASCII",
1014
- "WarnThirdPartyPhaseout"
1014
+ "WarnThirdPartyPhaseout",
1015
+ "WarnCrossSiteRedirectDowngradeChangesInclusion"
1015
1016
  ]
1016
1017
  },
1017
1018
  {
@@ -1581,6 +1582,20 @@
1581
1582
  }
1582
1583
  ]
1583
1584
  },
1585
+ {
1586
+ "id": "CookieDeprecationMetadataIssueDetails",
1587
+ "description": "This issue warns about third-party sites that are accessing cookies on the\ncurrent page, and have been permitted due to having a global metadata grant.\nNote that in this context 'site' means eTLD+1. For example, if the URL\n`https://example.test:80/web_page` was accessing cookies, the site reported\nwould be `example.test`.",
1588
+ "type": "object",
1589
+ "properties": [
1590
+ {
1591
+ "name": "allowedSites",
1592
+ "type": "array",
1593
+ "items": {
1594
+ "type": "string"
1595
+ }
1596
+ }
1597
+ ]
1598
+ },
1584
1599
  {
1585
1600
  "id": "ClientHintIssueReason",
1586
1601
  "type": "string",
@@ -1789,6 +1804,7 @@
1789
1804
  "ClientHintIssue",
1790
1805
  "FederatedAuthRequestIssue",
1791
1806
  "BounceTrackingIssue",
1807
+ "CookieDeprecationMetadataIssue",
1792
1808
  "StylesheetLoadingIssue",
1793
1809
  "FederatedAuthUserInfoRequestIssue",
1794
1810
  "PropertyRuleIssue"
@@ -1880,6 +1896,11 @@
1880
1896
  "optional": true,
1881
1897
  "$ref": "BounceTrackingIssueDetails"
1882
1898
  },
1899
+ {
1900
+ "name": "cookieDeprecationMetadataIssueDetails",
1901
+ "optional": true,
1902
+ "$ref": "CookieDeprecationMetadataIssueDetails"
1903
+ },
1883
1904
  {
1884
1905
  "name": "stylesheetLoadingIssueDetails",
1885
1906
  "optional": true,
@@ -8612,6 +8633,120 @@
8612
8633
  }
8613
8634
  ]
8614
8635
  },
8636
+ {
8637
+ "id": "SensorType",
8638
+ "description": "Used to specify sensor types to emulate.\nSee https://w3c.github.io/sensors/#automation for more information.",
8639
+ "experimental": true,
8640
+ "type": "string",
8641
+ "enum": [
8642
+ "absolute-orientation",
8643
+ "accelerometer",
8644
+ "ambient-light",
8645
+ "gravity",
8646
+ "gyroscope",
8647
+ "linear-acceleration",
8648
+ "magnetometer",
8649
+ "proximity",
8650
+ "relative-orientation"
8651
+ ]
8652
+ },
8653
+ {
8654
+ "id": "SensorMetadata",
8655
+ "experimental": true,
8656
+ "type": "object",
8657
+ "properties": [
8658
+ {
8659
+ "name": "available",
8660
+ "optional": true,
8661
+ "type": "boolean"
8662
+ },
8663
+ {
8664
+ "name": "minimumFrequency",
8665
+ "optional": true,
8666
+ "type": "number"
8667
+ },
8668
+ {
8669
+ "name": "maximumFrequency",
8670
+ "optional": true,
8671
+ "type": "number"
8672
+ }
8673
+ ]
8674
+ },
8675
+ {
8676
+ "id": "SensorReadingSingle",
8677
+ "experimental": true,
8678
+ "type": "object",
8679
+ "properties": [
8680
+ {
8681
+ "name": "value",
8682
+ "type": "number"
8683
+ }
8684
+ ]
8685
+ },
8686
+ {
8687
+ "id": "SensorReadingXYZ",
8688
+ "experimental": true,
8689
+ "type": "object",
8690
+ "properties": [
8691
+ {
8692
+ "name": "x",
8693
+ "type": "number"
8694
+ },
8695
+ {
8696
+ "name": "y",
8697
+ "type": "number"
8698
+ },
8699
+ {
8700
+ "name": "z",
8701
+ "type": "number"
8702
+ }
8703
+ ]
8704
+ },
8705
+ {
8706
+ "id": "SensorReadingQuaternion",
8707
+ "experimental": true,
8708
+ "type": "object",
8709
+ "properties": [
8710
+ {
8711
+ "name": "x",
8712
+ "type": "number"
8713
+ },
8714
+ {
8715
+ "name": "y",
8716
+ "type": "number"
8717
+ },
8718
+ {
8719
+ "name": "z",
8720
+ "type": "number"
8721
+ },
8722
+ {
8723
+ "name": "w",
8724
+ "type": "number"
8725
+ }
8726
+ ]
8727
+ },
8728
+ {
8729
+ "id": "SensorReading",
8730
+ "experimental": true,
8731
+ "type": "object",
8732
+ "properties": [
8733
+ {
8734
+ "name": "single",
8735
+ "optional": true,
8736
+ "$ref": "SensorReadingSingle"
8737
+ },
8738
+ {
8739
+ "name": "xyz",
8740
+ "optional": true,
8741
+ "$ref": "SensorReadingXYZ"
8742
+ },
8743
+ {
8744
+ "name": "quaternion",
8745
+ "optional": true,
8746
+ "$ref": "SensorReadingQuaternion"
8747
+ }
8748
+ ]
8749
+ },
8615
8750
  {
8616
8751
  "id": "DisabledImageType",
8617
8752
  "description": "Enum of image types that can be disabled.",
@@ -8894,6 +9029,57 @@
8894
9029
  }
8895
9030
  ]
8896
9031
  },
9032
+ {
9033
+ "name": "getOverriddenSensorInformation",
9034
+ "experimental": true,
9035
+ "parameters": [
9036
+ {
9037
+ "name": "type",
9038
+ "$ref": "SensorType"
9039
+ }
9040
+ ],
9041
+ "returns": [
9042
+ {
9043
+ "name": "requestedSamplingFrequency",
9044
+ "type": "number"
9045
+ }
9046
+ ]
9047
+ },
9048
+ {
9049
+ "name": "setSensorOverrideEnabled",
9050
+ "description": "Overrides a platform sensor of a given type. If |enabled| is true, calls to\nSensor.start() will use a virtual sensor as backend rather than fetching\ndata from a real hardware sensor. Otherwise, existing virtual\nsensor-backend Sensor objects will fire an error event and new calls to\nSensor.start() will attempt to use a real sensor instead.",
9051
+ "experimental": true,
9052
+ "parameters": [
9053
+ {
9054
+ "name": "enabled",
9055
+ "type": "boolean"
9056
+ },
9057
+ {
9058
+ "name": "type",
9059
+ "$ref": "SensorType"
9060
+ },
9061
+ {
9062
+ "name": "metadata",
9063
+ "optional": true,
9064
+ "$ref": "SensorMetadata"
9065
+ }
9066
+ ]
9067
+ },
9068
+ {
9069
+ "name": "setSensorOverrideReadings",
9070
+ "description": "Updates the sensor readings reported by a sensor type previously overriden\nby setSensorOverrideEnabled.",
9071
+ "experimental": true,
9072
+ "parameters": [
9073
+ {
9074
+ "name": "type",
9075
+ "$ref": "SensorType"
9076
+ },
9077
+ {
9078
+ "name": "reading",
9079
+ "$ref": "SensorReading"
9080
+ }
9081
+ ]
9082
+ },
8897
9083
  {
8898
9084
  "name": "setIdleOverride",
8899
9085
  "description": "Overrides the Idle state.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1209236",
3
+ "version": "0.0.1211954",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -498,6 +498,7 @@ experimental domain Audits
498
498
  WarnAttributeValueExceedsMaxSize
499
499
  WarnDomainNonASCII
500
500
  WarnThirdPartyPhaseout
501
+ WarnCrossSiteRedirectDowngradeChangesInclusion
501
502
 
502
503
  type CookieOperation extends string
503
504
  enum
@@ -770,6 +771,15 @@ experimental domain Audits
770
771
  properties
771
772
  array of string trackingSites
772
773
 
774
+ # This issue warns about third-party sites that are accessing cookies on the
775
+ # current page, and have been permitted due to having a global metadata grant.
776
+ # Note that in this context 'site' means eTLD+1. For example, if the URL
777
+ # `https://example.test:80/web_page` was accessing cookies, the site reported
778
+ # would be `example.test`.
779
+ type CookieDeprecationMetadataIssueDetails extends object
780
+ properties
781
+ array of string allowedSites
782
+
773
783
  type ClientHintIssueReason extends string
774
784
  enum
775
785
  # Items in the accept-ch meta tag allow list must be valid origins.
@@ -915,6 +925,7 @@ experimental domain Audits
915
925
  ClientHintIssue
916
926
  FederatedAuthRequestIssue
917
927
  BounceTrackingIssue
928
+ CookieDeprecationMetadataIssue
918
929
  StylesheetLoadingIssue
919
930
  FederatedAuthUserInfoRequestIssue
920
931
  PropertyRuleIssue
@@ -940,6 +951,7 @@ experimental domain Audits
940
951
  optional ClientHintIssueDetails clientHintIssueDetails
941
952
  optional FederatedAuthRequestIssueDetails federatedAuthRequestIssueDetails
942
953
  optional BounceTrackingIssueDetails bounceTrackingIssueDetails
954
+ optional CookieDeprecationMetadataIssueDetails cookieDeprecationMetadataIssueDetails
943
955
  optional StylesheetLoadingIssueDetails stylesheetLoadingIssueDetails
944
956
  optional PropertyRuleIssueDetails propertyRuleIssueDetails
945
957
  optional FederatedAuthUserInfoRequestIssueDetails federatedAuthUserInfoRequestIssueDetails
@@ -3923,6 +3935,49 @@ domain Emulation
3923
3935
  optional string bitness
3924
3936
  optional boolean wow64
3925
3937
 
3938
+ # Used to specify sensor types to emulate.
3939
+ # See https://w3c.github.io/sensors/#automation for more information.
3940
+ experimental type SensorType extends string
3941
+ enum
3942
+ absolute-orientation
3943
+ accelerometer
3944
+ ambient-light
3945
+ gravity
3946
+ gyroscope
3947
+ linear-acceleration
3948
+ magnetometer
3949
+ proximity
3950
+ relative-orientation
3951
+
3952
+ experimental type SensorMetadata extends object
3953
+ properties
3954
+ optional boolean available
3955
+ optional number minimumFrequency
3956
+ optional number maximumFrequency
3957
+
3958
+ experimental type SensorReadingSingle extends object
3959
+ properties
3960
+ number value
3961
+
3962
+ experimental type SensorReadingXYZ extends object
3963
+ properties
3964
+ number x
3965
+ number y
3966
+ number z
3967
+
3968
+ experimental type SensorReadingQuaternion extends object
3969
+ properties
3970
+ number x
3971
+ number y
3972
+ number z
3973
+ number w
3974
+
3975
+ experimental type SensorReading extends object
3976
+ properties
3977
+ optional SensorReadingSingle single
3978
+ optional SensorReadingXYZ xyz
3979
+ optional SensorReadingQuaternion quaternion
3980
+
3926
3981
  # Tells whether emulation is supported.
3927
3982
  command canEmulate
3928
3983
  returns
@@ -4052,6 +4107,30 @@ domain Emulation
4052
4107
  # Mock accuracy
4053
4108
  optional number accuracy
4054
4109
 
4110
+ experimental command getOverriddenSensorInformation
4111
+ parameters
4112
+ SensorType type
4113
+ returns
4114
+ number requestedSamplingFrequency
4115
+
4116
+ # Overrides a platform sensor of a given type. If |enabled| is true, calls to
4117
+ # Sensor.start() will use a virtual sensor as backend rather than fetching
4118
+ # data from a real hardware sensor. Otherwise, existing virtual
4119
+ # sensor-backend Sensor objects will fire an error event and new calls to
4120
+ # Sensor.start() will attempt to use a real sensor instead.
4121
+ experimental command setSensorOverrideEnabled
4122
+ parameters
4123
+ boolean enabled
4124
+ SensorType type
4125
+ optional SensorMetadata metadata
4126
+
4127
+ # Updates the sensor readings reported by a sensor type previously overriden
4128
+ # by setSensorOverrideEnabled.
4129
+ experimental command setSensorOverrideReadings
4130
+ parameters
4131
+ SensorType type
4132
+ SensorReading reading
4133
+
4055
4134
  # Overrides the Idle state.
4056
4135
  experimental command setIdleOverride
4057
4136
  parameters
@@ -2626,6 +2626,29 @@ export namespace ProtocolMapping {
2626
2626
  paramsType: [Protocol.Emulation.SetGeolocationOverrideRequest?];
2627
2627
  returnType: void;
2628
2628
  };
2629
+ 'Emulation.getOverriddenSensorInformation': {
2630
+ paramsType: [Protocol.Emulation.GetOverriddenSensorInformationRequest];
2631
+ returnType: Protocol.Emulation.GetOverriddenSensorInformationResponse;
2632
+ };
2633
+ /**
2634
+ * Overrides a platform sensor of a given type. If |enabled| is true, calls to
2635
+ * Sensor.start() will use a virtual sensor as backend rather than fetching
2636
+ * data from a real hardware sensor. Otherwise, existing virtual
2637
+ * sensor-backend Sensor objects will fire an error event and new calls to
2638
+ * Sensor.start() will attempt to use a real sensor instead.
2639
+ */
2640
+ 'Emulation.setSensorOverrideEnabled': {
2641
+ paramsType: [Protocol.Emulation.SetSensorOverrideEnabledRequest];
2642
+ returnType: void;
2643
+ };
2644
+ /**
2645
+ * Updates the sensor readings reported by a sensor type previously overriden
2646
+ * by setSensorOverrideEnabled.
2647
+ */
2648
+ 'Emulation.setSensorOverrideReadings': {
2649
+ paramsType: [Protocol.Emulation.SetSensorOverrideReadingsRequest];
2650
+ returnType: void;
2651
+ };
2629
2652
  /**
2630
2653
  * Overrides the Idle state.
2631
2654
  */
@@ -1818,6 +1818,23 @@ export namespace ProtocolProxyApi {
1818
1818
  */
1819
1819
  setGeolocationOverride(params: Protocol.Emulation.SetGeolocationOverrideRequest): Promise<void>;
1820
1820
 
1821
+ getOverriddenSensorInformation(params: Protocol.Emulation.GetOverriddenSensorInformationRequest): Promise<Protocol.Emulation.GetOverriddenSensorInformationResponse>;
1822
+
1823
+ /**
1824
+ * Overrides a platform sensor of a given type. If |enabled| is true, calls to
1825
+ * Sensor.start() will use a virtual sensor as backend rather than fetching
1826
+ * data from a real hardware sensor. Otherwise, existing virtual
1827
+ * sensor-backend Sensor objects will fire an error event and new calls to
1828
+ * Sensor.start() will attempt to use a real sensor instead.
1829
+ */
1830
+ setSensorOverrideEnabled(params: Protocol.Emulation.SetSensorOverrideEnabledRequest): Promise<void>;
1831
+
1832
+ /**
1833
+ * Updates the sensor readings reported by a sensor type previously overriden
1834
+ * by setSensorOverrideEnabled.
1835
+ */
1836
+ setSensorOverrideReadings(params: Protocol.Emulation.SetSensorOverrideReadingsRequest): Promise<void>;
1837
+
1821
1838
  /**
1822
1839
  * Overrides the Idle state.
1823
1840
  */
@@ -3259,7 +3259,7 @@ export namespace Protocol {
3259
3259
 
3260
3260
  export type CookieExclusionReason = ('ExcludeSameSiteUnspecifiedTreatedAsLax' | 'ExcludeSameSiteNoneInsecure' | 'ExcludeSameSiteLax' | 'ExcludeSameSiteStrict' | 'ExcludeInvalidSameParty' | 'ExcludeSamePartyCrossPartyContext' | 'ExcludeDomainNonASCII' | 'ExcludeThirdPartyCookieBlockedInFirstPartySet' | 'ExcludeThirdPartyPhaseout');
3261
3261
 
3262
- export type CookieWarningReason = ('WarnSameSiteUnspecifiedCrossSiteContext' | 'WarnSameSiteNoneInsecure' | 'WarnSameSiteUnspecifiedLaxAllowUnsafe' | 'WarnSameSiteStrictLaxDowngradeStrict' | 'WarnSameSiteStrictCrossDowngradeStrict' | 'WarnSameSiteStrictCrossDowngradeLax' | 'WarnSameSiteLaxCrossDowngradeStrict' | 'WarnSameSiteLaxCrossDowngradeLax' | 'WarnAttributeValueExceedsMaxSize' | 'WarnDomainNonASCII' | 'WarnThirdPartyPhaseout');
3262
+ export type CookieWarningReason = ('WarnSameSiteUnspecifiedCrossSiteContext' | 'WarnSameSiteNoneInsecure' | 'WarnSameSiteUnspecifiedLaxAllowUnsafe' | 'WarnSameSiteStrictLaxDowngradeStrict' | 'WarnSameSiteStrictCrossDowngradeStrict' | 'WarnSameSiteStrictCrossDowngradeLax' | 'WarnSameSiteLaxCrossDowngradeStrict' | 'WarnSameSiteLaxCrossDowngradeLax' | 'WarnAttributeValueExceedsMaxSize' | 'WarnDomainNonASCII' | 'WarnThirdPartyPhaseout' | 'WarnCrossSiteRedirectDowngradeChangesInclusion');
3263
3263
 
3264
3264
  export type CookieOperation = ('SetCookie' | 'ReadCookie');
3265
3265
 
@@ -3496,6 +3496,17 @@ export namespace Protocol {
3496
3496
  trackingSites: string[];
3497
3497
  }
3498
3498
 
3499
+ /**
3500
+ * This issue warns about third-party sites that are accessing cookies on the
3501
+ * current page, and have been permitted due to having a global metadata grant.
3502
+ * Note that in this context 'site' means eTLD+1. For example, if the URL
3503
+ * `https://example.test:80/web_page` was accessing cookies, the site reported
3504
+ * would be `example.test`.
3505
+ */
3506
+ export interface CookieDeprecationMetadataIssueDetails {
3507
+ allowedSites: string[];
3508
+ }
3509
+
3499
3510
  export type ClientHintIssueReason = ('MetaTagAllowListInvalidOrigin' | 'MetaTagModifiedHTML');
3500
3511
 
3501
3512
  export interface FederatedAuthRequestIssueDetails {
@@ -3588,7 +3599,7 @@ export namespace Protocol {
3588
3599
  * optional fields in InspectorIssueDetails to convey more specific
3589
3600
  * information about the kind of issue.
3590
3601
  */
3591
- export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue');
3602
+ export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue');
3592
3603
 
3593
3604
  /**
3594
3605
  * This struct holds a list of optional fields with additional information
@@ -3612,6 +3623,7 @@ export namespace Protocol {
3612
3623
  clientHintIssueDetails?: ClientHintIssueDetails;
3613
3624
  federatedAuthRequestIssueDetails?: FederatedAuthRequestIssueDetails;
3614
3625
  bounceTrackingIssueDetails?: BounceTrackingIssueDetails;
3626
+ cookieDeprecationMetadataIssueDetails?: CookieDeprecationMetadataIssueDetails;
3615
3627
  stylesheetLoadingIssueDetails?: StylesheetLoadingIssueDetails;
3616
3628
  propertyRuleIssueDetails?: PropertyRuleIssueDetails;
3617
3629
  federatedAuthUserInfoRequestIssueDetails?: FederatedAuthUserInfoRequestIssueDetails;
@@ -7901,6 +7913,41 @@ export namespace Protocol {
7901
7913
  wow64?: boolean;
7902
7914
  }
7903
7915
 
7916
+ /**
7917
+ * Used to specify sensor types to emulate.
7918
+ * See https://w3c.github.io/sensors/#automation for more information.
7919
+ */
7920
+ export type SensorType = ('absolute-orientation' | 'accelerometer' | 'ambient-light' | 'gravity' | 'gyroscope' | 'linear-acceleration' | 'magnetometer' | 'proximity' | 'relative-orientation');
7921
+
7922
+ export interface SensorMetadata {
7923
+ available?: boolean;
7924
+ minimumFrequency?: number;
7925
+ maximumFrequency?: number;
7926
+ }
7927
+
7928
+ export interface SensorReadingSingle {
7929
+ value: number;
7930
+ }
7931
+
7932
+ export interface SensorReadingXYZ {
7933
+ x: number;
7934
+ y: number;
7935
+ z: number;
7936
+ }
7937
+
7938
+ export interface SensorReadingQuaternion {
7939
+ x: number;
7940
+ y: number;
7941
+ z: number;
7942
+ w: number;
7943
+ }
7944
+
7945
+ export interface SensorReading {
7946
+ single?: SensorReadingSingle;
7947
+ xyz?: SensorReadingXYZ;
7948
+ quaternion?: SensorReadingQuaternion;
7949
+ }
7950
+
7904
7951
  /**
7905
7952
  * Enum of image types that can be disabled.
7906
7953
  */
@@ -8075,6 +8122,25 @@ export namespace Protocol {
8075
8122
  accuracy?: number;
8076
8123
  }
8077
8124
 
8125
+ export interface GetOverriddenSensorInformationRequest {
8126
+ type: SensorType;
8127
+ }
8128
+
8129
+ export interface GetOverriddenSensorInformationResponse {
8130
+ requestedSamplingFrequency: number;
8131
+ }
8132
+
8133
+ export interface SetSensorOverrideEnabledRequest {
8134
+ enabled: boolean;
8135
+ type: SensorType;
8136
+ metadata?: SensorMetadata;
8137
+ }
8138
+
8139
+ export interface SetSensorOverrideReadingsRequest {
8140
+ type: SensorType;
8141
+ reading: SensorReading;
8142
+ }
8143
+
8078
8144
  export interface SetIdleOverrideRequest {
8079
8145
  /**
8080
8146
  * Mock isUserActive