devtools-protocol 0.0.852555 → 0.0.856957

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,45 @@
1
1
 
2
2
 
3
+ ## Roll protocol to r856702
4
+ ###### _2021-02-23 08:16:10 -0800_ | Diff: [498a1e5...fe49497](https://github.com/ChromeDevTools/devtools-protocol/compare/498a1e5...fe49497)
5
+ #### `Audits`: modified command
6
+ * [`Audits.checkContrast`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#method-checkContrast)
7
+
8
+
9
+ ## Roll protocol to r854822
10
+ ###### _2021-02-17 09:16:17 -0800_ | Diff: [13b10d1...498a1e5](https://github.com/ChromeDevTools/devtools-protocol/compare/13b10d1...498a1e5)
11
+ #### `Page`: new command
12
+ * [`Page.getPermissionsPolicyState`](https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-getPermissionsPolicyState)
13
+ #### `Page`: new types
14
+ * [`Page.PermissionsPolicyFeature`](https://chromedevtools.github.io/devtools-protocol/tot/Page/#type-PermissionsPolicyFeature)
15
+ * [`Page.PermissionsPolicyBlockReason`](https://chromedevtools.github.io/devtools-protocol/tot/Page/#type-PermissionsPolicyBlockReason)
16
+ * [`Page.PermissionsPolicyBlockLocator`](https://chromedevtools.github.io/devtools-protocol/tot/Page/#type-PermissionsPolicyBlockLocator)
17
+ * [`Page.PermissionsPolicyFeatureState`](https://chromedevtools.github.io/devtools-protocol/tot/Page/#type-PermissionsPolicyFeatureState)
18
+
19
+
20
+ ## Roll protocol to r854538
21
+ ###### _2021-02-16 16:16:05 -0800_ | Diff: [014525d...13b10d1](https://github.com/ChromeDevTools/devtools-protocol/compare/014525d...13b10d1)
22
+ #### `Network`: modified command
23
+ * [`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_.
24
+ #### `Network`: new type
25
+ * [`Network.CookieSourceScheme`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieSourceScheme)
26
+ #### `Network`: modified types
27
+ * [`Network.Cookie`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie) - The properties's `sourceScheme` _added_. The properties's `sourcePort` _added_.
28
+ * [`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_.
29
+
30
+
31
+ ## Roll protocol to r852555
32
+ ###### _2021-02-10 01:16:01 -0800_ | Diff: [5a47400...014525d](https://github.com/ChromeDevTools/devtools-protocol/compare/5a47400...014525d)
33
+ #### `Audits`: new type
34
+ * [`Audits.CorsIssueDetails`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-CorsIssueDetails)
35
+ #### `Audits`: modified types
36
+ * [`Audits.SharedArrayBufferIssueDetails`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-SharedArrayBufferIssueDetails) - `description` updated.
37
+ * [`Audits.InspectorIssueCode`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-InspectorIssueCode) - The enum's `CorsIssue` _added_.
38
+ * [`Audits.InspectorIssueDetails`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-InspectorIssueDetails) - The properties's `corsIssueDetails` _added_.
39
+ #### `Network`: modified type
40
+ * [`Network.PrivateNetworkRequestPolicy`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-PrivateNetworkRequestPolicy) - The enum's `WarnFromInsecureToMorePrivate` _added_.
41
+
42
+
3
43
  ## Roll protocol to r850520
4
44
  ###### _2021-02-04 02:16:11 -0800_ | Diff: [6393746...5a47400](https://github.com/ChromeDevTools/devtools-protocol/compare/6393746...5a47400)
5
45
  #### `Overlay`: new type
@@ -1627,7 +1627,15 @@
1627
1627
  },
1628
1628
  {
1629
1629
  "name": "checkContrast",
1630
- "description": "Runs the contrast check for the target page. Found issues are reported\nusing Audits.issueAdded event."
1630
+ "description": "Runs the contrast check for the target page. Found issues are reported\nusing Audits.issueAdded event.",
1631
+ "parameters": [
1632
+ {
1633
+ "name": "reportAAA",
1634
+ "description": "Whether to report WCAG AAA level issues. Default is false.",
1635
+ "optional": true,
1636
+ "type": "boolean"
1637
+ }
1638
+ ]
1631
1639
  }
1632
1640
  ],
1633
1641
  "events": [
@@ -9687,6 +9695,17 @@
9687
9695
  "High"
9688
9696
  ]
9689
9697
  },
9698
+ {
9699
+ "id": "CookieSourceScheme",
9700
+ "description": "Represents the source scheme of the origin that originally set the cookie.\nA value of \"Unset\" allows protocol clients to emulate legacy cookie scope for the scheme.\nThis is a temporary ability and it will be removed in the future.",
9701
+ "experimental": true,
9702
+ "type": "string",
9703
+ "enum": [
9704
+ "Unset",
9705
+ "NonSecure",
9706
+ "Secure"
9707
+ ]
9708
+ },
9690
9709
  {
9691
9710
  "id": "ResourceTiming",
9692
9711
  "description": "Timing information for the request.",
@@ -10512,6 +10531,18 @@
10512
10531
  "description": "True if cookie is SameParty.",
10513
10532
  "experimental": true,
10514
10533
  "type": "boolean"
10534
+ },
10535
+ {
10536
+ "name": "sourceScheme",
10537
+ "description": "Cookie source scheme type.",
10538
+ "experimental": true,
10539
+ "$ref": "CookieSourceScheme"
10540
+ },
10541
+ {
10542
+ "name": "sourcePort",
10543
+ "description": "Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.\nAn unspecified port value allows protocol clients to emulate legacy cookie scope for the port.\nThis is a temporary ability and it will be removed in the future.",
10544
+ "experimental": true,
10545
+ "type": "integer"
10515
10546
  }
10516
10547
  ]
10517
10548
  },
@@ -10626,7 +10657,7 @@
10626
10657
  },
10627
10658
  {
10628
10659
  "name": "url",
10629
- "description": "The request-URI to associate with the setting of the cookie. This value can affect the\ndefault domain and path values of the created cookie.",
10660
+ "description": "The request-URI to associate with the setting of the cookie. This value can affect the\ndefault domain, path, source port, and source scheme values of the created cookie.",
10630
10661
  "optional": true,
10631
10662
  "type": "string"
10632
10663
  },
@@ -10672,6 +10703,27 @@
10672
10703
  "experimental": true,
10673
10704
  "optional": true,
10674
10705
  "$ref": "CookiePriority"
10706
+ },
10707
+ {
10708
+ "name": "sameParty",
10709
+ "description": "True if cookie is SameParty.",
10710
+ "experimental": true,
10711
+ "optional": true,
10712
+ "type": "boolean"
10713
+ },
10714
+ {
10715
+ "name": "sourceScheme",
10716
+ "description": "Cookie source scheme type.",
10717
+ "experimental": true,
10718
+ "optional": true,
10719
+ "$ref": "CookieSourceScheme"
10720
+ },
10721
+ {
10722
+ "name": "sourcePort",
10723
+ "description": "Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.\nAn unspecified port value allows protocol clients to emulate legacy cookie scope for the port.\nThis is a temporary ability and it will be removed in the future.",
10724
+ "experimental": true,
10725
+ "optional": true,
10726
+ "type": "integer"
10675
10727
  }
10676
10728
  ]
10677
10729
  },
@@ -11563,7 +11615,7 @@
11563
11615
  },
11564
11616
  {
11565
11617
  "name": "url",
11566
- "description": "The request-URI to associate with the setting of the cookie. This value can affect the\ndefault domain and path values of the created cookie.",
11618
+ "description": "The request-URI to associate with the setting of the cookie. This value can affect the\ndefault domain, path, source port, and source scheme values of the created cookie.",
11567
11619
  "optional": true,
11568
11620
  "type": "string"
11569
11621
  },
@@ -11609,6 +11661,27 @@
11609
11661
  "experimental": true,
11610
11662
  "optional": true,
11611
11663
  "$ref": "CookiePriority"
11664
+ },
11665
+ {
11666
+ "name": "sameParty",
11667
+ "description": "True if cookie is SameParty.",
11668
+ "experimental": true,
11669
+ "optional": true,
11670
+ "type": "boolean"
11671
+ },
11672
+ {
11673
+ "name": "sourceScheme",
11674
+ "description": "Cookie source scheme type.",
11675
+ "experimental": true,
11676
+ "optional": true,
11677
+ "$ref": "CookieSourceScheme"
11678
+ },
11679
+ {
11680
+ "name": "sourcePort",
11681
+ "description": "Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.\nAn unspecified port value allows protocol clients to emulate legacy cookie scope for the port.\nThis is a temporary ability and it will be removed in the future.",
11682
+ "experimental": true,
11683
+ "optional": true,
11684
+ "type": "integer"
11612
11685
  }
11613
11686
  ],
11614
11687
  "returns": [
@@ -13438,6 +13511,112 @@
13438
13511
  "PerformanceProfile"
13439
13512
  ]
13440
13513
  },
13514
+ {
13515
+ "id": "PermissionsPolicyFeature",
13516
+ "description": "All Permissions Policy features. This enum should match the one defined\nin renderer/core/feature_policy/feature_policy_features.json5.",
13517
+ "experimental": true,
13518
+ "type": "string",
13519
+ "enum": [
13520
+ "accelerometer",
13521
+ "ambient-light-sensor",
13522
+ "autoplay",
13523
+ "camera",
13524
+ "ch-dpr",
13525
+ "ch-device-memory",
13526
+ "ch-downlink",
13527
+ "ch-ect",
13528
+ "ch-lang",
13529
+ "ch-rtt",
13530
+ "ch-ua",
13531
+ "ch-ua-arch",
13532
+ "ch-ua-platform",
13533
+ "ch-ua-model",
13534
+ "ch-ua-mobile",
13535
+ "ch-ua-full-version",
13536
+ "ch-ua-platform-version",
13537
+ "ch-viewport-width",
13538
+ "ch-width",
13539
+ "clipboard-read",
13540
+ "clipboard-write",
13541
+ "conversion-measurement",
13542
+ "cross-origin-isolated",
13543
+ "display-capture",
13544
+ "document-domain",
13545
+ "encrypted-media",
13546
+ "execution-while-out-of-viewport",
13547
+ "execution-while-not-rendered",
13548
+ "focus-without-user-activation",
13549
+ "fullscreen",
13550
+ "frobulate",
13551
+ "gamepad",
13552
+ "geolocation",
13553
+ "gyroscope",
13554
+ "hid",
13555
+ "idle-detection",
13556
+ "interest-cohort",
13557
+ "magnetometer",
13558
+ "microphone",
13559
+ "midi",
13560
+ "otp-credentials",
13561
+ "payment",
13562
+ "picture-in-picture",
13563
+ "publickey-credentials-get",
13564
+ "screen-wake-lock",
13565
+ "serial",
13566
+ "storage-access-api",
13567
+ "sync-xhr",
13568
+ "trust-token-redemption",
13569
+ "usb",
13570
+ "vertical-scroll",
13571
+ "web-share",
13572
+ "xr-spatial-tracking"
13573
+ ]
13574
+ },
13575
+ {
13576
+ "id": "PermissionsPolicyBlockReason",
13577
+ "description": "Reason for a permissions policy feature to be disabled.",
13578
+ "experimental": true,
13579
+ "type": "string",
13580
+ "enum": [
13581
+ "Header",
13582
+ "IframeAttribute"
13583
+ ]
13584
+ },
13585
+ {
13586
+ "id": "PermissionsPolicyBlockLocator",
13587
+ "experimental": true,
13588
+ "type": "object",
13589
+ "properties": [
13590
+ {
13591
+ "name": "frameId",
13592
+ "$ref": "FrameId"
13593
+ },
13594
+ {
13595
+ "name": "blockReason",
13596
+ "$ref": "PermissionsPolicyBlockReason"
13597
+ }
13598
+ ]
13599
+ },
13600
+ {
13601
+ "id": "PermissionsPolicyFeatureState",
13602
+ "experimental": true,
13603
+ "type": "object",
13604
+ "properties": [
13605
+ {
13606
+ "name": "feature",
13607
+ "$ref": "PermissionsPolicyFeature"
13608
+ },
13609
+ {
13610
+ "name": "allowed",
13611
+ "type": "boolean"
13612
+ },
13613
+ {
13614
+ "name": "locator",
13615
+ "optional": true,
13616
+ "$ref": "PermissionsPolicyBlockLocator"
13617
+ }
13618
+ ]
13619
+ },
13441
13620
  {
13442
13621
  "id": "Frame",
13443
13622
  "description": "Information about the Frame on the page.",
@@ -14726,6 +14905,26 @@
14726
14905
  }
14727
14906
  ]
14728
14907
  },
14908
+ {
14909
+ "name": "getPermissionsPolicyState",
14910
+ "description": "Get Permissions Policy state on given frame.",
14911
+ "experimental": true,
14912
+ "parameters": [
14913
+ {
14914
+ "name": "frameId",
14915
+ "$ref": "FrameId"
14916
+ }
14917
+ ],
14918
+ "returns": [
14919
+ {
14920
+ "name": "states",
14921
+ "type": "array",
14922
+ "items": {
14923
+ "$ref": "PermissionsPolicyFeatureState"
14924
+ }
14925
+ }
14926
+ ]
14927
+ },
14729
14928
  {
14730
14929
  "name": "setDeviceMetricsOverride",
14731
14930
  "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).",
@@ -477,43 +477,6 @@
477
477
  }
478
478
  ]
479
479
  },
480
- {
481
- "name": "executeWasmEvaluator",
482
- "description": "Execute a Wasm Evaluator module on a given call frame.",
483
- "experimental": true,
484
- "parameters": [
485
- {
486
- "name": "callFrameId",
487
- "description": "WebAssembly call frame identifier to evaluate on.",
488
- "$ref": "CallFrameId"
489
- },
490
- {
491
- "name": "evaluator",
492
- "description": "Code of the evaluator module. (Encoded as a base64 string when passed over JSON)",
493
- "type": "string"
494
- },
495
- {
496
- "name": "timeout",
497
- "description": "Terminate execution after timing out (number of milliseconds).",
498
- "experimental": true,
499
- "optional": true,
500
- "$ref": "Runtime.TimeDelta"
501
- }
502
- ],
503
- "returns": [
504
- {
505
- "name": "result",
506
- "description": "Object wrapper for the evaluation result.",
507
- "$ref": "Runtime.RemoteObject"
508
- },
509
- {
510
- "name": "exceptionDetails",
511
- "description": "Exception details.",
512
- "optional": true,
513
- "$ref": "Runtime.ExceptionDetails"
514
- }
515
- ]
516
- },
517
480
  {
518
481
  "name": "getPossibleBreakpoints",
519
482
  "description": "Returns possible locations for breakpoint. scriptId in start and end range locations should be\nthe same.",
@@ -1108,6 +1071,7 @@
1108
1071
  "enum": [
1109
1072
  "ambiguous",
1110
1073
  "assert",
1074
+ "CSPViolation",
1111
1075
  "debugCommand",
1112
1076
  "DOM",
1113
1077
  "EventListener",
@@ -2236,13 +2200,12 @@
2236
2200
  "number",
2237
2201
  "boolean",
2238
2202
  "symbol",
2239
- "bigint",
2240
- "wasm"
2203
+ "bigint"
2241
2204
  ]
2242
2205
  },
2243
2206
  {
2244
2207
  "name": "subtype",
2245
- "description": "Object subtype hint. Specified for `object` or `wasm` type values only.",
2208
+ "description": "Object subtype hint. Specified for `object` type values only.\nNOTE: If you change anything here, make sure to also update\n`subtype` in `ObjectPreview` and `PropertyPreview` below.",
2246
2209
  "optional": true,
2247
2210
  "type": "string",
2248
2211
  "enum": [
@@ -2263,12 +2226,8 @@
2263
2226
  "typedarray",
2264
2227
  "arraybuffer",
2265
2228
  "dataview",
2266
- "i32",
2267
- "i64",
2268
- "f32",
2269
- "f64",
2270
- "v128",
2271
- "externref"
2229
+ "webassemblymemory",
2230
+ "wasmvalue"
2272
2231
  ]
2273
2232
  },
2274
2233
  {
@@ -2372,7 +2331,14 @@
2372
2331
  "weakset",
2373
2332
  "iterator",
2374
2333
  "generator",
2375
- "error"
2334
+ "error",
2335
+ "proxy",
2336
+ "promise",
2337
+ "typedarray",
2338
+ "arraybuffer",
2339
+ "dataview",
2340
+ "webassemblymemory",
2341
+ "wasmvalue"
2376
2342
  ]
2377
2343
  },
2378
2344
  {
@@ -2460,7 +2426,14 @@
2460
2426
  "weakset",
2461
2427
  "iterator",
2462
2428
  "generator",
2463
- "error"
2429
+ "error",
2430
+ "proxy",
2431
+ "promise",
2432
+ "typedarray",
2433
+ "arraybuffer",
2434
+ "dataview",
2435
+ "webassemblymemory",
2436
+ "wasmvalue"
2464
2437
  ]
2465
2438
  }
2466
2439
  ]
@@ -2646,6 +2619,12 @@
2646
2619
  "description": "Human readable name describing given context.",
2647
2620
  "type": "string"
2648
2621
  },
2622
+ {
2623
+ "name": "uniqueId",
2624
+ "description": "A system-unique execution context identifier. Unlike the id, this is unique accross\nmultiple processes, so can be reliably used to identify specific context while backend\nperforms a cross-process navigation.",
2625
+ "experimental": true,
2626
+ "type": "string"
2627
+ },
2649
2628
  {
2650
2629
  "name": "auxData",
2651
2630
  "description": "Embedder-specific auxiliary data.",
@@ -3012,7 +2991,7 @@
3012
2991
  },
3013
2992
  {
3014
2993
  "name": "contextId",
3015
- "description": "Specifies in which execution context to perform evaluation. If the parameter is omitted the\nevaluation will be performed in the context of the inspected page.",
2994
+ "description": "Specifies in which execution context to perform evaluation. If the parameter is omitted the\nevaluation will be performed in the context of the inspected page.\nThis is mutually exclusive with `uniqueContextId`, which offers an\nalternative way to identify the execution context that is more reliable\nin a multi-process environment.",
3016
2995
  "optional": true,
3017
2996
  "$ref": "ExecutionContextId"
3018
2997
  },
@@ -3075,6 +3054,13 @@
3075
3054
  "experimental": true,
3076
3055
  "optional": true,
3077
3056
  "type": "boolean"
3057
+ },
3058
+ {
3059
+ "name": "uniqueContextId",
3060
+ "description": "An alternative way to specify the execution context to evaluate in.\nCompared to contextId that may be reused accross processes, this is guaranteed to be\nsystem-unique, so it can be used to prevent accidental evaluation of the expression\nin context different than intended (e.g. as a result of navigation accross process\nboundaries).\nThis is mutually exclusive with `contextId`.",
3061
+ "experimental": true,
3062
+ "optional": true,
3063
+ "type": "string"
3078
3064
  }
3079
3065
  ],
3080
3066
  "returns": [
@@ -3361,7 +3347,7 @@
3361
3347
  },
3362
3348
  {
3363
3349
  "name": "addBinding",
3364
- "description": "If executionContextId is empty, adds binding with the given name on the\nglobal objects of all inspected contexts, including those created later,\nbindings survive reloads.\nIf executionContextId is specified, adds binding only on global object of\ngiven execution context.\nBinding function takes exactly one argument, this argument should be string,\nin case of any other input, function throws an exception.\nEach binding function call produces Runtime.bindingCalled notification.",
3350
+ "description": "If executionContextId is empty, adds binding with the given name on the\nglobal objects of all inspected contexts, including those created later,\nbindings survive reloads.\nBinding function takes exactly one argument, this argument should be string,\nin case of any other input, function throws an exception.\nEach binding function call produces Runtime.bindingCalled notification.",
3365
3351
  "experimental": true,
3366
3352
  "parameters": [
3367
3353
  {
@@ -3370,8 +3356,16 @@
3370
3356
  },
3371
3357
  {
3372
3358
  "name": "executionContextId",
3359
+ "description": "If specified, the binding would only be exposed to the specified\nexecution context. If omitted and `executionContextName` is not set,\nthe binding is exposed to all execution contexts of the target.\nThis parameter is mutually exclusive with `executionContextName`.",
3373
3360
  "optional": true,
3374
3361
  "$ref": "ExecutionContextId"
3362
+ },
3363
+ {
3364
+ "name": "executionContextName",
3365
+ "description": "If specified, the binding is exposed to the executionContext with\nmatching name, even for contexts created after the binding is added.\nSee also `ExecutionContext.name` and `worldName` parameter to\n`Page.addScriptToEvaluateOnNewDocument`.\nThis parameter is mutually exclusive with `executionContextId`.",
3366
+ "experimental": true,
3367
+ "optional": true,
3368
+ "type": "string"
3375
3369
  }
3376
3370
  ]
3377
3371
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.852555",
3
+ "version": "0.0.856957",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -783,6 +783,9 @@ experimental domain Audits
783
783
  # Runs the contrast check for the target page. Found issues are reported
784
784
  # using Audits.issueAdded event.
785
785
  command checkContrast
786
+ parameters
787
+ # Whether to report WCAG AAA level issues. Default is false.
788
+ optional boolean reportAAA
786
789
 
787
790
  event issueAdded
788
791
  parameters
@@ -4426,6 +4429,15 @@ domain Network
4426
4429
  Medium
4427
4430
  High
4428
4431
 
4432
+ # Represents the source scheme of the origin that originally set the cookie.
4433
+ # A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme.
4434
+ # This is a temporary ability and it will be removed in the future.
4435
+ experimental type CookieSourceScheme extends string
4436
+ enum
4437
+ Unset
4438
+ NonSecure
4439
+ Secure
4440
+
4429
4441
  # Timing information for the request.
4430
4442
  type ResourceTiming extends object
4431
4443
  properties
@@ -4807,6 +4819,12 @@ domain Network
4807
4819
  experimental CookiePriority priority
4808
4820
  # True if cookie is SameParty.
4809
4821
  experimental boolean sameParty
4822
+ # Cookie source scheme type.
4823
+ experimental CookieSourceScheme sourceScheme
4824
+ # Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
4825
+ # An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
4826
+ # This is a temporary ability and it will be removed in the future.
4827
+ experimental integer sourcePort
4810
4828
 
4811
4829
  # Types of reasons why a cookie may not be stored from a response.
4812
4830
  experimental type SetCookieBlockedReason extends string
@@ -4935,7 +4953,7 @@ domain Network
4935
4953
  # Cookie value.
4936
4954
  string value
4937
4955
  # The request-URI to associate with the setting of the cookie. This value can affect the
4938
- # default domain and path values of the created cookie.
4956
+ # default domain, path, source port, and source scheme values of the created cookie.
4939
4957
  optional string url
4940
4958
  # Cookie domain.
4941
4959
  optional string domain
@@ -4951,6 +4969,14 @@ domain Network
4951
4969
  optional TimeSinceEpoch expires
4952
4970
  # Cookie Priority.
4953
4971
  experimental optional CookiePriority priority
4972
+ # True if cookie is SameParty.
4973
+ experimental optional boolean sameParty
4974
+ # Cookie source scheme type.
4975
+ experimental optional CookieSourceScheme sourceScheme
4976
+ # Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
4977
+ # An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
4978
+ # This is a temporary ability and it will be removed in the future.
4979
+ experimental optional integer sourcePort
4954
4980
 
4955
4981
  # Authorization challenge for HTTP status code 401 or 407.
4956
4982
  experimental type AuthChallenge extends object
@@ -5281,7 +5307,7 @@ domain Network
5281
5307
  # Cookie value.
5282
5308
  string value
5283
5309
  # The request-URI to associate with the setting of the cookie. This value can affect the
5284
- # default domain and path values of the created cookie.
5310
+ # default domain, path, source port, and source scheme values of the created cookie.
5285
5311
  optional string url
5286
5312
  # Cookie domain.
5287
5313
  optional string domain
@@ -5297,6 +5323,14 @@ domain Network
5297
5323
  optional TimeSinceEpoch expires
5298
5324
  # Cookie Priority type.
5299
5325
  experimental optional CookiePriority priority
5326
+ # True if cookie is SameParty.
5327
+ experimental optional boolean sameParty
5328
+ # Cookie source scheme type.
5329
+ experimental optional CookieSourceScheme sourceScheme
5330
+ # Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
5331
+ # An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
5332
+ # This is a temporary ability and it will be removed in the future.
5333
+ experimental optional integer sourcePort
5300
5334
  returns
5301
5335
  # Always set to true. If an error occurs, the response indicates protocol error.
5302
5336
  deprecated boolean success
@@ -6217,6 +6251,83 @@ domain Page
6217
6251
  PerformanceMeasureMemory
6218
6252
  PerformanceProfile
6219
6253
 
6254
+ # All Permissions Policy features. This enum should match the one defined
6255
+ # in renderer/core/feature_policy/feature_policy_features.json5.
6256
+ experimental type PermissionsPolicyFeature extends string
6257
+ enum
6258
+ accelerometer
6259
+ ambient-light-sensor
6260
+ autoplay
6261
+ camera
6262
+ ch-dpr
6263
+ ch-device-memory
6264
+ ch-downlink
6265
+ ch-ect
6266
+ ch-lang
6267
+ ch-rtt
6268
+ ch-ua
6269
+ ch-ua-arch
6270
+ ch-ua-platform
6271
+ ch-ua-model
6272
+ ch-ua-mobile
6273
+ ch-ua-full-version
6274
+ ch-ua-platform-version
6275
+ ch-viewport-width
6276
+ ch-width
6277
+ clipboard-read
6278
+ clipboard-write
6279
+ conversion-measurement
6280
+ cross-origin-isolated
6281
+ display-capture
6282
+ document-domain
6283
+ encrypted-media
6284
+ execution-while-out-of-viewport
6285
+ execution-while-not-rendered
6286
+ focus-without-user-activation
6287
+ fullscreen
6288
+ frobulate
6289
+ gamepad
6290
+ geolocation
6291
+ gyroscope
6292
+ hid
6293
+ idle-detection
6294
+ interest-cohort
6295
+ magnetometer
6296
+ microphone
6297
+ midi
6298
+ otp-credentials
6299
+ payment
6300
+ picture-in-picture
6301
+ publickey-credentials-get
6302
+ screen-wake-lock
6303
+ serial
6304
+ storage-access-api
6305
+ sync-xhr
6306
+ trust-token-redemption
6307
+ usb
6308
+ vertical-scroll
6309
+ web-share
6310
+ xr-spatial-tracking
6311
+
6312
+ # Reason for a permissions policy feature to be disabled.
6313
+ experimental type PermissionsPolicyBlockReason extends string
6314
+ enum
6315
+ # Declaration in HTTP header.
6316
+ Header
6317
+ # Declaration in iframe attribute.
6318
+ IframeAttribute
6319
+
6320
+ experimental type PermissionsPolicyBlockLocator extends object
6321
+ properties
6322
+ FrameId frameId
6323
+ PermissionsPolicyBlockReason blockReason
6324
+
6325
+ experimental type PermissionsPolicyFeatureState extends object
6326
+ properties
6327
+ PermissionsPolicyFeature feature
6328
+ boolean allowed
6329
+ optional PermissionsPolicyBlockLocator locator
6330
+
6220
6331
  # Information about the Frame on the page.
6221
6332
  type Frame extends object
6222
6333
  properties
@@ -6798,6 +6909,13 @@ domain Page
6798
6909
  # Whether to bypass page CSP.
6799
6910
  boolean enabled
6800
6911
 
6912
+ # Get Permissions Policy state on given frame.
6913
+ experimental command getPermissionsPolicyState
6914
+ parameters
6915
+ FrameId frameId
6916
+ returns
6917
+ array of PermissionsPolicyFeatureState states
6918
+
6801
6919
  # Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
6802
6920
  # window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
6803
6921
  # query results).
@@ -211,21 +211,6 @@ domain Debugger
211
211
  # Exception details.
212
212
  optional Runtime.ExceptionDetails exceptionDetails
213
213
 
214
- # Execute a Wasm Evaluator module on a given call frame.
215
- experimental command executeWasmEvaluator
216
- parameters
217
- # WebAssembly call frame identifier to evaluate on.
218
- CallFrameId callFrameId
219
- # Code of the evaluator module.
220
- binary evaluator
221
- # Terminate execution after timing out (number of milliseconds).
222
- experimental optional Runtime.TimeDelta timeout
223
- returns
224
- # Object wrapper for the evaluation result.
225
- Runtime.RemoteObject result
226
- # Exception details.
227
- optional Runtime.ExceptionDetails exceptionDetails
228
-
229
214
  # Returns possible locations for breakpoint. scriptId in start and end range locations should be
230
215
  # the same.
231
216
  command getPossibleBreakpoints
@@ -508,6 +493,7 @@ domain Debugger
508
493
  enum reason
509
494
  ambiguous
510
495
  assert
496
+ CSPViolation
511
497
  debugCommand
512
498
  DOM
513
499
  EventListener
@@ -1022,8 +1008,9 @@ domain Runtime
1022
1008
  boolean
1023
1009
  symbol
1024
1010
  bigint
1025
- wasm
1026
- # Object subtype hint. Specified for `object` or `wasm` type values only.
1011
+ # Object subtype hint. Specified for `object` type values only.
1012
+ # NOTE: If you change anything here, make sure to also update
1013
+ # `subtype` in `ObjectPreview` and `PropertyPreview` below.
1027
1014
  optional enum subtype
1028
1015
  array
1029
1016
  null
@@ -1042,12 +1029,8 @@ domain Runtime
1042
1029
  typedarray
1043
1030
  arraybuffer
1044
1031
  dataview
1045
- i32
1046
- i64
1047
- f32
1048
- f64
1049
- v128
1050
- externref
1032
+ webassemblymemory
1033
+ wasmvalue
1051
1034
  # Object class (constructor) name. Specified for `object` type values only.
1052
1035
  optional string className
1053
1036
  # Remote object value in case of primitive values or JSON values (if it was requested).
@@ -1100,6 +1083,13 @@ domain Runtime
1100
1083
  iterator
1101
1084
  generator
1102
1085
  error
1086
+ proxy
1087
+ promise
1088
+ typedarray
1089
+ arraybuffer
1090
+ dataview
1091
+ webassemblymemory
1092
+ wasmvalue
1103
1093
  # String representation of the object.
1104
1094
  optional string description
1105
1095
  # True iff some of the properties or entries of the original object did not fit.
@@ -1142,6 +1132,13 @@ domain Runtime
1142
1132
  iterator
1143
1133
  generator
1144
1134
  error
1135
+ proxy
1136
+ promise
1137
+ typedarray
1138
+ arraybuffer
1139
+ dataview
1140
+ webassemblymemory
1141
+ wasmvalue
1145
1142
 
1146
1143
  experimental type EntryPreview extends object
1147
1144
  properties
@@ -1224,6 +1221,10 @@ domain Runtime
1224
1221
  string origin
1225
1222
  # Human readable name describing given context.
1226
1223
  string name
1224
+ # A system-unique execution context identifier. Unlike the id, this is unique accross
1225
+ # multiple processes, so can be reliably used to identify specific context while backend
1226
+ # performs a cross-process navigation.
1227
+ experimental string uniqueId
1227
1228
  # Embedder-specific auxiliary data.
1228
1229
  optional object auxData
1229
1230
 
@@ -1387,6 +1388,9 @@ domain Runtime
1387
1388
  optional boolean silent
1388
1389
  # Specifies in which execution context to perform evaluation. If the parameter is omitted the
1389
1390
  # evaluation will be performed in the context of the inspected page.
1391
+ # This is mutually exclusive with `uniqueContextId`, which offers an
1392
+ # alternative way to identify the execution context that is more reliable
1393
+ # in a multi-process environment.
1390
1394
  optional ExecutionContextId contextId
1391
1395
  # Whether the result is expected to be a JSON object that should be sent by value.
1392
1396
  optional boolean returnByValue
@@ -1413,6 +1417,13 @@ domain Runtime
1413
1417
  # when called with non-callable arguments. This flag bypasses CSP for this
1414
1418
  # evaluation and allows unsafe-eval. Defaults to true.
1415
1419
  experimental optional boolean allowUnsafeEvalBlockedByCSP
1420
+ # An alternative way to specify the execution context to evaluate in.
1421
+ # Compared to contextId that may be reused accross processes, this is guaranteed to be
1422
+ # system-unique, so it can be used to prevent accidental evaluation of the expression
1423
+ # in context different than intended (e.g. as a result of navigation accross process
1424
+ # boundaries).
1425
+ # This is mutually exclusive with `contextId`.
1426
+ experimental optional string uniqueContextId
1416
1427
  returns
1417
1428
  # Evaluation result.
1418
1429
  RemoteObject result
@@ -1542,15 +1553,23 @@ domain Runtime
1542
1553
  # If executionContextId is empty, adds binding with the given name on the
1543
1554
  # global objects of all inspected contexts, including those created later,
1544
1555
  # bindings survive reloads.
1545
- # If executionContextId is specified, adds binding only on global object of
1546
- # given execution context.
1547
1556
  # Binding function takes exactly one argument, this argument should be string,
1548
1557
  # in case of any other input, function throws an exception.
1549
1558
  # Each binding function call produces Runtime.bindingCalled notification.
1550
1559
  experimental command addBinding
1551
1560
  parameters
1552
1561
  string name
1562
+ # If specified, the binding would only be exposed to the specified
1563
+ # execution context. If omitted and `executionContextName` is not set,
1564
+ # the binding is exposed to all execution contexts of the target.
1565
+ # This parameter is mutually exclusive with `executionContextName`.
1553
1566
  optional ExecutionContextId executionContextId
1567
+ # If specified, the binding is exposed to the executionContext with
1568
+ # matching name, even for contexts created after the binding is added.
1569
+ # See also `ExecutionContext.name` and `worldName` parameter to
1570
+ # `Page.addScriptToEvaluateOnNewDocument`.
1571
+ # This parameter is mutually exclusive with `executionContextId`.
1572
+ experimental optional string executionContextName
1554
1573
 
1555
1574
  # This method does not remove binding function from global object but
1556
1575
  # unsubscribes current runtime agent from Runtime.bindingCalled notifications.
@@ -685,13 +685,6 @@ export namespace ProtocolMapping {
685
685
  paramsType: [Protocol.Debugger.EvaluateOnCallFrameRequest];
686
686
  returnType: Protocol.Debugger.EvaluateOnCallFrameResponse;
687
687
  };
688
- /**
689
- * Execute a Wasm Evaluator module on a given call frame.
690
- */
691
- 'Debugger.executeWasmEvaluator': {
692
- paramsType: [Protocol.Debugger.ExecuteWasmEvaluatorRequest];
693
- returnType: Protocol.Debugger.ExecuteWasmEvaluatorResponse;
694
- };
695
688
  /**
696
689
  * Returns possible locations for breakpoint. scriptId in start and end range locations should be
697
690
  * the same.
@@ -1196,8 +1189,6 @@ export namespace ProtocolMapping {
1196
1189
  * If executionContextId is empty, adds binding with the given name on the
1197
1190
  * global objects of all inspected contexts, including those created later,
1198
1191
  * bindings survive reloads.
1199
- * If executionContextId is specified, adds binding only on global object of
1200
- * given execution context.
1201
1192
  * Binding function takes exactly one argument, this argument should be string,
1202
1193
  * in case of any other input, function throws an exception.
1203
1194
  * Each binding function call produces Runtime.bindingCalled notification.
@@ -1396,7 +1387,7 @@ export namespace ProtocolMapping {
1396
1387
  * using Audits.issueAdded event.
1397
1388
  */
1398
1389
  'Audits.checkContrast': {
1399
- paramsType: [];
1390
+ paramsType: [Protocol.Audits.CheckContrastRequest?];
1400
1391
  returnType: void;
1401
1392
  };
1402
1393
  /**
@@ -3461,6 +3452,13 @@ export namespace ProtocolMapping {
3461
3452
  paramsType: [Protocol.Page.SetBypassCSPRequest];
3462
3453
  returnType: void;
3463
3454
  };
3455
+ /**
3456
+ * Get Permissions Policy state on given frame.
3457
+ */
3458
+ 'Page.getPermissionsPolicyState': {
3459
+ paramsType: [Protocol.Page.GetPermissionsPolicyStateRequest];
3460
+ returnType: Protocol.Page.GetPermissionsPolicyStateResponse;
3461
+ };
3464
3462
  /**
3465
3463
  * Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
3466
3464
  * window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
@@ -151,11 +151,6 @@ export namespace ProtocolProxyApi {
151
151
  */
152
152
  evaluateOnCallFrame(params: Protocol.Debugger.EvaluateOnCallFrameRequest): Promise<Protocol.Debugger.EvaluateOnCallFrameResponse>;
153
153
 
154
- /**
155
- * Execute a Wasm Evaluator module on a given call frame.
156
- */
157
- executeWasmEvaluator(params: Protocol.Debugger.ExecuteWasmEvaluatorRequest): Promise<Protocol.Debugger.ExecuteWasmEvaluatorResponse>;
158
-
159
154
  /**
160
155
  * Returns possible locations for breakpoint. scriptId in start and end range locations should be
161
156
  * the same.
@@ -576,8 +571,6 @@ export namespace ProtocolProxyApi {
576
571
  * If executionContextId is empty, adds binding with the given name on the
577
572
  * global objects of all inspected contexts, including those created later,
578
573
  * bindings survive reloads.
579
- * If executionContextId is specified, adds binding only on global object of
580
- * given execution context.
581
574
  * Binding function takes exactly one argument, this argument should be string,
582
575
  * in case of any other input, function throws an exception.
583
576
  * Each binding function call produces Runtime.bindingCalled notification.
@@ -798,7 +791,7 @@ export namespace ProtocolProxyApi {
798
791
  * Runs the contrast check for the target page. Found issues are reported
799
792
  * using Audits.issueAdded event.
800
793
  */
801
- checkContrast(): Promise<void>;
794
+ checkContrast(params: Protocol.Audits.CheckContrastRequest): Promise<void>;
802
795
 
803
796
  on(event: 'issueAdded', listener: (params: Protocol.Audits.IssueAddedEvent) => void): void;
804
797
 
@@ -2662,6 +2655,11 @@ export namespace ProtocolProxyApi {
2662
2655
  */
2663
2656
  setBypassCSP(params: Protocol.Page.SetBypassCSPRequest): Promise<void>;
2664
2657
 
2658
+ /**
2659
+ * Get Permissions Policy state on given frame.
2660
+ */
2661
+ getPermissionsPolicyState(params: Protocol.Page.GetPermissionsPolicyStateRequest): Promise<Protocol.Page.GetPermissionsPolicyStateResponse>;
2662
+
2665
2663
  /**
2666
2664
  * Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
2667
2665
  * window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
@@ -354,32 +354,6 @@ export namespace Protocol {
354
354
  exceptionDetails?: Runtime.ExceptionDetails;
355
355
  }
356
356
 
357
- export interface ExecuteWasmEvaluatorRequest {
358
- /**
359
- * WebAssembly call frame identifier to evaluate on.
360
- */
361
- callFrameId: CallFrameId;
362
- /**
363
- * Code of the evaluator module. (Encoded as a base64 string when passed over JSON)
364
- */
365
- evaluator: string;
366
- /**
367
- * Terminate execution after timing out (number of milliseconds).
368
- */
369
- timeout?: Runtime.TimeDelta;
370
- }
371
-
372
- export interface ExecuteWasmEvaluatorResponse {
373
- /**
374
- * Object wrapper for the evaluation result.
375
- */
376
- result: Runtime.RemoteObject;
377
- /**
378
- * Exception details.
379
- */
380
- exceptionDetails?: Runtime.ExceptionDetails;
381
- }
382
-
383
357
  export interface GetPossibleBreakpointsRequest {
384
358
  /**
385
359
  * Start of range to search possible breakpoint locations in.
@@ -766,6 +740,7 @@ export namespace Protocol {
766
740
  export const enum PausedEventReason {
767
741
  Ambiguous = 'ambiguous',
768
742
  Assert = 'assert',
743
+ CSPViolation = 'CSPViolation',
769
744
  DebugCommand = 'debugCommand',
770
745
  DOM = 'DOM',
771
746
  EventListener = 'EventListener',
@@ -788,7 +763,7 @@ export namespace Protocol {
788
763
  /**
789
764
  * Pause reason. (PausedEventReason enum)
790
765
  */
791
- reason: ('ambiguous' | 'assert' | 'debugCommand' | 'DOM' | 'EventListener' | 'exception' | 'instrumentation' | 'OOM' | 'other' | 'promiseRejection' | 'XHR');
766
+ reason: ('ambiguous' | 'assert' | 'CSPViolation' | 'debugCommand' | 'DOM' | 'EventListener' | 'exception' | 'instrumentation' | 'OOM' | 'other' | 'promiseRejection' | 'XHR');
792
767
  /**
793
768
  * Object containing break-specific auxiliary properties.
794
769
  */
@@ -1501,7 +1476,6 @@ export namespace Protocol {
1501
1476
  Boolean = 'boolean',
1502
1477
  Symbol = 'symbol',
1503
1478
  Bigint = 'bigint',
1504
- Wasm = 'wasm',
1505
1479
  }
1506
1480
 
1507
1481
  export const enum RemoteObjectSubtype {
@@ -1522,12 +1496,8 @@ export namespace Protocol {
1522
1496
  Typedarray = 'typedarray',
1523
1497
  Arraybuffer = 'arraybuffer',
1524
1498
  Dataview = 'dataview',
1525
- I32 = 'i32',
1526
- I64 = 'i64',
1527
- F32 = 'f32',
1528
- F64 = 'f64',
1529
- V128 = 'v128',
1530
- Externref = 'externref',
1499
+ Webassemblymemory = 'webassemblymemory',
1500
+ Wasmvalue = 'wasmvalue',
1531
1501
  }
1532
1502
 
1533
1503
  /**
@@ -1537,11 +1507,13 @@ export namespace Protocol {
1537
1507
  /**
1538
1508
  * Object type. (RemoteObjectType enum)
1539
1509
  */
1540
- type: ('object' | 'function' | 'undefined' | 'string' | 'number' | 'boolean' | 'symbol' | 'bigint' | 'wasm');
1510
+ type: ('object' | 'function' | 'undefined' | 'string' | 'number' | 'boolean' | 'symbol' | 'bigint');
1541
1511
  /**
1542
- * Object subtype hint. Specified for `object` or `wasm` type values only. (RemoteObjectSubtype enum)
1512
+ * Object subtype hint. Specified for `object` type values only.
1513
+ * NOTE: If you change anything here, make sure to also update
1514
+ * `subtype` in `ObjectPreview` and `PropertyPreview` below. (RemoteObjectSubtype enum)
1543
1515
  */
1544
- subtype?: ('array' | 'null' | 'node' | 'regexp' | 'date' | 'map' | 'set' | 'weakmap' | 'weakset' | 'iterator' | 'generator' | 'error' | 'proxy' | 'promise' | 'typedarray' | 'arraybuffer' | 'dataview' | 'i32' | 'i64' | 'f32' | 'f64' | 'v128' | 'externref');
1516
+ subtype?: ('array' | 'null' | 'node' | 'regexp' | 'date' | 'map' | 'set' | 'weakmap' | 'weakset' | 'iterator' | 'generator' | 'error' | 'proxy' | 'promise' | 'typedarray' | 'arraybuffer' | 'dataview' | 'webassemblymemory' | 'wasmvalue');
1545
1517
  /**
1546
1518
  * Object class (constructor) name. Specified for `object` type values only.
1547
1519
  */
@@ -1608,6 +1580,13 @@ export namespace Protocol {
1608
1580
  Iterator = 'iterator',
1609
1581
  Generator = 'generator',
1610
1582
  Error = 'error',
1583
+ Proxy = 'proxy',
1584
+ Promise = 'promise',
1585
+ Typedarray = 'typedarray',
1586
+ Arraybuffer = 'arraybuffer',
1587
+ Dataview = 'dataview',
1588
+ Webassemblymemory = 'webassemblymemory',
1589
+ Wasmvalue = 'wasmvalue',
1611
1590
  }
1612
1591
 
1613
1592
  /**
@@ -1621,7 +1600,7 @@ export namespace Protocol {
1621
1600
  /**
1622
1601
  * Object subtype hint. Specified for `object` type values only. (ObjectPreviewSubtype enum)
1623
1602
  */
1624
- subtype?: ('array' | 'null' | 'node' | 'regexp' | 'date' | 'map' | 'set' | 'weakmap' | 'weakset' | 'iterator' | 'generator' | 'error');
1603
+ subtype?: ('array' | 'null' | 'node' | 'regexp' | 'date' | 'map' | 'set' | 'weakmap' | 'weakset' | 'iterator' | 'generator' | 'error' | 'proxy' | 'promise' | 'typedarray' | 'arraybuffer' | 'dataview' | 'webassemblymemory' | 'wasmvalue');
1625
1604
  /**
1626
1605
  * String representation of the object.
1627
1606
  */
@@ -1665,6 +1644,13 @@ export namespace Protocol {
1665
1644
  Iterator = 'iterator',
1666
1645
  Generator = 'generator',
1667
1646
  Error = 'error',
1647
+ Proxy = 'proxy',
1648
+ Promise = 'promise',
1649
+ Typedarray = 'typedarray',
1650
+ Arraybuffer = 'arraybuffer',
1651
+ Dataview = 'dataview',
1652
+ Webassemblymemory = 'webassemblymemory',
1653
+ Wasmvalue = 'wasmvalue',
1668
1654
  }
1669
1655
 
1670
1656
  export interface PropertyPreview {
@@ -1687,7 +1673,7 @@ export namespace Protocol {
1687
1673
  /**
1688
1674
  * Object subtype hint. Specified for `object` type values only. (PropertyPreviewSubtype enum)
1689
1675
  */
1690
- subtype?: ('array' | 'null' | 'node' | 'regexp' | 'date' | 'map' | 'set' | 'weakmap' | 'weakset' | 'iterator' | 'generator' | 'error');
1676
+ subtype?: ('array' | 'null' | 'node' | 'regexp' | 'date' | 'map' | 'set' | 'weakmap' | 'weakset' | 'iterator' | 'generator' | 'error' | 'proxy' | 'promise' | 'typedarray' | 'arraybuffer' | 'dataview' | 'webassemblymemory' | 'wasmvalue');
1691
1677
  }
1692
1678
 
1693
1679
  export interface EntryPreview {
@@ -1830,6 +1816,12 @@ export namespace Protocol {
1830
1816
  * Human readable name describing given context.
1831
1817
  */
1832
1818
  name: string;
1819
+ /**
1820
+ * A system-unique execution context identifier. Unlike the id, this is unique accross
1821
+ * multiple processes, so can be reliably used to identify specific context while backend
1822
+ * performs a cross-process navigation.
1823
+ */
1824
+ uniqueId: string;
1833
1825
  /**
1834
1826
  * Embedder-specific auxiliary data.
1835
1827
  */
@@ -2090,6 +2082,9 @@ export namespace Protocol {
2090
2082
  /**
2091
2083
  * Specifies in which execution context to perform evaluation. If the parameter is omitted the
2092
2084
  * evaluation will be performed in the context of the inspected page.
2085
+ * This is mutually exclusive with `uniqueContextId`, which offers an
2086
+ * alternative way to identify the execution context that is more reliable
2087
+ * in a multi-process environment.
2093
2088
  */
2094
2089
  contextId?: ExecutionContextId;
2095
2090
  /**
@@ -2135,6 +2130,15 @@ export namespace Protocol {
2135
2130
  * evaluation and allows unsafe-eval. Defaults to true.
2136
2131
  */
2137
2132
  allowUnsafeEvalBlockedByCSP?: boolean;
2133
+ /**
2134
+ * An alternative way to specify the execution context to evaluate in.
2135
+ * Compared to contextId that may be reused accross processes, this is guaranteed to be
2136
+ * system-unique, so it can be used to prevent accidental evaluation of the expression
2137
+ * in context different than intended (e.g. as a result of navigation accross process
2138
+ * boundaries).
2139
+ * This is mutually exclusive with `contextId`.
2140
+ */
2141
+ uniqueContextId?: string;
2138
2142
  }
2139
2143
 
2140
2144
  export interface EvaluateResponse {
@@ -2316,7 +2320,21 @@ export namespace Protocol {
2316
2320
 
2317
2321
  export interface AddBindingRequest {
2318
2322
  name: string;
2323
+ /**
2324
+ * If specified, the binding would only be exposed to the specified
2325
+ * execution context. If omitted and `executionContextName` is not set,
2326
+ * the binding is exposed to all execution contexts of the target.
2327
+ * This parameter is mutually exclusive with `executionContextName`.
2328
+ */
2319
2329
  executionContextId?: ExecutionContextId;
2330
+ /**
2331
+ * If specified, the binding is exposed to the executionContext with
2332
+ * matching name, even for contexts created after the binding is added.
2333
+ * See also `ExecutionContext.name` and `worldName` parameter to
2334
+ * `Page.addScriptToEvaluateOnNewDocument`.
2335
+ * This parameter is mutually exclusive with `executionContextId`.
2336
+ */
2337
+ executionContextName?: string;
2320
2338
  }
2321
2339
 
2322
2340
  export interface RemoveBindingRequest {
@@ -3369,6 +3387,13 @@ export namespace Protocol {
3369
3387
  encodedSize: integer;
3370
3388
  }
3371
3389
 
3390
+ export interface CheckContrastRequest {
3391
+ /**
3392
+ * Whether to report WCAG AAA level issues. Default is false.
3393
+ */
3394
+ reportAAA?: boolean;
3395
+ }
3396
+
3372
3397
  export interface IssueAddedEvent {
3373
3398
  issue: InspectorIssue;
3374
3399
  }
@@ -8596,6 +8621,13 @@ export namespace Protocol {
8596
8621
  */
8597
8622
  export type CookiePriority = ('Low' | 'Medium' | 'High');
8598
8623
 
8624
+ /**
8625
+ * Represents the source scheme of the origin that originally set the cookie.
8626
+ * A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme.
8627
+ * This is a temporary ability and it will be removed in the future.
8628
+ */
8629
+ export type CookieSourceScheme = ('Unset' | 'NonSecure' | 'Secure');
8630
+
8599
8631
  /**
8600
8632
  * Timing information for the request.
8601
8633
  */
@@ -9173,6 +9205,16 @@ export namespace Protocol {
9173
9205
  * True if cookie is SameParty.
9174
9206
  */
9175
9207
  sameParty: boolean;
9208
+ /**
9209
+ * Cookie source scheme type.
9210
+ */
9211
+ sourceScheme: CookieSourceScheme;
9212
+ /**
9213
+ * Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
9214
+ * An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
9215
+ * This is a temporary ability and it will be removed in the future.
9216
+ */
9217
+ sourcePort: integer;
9176
9218
  }
9177
9219
 
9178
9220
  /**
@@ -9234,7 +9276,7 @@ export namespace Protocol {
9234
9276
  value: string;
9235
9277
  /**
9236
9278
  * The request-URI to associate with the setting of the cookie. This value can affect the
9237
- * default domain and path values of the created cookie.
9279
+ * default domain, path, source port, and source scheme values of the created cookie.
9238
9280
  */
9239
9281
  url?: string;
9240
9282
  /**
@@ -9265,6 +9307,20 @@ export namespace Protocol {
9265
9307
  * Cookie Priority.
9266
9308
  */
9267
9309
  priority?: CookiePriority;
9310
+ /**
9311
+ * True if cookie is SameParty.
9312
+ */
9313
+ sameParty?: boolean;
9314
+ /**
9315
+ * Cookie source scheme type.
9316
+ */
9317
+ sourceScheme?: CookieSourceScheme;
9318
+ /**
9319
+ * Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
9320
+ * An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
9321
+ * This is a temporary ability and it will be removed in the future.
9322
+ */
9323
+ sourcePort?: integer;
9268
9324
  }
9269
9325
 
9270
9326
  export const enum AuthChallengeSource {
@@ -9799,7 +9855,7 @@ export namespace Protocol {
9799
9855
  value: string;
9800
9856
  /**
9801
9857
  * The request-URI to associate with the setting of the cookie. This value can affect the
9802
- * default domain and path values of the created cookie.
9858
+ * default domain, path, source port, and source scheme values of the created cookie.
9803
9859
  */
9804
9860
  url?: string;
9805
9861
  /**
@@ -9830,6 +9886,20 @@ export namespace Protocol {
9830
9886
  * Cookie Priority type.
9831
9887
  */
9832
9888
  priority?: CookiePriority;
9889
+ /**
9890
+ * True if cookie is SameParty.
9891
+ */
9892
+ sameParty?: boolean;
9893
+ /**
9894
+ * Cookie source scheme type.
9895
+ */
9896
+ sourceScheme?: CookieSourceScheme;
9897
+ /**
9898
+ * Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
9899
+ * An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
9900
+ * This is a temporary ability and it will be removed in the future.
9901
+ */
9902
+ sourcePort?: integer;
9833
9903
  }
9834
9904
 
9835
9905
  export interface SetCookieResponse {
@@ -11128,6 +11198,28 @@ export namespace Protocol {
11128
11198
 
11129
11199
  export type GatedAPIFeatures = ('SharedArrayBuffers' | 'SharedArrayBuffersTransferAllowed' | 'PerformanceMeasureMemory' | 'PerformanceProfile');
11130
11200
 
11201
+ /**
11202
+ * All Permissions Policy features. This enum should match the one defined
11203
+ * in renderer/core/feature_policy/feature_policy_features.json5.
11204
+ */
11205
+ 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');
11206
+
11207
+ /**
11208
+ * Reason for a permissions policy feature to be disabled.
11209
+ */
11210
+ export type PermissionsPolicyBlockReason = ('Header' | 'IframeAttribute');
11211
+
11212
+ export interface PermissionsPolicyBlockLocator {
11213
+ frameId: FrameId;
11214
+ blockReason: PermissionsPolicyBlockReason;
11215
+ }
11216
+
11217
+ export interface PermissionsPolicyFeatureState {
11218
+ feature: PermissionsPolicyFeature;
11219
+ allowed: boolean;
11220
+ locator?: PermissionsPolicyBlockLocator;
11221
+ }
11222
+
11131
11223
  /**
11132
11224
  * Information about the Frame on the page.
11133
11225
  */
@@ -11964,6 +12056,14 @@ export namespace Protocol {
11964
12056
  enabled: boolean;
11965
12057
  }
11966
12058
 
12059
+ export interface GetPermissionsPolicyStateRequest {
12060
+ frameId: FrameId;
12061
+ }
12062
+
12063
+ export interface GetPermissionsPolicyStateResponse {
12064
+ states: PermissionsPolicyFeatureState[];
12065
+ }
12066
+
11967
12067
  export interface SetDeviceMetricsOverrideRequest {
11968
12068
  /**
11969
12069
  * Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.