devtools-protocol 0.0.854538 → 0.0.854822

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.
package/changelog.md CHANGED
@@ -1,5 +1,16 @@
1
1
 
2
2
 
3
+ ## Roll protocol to r854538
4
+ ###### _2021-02-16 16:16:05 -0800_ | Diff: [014525d...13b10d1](https://github.com/ChromeDevTools/devtools-protocol/compare/014525d...13b10d1)
5
+ #### `Network`: modified command
6
+ * [`Network.setCookie`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-setCookie) - The `url` in the parameters had `description` _updated_. The parameters's `sameParty` _added_. The parameters's `sourceScheme` _added_. The parameters's `sourcePort` _added_.
7
+ #### `Network`: new type
8
+ * [`Network.CookieSourceScheme`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieSourceScheme)
9
+ #### `Network`: modified types
10
+ * [`Network.Cookie`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie) - The properties's `sourceScheme` _added_. The properties's `sourcePort` _added_.
11
+ * [`Network.CookieParam`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieParam) - The `url` in the properties had `description` _updated_. The properties's `sameParty` _added_. The properties's `sourceScheme` _added_. The properties's `sourcePort` _added_.
12
+
13
+
3
14
  ## Roll protocol to r852555
4
15
  ###### _2021-02-10 01:16:01 -0800_ | Diff: [5a47400...014525d](https://github.com/ChromeDevTools/devtools-protocol/compare/5a47400...014525d)
5
16
  #### `Audits`: new type
@@ -13503,6 +13503,112 @@
13503
13503
  "PerformanceProfile"
13504
13504
  ]
13505
13505
  },
13506
+ {
13507
+ "id": "PermissionsPolicyFeature",
13508
+ "description": "All Permissions Policy features. This enum should match the one defined\nin renderer/core/feature_policy/feature_policy_features.json5.",
13509
+ "experimental": true,
13510
+ "type": "string",
13511
+ "enum": [
13512
+ "accelerometer",
13513
+ "ambient-light-sensor",
13514
+ "autoplay",
13515
+ "camera",
13516
+ "ch-dpr",
13517
+ "ch-device-memory",
13518
+ "ch-downlink",
13519
+ "ch-ect",
13520
+ "ch-lang",
13521
+ "ch-rtt",
13522
+ "ch-ua",
13523
+ "ch-ua-arch",
13524
+ "ch-ua-platform",
13525
+ "ch-ua-model",
13526
+ "ch-ua-mobile",
13527
+ "ch-ua-full-version",
13528
+ "ch-ua-platform-version",
13529
+ "ch-viewport-width",
13530
+ "ch-width",
13531
+ "clipboard-read",
13532
+ "clipboard-write",
13533
+ "conversion-measurement",
13534
+ "cross-origin-isolated",
13535
+ "display-capture",
13536
+ "document-domain",
13537
+ "encrypted-media",
13538
+ "execution-while-out-of-viewport",
13539
+ "execution-while-not-rendered",
13540
+ "focus-without-user-activation",
13541
+ "fullscreen",
13542
+ "frobulate",
13543
+ "gamepad",
13544
+ "geolocation",
13545
+ "gyroscope",
13546
+ "hid",
13547
+ "idle-detection",
13548
+ "interest-cohort",
13549
+ "magnetometer",
13550
+ "microphone",
13551
+ "midi",
13552
+ "otp-credentials",
13553
+ "payment",
13554
+ "picture-in-picture",
13555
+ "publickey-credentials-get",
13556
+ "screen-wake-lock",
13557
+ "serial",
13558
+ "storage-access-api",
13559
+ "sync-xhr",
13560
+ "trust-token-redemption",
13561
+ "usb",
13562
+ "vertical-scroll",
13563
+ "web-share",
13564
+ "xr-spatial-tracking"
13565
+ ]
13566
+ },
13567
+ {
13568
+ "id": "PermissionsPolicyBlockReason",
13569
+ "description": "Reason for a permissions policy feature to be disabled.",
13570
+ "experimental": true,
13571
+ "type": "string",
13572
+ "enum": [
13573
+ "Header",
13574
+ "IframeAttribute"
13575
+ ]
13576
+ },
13577
+ {
13578
+ "id": "PermissionsPolicyBlockLocator",
13579
+ "experimental": true,
13580
+ "type": "object",
13581
+ "properties": [
13582
+ {
13583
+ "name": "frameId",
13584
+ "$ref": "FrameId"
13585
+ },
13586
+ {
13587
+ "name": "blockReason",
13588
+ "$ref": "PermissionsPolicyBlockReason"
13589
+ }
13590
+ ]
13591
+ },
13592
+ {
13593
+ "id": "PermissionsPolicyFeatureState",
13594
+ "experimental": true,
13595
+ "type": "object",
13596
+ "properties": [
13597
+ {
13598
+ "name": "feature",
13599
+ "$ref": "PermissionsPolicyFeature"
13600
+ },
13601
+ {
13602
+ "name": "allowed",
13603
+ "type": "boolean"
13604
+ },
13605
+ {
13606
+ "name": "locator",
13607
+ "optional": true,
13608
+ "$ref": "PermissionsPolicyBlockLocator"
13609
+ }
13610
+ ]
13611
+ },
13506
13612
  {
13507
13613
  "id": "Frame",
13508
13614
  "description": "Information about the Frame on the page.",
@@ -14791,6 +14897,26 @@
14791
14897
  }
14792
14898
  ]
14793
14899
  },
14900
+ {
14901
+ "name": "getPermissionsPolicyState",
14902
+ "description": "Get Permissions Policy state on given frame.",
14903
+ "experimental": true,
14904
+ "parameters": [
14905
+ {
14906
+ "name": "frameId",
14907
+ "$ref": "FrameId"
14908
+ }
14909
+ ],
14910
+ "returns": [
14911
+ {
14912
+ "name": "states",
14913
+ "type": "array",
14914
+ "items": {
14915
+ "$ref": "PermissionsPolicyFeatureState"
14916
+ }
14917
+ }
14918
+ ]
14919
+ },
14794
14920
  {
14795
14921
  "name": "setDeviceMetricsOverride",
14796
14922
  "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height,\nwindow.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media\nquery results).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.854538",
3
+ "version": "0.0.854822",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -6248,6 +6248,83 @@ domain Page
6248
6248
  PerformanceMeasureMemory
6249
6249
  PerformanceProfile
6250
6250
 
6251
+ # All Permissions Policy features. This enum should match the one defined
6252
+ # in renderer/core/feature_policy/feature_policy_features.json5.
6253
+ experimental type PermissionsPolicyFeature extends string
6254
+ enum
6255
+ accelerometer
6256
+ ambient-light-sensor
6257
+ autoplay
6258
+ camera
6259
+ ch-dpr
6260
+ ch-device-memory
6261
+ ch-downlink
6262
+ ch-ect
6263
+ ch-lang
6264
+ ch-rtt
6265
+ ch-ua
6266
+ ch-ua-arch
6267
+ ch-ua-platform
6268
+ ch-ua-model
6269
+ ch-ua-mobile
6270
+ ch-ua-full-version
6271
+ ch-ua-platform-version
6272
+ ch-viewport-width
6273
+ ch-width
6274
+ clipboard-read
6275
+ clipboard-write
6276
+ conversion-measurement
6277
+ cross-origin-isolated
6278
+ display-capture
6279
+ document-domain
6280
+ encrypted-media
6281
+ execution-while-out-of-viewport
6282
+ execution-while-not-rendered
6283
+ focus-without-user-activation
6284
+ fullscreen
6285
+ frobulate
6286
+ gamepad
6287
+ geolocation
6288
+ gyroscope
6289
+ hid
6290
+ idle-detection
6291
+ interest-cohort
6292
+ magnetometer
6293
+ microphone
6294
+ midi
6295
+ otp-credentials
6296
+ payment
6297
+ picture-in-picture
6298
+ publickey-credentials-get
6299
+ screen-wake-lock
6300
+ serial
6301
+ storage-access-api
6302
+ sync-xhr
6303
+ trust-token-redemption
6304
+ usb
6305
+ vertical-scroll
6306
+ web-share
6307
+ xr-spatial-tracking
6308
+
6309
+ # Reason for a permissions policy feature to be disabled.
6310
+ experimental type PermissionsPolicyBlockReason extends string
6311
+ enum
6312
+ # Declaration in HTTP header.
6313
+ Header
6314
+ # Declaration in iframe attribute.
6315
+ IframeAttribute
6316
+
6317
+ experimental type PermissionsPolicyBlockLocator extends object
6318
+ properties
6319
+ FrameId frameId
6320
+ PermissionsPolicyBlockReason blockReason
6321
+
6322
+ experimental type PermissionsPolicyFeatureState extends object
6323
+ properties
6324
+ PermissionsPolicyFeature feature
6325
+ boolean allowed
6326
+ optional PermissionsPolicyBlockLocator locator
6327
+
6251
6328
  # Information about the Frame on the page.
6252
6329
  type Frame extends object
6253
6330
  properties
@@ -6829,6 +6906,13 @@ domain Page
6829
6906
  # Whether to bypass page CSP.
6830
6907
  boolean enabled
6831
6908
 
6909
+ # Get Permissions Policy state on given frame.
6910
+ experimental command getPermissionsPolicyState
6911
+ parameters
6912
+ FrameId frameId
6913
+ returns
6914
+ array of PermissionsPolicyFeatureState states
6915
+
6832
6916
  # Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
6833
6917
  # window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
6834
6918
  # query results).
@@ -3461,6 +3461,13 @@ export namespace ProtocolMapping {
3461
3461
  paramsType: [Protocol.Page.SetBypassCSPRequest];
3462
3462
  returnType: void;
3463
3463
  };
3464
+ /**
3465
+ * Get Permissions Policy state on given frame.
3466
+ */
3467
+ 'Page.getPermissionsPolicyState': {
3468
+ paramsType: [Protocol.Page.GetPermissionsPolicyStateRequest];
3469
+ returnType: Protocol.Page.GetPermissionsPolicyStateResponse;
3470
+ };
3464
3471
  /**
3465
3472
  * Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
3466
3473
  * window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
@@ -2662,6 +2662,11 @@ export namespace ProtocolProxyApi {
2662
2662
  */
2663
2663
  setBypassCSP(params: Protocol.Page.SetBypassCSPRequest): Promise<void>;
2664
2664
 
2665
+ /**
2666
+ * Get Permissions Policy state on given frame.
2667
+ */
2668
+ getPermissionsPolicyState(params: Protocol.Page.GetPermissionsPolicyStateRequest): Promise<Protocol.Page.GetPermissionsPolicyStateResponse>;
2669
+
2665
2670
  /**
2666
2671
  * Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
2667
2672
  * window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
@@ -11173,6 +11173,28 @@ export namespace Protocol {
11173
11173
 
11174
11174
  export type GatedAPIFeatures = ('SharedArrayBuffers' | 'SharedArrayBuffersTransferAllowed' | 'PerformanceMeasureMemory' | 'PerformanceProfile');
11175
11175
 
11176
+ /**
11177
+ * All Permissions Policy features. This enum should match the one defined
11178
+ * in renderer/core/feature_policy/feature_policy_features.json5.
11179
+ */
11180
+ export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'autoplay' | 'camera' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-lang' | 'ch-rtt' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-full-version' | 'ch-ua-platform-version' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'conversion-measurement' | 'cross-origin-isolated' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'idle-detection' | 'interest-cohort' | 'magnetometer' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'publickey-credentials-get' | 'screen-wake-lock' | 'serial' | 'storage-access-api' | 'sync-xhr' | 'trust-token-redemption' | 'usb' | 'vertical-scroll' | 'web-share' | 'xr-spatial-tracking');
11181
+
11182
+ /**
11183
+ * Reason for a permissions policy feature to be disabled.
11184
+ */
11185
+ export type PermissionsPolicyBlockReason = ('Header' | 'IframeAttribute');
11186
+
11187
+ export interface PermissionsPolicyBlockLocator {
11188
+ frameId: FrameId;
11189
+ blockReason: PermissionsPolicyBlockReason;
11190
+ }
11191
+
11192
+ export interface PermissionsPolicyFeatureState {
11193
+ feature: PermissionsPolicyFeature;
11194
+ allowed: boolean;
11195
+ locator?: PermissionsPolicyBlockLocator;
11196
+ }
11197
+
11176
11198
  /**
11177
11199
  * Information about the Frame on the page.
11178
11200
  */
@@ -12009,6 +12031,14 @@ export namespace Protocol {
12009
12031
  enabled: boolean;
12010
12032
  }
12011
12033
 
12034
+ export interface GetPermissionsPolicyStateRequest {
12035
+ frameId: FrameId;
12036
+ }
12037
+
12038
+ export interface GetPermissionsPolicyStateResponse {
12039
+ states: PermissionsPolicyFeatureState[];
12040
+ }
12041
+
12012
12042
  export interface SetDeviceMetricsOverrideRequest {
12013
12043
  /**
12014
12044
  * Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.