devtools-protocol 0.0.1025565 → 0.0.1026105

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.
@@ -1560,6 +1560,7 @@
1560
1560
  "DeprecationExample",
1561
1561
  "DocumentDomainSettingWithoutOriginAgentClusterHeader",
1562
1562
  "EventPath",
1563
+ "ExpectCTHeader",
1563
1564
  "GeolocationInsecureOrigin",
1564
1565
  "GeolocationInsecureOriginDeprecatedNotRemoved",
1565
1566
  "GetUserMediaInsecureOrigin",
@@ -332,6 +332,29 @@
332
332
  }
333
333
  ]
334
334
  },
335
+ {
336
+ "id": "WasmDisassemblyChunk",
337
+ "experimental": true,
338
+ "type": "object",
339
+ "properties": [
340
+ {
341
+ "name": "lines",
342
+ "description": "The next chunk of disassembled lines.",
343
+ "type": "array",
344
+ "items": {
345
+ "type": "string"
346
+ }
347
+ },
348
+ {
349
+ "name": "bytecodeOffsets",
350
+ "description": "The bytecode offsets describing the start of each line.",
351
+ "type": "array",
352
+ "items": {
353
+ "type": "integer"
354
+ }
355
+ }
356
+ ]
357
+ },
335
358
  {
336
359
  "id": "ScriptLanguage",
337
360
  "description": "Enum of possible script languages.",
@@ -542,6 +565,61 @@
542
565
  }
543
566
  ]
544
567
  },
568
+ {
569
+ "name": "disassembleWasmModule",
570
+ "experimental": true,
571
+ "parameters": [
572
+ {
573
+ "name": "scriptId",
574
+ "description": "Id of the script to disassemble",
575
+ "$ref": "Runtime.ScriptId"
576
+ }
577
+ ],
578
+ "returns": [
579
+ {
580
+ "name": "streamId",
581
+ "description": "For large modules, return a stream from which additional chunks of\ndisassembly can be read successively.",
582
+ "optional": true,
583
+ "type": "string"
584
+ },
585
+ {
586
+ "name": "totalNumberOfLines",
587
+ "description": "The total number of lines in the disassembly text.",
588
+ "type": "integer"
589
+ },
590
+ {
591
+ "name": "functionBodyOffsets",
592
+ "description": "The offsets of all function bodies plus one additional entry pointing\none by past the end of the last function.",
593
+ "type": "array",
594
+ "items": {
595
+ "type": "integer"
596
+ }
597
+ },
598
+ {
599
+ "name": "chunk",
600
+ "description": "The first chunk of disassembly.",
601
+ "$ref": "WasmDisassemblyChunk"
602
+ }
603
+ ]
604
+ },
605
+ {
606
+ "name": "nextWasmDisassemblyChunk",
607
+ "description": "Disassemble the next chunk of lines for the module corresponding to the\nstream. If disassembly is complete, this API will invalidate the streamId\nand return an empty chunk. Any subsequent calls for the now invalid stream\nwill return errors.",
608
+ "experimental": true,
609
+ "parameters": [
610
+ {
611
+ "name": "streamId",
612
+ "type": "string"
613
+ }
614
+ ],
615
+ "returns": [
616
+ {
617
+ "name": "chunk",
618
+ "description": "The next chunk of disassembly.",
619
+ "$ref": "WasmDisassemblyChunk"
620
+ }
621
+ ]
622
+ },
545
623
  {
546
624
  "name": "getWasmBytecode",
547
625
  "description": "This command is deprecated. Use getScriptSource instead.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1025565",
3
+ "version": "0.0.1026105",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -754,6 +754,7 @@ experimental domain Audits
754
754
  DeprecationExample
755
755
  DocumentDomainSettingWithoutOriginAgentClusterHeader
756
756
  EventPath
757
+ ExpectCTHeader
757
758
  GeolocationInsecureOrigin
758
759
  GeolocationInsecureOriginDeprecatedNotRemoved
759
760
  GetUserMediaInsecureOrigin
@@ -244,6 +244,40 @@ domain Debugger
244
244
  # Wasm bytecode.
245
245
  optional binary bytecode
246
246
 
247
+ experimental type WasmDisassemblyChunk extends object
248
+ properties
249
+ # The next chunk of disassembled lines.
250
+ array of string lines
251
+ # The bytecode offsets describing the start of each line.
252
+ array of integer bytecodeOffsets
253
+
254
+ experimental command disassembleWasmModule
255
+ parameters
256
+ # Id of the script to disassemble
257
+ Runtime.ScriptId scriptId
258
+ returns
259
+ # For large modules, return a stream from which additional chunks of
260
+ # disassembly can be read successively.
261
+ optional string streamId
262
+ # The total number of lines in the disassembly text.
263
+ integer totalNumberOfLines
264
+ # The offsets of all function bodies plus one additional entry pointing
265
+ # one by past the end of the last function.
266
+ array of integer functionBodyOffsets
267
+ # The first chunk of disassembly.
268
+ WasmDisassemblyChunk chunk
269
+
270
+ # Disassemble the next chunk of lines for the module corresponding to the
271
+ # stream. If disassembly is complete, this API will invalidate the streamId
272
+ # and return an empty chunk. Any subsequent calls for the now invalid stream
273
+ # will return errors.
274
+ experimental command nextWasmDisassemblyChunk
275
+ parameters
276
+ string streamId
277
+ returns
278
+ # The next chunk of disassembly.
279
+ WasmDisassemblyChunk chunk
280
+
247
281
  # This command is deprecated. Use getScriptSource instead.
248
282
  deprecated command getWasmBytecode
249
283
  parameters
@@ -766,6 +766,20 @@ export namespace ProtocolMapping {
766
766
  paramsType: [Protocol.Debugger.GetScriptSourceRequest];
767
767
  returnType: Protocol.Debugger.GetScriptSourceResponse;
768
768
  };
769
+ 'Debugger.disassembleWasmModule': {
770
+ paramsType: [Protocol.Debugger.DisassembleWasmModuleRequest];
771
+ returnType: Protocol.Debugger.DisassembleWasmModuleResponse;
772
+ };
773
+ /**
774
+ * Disassemble the next chunk of lines for the module corresponding to the
775
+ * stream. If disassembly is complete, this API will invalidate the streamId
776
+ * and return an empty chunk. Any subsequent calls for the now invalid stream
777
+ * will return errors.
778
+ */
779
+ 'Debugger.nextWasmDisassemblyChunk': {
780
+ paramsType: [Protocol.Debugger.NextWasmDisassemblyChunkRequest];
781
+ returnType: Protocol.Debugger.NextWasmDisassemblyChunkResponse;
782
+ };
769
783
  /**
770
784
  * This command is deprecated. Use getScriptSource instead.
771
785
  */
@@ -162,6 +162,16 @@ export namespace ProtocolProxyApi {
162
162
  */
163
163
  getScriptSource(params: Protocol.Debugger.GetScriptSourceRequest): Promise<Protocol.Debugger.GetScriptSourceResponse>;
164
164
 
165
+ disassembleWasmModule(params: Protocol.Debugger.DisassembleWasmModuleRequest): Promise<Protocol.Debugger.DisassembleWasmModuleResponse>;
166
+
167
+ /**
168
+ * Disassemble the next chunk of lines for the module corresponding to the
169
+ * stream. If disassembly is complete, this API will invalidate the streamId
170
+ * and return an empty chunk. Any subsequent calls for the now invalid stream
171
+ * will return errors.
172
+ */
173
+ nextWasmDisassemblyChunk(params: Protocol.Debugger.NextWasmDisassemblyChunkRequest): Promise<Protocol.Debugger.NextWasmDisassemblyChunkResponse>;
174
+
165
175
  /**
166
176
  * This command is deprecated. Use getScriptSource instead.
167
177
  */
@@ -253,6 +253,17 @@ export namespace Protocol {
253
253
  type?: ('debuggerStatement' | 'call' | 'return');
254
254
  }
255
255
 
256
+ export interface WasmDisassemblyChunk {
257
+ /**
258
+ * The next chunk of disassembled lines.
259
+ */
260
+ lines: string[];
261
+ /**
262
+ * The bytecode offsets describing the start of each line.
263
+ */
264
+ bytecodeOffsets: integer[];
265
+ }
266
+
256
267
  /**
257
268
  * Enum of possible script languages.
258
269
  */
@@ -404,6 +415,45 @@ export namespace Protocol {
404
415
  bytecode?: string;
405
416
  }
406
417
 
418
+ export interface DisassembleWasmModuleRequest {
419
+ /**
420
+ * Id of the script to disassemble
421
+ */
422
+ scriptId: Runtime.ScriptId;
423
+ }
424
+
425
+ export interface DisassembleWasmModuleResponse {
426
+ /**
427
+ * For large modules, return a stream from which additional chunks of
428
+ * disassembly can be read successively.
429
+ */
430
+ streamId?: string;
431
+ /**
432
+ * The total number of lines in the disassembly text.
433
+ */
434
+ totalNumberOfLines: integer;
435
+ /**
436
+ * The offsets of all function bodies plus one additional entry pointing
437
+ * one by past the end of the last function.
438
+ */
439
+ functionBodyOffsets: integer[];
440
+ /**
441
+ * The first chunk of disassembly.
442
+ */
443
+ chunk: WasmDisassemblyChunk;
444
+ }
445
+
446
+ export interface NextWasmDisassemblyChunkRequest {
447
+ streamId: string;
448
+ }
449
+
450
+ export interface NextWasmDisassemblyChunkResponse {
451
+ /**
452
+ * The next chunk of disassembly.
453
+ */
454
+ chunk: WasmDisassemblyChunk;
455
+ }
456
+
407
457
  export interface GetWasmBytecodeRequest {
408
458
  /**
409
459
  * Id of the Wasm script to get source for.
@@ -3417,7 +3467,7 @@ export namespace Protocol {
3417
3467
  frameId?: Page.FrameId;
3418
3468
  }
3419
3469
 
3420
- export type DeprecationIssueType = ('AuthorizationCoveredByWildcard' | 'CanRequestURLHTTPContainingNewline' | 'ChromeLoadTimesConnectionInfo' | 'ChromeLoadTimesFirstPaintAfterLoadTime' | 'ChromeLoadTimesWasAlternateProtocolAvailable' | 'CookieWithTruncatingChar' | 'CrossOriginAccessBasedOnDocumentDomain' | 'CrossOriginWindowAlert' | 'CrossOriginWindowConfirm' | 'CSSSelectorInternalMediaControlsOverlayCastButton' | 'DeprecationExample' | 'DocumentDomainSettingWithoutOriginAgentClusterHeader' | 'EventPath' | 'GeolocationInsecureOrigin' | 'GeolocationInsecureOriginDeprecatedNotRemoved' | 'GetUserMediaInsecureOrigin' | 'HostCandidateAttributeGetter' | 'IdentityInCanMakePaymentEvent' | 'InsecurePrivateNetworkSubresourceRequest' | 'LegacyConstraintGoogIPv6' | 'LocalCSSFileExtensionRejected' | 'MediaSourceAbortRemove' | 'MediaSourceDurationTruncatingBuffered' | 'NoSysexWebMIDIWithoutPermission' | 'NotificationInsecureOrigin' | 'NotificationPermissionRequestedIframe' | 'ObsoleteWebRtcCipherSuite' | 'OpenWebDatabaseInsecureContext' | 'PictureSourceSrc' | 'PrefixedCancelAnimationFrame' | 'PrefixedRequestAnimationFrame' | 'PrefixedStorageInfo' | 'PrefixedVideoDisplayingFullscreen' | 'PrefixedVideoEnterFullscreen' | 'PrefixedVideoEnterFullScreen' | 'PrefixedVideoExitFullscreen' | 'PrefixedVideoExitFullScreen' | 'PrefixedVideoSupportsFullscreen' | 'RangeExpand' | 'RequestedSubresourceWithEmbeddedCredentials' | 'RTCConstraintEnableDtlsSrtpFalse' | 'RTCConstraintEnableDtlsSrtpTrue' | 'RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics' | 'RTCPeerConnectionSdpSemanticsPlanB' | 'RtcpMuxPolicyNegotiate' | 'SharedArrayBufferConstructedWithoutIsolation' | 'TextToSpeech_DisallowedByAutoplay' | 'V8SharedArrayBufferConstructedInExtensionWithoutIsolation' | 'XHRJSONEncodingDetection' | 'XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload' | 'XRSupportsSession');
3470
+ export type DeprecationIssueType = ('AuthorizationCoveredByWildcard' | 'CanRequestURLHTTPContainingNewline' | 'ChromeLoadTimesConnectionInfo' | 'ChromeLoadTimesFirstPaintAfterLoadTime' | 'ChromeLoadTimesWasAlternateProtocolAvailable' | 'CookieWithTruncatingChar' | 'CrossOriginAccessBasedOnDocumentDomain' | 'CrossOriginWindowAlert' | 'CrossOriginWindowConfirm' | 'CSSSelectorInternalMediaControlsOverlayCastButton' | 'DeprecationExample' | 'DocumentDomainSettingWithoutOriginAgentClusterHeader' | 'EventPath' | 'ExpectCTHeader' | 'GeolocationInsecureOrigin' | 'GeolocationInsecureOriginDeprecatedNotRemoved' | 'GetUserMediaInsecureOrigin' | 'HostCandidateAttributeGetter' | 'IdentityInCanMakePaymentEvent' | 'InsecurePrivateNetworkSubresourceRequest' | 'LegacyConstraintGoogIPv6' | 'LocalCSSFileExtensionRejected' | 'MediaSourceAbortRemove' | 'MediaSourceDurationTruncatingBuffered' | 'NoSysexWebMIDIWithoutPermission' | 'NotificationInsecureOrigin' | 'NotificationPermissionRequestedIframe' | 'ObsoleteWebRtcCipherSuite' | 'OpenWebDatabaseInsecureContext' | 'PictureSourceSrc' | 'PrefixedCancelAnimationFrame' | 'PrefixedRequestAnimationFrame' | 'PrefixedStorageInfo' | 'PrefixedVideoDisplayingFullscreen' | 'PrefixedVideoEnterFullscreen' | 'PrefixedVideoEnterFullScreen' | 'PrefixedVideoExitFullscreen' | 'PrefixedVideoExitFullScreen' | 'PrefixedVideoSupportsFullscreen' | 'RangeExpand' | 'RequestedSubresourceWithEmbeddedCredentials' | 'RTCConstraintEnableDtlsSrtpFalse' | 'RTCConstraintEnableDtlsSrtpTrue' | 'RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics' | 'RTCPeerConnectionSdpSemanticsPlanB' | 'RtcpMuxPolicyNegotiate' | 'SharedArrayBufferConstructedWithoutIsolation' | 'TextToSpeech_DisallowedByAutoplay' | 'V8SharedArrayBufferConstructedInExtensionWithoutIsolation' | 'XHRJSONEncodingDetection' | 'XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload' | 'XRSupportsSession');
3421
3471
 
3422
3472
  /**
3423
3473
  * This issue tracks information needed to print a deprecation message.