devtools-protocol 0.0.1333880 → 0.0.1335233

Sign up to get free protection for your applications and to get access to all the features.
@@ -2177,12 +2177,25 @@
2177
2177
  },
2178
2178
  {
2179
2179
  "domain": "Extensions",
2180
- "description": "Defines commands and events for browser extensions. Available if the client\nis connected using the --remote-debugging-pipe flag and\nthe --enable-unsafe-extension-debugging flag is set.",
2180
+ "description": "Defines commands and events for browser extensions.",
2181
2181
  "experimental": true,
2182
+ "types": [
2183
+ {
2184
+ "id": "StorageArea",
2185
+ "description": "Storage areas.",
2186
+ "type": "string",
2187
+ "enum": [
2188
+ "session",
2189
+ "local",
2190
+ "sync",
2191
+ "managed"
2192
+ ]
2193
+ }
2194
+ ],
2182
2195
  "commands": [
2183
2196
  {
2184
2197
  "name": "loadUnpacked",
2185
- "description": "Installs an unpacked extension from the filesystem similar to\n--load-extension CLI flags. Returns extension ID once the extension\nhas been installed.",
2198
+ "description": "Installs an unpacked extension from the filesystem similar to\n--load-extension CLI flags. Returns extension ID once the extension\nhas been installed. Available if the client is connected using the\n--remote-debugging-pipe flag and the --enable-unsafe-extension-debugging\nflag is set.",
2186
2199
  "parameters": [
2187
2200
  {
2188
2201
  "name": "path",
@@ -2197,6 +2210,37 @@
2197
2210
  "type": "string"
2198
2211
  }
2199
2212
  ]
2213
+ },
2214
+ {
2215
+ "name": "getStorageItems",
2216
+ "description": "Gets data from extension storage in the given `area`. If `keys` is\nspecified, these are used to filter the result.",
2217
+ "parameters": [
2218
+ {
2219
+ "name": "id",
2220
+ "description": "ID of extension.",
2221
+ "type": "string"
2222
+ },
2223
+ {
2224
+ "name": "storageArea",
2225
+ "description": "StorageArea to retrieve data from.",
2226
+ "$ref": "StorageArea"
2227
+ },
2228
+ {
2229
+ "name": "keys",
2230
+ "description": "Keys to retrieve.",
2231
+ "optional": true,
2232
+ "type": "array",
2233
+ "items": {
2234
+ "type": "string"
2235
+ }
2236
+ }
2237
+ ],
2238
+ "returns": [
2239
+ {
2240
+ "name": "data",
2241
+ "type": "object"
2242
+ }
2243
+ ]
2200
2244
  }
2201
2245
  ]
2202
2246
  },
@@ -16978,6 +17022,7 @@
16978
17022
  "type": "string",
16979
17023
  "enum": [
16980
17024
  "accelerometer",
17025
+ "all-screens-capture",
16981
17026
  "ambient-light-sensor",
16982
17027
  "attribution-reporting",
16983
17028
  "autoplay",
@@ -26024,7 +26069,9 @@
26024
26069
  "JavaScriptInterfaceAdded",
26025
26070
  "JavaScriptInterfaceRemoved",
26026
26071
  "AllPrerenderingCanceled",
26027
- "WindowClosed"
26072
+ "WindowClosed",
26073
+ "SlowNetwork",
26074
+ "OtherPrerenderedPageActivated"
26028
26075
  ]
26029
26076
  },
26030
26077
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1333880",
3
+ "version": "0.0.1335233",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1102,13 +1102,20 @@ experimental domain Audits
1102
1102
  parameters
1103
1103
  InspectorIssue issue
1104
1104
 
1105
- # Defines commands and events for browser extensions. Available if the client
1106
- # is connected using the --remote-debugging-pipe flag and
1107
- # the --enable-unsafe-extension-debugging flag is set.
1105
+ # Defines commands and events for browser extensions.
1108
1106
  experimental domain Extensions
1107
+ # Storage areas.
1108
+ type StorageArea extends string
1109
+ enum
1110
+ session
1111
+ local
1112
+ sync
1113
+ managed
1109
1114
  # Installs an unpacked extension from the filesystem similar to
1110
1115
  # --load-extension CLI flags. Returns extension ID once the extension
1111
- # has been installed.
1116
+ # has been installed. Available if the client is connected using the
1117
+ # --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
1118
+ # flag is set.
1112
1119
  command loadUnpacked
1113
1120
  parameters
1114
1121
  # Absolute file path.
@@ -1116,6 +1123,18 @@ experimental domain Extensions
1116
1123
  returns
1117
1124
  # Extension id.
1118
1125
  string id
1126
+ # Gets data from extension storage in the given `area`. If `keys` is
1127
+ # specified, these are used to filter the result.
1128
+ command getStorageItems
1129
+ parameters
1130
+ # ID of extension.
1131
+ string id
1132
+ # StorageArea to retrieve data from.
1133
+ StorageArea storageArea
1134
+ # Keys to retrieve.
1135
+ optional array of string keys
1136
+ returns
1137
+ object data
1119
1138
 
1120
1139
  # Defines commands and events for Autofill.
1121
1140
  experimental domain Autofill
@@ -7964,6 +7983,7 @@ domain Page
7964
7983
  experimental type PermissionsPolicyFeature extends string
7965
7984
  enum
7966
7985
  accelerometer
7986
+ all-screens-capture
7967
7987
  ambient-light-sensor
7968
7988
  attribution-reporting
7969
7989
  autoplay
@@ -12284,6 +12304,8 @@ experimental domain Preload
12284
12304
  JavaScriptInterfaceRemoved
12285
12305
  AllPrerenderingCanceled
12286
12306
  WindowClosed
12307
+ SlowNetwork
12308
+ OtherPrerenderedPageActivated
12287
12309
 
12288
12310
  # Fired when a preload enabled state is updated.
12289
12311
  event preloadEnabledStateUpdated
@@ -1509,12 +1509,22 @@ export namespace ProtocolMapping {
1509
1509
  /**
1510
1510
  * Installs an unpacked extension from the filesystem similar to
1511
1511
  * --load-extension CLI flags. Returns extension ID once the extension
1512
- * has been installed.
1512
+ * has been installed. Available if the client is connected using the
1513
+ * --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
1514
+ * flag is set.
1513
1515
  */
1514
1516
  'Extensions.loadUnpacked': {
1515
1517
  paramsType: [Protocol.Extensions.LoadUnpackedRequest];
1516
1518
  returnType: Protocol.Extensions.LoadUnpackedResponse;
1517
1519
  };
1520
+ /**
1521
+ * Gets data from extension storage in the given `area`. If `keys` is
1522
+ * specified, these are used to filter the result.
1523
+ */
1524
+ 'Extensions.getStorageItems': {
1525
+ paramsType: [Protocol.Extensions.GetStorageItemsRequest];
1526
+ returnType: Protocol.Extensions.GetStorageItemsResponse;
1527
+ };
1518
1528
  /**
1519
1529
  * Trigger autofill on a form identified by the fieldId.
1520
1530
  * If the field and related form cannot be autofilled, returns an error.
@@ -813,10 +813,18 @@ export namespace ProtocolProxyApi {
813
813
  /**
814
814
  * Installs an unpacked extension from the filesystem similar to
815
815
  * --load-extension CLI flags. Returns extension ID once the extension
816
- * has been installed.
816
+ * has been installed. Available if the client is connected using the
817
+ * --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
818
+ * flag is set.
817
819
  */
818
820
  loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<Protocol.Extensions.LoadUnpackedResponse>;
819
821
 
822
+ /**
823
+ * Gets data from extension storage in the given `area`. If `keys` is
824
+ * specified, these are used to filter the result.
825
+ */
826
+ getStorageItems(params: Protocol.Extensions.GetStorageItemsRequest): Promise<Protocol.Extensions.GetStorageItemsResponse>;
827
+
820
828
  }
821
829
 
822
830
  export interface AutofillApi {
@@ -871,10 +871,18 @@ export namespace ProtocolTestsProxyApi {
871
871
  /**
872
872
  * Installs an unpacked extension from the filesystem similar to
873
873
  * --load-extension CLI flags. Returns extension ID once the extension
874
- * has been installed.
874
+ * has been installed. Available if the client is connected using the
875
+ * --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
876
+ * flag is set.
875
877
  */
876
878
  loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<{id: number, result: Protocol.Extensions.LoadUnpackedResponse, sessionId: string}>;
877
879
 
880
+ /**
881
+ * Gets data from extension storage in the given `area`. If `keys` is
882
+ * specified, these are used to filter the result.
883
+ */
884
+ getStorageItems(params: Protocol.Extensions.GetStorageItemsRequest): Promise<{id: number, result: Protocol.Extensions.GetStorageItemsResponse, sessionId: string}>;
885
+
878
886
  }
879
887
 
880
888
  export interface AutofillApi {
@@ -3766,12 +3766,15 @@ export namespace Protocol {
3766
3766
  }
3767
3767
 
3768
3768
  /**
3769
- * Defines commands and events for browser extensions. Available if the client
3770
- * is connected using the --remote-debugging-pipe flag and
3771
- * the --enable-unsafe-extension-debugging flag is set.
3769
+ * Defines commands and events for browser extensions.
3772
3770
  */
3773
3771
  export namespace Extensions {
3774
3772
 
3773
+ /**
3774
+ * Storage areas.
3775
+ */
3776
+ export type StorageArea = ('session' | 'local' | 'sync' | 'managed');
3777
+
3775
3778
  export interface LoadUnpackedRequest {
3776
3779
  /**
3777
3780
  * Absolute file path.
@@ -3785,6 +3788,25 @@ export namespace Protocol {
3785
3788
  */
3786
3789
  id: string;
3787
3790
  }
3791
+
3792
+ export interface GetStorageItemsRequest {
3793
+ /**
3794
+ * ID of extension.
3795
+ */
3796
+ id: string;
3797
+ /**
3798
+ * StorageArea to retrieve data from.
3799
+ */
3800
+ storageArea: StorageArea;
3801
+ /**
3802
+ * Keys to retrieve.
3803
+ */
3804
+ keys?: string[];
3805
+ }
3806
+
3807
+ export interface GetStorageItemsResponse {
3808
+ data: any;
3809
+ }
3788
3810
  }
3789
3811
 
3790
3812
  /**
@@ -13324,7 +13346,7 @@ export namespace Protocol {
13324
13346
  * All Permissions Policy features. This enum should match the one defined
13325
13347
  * in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
13326
13348
  */
13327
- export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'cross-origin-isolated' | 'deferred-fetch' | 'digital-credentials-get' | 'direct-sockets' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'sync-xhr' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-printing' | 'web-share' | 'window-management' | 'xr-spatial-tracking');
13349
+ export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'cross-origin-isolated' | 'deferred-fetch' | 'digital-credentials-get' | 'direct-sockets' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'sync-xhr' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-printing' | 'web-share' | 'window-management' | 'xr-spatial-tracking');
13328
13350
 
13329
13351
  /**
13330
13352
  * Reason for a permissions policy feature to be disabled.
@@ -18465,7 +18487,7 @@ export namespace Protocol {
18465
18487
  /**
18466
18488
  * List of FinalStatus reasons for Prerender2.
18467
18489
  */
18468
- export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'MemoryLimitExceeded' | 'DataSaverEnabled' | 'TriggerUrlHasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'PrerenderingDisabledByDevTools' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts' | 'MaxNumOfRunningEagerPrerendersExceeded' | 'MaxNumOfRunningNonEagerPrerendersExceeded' | 'MaxNumOfRunningEmbedderPrerendersExceeded' | 'PrerenderingUrlHasEffectiveUrl' | 'RedirectedPrerenderingUrlHasEffectiveUrl' | 'ActivationUrlHasEffectiveUrl' | 'JavaScriptInterfaceAdded' | 'JavaScriptInterfaceRemoved' | 'AllPrerenderingCanceled' | 'WindowClosed');
18490
+ export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'MemoryLimitExceeded' | 'DataSaverEnabled' | 'TriggerUrlHasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'PrerenderingDisabledByDevTools' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts' | 'MaxNumOfRunningEagerPrerendersExceeded' | 'MaxNumOfRunningNonEagerPrerendersExceeded' | 'MaxNumOfRunningEmbedderPrerendersExceeded' | 'PrerenderingUrlHasEffectiveUrl' | 'RedirectedPrerenderingUrlHasEffectiveUrl' | 'ActivationUrlHasEffectiveUrl' | 'JavaScriptInterfaceAdded' | 'JavaScriptInterfaceRemoved' | 'AllPrerenderingCanceled' | 'WindowClosed' | 'SlowNetwork' | 'OtherPrerenderedPageActivated');
18469
18491
 
18470
18492
  /**
18471
18493
  * Preloading status values, see also PreloadingTriggeringOutcome. This