devtools-protocol 0.0.1740066 → 0.0.1743766

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.
@@ -4260,16 +4260,6 @@
4260
4260
  }
4261
4261
  ]
4262
4262
  },
4263
- {
4264
- "name": "addPrivacySandboxEnrollmentOverride",
4265
- "description": "Allows a site to use privacy sandbox features that require enrollment\nwithout the site actually being enrolled. Only supported on page targets.",
4266
- "parameters": [
4267
- {
4268
- "name": "url",
4269
- "type": "string"
4270
- }
4271
- ]
4272
- },
4273
4263
  {
4274
4264
  "name": "getGlobalPrivacyControl",
4275
4265
  "description": "Gets the current globally-applied privacy control status\nSee https://www.w3.org/TR/gpc/#get-global-privacy-control",
@@ -574,6 +574,28 @@
574
574
  }
575
575
  ]
576
576
  },
577
+ {
578
+ "name": "getScopeChain",
579
+ "description": "Returns the current scope chain of the given call frame. Unlike the scope chain reported\nwith the `paused` event, it reflects changes made to variables since then (e.g. via\n`evaluateOnCallFrame` or `setVariableValue`).",
580
+ "experimental": true,
581
+ "parameters": [
582
+ {
583
+ "name": "callFrameId",
584
+ "description": "Call frame identifier to get the scope chain for.",
585
+ "$ref": "CallFrameId"
586
+ }
587
+ ],
588
+ "returns": [
589
+ {
590
+ "name": "scopeChain",
591
+ "description": "Scope chain for the call frame.",
592
+ "type": "array",
593
+ "items": {
594
+ "$ref": "Scope"
595
+ }
596
+ }
597
+ ]
598
+ },
577
599
  {
578
600
  "name": "getScriptSource",
579
601
  "description": "Returns source for the script with given id.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1740066",
3
+ "version": "0.0.1743766",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -337,12 +337,6 @@ domain Browser
337
337
  parameters
338
338
  BrowserCommandId commandId
339
339
 
340
- # Allows a site to use privacy sandbox features that require enrollment
341
- # without the site actually being enrolled. Only supported on page targets.
342
- command addPrivacySandboxEnrollmentOverride
343
- parameters
344
- string url
345
-
346
340
  # Gets the current globally-applied privacy control status
347
341
  # See https://www.w3.org/TR/gpc/#get-global-privacy-control
348
342
  experimental command getGlobalPrivacyControl
@@ -246,6 +246,17 @@ domain Debugger
246
246
  # List of the possible breakpoint locations.
247
247
  array of BreakLocation locations
248
248
 
249
+ # Returns the current scope chain of the given call frame. Unlike the scope chain reported
250
+ # with the `paused` event, it reflects changes made to variables since then (e.g. via
251
+ # `evaluateOnCallFrame` or `setVariableValue`).
252
+ experimental command getScopeChain
253
+ parameters
254
+ # Call frame identifier to get the scope chain for.
255
+ CallFrameId callFrameId
256
+ returns
257
+ # Scope chain for the call frame.
258
+ array of Scope scopeChain
259
+
249
260
  # Returns source for the script with given id.
250
261
  command getScriptSource
251
262
  parameters
@@ -1146,6 +1146,16 @@ export namespace ProtocolMapping {
1146
1146
  paramsType: [Protocol.Debugger.GetPossibleBreakpointsRequest];
1147
1147
  returnType: Protocol.Debugger.GetPossibleBreakpointsResponse;
1148
1148
  };
1149
+ /**
1150
+ * Returns the current scope chain of the given call frame. Unlike the scope chain reported
1151
+ * with the `paused` event, it reflects changes made to variables since then (e.g. via
1152
+ * `evaluateOnCallFrame` or `setVariableValue`).
1153
+ * @experimental
1154
+ */
1155
+ 'Debugger.getScopeChain': {
1156
+ paramsType: [Protocol.Debugger.GetScopeChainRequest];
1157
+ returnType: Protocol.Debugger.GetScopeChainResponse;
1158
+ };
1149
1159
  /**
1150
1160
  * Returns source for the script with given id.
1151
1161
  */
@@ -2193,14 +2203,6 @@ export namespace ProtocolMapping {
2193
2203
  paramsType: [Protocol.Browser.ExecuteBrowserCommandRequest];
2194
2204
  returnType: void;
2195
2205
  };
2196
- /**
2197
- * Allows a site to use privacy sandbox features that require enrollment
2198
- * without the site actually being enrolled. Only supported on page targets.
2199
- */
2200
- 'Browser.addPrivacySandboxEnrollmentOverride': {
2201
- paramsType: [Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest];
2202
- returnType: void;
2203
- };
2204
2206
  /**
2205
2207
  * Gets the current globally-applied privacy control status
2206
2208
  * See https://www.w3.org/TR/gpc/#get-global-privacy-control
@@ -187,6 +187,14 @@ export namespace ProtocolProxyApi {
187
187
  */
188
188
  getPossibleBreakpoints(params: Protocol.Debugger.GetPossibleBreakpointsRequest): Promise<Protocol.Debugger.GetPossibleBreakpointsResponse>;
189
189
 
190
+ /**
191
+ * Returns the current scope chain of the given call frame. Unlike the scope chain reported
192
+ * with the `paused` event, it reflects changes made to variables since then (e.g. via
193
+ * `evaluateOnCallFrame` or `setVariableValue`).
194
+ * @experimental
195
+ */
196
+ getScopeChain(params: Protocol.Debugger.GetScopeChainRequest): Promise<Protocol.Debugger.GetScopeChainResponse>;
197
+
190
198
  /**
191
199
  * Returns source for the script with given id.
192
200
  */
@@ -1167,12 +1175,6 @@ export namespace ProtocolProxyApi {
1167
1175
  */
1168
1176
  executeBrowserCommand(params: Protocol.Browser.ExecuteBrowserCommandRequest): Promise<void>;
1169
1177
 
1170
- /**
1171
- * Allows a site to use privacy sandbox features that require enrollment
1172
- * without the site actually being enrolled. Only supported on page targets.
1173
- */
1174
- addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<void>;
1175
-
1176
1178
  /**
1177
1179
  * Gets the current globally-applied privacy control status
1178
1180
  * See https://www.w3.org/TR/gpc/#get-global-privacy-control
@@ -189,6 +189,14 @@ export namespace ProtocolTestsProxyApi {
189
189
  */
190
190
  getPossibleBreakpoints(params: Protocol.Debugger.GetPossibleBreakpointsRequest): Promise<{id: number, result: Protocol.Debugger.GetPossibleBreakpointsResponse, sessionId: string}>;
191
191
 
192
+ /**
193
+ * Returns the current scope chain of the given call frame. Unlike the scope chain reported
194
+ * with the `paused` event, it reflects changes made to variables since then (e.g. via
195
+ * `evaluateOnCallFrame` or `setVariableValue`).
196
+ * @experimental
197
+ */
198
+ getScopeChain(params: Protocol.Debugger.GetScopeChainRequest): Promise<{id: number, result: Protocol.Debugger.GetScopeChainResponse, sessionId: string}>;
199
+
192
200
  /**
193
201
  * Returns source for the script with given id.
194
202
  */
@@ -1237,12 +1245,6 @@ export namespace ProtocolTestsProxyApi {
1237
1245
  */
1238
1246
  executeBrowserCommand(params: Protocol.Browser.ExecuteBrowserCommandRequest): Promise<{id: number, result: void, sessionId: string}>;
1239
1247
 
1240
- /**
1241
- * Allows a site to use privacy sandbox features that require enrollment
1242
- * without the site actually being enrolled. Only supported on page targets.
1243
- */
1244
- addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
1245
-
1246
1248
  /**
1247
1249
  * Gets the current globally-applied privacy control status
1248
1250
  * See https://www.w3.org/TR/gpc/#get-global-privacy-control
@@ -437,6 +437,20 @@ export namespace Protocol {
437
437
  locations: BreakLocation[];
438
438
  }
439
439
 
440
+ export interface GetScopeChainRequest {
441
+ /**
442
+ * Call frame identifier to get the scope chain for.
443
+ */
444
+ callFrameId: CallFrameId;
445
+ }
446
+
447
+ export interface GetScopeChainResponse {
448
+ /**
449
+ * Scope chain for the call frame.
450
+ */
451
+ scopeChain: Scope[];
452
+ }
453
+
440
454
  export interface GetScriptSourceRequest {
441
455
  /**
442
456
  * Id of the script to get source for.
@@ -5069,10 +5083,6 @@ export namespace Protocol {
5069
5083
  commandId: BrowserCommandId;
5070
5084
  }
5071
5085
 
5072
- export interface AddPrivacySandboxEnrollmentOverrideRequest {
5073
- url: string;
5074
- }
5075
-
5076
5086
  export interface GetGlobalPrivacyControlResponse {
5077
5087
  gpc: boolean;
5078
5088
  }