devtools-protocol 0.0.1589152 → 0.0.1590631

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.
@@ -1004,7 +1004,8 @@
1004
1004
  "description": "Audits domain allows investigation of page violations and possible improvements.",
1005
1005
  "experimental": true,
1006
1006
  "dependencies": [
1007
- "Network"
1007
+ "Network",
1008
+ "Runtime"
1008
1009
  ],
1009
1010
  "types": [
1010
1011
  {
@@ -2261,6 +2262,72 @@
2261
2262
  }
2262
2263
  ]
2263
2264
  },
2265
+ {
2266
+ "id": "AdScriptIdentifier",
2267
+ "description": "Metadata about the ad script that was on the stack that caused the current\nscript in the `AdAncestry` to be considered ad related.",
2268
+ "type": "object",
2269
+ "properties": [
2270
+ {
2271
+ "name": "scriptId",
2272
+ "description": "The script's v8 identifier.",
2273
+ "$ref": "Runtime.ScriptId"
2274
+ },
2275
+ {
2276
+ "name": "debuggerId",
2277
+ "description": "v8's debugging id for the v8::Context.",
2278
+ "$ref": "Runtime.UniqueDebuggerId"
2279
+ },
2280
+ {
2281
+ "name": "name",
2282
+ "description": "The script's url (or generated name based on id if inline script).",
2283
+ "type": "string"
2284
+ }
2285
+ ]
2286
+ },
2287
+ {
2288
+ "id": "AdAncestry",
2289
+ "description": "Providence about how an ad script was determined to be such. It is an ad\nbecause its url matched a filterlist rule, or because some other ad script\nwas on the stack when this script was loaded.",
2290
+ "type": "object",
2291
+ "properties": [
2292
+ {
2293
+ "name": "adAncestryChain",
2294
+ "description": "The ad-script in the stack when the offending script was loaded. This is\nrecursive down to the root script that was tagged due to the filterlist\nrule.",
2295
+ "type": "array",
2296
+ "items": {
2297
+ "$ref": "AdScriptIdentifier"
2298
+ }
2299
+ },
2300
+ {
2301
+ "name": "rootScriptFilterlistRule",
2302
+ "description": "The filterlist rule that caused the root (last) script in\n`adAncestry` to be ad-tagged.",
2303
+ "optional": true,
2304
+ "type": "string"
2305
+ }
2306
+ ]
2307
+ },
2308
+ {
2309
+ "id": "SelectivePermissionsInterventionIssueDetails",
2310
+ "description": "The issue warns about blocked calls to privacy sensitive APIs via the\nSelective Permissions Intervention.",
2311
+ "type": "object",
2312
+ "properties": [
2313
+ {
2314
+ "name": "apiName",
2315
+ "description": "Which API was intervened on.",
2316
+ "type": "string"
2317
+ },
2318
+ {
2319
+ "name": "adAncestry",
2320
+ "description": "Why the ad script using the API is considered an ad.",
2321
+ "$ref": "AdAncestry"
2322
+ },
2323
+ {
2324
+ "name": "stackTrace",
2325
+ "description": "The stack trace at the time of the intervention.",
2326
+ "optional": true,
2327
+ "$ref": "Runtime.StackTrace"
2328
+ }
2329
+ ]
2330
+ },
2264
2331
  {
2265
2332
  "id": "InspectorIssueCode",
2266
2333
  "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.",
@@ -2294,7 +2361,8 @@
2294
2361
  "ConnectionAllowlistIssue",
2295
2362
  "UserReidentificationIssue",
2296
2363
  "PermissionElementIssue",
2297
- "PerformanceIssue"
2364
+ "PerformanceIssue",
2365
+ "SelectivePermissionsInterventionIssue"
2298
2366
  ]
2299
2367
  },
2300
2368
  {
@@ -2447,6 +2515,11 @@
2447
2515
  "name": "performanceIssueDetails",
2448
2516
  "optional": true,
2449
2517
  "$ref": "PerformanceIssueDetails"
2518
+ },
2519
+ {
2520
+ "name": "selectivePermissionsInterventionIssueDetails",
2521
+ "optional": true,
2522
+ "$ref": "SelectivePermissionsInterventionIssueDetails"
2450
2523
  }
2451
2524
  ]
2452
2525
  },
@@ -10984,6 +11057,17 @@
10984
11057
  "deprecated": true,
10985
11058
  "optional": true,
10986
11059
  "$ref": "DevicePosture"
11060
+ },
11061
+ {
11062
+ "name": "scrollbarType",
11063
+ "description": "Scrollbar type. Default: `default`.",
11064
+ "experimental": true,
11065
+ "optional": true,
11066
+ "type": "string",
11067
+ "enum": [
11068
+ "overlay",
11069
+ "default"
11070
+ ]
10987
11071
  }
10988
11072
  ]
10989
11073
  },
@@ -11665,6 +11749,38 @@
11665
11749
  "sync",
11666
11750
  "managed"
11667
11751
  ]
11752
+ },
11753
+ {
11754
+ "id": "ExtensionInfo",
11755
+ "description": "Detailed information about an extension.",
11756
+ "type": "object",
11757
+ "properties": [
11758
+ {
11759
+ "name": "id",
11760
+ "description": "Extension id.",
11761
+ "type": "string"
11762
+ },
11763
+ {
11764
+ "name": "name",
11765
+ "description": "Extension name.",
11766
+ "type": "string"
11767
+ },
11768
+ {
11769
+ "name": "version",
11770
+ "description": "Extension version.",
11771
+ "type": "string"
11772
+ },
11773
+ {
11774
+ "name": "path",
11775
+ "description": "The path from which the extension was loaded.",
11776
+ "type": "string"
11777
+ },
11778
+ {
11779
+ "name": "enabled",
11780
+ "description": "Extension enabled status.",
11781
+ "type": "boolean"
11782
+ }
11783
+ ]
11668
11784
  }
11669
11785
  ],
11670
11786
  "commands": [
@@ -11708,6 +11824,19 @@
11708
11824
  }
11709
11825
  ]
11710
11826
  },
11827
+ {
11828
+ "name": "getExtensions",
11829
+ "description": "Gets a list of all unpacked extensions.\nAvailable if the client is connected using the --remote-debugging-pipe flag\nand the --enable-unsafe-extension-debugging flag is set.",
11830
+ "returns": [
11831
+ {
11832
+ "name": "extensions",
11833
+ "type": "array",
11834
+ "items": {
11835
+ "$ref": "ExtensionInfo"
11836
+ }
11837
+ }
11838
+ ]
11839
+ },
11711
11840
  {
11712
11841
  "name": "uninstall",
11713
11842
  "description": "Uninstalls an unpacked extension (others not supported) from the profile.\nAvailable if the client is connected using the --remote-debugging-pipe flag\nand the --enable-unsafe-extension-debugging.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1589152",
3
+ "version": "0.0.1590631",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -7,6 +7,7 @@
7
7
  # Audits domain allows investigation of page violations and possible improvements.
8
8
  experimental domain Audits
9
9
  depends on Network
10
+ depends on Runtime
10
11
 
11
12
  # Information about a cookie that is affected by an inspector issue.
12
13
  type AffectedCookie extends object
@@ -696,6 +697,41 @@ experimental domain Audits
696
697
  # Used for messages about activation disabled reason
697
698
  optional string disableReason
698
699
 
700
+ # Metadata about the ad script that was on the stack that caused the current
701
+ # script in the `AdAncestry` to be considered ad related.
702
+ type AdScriptIdentifier extends object
703
+ properties
704
+ # The script's v8 identifier.
705
+ Runtime.ScriptId scriptId
706
+ # v8's debugging id for the v8::Context.
707
+ Runtime.UniqueDebuggerId debuggerId
708
+ # The script's url (or generated name based on id if inline script).
709
+ string name
710
+
711
+ # Providence about how an ad script was determined to be such. It is an ad
712
+ # because its url matched a filterlist rule, or because some other ad script
713
+ # was on the stack when this script was loaded.
714
+ type AdAncestry extends object
715
+ properties
716
+ # The ad-script in the stack when the offending script was loaded. This is
717
+ # recursive down to the root script that was tagged due to the filterlist
718
+ # rule.
719
+ array of AdScriptIdentifier adAncestryChain
720
+ # The filterlist rule that caused the root (last) script in
721
+ # `adAncestry` to be ad-tagged.
722
+ optional string rootScriptFilterlistRule
723
+
724
+ # The issue warns about blocked calls to privacy sensitive APIs via the
725
+ # Selective Permissions Intervention.
726
+ type SelectivePermissionsInterventionIssueDetails extends object
727
+ properties
728
+ # Which API was intervened on.
729
+ string apiName
730
+ # Why the ad script using the API is considered an ad.
731
+ AdAncestry adAncestry
732
+ # The stack trace at the time of the intervention.
733
+ optional Runtime.StackTrace stackTrace
734
+
699
735
  # A unique identifier for the type of issue. Each type may use one of the
700
736
  # optional fields in InspectorIssueDetails to convey more specific
701
737
  # information about the kind of issue.
@@ -731,6 +767,7 @@ experimental domain Audits
731
767
  UserReidentificationIssue
732
768
  PermissionElementIssue
733
769
  PerformanceIssue
770
+ SelectivePermissionsInterventionIssue
734
771
 
735
772
  # This struct holds a list of optional fields with additional information
736
773
  # specific to the kind of issue. When adding a new issue code, please also
@@ -766,6 +803,7 @@ experimental domain Audits
766
803
  optional UserReidentificationIssueDetails userReidentificationIssueDetails
767
804
  optional PermissionElementIssueDetails permissionElementIssueDetails
768
805
  optional PerformanceIssueDetails performanceIssueDetails
806
+ optional SelectivePermissionsInterventionIssueDetails selectivePermissionsInterventionIssueDetails
769
807
 
770
808
  # A unique id for a DevTools inspector issue. Allows other entities (e.g.
771
809
  # exceptions, CDP message, console messages, etc.) to reference an issue.
@@ -297,6 +297,15 @@ domain Emulation
297
297
  # to continuous.
298
298
  # Deprecated, use Emulation.setDevicePostureOverride.
299
299
  experimental deprecated optional DevicePosture devicePosture
300
+ # Scrollbar type. Default: `default`.
301
+ experimental optional enum scrollbarType
302
+ # Emulates scrollbars that float over the content, typically appearing
303
+ # only when scrolling.
304
+ overlay
305
+ # Restores the platform's default scrollbar behavior, which might be
306
+ # classic (occupying space within the layout) or overlay, depending
307
+ # on the platform. Note: if `mobile` is `true`, the default scrollbar type is `overlay`.
308
+ default
300
309
 
301
310
  # Start reporting the given posture value to the Device Posture API.
302
311
  # This override can also be set in setDeviceMetricsOverride().
@@ -38,6 +38,28 @@ experimental domain Extensions
38
38
  returns
39
39
  # Extension id.
40
40
  string id
41
+
42
+ # Detailed information about an extension.
43
+ type ExtensionInfo extends object
44
+ properties
45
+ # Extension id.
46
+ string id
47
+ # Extension name.
48
+ string name
49
+ # Extension version.
50
+ string version
51
+ # The path from which the extension was loaded.
52
+ string path
53
+ # Extension enabled status.
54
+ boolean enabled
55
+
56
+ # Gets a list of all unpacked extensions.
57
+ # Available if the client is connected using the --remote-debugging-pipe flag
58
+ # and the --enable-unsafe-extension-debugging flag is set.
59
+ command getExtensions
60
+ returns
61
+ array of ExtensionInfo extensions
62
+
41
63
  # Uninstalls an unpacked extension (others not supported) from the profile.
42
64
  # Available if the client is connected using the --remote-debugging-pipe flag
43
65
  # and the --enable-unsafe-extension-debugging.
@@ -3632,6 +3632,15 @@ export namespace ProtocolMapping {
3632
3632
  paramsType: [Protocol.Extensions.LoadUnpackedRequest];
3633
3633
  returnType: Protocol.Extensions.LoadUnpackedResponse;
3634
3634
  };
3635
+ /**
3636
+ * Gets a list of all unpacked extensions.
3637
+ * Available if the client is connected using the --remote-debugging-pipe flag
3638
+ * and the --enable-unsafe-extension-debugging flag is set.
3639
+ */
3640
+ 'Extensions.getExtensions': {
3641
+ paramsType: [];
3642
+ returnType: Protocol.Extensions.GetExtensionsResponse;
3643
+ };
3635
3644
  /**
3636
3645
  * Uninstalls an unpacked extension (others not supported) from the profile.
3637
3646
  * Available if the client is connected using the --remote-debugging-pipe flag
@@ -2433,6 +2433,13 @@ export namespace ProtocolProxyApi {
2433
2433
  */
2434
2434
  loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<Protocol.Extensions.LoadUnpackedResponse>;
2435
2435
 
2436
+ /**
2437
+ * Gets a list of all unpacked extensions.
2438
+ * Available if the client is connected using the --remote-debugging-pipe flag
2439
+ * and the --enable-unsafe-extension-debugging flag is set.
2440
+ */
2441
+ getExtensions(): Promise<Protocol.Extensions.GetExtensionsResponse>;
2442
+
2436
2443
  /**
2437
2444
  * Uninstalls an unpacked extension (others not supported) from the profile.
2438
2445
  * Available if the client is connected using the --remote-debugging-pipe flag
@@ -2573,6 +2573,13 @@ export namespace ProtocolTestsProxyApi {
2573
2573
  */
2574
2574
  loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<{id: number, result: Protocol.Extensions.LoadUnpackedResponse, sessionId: string}>;
2575
2575
 
2576
+ /**
2577
+ * Gets a list of all unpacked extensions.
2578
+ * Available if the client is connected using the --remote-debugging-pipe flag
2579
+ * and the --enable-unsafe-extension-debugging flag is set.
2580
+ */
2581
+ getExtensions(): Promise<{id: number, result: Protocol.Extensions.GetExtensionsResponse, sessionId: string}>;
2582
+
2576
2583
  /**
2577
2584
  * Uninstalls an unpacked extension (others not supported) from the profile.
2578
2585
  * Available if the client is connected using the --remote-debugging-pipe flag
@@ -3936,12 +3936,69 @@ export namespace Protocol {
3936
3936
  disableReason?: string;
3937
3937
  }
3938
3938
 
3939
+ /**
3940
+ * Metadata about the ad script that was on the stack that caused the current
3941
+ * script in the `AdAncestry` to be considered ad related.
3942
+ */
3943
+ export interface AdScriptIdentifier {
3944
+ /**
3945
+ * The script's v8 identifier.
3946
+ */
3947
+ scriptId: Runtime.ScriptId;
3948
+ /**
3949
+ * v8's debugging id for the v8::Context.
3950
+ */
3951
+ debuggerId: Runtime.UniqueDebuggerId;
3952
+ /**
3953
+ * The script's url (or generated name based on id if inline script).
3954
+ */
3955
+ name: string;
3956
+ }
3957
+
3958
+ /**
3959
+ * Providence about how an ad script was determined to be such. It is an ad
3960
+ * because its url matched a filterlist rule, or because some other ad script
3961
+ * was on the stack when this script was loaded.
3962
+ */
3963
+ export interface AdAncestry {
3964
+ /**
3965
+ * The ad-script in the stack when the offending script was loaded. This is
3966
+ * recursive down to the root script that was tagged due to the filterlist
3967
+ * rule.
3968
+ */
3969
+ adAncestryChain: AdScriptIdentifier[];
3970
+ /**
3971
+ * The filterlist rule that caused the root (last) script in
3972
+ * `adAncestry` to be ad-tagged.
3973
+ */
3974
+ rootScriptFilterlistRule?: string;
3975
+ }
3976
+
3977
+ /**
3978
+ * The issue warns about blocked calls to privacy sensitive APIs via the
3979
+ * Selective Permissions Intervention.
3980
+ */
3981
+ export interface SelectivePermissionsInterventionIssueDetails {
3982
+ /**
3983
+ * Which API was intervened on.
3984
+ */
3985
+ apiName: string;
3986
+ /**
3987
+ * Why the ad script using the API is considered an ad.
3988
+ */
3989
+ adAncestry: AdAncestry;
3990
+ /**
3991
+ * The stack trace at the time of the intervention.
3992
+ */
3993
+ stackTrace?: Runtime.StackTrace;
3994
+ }
3995
+
3939
3996
  /**
3940
3997
  * A unique identifier for the type of issue. Each type may use one of the
3941
3998
  * optional fields in InspectorIssueDetails to convey more specific
3942
3999
  * information about the kind of issue.
3943
4000
  */
3944
- export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'PartitioningBlobURLIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue' | 'SharedDictionaryIssue' | 'ElementAccessibilityIssue' | 'SRIMessageSignatureIssue' | 'UnencodedDigestIssue' | 'ConnectionAllowlistIssue' | 'UserReidentificationIssue' | 'PermissionElementIssue' | 'PerformanceIssue');
4001
+ export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'PartitioningBlobURLIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue' | 'SharedDictionaryIssue' | 'ElementAccessibilityIssue' | 'SRIMessageSignatureIssue' | 'UnencodedDigestIssue' | 'ConnectionAllowlistIssue' | 'UserReidentificationIssue' | 'PermissionElementIssue' | 'PerformanceIssue' | 'SelectivePermissionsInterventionIssue');
3945
4002
 
3946
4003
  /**
3947
4004
  * This struct holds a list of optional fields with additional information
@@ -3981,6 +4038,7 @@ export namespace Protocol {
3981
4038
  userReidentificationIssueDetails?: UserReidentificationIssueDetails;
3982
4039
  permissionElementIssueDetails?: PermissionElementIssueDetails;
3983
4040
  performanceIssueDetails?: PerformanceIssueDetails;
4041
+ selectivePermissionsInterventionIssueDetails?: SelectivePermissionsInterventionIssueDetails;
3984
4042
  }
3985
4043
 
3986
4044
  /**
@@ -9380,6 +9438,11 @@ export namespace Protocol {
9380
9438
  insets: SafeAreaInsets;
9381
9439
  }
9382
9440
 
9441
+ export const enum SetDeviceMetricsOverrideRequestScrollbarType {
9442
+ Overlay = 'overlay',
9443
+ Default = 'default',
9444
+ }
9445
+
9383
9446
  export interface SetDeviceMetricsOverrideRequest {
9384
9447
  /**
9385
9448
  * Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
@@ -9454,6 +9517,11 @@ export namespace Protocol {
9454
9517
  * @experimental
9455
9518
  */
9456
9519
  devicePosture?: DevicePosture;
9520
+ /**
9521
+ * Scrollbar type. Default: `default`.
9522
+ * @experimental
9523
+ */
9524
+ scrollbarType?: ('overlay' | 'default');
9457
9525
  }
9458
9526
 
9459
9527
  export interface SetDevicePostureOverrideRequest {
@@ -9836,6 +9904,32 @@ export namespace Protocol {
9836
9904
  */
9837
9905
  export type StorageArea = ('session' | 'local' | 'sync' | 'managed');
9838
9906
 
9907
+ /**
9908
+ * Detailed information about an extension.
9909
+ */
9910
+ export interface ExtensionInfo {
9911
+ /**
9912
+ * Extension id.
9913
+ */
9914
+ id: string;
9915
+ /**
9916
+ * Extension name.
9917
+ */
9918
+ name: string;
9919
+ /**
9920
+ * Extension version.
9921
+ */
9922
+ version: string;
9923
+ /**
9924
+ * The path from which the extension was loaded.
9925
+ */
9926
+ path: string;
9927
+ /**
9928
+ * Extension enabled status.
9929
+ */
9930
+ enabled: boolean;
9931
+ }
9932
+
9839
9933
  export interface TriggerActionRequest {
9840
9934
  /**
9841
9935
  * Extension id.
@@ -9865,6 +9959,10 @@ export namespace Protocol {
9865
9959
  id: string;
9866
9960
  }
9867
9961
 
9962
+ export interface GetExtensionsResponse {
9963
+ extensions: ExtensionInfo[];
9964
+ }
9965
+
9868
9966
  export interface UninstallRequest {
9869
9967
  /**
9870
9968
  * Extension id.