devtools-protocol 0.0.933220 → 0.0.937072

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.
@@ -1479,6 +1479,28 @@
1479
1479
  }
1480
1480
  ]
1481
1481
  },
1482
+ {
1483
+ "id": "DeprecationIssueDetails",
1484
+ "description": "This issue tracks information needed to print a deprecation message.\nThe formatting is inherited from the old console.log version, see more at:\nhttps://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc\nTODO(crbug.com/1264960): Re-work format to add i18n support per:\nhttps://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md",
1485
+ "type": "object",
1486
+ "properties": [
1487
+ {
1488
+ "name": "affectedFrame",
1489
+ "optional": true,
1490
+ "$ref": "AffectedFrame"
1491
+ },
1492
+ {
1493
+ "name": "sourceCodeLocation",
1494
+ "$ref": "SourceCodeLocation"
1495
+ },
1496
+ {
1497
+ "name": "message",
1498
+ "description": "The content of the deprecation issue (this won't be translated),\ne.g. \"window.inefficientLegacyStorageMethod will be removed in M97,\naround January 2022. Please use Web Storage or Indexed Database\ninstead. This standard was abandoned in January, 1970. See\nhttps://www.chromestatus.com/feature/5684870116278272 for more details.\"",
1499
+ "optional": true,
1500
+ "type": "string"
1501
+ }
1502
+ ]
1503
+ },
1482
1504
  {
1483
1505
  "id": "InspectorIssueCode",
1484
1506
  "description": "A unique identifier for the type of issue. Each type may use one of the\noptional fields in InspectorIssueDetails to convey more specific\ninformation about the kind of issue.",
@@ -1497,7 +1519,8 @@
1497
1519
  "QuirksModeIssue",
1498
1520
  "NavigatorUserAgentIssue",
1499
1521
  "WasmCrossOriginModuleSharingIssue",
1500
- "GenericIssue"
1522
+ "GenericIssue",
1523
+ "DeprecationIssue"
1501
1524
  ]
1502
1525
  },
1503
1526
  {
@@ -1574,6 +1597,11 @@
1574
1597
  "name": "genericIssueDetails",
1575
1598
  "optional": true,
1576
1599
  "$ref": "GenericIssueDetails"
1600
+ },
1601
+ {
1602
+ "name": "deprecationIssueDetails",
1603
+ "optional": true,
1604
+ "$ref": "DeprecationIssueDetails"
1577
1605
  }
1578
1606
  ]
1579
1607
  },
@@ -6068,6 +6096,35 @@
6068
6096
  }
6069
6097
  ]
6070
6098
  },
6099
+ {
6100
+ "domain": "EventBreakpoints",
6101
+ "description": "EventBreakpoints permits setting breakpoints on particular operations and\nevents in targets that run JavaScript but do not have a DOM.\nJavaScript execution will stop on these operations as if there was a regular\nbreakpoint set.",
6102
+ "experimental": true,
6103
+ "commands": [
6104
+ {
6105
+ "name": "setInstrumentationBreakpoint",
6106
+ "description": "Sets breakpoint on particular native event.",
6107
+ "parameters": [
6108
+ {
6109
+ "name": "eventName",
6110
+ "description": "Instrumentation name to stop on.",
6111
+ "type": "string"
6112
+ }
6113
+ ]
6114
+ },
6115
+ {
6116
+ "name": "removeInstrumentationBreakpoint",
6117
+ "description": "Removes breakpoint on particular native event.",
6118
+ "parameters": [
6119
+ {
6120
+ "name": "eventName",
6121
+ "description": "Instrumentation name to stop on.",
6122
+ "type": "string"
6123
+ }
6124
+ ]
6125
+ }
6126
+ ]
6127
+ },
6071
6128
  {
6072
6129
  "domain": "DOMSnapshot",
6073
6130
  "description": "This domain facilitates obtaining document snapshots with DOM, layout, and style information.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.933220",
3
+ "version": "0.0.937072",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -709,6 +709,22 @@ experimental domain Audits
709
709
  GenericIssueErrorType errorType
710
710
  optional Page.FrameId frameId
711
711
 
712
+ # This issue tracks information needed to print a deprecation message.
713
+ # The formatting is inherited from the old console.log version, see more at:
714
+ # https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc
715
+ # TODO(crbug.com/1264960): Re-work format to add i18n support per:
716
+ # https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md
717
+ type DeprecationIssueDetails extends object
718
+ properties
719
+ optional AffectedFrame affectedFrame
720
+ SourceCodeLocation sourceCodeLocation
721
+ # The content of the deprecation issue (this won't be translated),
722
+ # e.g. "window.inefficientLegacyStorageMethod will be removed in M97,
723
+ # around January 2022. Please use Web Storage or Indexed Database
724
+ # instead. This standard was abandoned in January, 1970. See
725
+ # https://www.chromestatus.com/feature/5684870116278272 for more details."
726
+ optional string message
727
+
712
728
  # A unique identifier for the type of issue. Each type may use one of the
713
729
  # optional fields in InspectorIssueDetails to convey more specific
714
730
  # information about the kind of issue.
@@ -728,6 +744,7 @@ experimental domain Audits
728
744
  NavigatorUserAgentIssue
729
745
  WasmCrossOriginModuleSharingIssue
730
746
  GenericIssue
747
+ DeprecationIssue
731
748
 
732
749
  # This struct holds a list of optional fields with additional information
733
750
  # specific to the kind of issue. When adding a new issue code, please also
@@ -748,6 +765,7 @@ experimental domain Audits
748
765
  optional NavigatorUserAgentIssueDetails navigatorUserAgentIssueDetails
749
766
  optional WasmCrossOriginModuleSharingIssueDetails wasmCrossOriginModuleSharingIssue
750
767
  optional GenericIssueDetails genericIssueDetails
768
+ optional DeprecationIssueDetails deprecationIssueDetails
751
769
 
752
770
  # A unique id for a DevTools inspector issue. Allows other entities (e.g.
753
771
  # exceptions, CDP message, console messages, etc.) to reference an issue.
@@ -2824,6 +2842,23 @@ domain DOMDebugger
2824
2842
  # Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
2825
2843
  string url
2826
2844
 
2845
+ # EventBreakpoints permits setting breakpoints on particular operations and
2846
+ # events in targets that run JavaScript but do not have a DOM.
2847
+ # JavaScript execution will stop on these operations as if there was a regular
2848
+ # breakpoint set.
2849
+ experimental domain EventBreakpoints
2850
+ # Sets breakpoint on particular native event.
2851
+ command setInstrumentationBreakpoint
2852
+ parameters
2853
+ # Instrumentation name to stop on.
2854
+ string eventName
2855
+
2856
+ # Removes breakpoint on particular native event.
2857
+ command removeInstrumentationBreakpoint
2858
+ parameters
2859
+ # Instrumentation name to stop on.
2860
+ string eventName
2861
+
2827
2862
  # This domain facilitates obtaining document snapshots with DOM, layout, and style information.
2828
2863
  experimental domain DOMSnapshot
2829
2864
  depends on CSS
@@ -2205,6 +2205,20 @@ export namespace ProtocolMapping {
2205
2205
  paramsType: [Protocol.DOMDebugger.SetXHRBreakpointRequest];
2206
2206
  returnType: void;
2207
2207
  };
2208
+ /**
2209
+ * Sets breakpoint on particular native event.
2210
+ */
2211
+ 'EventBreakpoints.setInstrumentationBreakpoint': {
2212
+ paramsType: [Protocol.EventBreakpoints.SetInstrumentationBreakpointRequest];
2213
+ returnType: void;
2214
+ };
2215
+ /**
2216
+ * Removes breakpoint on particular native event.
2217
+ */
2218
+ 'EventBreakpoints.removeInstrumentationBreakpoint': {
2219
+ paramsType: [Protocol.EventBreakpoints.RemoveInstrumentationBreakpointRequest];
2220
+ returnType: void;
2221
+ };
2208
2222
  /**
2209
2223
  * Disables DOM snapshot agent for the given page.
2210
2224
  */
@@ -42,6 +42,8 @@ export namespace ProtocolProxyApi {
42
42
 
43
43
  DOMDebugger: DOMDebuggerApi;
44
44
 
45
+ EventBreakpoints: EventBreakpointsApi;
46
+
45
47
  DOMSnapshot: DOMSnapshotApi;
46
48
 
47
49
  DOMStorage: DOMStorageApi;
@@ -1501,6 +1503,19 @@ export namespace ProtocolProxyApi {
1501
1503
 
1502
1504
  }
1503
1505
 
1506
+ export interface EventBreakpointsApi {
1507
+ /**
1508
+ * Sets breakpoint on particular native event.
1509
+ */
1510
+ setInstrumentationBreakpoint(params: Protocol.EventBreakpoints.SetInstrumentationBreakpointRequest): Promise<void>;
1511
+
1512
+ /**
1513
+ * Removes breakpoint on particular native event.
1514
+ */
1515
+ removeInstrumentationBreakpoint(params: Protocol.EventBreakpoints.RemoveInstrumentationBreakpointRequest): Promise<void>;
1516
+
1517
+ }
1518
+
1504
1519
  export interface DOMSnapshotApi {
1505
1520
  /**
1506
1521
  * Disables DOM snapshot agent for the given page.
@@ -3256,12 +3256,32 @@ export namespace Protocol {
3256
3256
  frameId?: Page.FrameId;
3257
3257
  }
3258
3258
 
3259
+ /**
3260
+ * This issue tracks information needed to print a deprecation message.
3261
+ * The formatting is inherited from the old console.log version, see more at:
3262
+ * https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc
3263
+ * TODO(crbug.com/1264960): Re-work format to add i18n support per:
3264
+ * https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md
3265
+ */
3266
+ export interface DeprecationIssueDetails {
3267
+ affectedFrame?: AffectedFrame;
3268
+ sourceCodeLocation: SourceCodeLocation;
3269
+ /**
3270
+ * The content of the deprecation issue (this won't be translated),
3271
+ * e.g. "window.inefficientLegacyStorageMethod will be removed in M97,
3272
+ * around January 2022. Please use Web Storage or Indexed Database
3273
+ * instead. This standard was abandoned in January, 1970. See
3274
+ * https://www.chromestatus.com/feature/5684870116278272 for more details."
3275
+ */
3276
+ message?: string;
3277
+ }
3278
+
3259
3279
  /**
3260
3280
  * A unique identifier for the type of issue. Each type may use one of the
3261
3281
  * optional fields in InspectorIssueDetails to convey more specific
3262
3282
  * information about the kind of issue.
3263
3283
  */
3264
- export type InspectorIssueCode = ('SameSiteCookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'WasmCrossOriginModuleSharingIssue' | 'GenericIssue');
3284
+ export type InspectorIssueCode = ('SameSiteCookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'WasmCrossOriginModuleSharingIssue' | 'GenericIssue' | 'DeprecationIssue');
3265
3285
 
3266
3286
  /**
3267
3287
  * This struct holds a list of optional fields with additional information
@@ -3283,6 +3303,7 @@ export namespace Protocol {
3283
3303
  navigatorUserAgentIssueDetails?: NavigatorUserAgentIssueDetails;
3284
3304
  wasmCrossOriginModuleSharingIssue?: WasmCrossOriginModuleSharingIssueDetails;
3285
3305
  genericIssueDetails?: GenericIssueDetails;
3306
+ deprecationIssueDetails?: DeprecationIssueDetails;
3286
3307
  }
3287
3308
 
3288
3309
  /**
@@ -6260,6 +6281,29 @@ export namespace Protocol {
6260
6281
  }
6261
6282
  }
6262
6283
 
6284
+ /**
6285
+ * EventBreakpoints permits setting breakpoints on particular operations and
6286
+ * events in targets that run JavaScript but do not have a DOM.
6287
+ * JavaScript execution will stop on these operations as if there was a regular
6288
+ * breakpoint set.
6289
+ */
6290
+ export namespace EventBreakpoints {
6291
+
6292
+ export interface SetInstrumentationBreakpointRequest {
6293
+ /**
6294
+ * Instrumentation name to stop on.
6295
+ */
6296
+ eventName: string;
6297
+ }
6298
+
6299
+ export interface RemoveInstrumentationBreakpointRequest {
6300
+ /**
6301
+ * Instrumentation name to stop on.
6302
+ */
6303
+ eventName: string;
6304
+ }
6305
+ }
6306
+
6263
6307
  /**
6264
6308
  * This domain facilitates obtaining document snapshots with DOM, layout, and style information.
6265
6309
  */