devtools-protocol 0.0.856702 → 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,11 @@
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
+
3
9
  ## Roll protocol to r854822
4
10
  ###### _2021-02-17 09:16:17 -0800_ | Diff: [13b10d1...498a1e5](https://github.com/ChromeDevTools/devtools-protocol/compare/13b10d1...498a1e5)
5
11
  #### `Page`: new command
@@ -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.856702",
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",
@@ -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.
@@ -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.
@@ -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 {