devtools-protocol 0.0.1011700 → 0.0.1011705

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.
@@ -1447,7 +1447,7 @@
1447
1447
  },
1448
1448
  {
1449
1449
  "id": "AttributionReportingIssueDetails",
1450
- "description": "Details for issues around \"Attribution Reporting API\" usage.\nExplainer: https://github.com/WICG/conversion-measurement-api",
1450
+ "description": "Details for issues around \"Attribution Reporting API\" usage.\nExplainer: https://github.com/WICG/attribution-reporting-api",
1451
1451
  "type": "object",
1452
1452
  "properties": [
1453
1453
  {
@@ -1573,7 +1573,6 @@
1573
1573
  "NotificationInsecureOrigin",
1574
1574
  "NotificationPermissionRequestedIframe",
1575
1575
  "ObsoleteWebRtcCipherSuite",
1576
- "PaymentRequestBasicCard",
1577
1576
  "PictureSourceSrc",
1578
1577
  "PrefixedCancelAnimationFrame",
1579
1578
  "PrefixedRequestAnimationFrame",
@@ -12067,9 +12066,10 @@
12067
12066
  "enum": [
12068
12067
  "SameOrigin",
12069
12068
  "SameOriginAllowPopups",
12069
+ "RestrictProperties",
12070
12070
  "UnsafeNone",
12071
12071
  "SameOriginPlusCoep",
12072
- "SameOriginAllowPopupsPlusCoep"
12072
+ "RestrictPropertiesPlusCoep"
12073
12073
  ]
12074
12074
  },
12075
12075
  {
@@ -14961,6 +14961,24 @@
14961
14961
  }
14962
14962
  ]
14963
14963
  },
14964
+ {
14965
+ "id": "AdScriptId",
14966
+ "description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad.",
14967
+ "experimental": true,
14968
+ "type": "object",
14969
+ "properties": [
14970
+ {
14971
+ "name": "scriptId",
14972
+ "description": "Script Id of the bottom-most script which caused the frame to be labelled\nas an ad.",
14973
+ "$ref": "Runtime.ScriptId"
14974
+ },
14975
+ {
14976
+ "name": "debuggerId",
14977
+ "description": "Id of adScriptId's debugger.",
14978
+ "$ref": "Runtime.UniqueDebuggerId"
14979
+ }
14980
+ ]
14981
+ },
14964
14982
  {
14965
14983
  "id": "SecureContextType",
14966
14984
  "description": "Indicates whether the frame is a secure context and why it is the case.",
@@ -17333,6 +17351,13 @@
17333
17351
  "description": "JavaScript stack trace of when frame was attached, only set if frame initiated from script.",
17334
17352
  "optional": true,
17335
17353
  "$ref": "Runtime.StackTrace"
17354
+ },
17355
+ {
17356
+ "name": "adScriptId",
17357
+ "description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad. Only sent if frame is labelled as an ad and id is available.",
17358
+ "experimental": true,
17359
+ "optional": true,
17360
+ "$ref": "AdScriptId"
17336
17361
  }
17337
17362
  ]
17338
17363
  },
@@ -606,19 +606,29 @@
606
606
  },
607
607
  {
608
608
  "name": "restartFrame",
609
- "description": "Restarts particular call frame from the beginning.",
610
- "deprecated": true,
609
+ "description": "Restarts particular call frame from the beginning. The old, deprecated\nbehavior of `restartFrame` is to stay paused and allow further CDP commands\nafter a restart was scheduled. This can cause problems with restarting, so\nwe now continue execution immediatly after it has been scheduled until we\nreach the beginning of the restarted frame.\n\nTo stay back-wards compatible, `restartFrame` now expects a `mode`\nparameter to be present. If the `mode` parameter is missing, `restartFrame`\nerrors out.\n\nThe various return values are deprecated and `callFrames` is always empty.\nUse the call frames from the `Debugger#paused` events instead, that fires\nonce V8 pauses at the beginning of the restarted function.",
611
610
  "parameters": [
612
611
  {
613
612
  "name": "callFrameId",
614
613
  "description": "Call frame identifier to evaluate on.",
615
614
  "$ref": "CallFrameId"
615
+ },
616
+ {
617
+ "name": "mode",
618
+ "description": "The `mode` parameter must be present and set to 'StepInto', otherwise\n`restartFrame` will error out.",
619
+ "experimental": true,
620
+ "optional": true,
621
+ "type": "string",
622
+ "enum": [
623
+ "StepInto"
624
+ ]
616
625
  }
617
626
  ],
618
627
  "returns": [
619
628
  {
620
629
  "name": "callFrames",
621
630
  "description": "New stack trace.",
631
+ "deprecated": true,
622
632
  "type": "array",
623
633
  "items": {
624
634
  "$ref": "CallFrame"
@@ -627,13 +637,14 @@
627
637
  {
628
638
  "name": "asyncStackTrace",
629
639
  "description": "Async stack trace, if any.",
640
+ "deprecated": true,
630
641
  "optional": true,
631
642
  "$ref": "Runtime.StackTrace"
632
643
  },
633
644
  {
634
645
  "name": "asyncStackTraceId",
635
646
  "description": "Async stack trace, if any.",
636
- "experimental": true,
647
+ "deprecated": true,
637
648
  "optional": true,
638
649
  "$ref": "Runtime.StackTraceId"
639
650
  }
@@ -1553,6 +1564,8 @@
1553
1564
  },
1554
1565
  {
1555
1566
  "name": "treatGlobalObjectsAsRoots",
1567
+ "description": "Deprecated in favor of `exposeInternals`.",
1568
+ "deprecated": true,
1556
1569
  "optional": true,
1557
1570
  "type": "boolean"
1558
1571
  },
@@ -1561,6 +1574,13 @@
1561
1574
  "description": "If true, numerical values are included in the snapshot",
1562
1575
  "optional": true,
1563
1576
  "type": "boolean"
1577
+ },
1578
+ {
1579
+ "name": "exposeInternals",
1580
+ "description": "If true, exposes internals of the snapshot.",
1581
+ "experimental": true,
1582
+ "optional": true,
1583
+ "type": "boolean"
1564
1584
  }
1565
1585
  ]
1566
1586
  },
@@ -1575,7 +1595,8 @@
1575
1595
  },
1576
1596
  {
1577
1597
  "name": "treatGlobalObjectsAsRoots",
1578
- "description": "If true, a raw snapshot without artificial roots will be generated",
1598
+ "description": "If true, a raw snapshot without artificial roots will be generated.\nDeprecated in favor of `exposeInternals`.",
1599
+ "deprecated": true,
1579
1600
  "optional": true,
1580
1601
  "type": "boolean"
1581
1602
  },
@@ -1584,6 +1605,13 @@
1584
1605
  "description": "If true, numerical values are included in the snapshot",
1585
1606
  "optional": true,
1586
1607
  "type": "boolean"
1608
+ },
1609
+ {
1610
+ "name": "exposeInternals",
1611
+ "description": "If true, exposes internals of the snapshot.",
1612
+ "experimental": true,
1613
+ "optional": true,
1614
+ "type": "boolean"
1587
1615
  }
1588
1616
  ]
1589
1617
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1011700",
3
+ "version": "0.0.1011705",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -795,7 +795,19 @@ export namespace ProtocolMapping {
795
795
  returnType: void;
796
796
  };
797
797
  /**
798
- * Restarts particular call frame from the beginning.
798
+ * Restarts particular call frame from the beginning. The old, deprecated
799
+ * behavior of `restartFrame` is to stay paused and allow further CDP commands
800
+ * after a restart was scheduled. This can cause problems with restarting, so
801
+ * we now continue execution immediatly after it has been scheduled until we
802
+ * reach the beginning of the restarted frame.
803
+ *
804
+ * To stay back-wards compatible, `restartFrame` now expects a `mode`
805
+ * parameter to be present. If the `mode` parameter is missing, `restartFrame`
806
+ * errors out.
807
+ *
808
+ * The various return values are deprecated and `callFrames` is always empty.
809
+ * Use the call frames from the `Debugger#paused` events instead, that fires
810
+ * once V8 pauses at the beginning of the restarted function.
799
811
  */
800
812
  'Debugger.restartFrame': {
801
813
  paramsType: [Protocol.Debugger.RestartFrameRequest];
@@ -185,7 +185,19 @@ export namespace ProtocolProxyApi {
185
185
  removeBreakpoint(params: Protocol.Debugger.RemoveBreakpointRequest): Promise<void>;
186
186
 
187
187
  /**
188
- * Restarts particular call frame from the beginning.
188
+ * Restarts particular call frame from the beginning. The old, deprecated
189
+ * behavior of `restartFrame` is to stay paused and allow further CDP commands
190
+ * after a restart was scheduled. This can cause problems with restarting, so
191
+ * we now continue execution immediatly after it has been scheduled until we
192
+ * reach the beginning of the restarted frame.
193
+ *
194
+ * To stay back-wards compatible, `restartFrame` now expects a `mode`
195
+ * parameter to be present. If the `mode` parameter is missing, `restartFrame`
196
+ * errors out.
197
+ *
198
+ * The various return values are deprecated and `callFrames` is always empty.
199
+ * Use the call frames from the `Debugger#paused` events instead, that fires
200
+ * once V8 pauses at the beginning of the restarted function.
189
201
  */
190
202
  restartFrame(params: Protocol.Debugger.RestartFrameRequest): Promise<Protocol.Debugger.RestartFrameResponse>;
191
203
 
@@ -437,11 +437,20 @@ export namespace Protocol {
437
437
  breakpointId: BreakpointId;
438
438
  }
439
439
 
440
+ export const enum RestartFrameRequestMode {
441
+ StepInto = 'StepInto',
442
+ }
443
+
440
444
  export interface RestartFrameRequest {
441
445
  /**
442
446
  * Call frame identifier to evaluate on.
443
447
  */
444
448
  callFrameId: CallFrameId;
449
+ /**
450
+ * The `mode` parameter must be present and set to 'StepInto', otherwise
451
+ * `restartFrame` will error out. (RestartFrameRequestMode enum)
452
+ */
453
+ mode?: ('StepInto');
445
454
  }
446
455
 
447
456
  export interface RestartFrameResponse {
@@ -1077,11 +1086,18 @@ export namespace Protocol {
1077
1086
  * when the tracking is stopped.
1078
1087
  */
1079
1088
  reportProgress?: boolean;
1089
+ /**
1090
+ * Deprecated in favor of `exposeInternals`.
1091
+ */
1080
1092
  treatGlobalObjectsAsRoots?: boolean;
1081
1093
  /**
1082
1094
  * If true, numerical values are included in the snapshot
1083
1095
  */
1084
1096
  captureNumericValue?: boolean;
1097
+ /**
1098
+ * If true, exposes internals of the snapshot.
1099
+ */
1100
+ exposeInternals?: boolean;
1085
1101
  }
1086
1102
 
1087
1103
  export interface TakeHeapSnapshotRequest {
@@ -1090,13 +1106,18 @@ export namespace Protocol {
1090
1106
  */
1091
1107
  reportProgress?: boolean;
1092
1108
  /**
1093
- * If true, a raw snapshot without artificial roots will be generated
1109
+ * If true, a raw snapshot without artificial roots will be generated.
1110
+ * Deprecated in favor of `exposeInternals`.
1094
1111
  */
1095
1112
  treatGlobalObjectsAsRoots?: boolean;
1096
1113
  /**
1097
1114
  * If true, numerical values are included in the snapshot
1098
1115
  */
1099
1116
  captureNumericValue?: boolean;
1117
+ /**
1118
+ * If true, exposes internals of the snapshot.
1119
+ */
1120
+ exposeInternals?: boolean;
1100
1121
  }
1101
1122
 
1102
1123
  export interface AddHeapSnapshotChunkEvent {
@@ -3334,7 +3355,7 @@ export namespace Protocol {
3334
3355
 
3335
3356
  /**
3336
3357
  * Details for issues around "Attribution Reporting API" usage.
3337
- * Explainer: https://github.com/WICG/conversion-measurement-api
3358
+ * Explainer: https://github.com/WICG/attribution-reporting-api
3338
3359
  */
3339
3360
  export interface AttributionReportingIssueDetails {
3340
3361
  violationType: AttributionReportingIssueType;
@@ -3378,7 +3399,7 @@ export namespace Protocol {
3378
3399
  frameId?: Page.FrameId;
3379
3400
  }
3380
3401
 
3381
- export type DeprecationIssueType = ('AuthorizationCoveredByWildcard' | 'CanRequestURLHTTPContainingNewline' | 'ChromeLoadTimesConnectionInfo' | 'ChromeLoadTimesFirstPaintAfterLoadTime' | 'ChromeLoadTimesWasAlternateProtocolAvailable' | 'CookieWithTruncatingChar' | 'CrossOriginAccessBasedOnDocumentDomain' | 'CrossOriginWindowAlert' | 'CrossOriginWindowConfirm' | 'CSSSelectorInternalMediaControlsOverlayCastButton' | 'DeprecationExample' | 'DocumentDomainSettingWithoutOriginAgentClusterHeader' | 'EventPath' | 'GeolocationInsecureOrigin' | 'GeolocationInsecureOriginDeprecatedNotRemoved' | 'GetUserMediaInsecureOrigin' | 'HostCandidateAttributeGetter' | 'InsecurePrivateNetworkSubresourceRequest' | 'LegacyConstraintGoogIPv6' | 'LocalCSSFileExtensionRejected' | 'MediaSourceAbortRemove' | 'MediaSourceDurationTruncatingBuffered' | 'NoSysexWebMIDIWithoutPermission' | 'NotificationInsecureOrigin' | 'NotificationPermissionRequestedIframe' | 'ObsoleteWebRtcCipherSuite' | 'PaymentRequestBasicCard' | 'PictureSourceSrc' | 'PrefixedCancelAnimationFrame' | 'PrefixedRequestAnimationFrame' | 'PrefixedStorageInfo' | 'PrefixedVideoDisplayingFullscreen' | 'PrefixedVideoEnterFullscreen' | 'PrefixedVideoEnterFullScreen' | 'PrefixedVideoExitFullscreen' | 'PrefixedVideoExitFullScreen' | 'PrefixedVideoSupportsFullscreen' | 'RangeExpand' | 'RequestedSubresourceWithEmbeddedCredentials' | 'RTCConstraintEnableDtlsSrtpFalse' | 'RTCConstraintEnableDtlsSrtpTrue' | 'RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics' | 'RTCPeerConnectionSdpSemanticsPlanB' | 'RtcpMuxPolicyNegotiate' | 'SharedArrayBufferConstructedWithoutIsolation' | 'TextToSpeech_DisallowedByAutoplay' | 'V8SharedArrayBufferConstructedInExtensionWithoutIsolation' | 'XHRJSONEncodingDetection' | 'XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload' | 'XRSupportsSession');
3402
+ export type DeprecationIssueType = ('AuthorizationCoveredByWildcard' | 'CanRequestURLHTTPContainingNewline' | 'ChromeLoadTimesConnectionInfo' | 'ChromeLoadTimesFirstPaintAfterLoadTime' | 'ChromeLoadTimesWasAlternateProtocolAvailable' | 'CookieWithTruncatingChar' | 'CrossOriginAccessBasedOnDocumentDomain' | 'CrossOriginWindowAlert' | 'CrossOriginWindowConfirm' | 'CSSSelectorInternalMediaControlsOverlayCastButton' | 'DeprecationExample' | 'DocumentDomainSettingWithoutOriginAgentClusterHeader' | 'EventPath' | 'GeolocationInsecureOrigin' | 'GeolocationInsecureOriginDeprecatedNotRemoved' | 'GetUserMediaInsecureOrigin' | 'HostCandidateAttributeGetter' | 'InsecurePrivateNetworkSubresourceRequest' | 'LegacyConstraintGoogIPv6' | 'LocalCSSFileExtensionRejected' | 'MediaSourceAbortRemove' | 'MediaSourceDurationTruncatingBuffered' | 'NoSysexWebMIDIWithoutPermission' | 'NotificationInsecureOrigin' | 'NotificationPermissionRequestedIframe' | 'ObsoleteWebRtcCipherSuite' | 'PictureSourceSrc' | 'PrefixedCancelAnimationFrame' | 'PrefixedRequestAnimationFrame' | 'PrefixedStorageInfo' | 'PrefixedVideoDisplayingFullscreen' | 'PrefixedVideoEnterFullscreen' | 'PrefixedVideoEnterFullScreen' | 'PrefixedVideoExitFullscreen' | 'PrefixedVideoExitFullScreen' | 'PrefixedVideoSupportsFullscreen' | 'RangeExpand' | 'RequestedSubresourceWithEmbeddedCredentials' | 'RTCConstraintEnableDtlsSrtpFalse' | 'RTCConstraintEnableDtlsSrtpTrue' | 'RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics' | 'RTCPeerConnectionSdpSemanticsPlanB' | 'RtcpMuxPolicyNegotiate' | 'SharedArrayBufferConstructedWithoutIsolation' | 'TextToSpeech_DisallowedByAutoplay' | 'V8SharedArrayBufferConstructedInExtensionWithoutIsolation' | 'XHRJSONEncodingDetection' | 'XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload' | 'XRSupportsSession');
3382
3403
 
3383
3404
  /**
3384
3405
  * This issue tracks information needed to print a deprecation message.
@@ -10123,7 +10144,7 @@ export namespace Protocol {
10123
10144
  privateNetworkRequestPolicy: PrivateNetworkRequestPolicy;
10124
10145
  }
10125
10146
 
10126
- export type CrossOriginOpenerPolicyValue = ('SameOrigin' | 'SameOriginAllowPopups' | 'UnsafeNone' | 'SameOriginPlusCoep' | 'SameOriginAllowPopupsPlusCoep');
10147
+ export type CrossOriginOpenerPolicyValue = ('SameOrigin' | 'SameOriginAllowPopups' | 'RestrictProperties' | 'UnsafeNone' | 'SameOriginPlusCoep' | 'RestrictPropertiesPlusCoep');
10127
10148
 
10128
10149
  export interface CrossOriginOpenerPolicyStatus {
10129
10150
  value: CrossOriginOpenerPolicyValue;
@@ -12070,6 +12091,22 @@ export namespace Protocol {
12070
12091
  explanations?: AdFrameExplanation[];
12071
12092
  }
12072
12093
 
12094
+ /**
12095
+ * Identifies the bottom-most script which caused the frame to be labelled
12096
+ * as an ad.
12097
+ */
12098
+ export interface AdScriptId {
12099
+ /**
12100
+ * Script Id of the bottom-most script which caused the frame to be labelled
12101
+ * as an ad.
12102
+ */
12103
+ scriptId: Runtime.ScriptId;
12104
+ /**
12105
+ * Id of adScriptId's debugger.
12106
+ */
12107
+ debuggerId: Runtime.UniqueDebuggerId;
12108
+ }
12109
+
12073
12110
  /**
12074
12111
  * Indicates whether the frame is a secure context and why it is the case.
12075
12112
  */
@@ -13381,6 +13418,11 @@ export namespace Protocol {
13381
13418
  * JavaScript stack trace of when frame was attached, only set if frame initiated from script.
13382
13419
  */
13383
13420
  stack?: Runtime.StackTrace;
13421
+ /**
13422
+ * Identifies the bottom-most script which caused the frame to be labelled
13423
+ * as an ad. Only sent if frame is labelled as an ad and id is available.
13424
+ */
13425
+ adScriptId?: AdScriptId;
13384
13426
  }
13385
13427
 
13386
13428
  /**