chrome-devtools-frontend 1.0.1682249 → 1.0.1684555

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.
Files changed (103) hide show
  1. package/AUTHORS +1 -0
  2. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +0 -7
  3. package/front_end/core/sdk/StorageBucketsModel.ts +0 -6
  4. package/front_end/entrypoints/inspector_main/InspectorMain.ts +2 -1
  5. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -5
  6. package/front_end/entrypoints/main/MainImpl.ts +6 -4
  7. package/front_end/entrypoints/main/main-meta.ts +9 -51
  8. package/front_end/foundation/Universe.ts +7 -0
  9. package/front_end/generated/InspectorBackendCommands.ts +12 -22
  10. package/front_end/generated/protocol-mapping.d.ts +9 -59
  11. package/front_end/generated/protocol-proxy-api.d.ts +7 -47
  12. package/front_end/generated/protocol.ts +105 -330
  13. package/front_end/models/ai_assistance/AiAgent2.ts +12 -4
  14. package/front_end/models/ai_assistance/AiConversation.ts +25 -7
  15. package/front_end/models/ai_assistance/agents/AiAgent.ts +11 -19
  16. package/front_end/models/ai_assistance/agents/StorageAgent.ts +6 -6
  17. package/front_end/models/ai_assistance/ai_assistance.ts +4 -0
  18. package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +12 -6
  19. package/front_end/models/ai_assistance/tools/GetStorageValues.ts +1 -1
  20. package/front_end/models/ai_assistance/tools/ListStorageKeys.ts +1 -1
  21. package/front_end/models/ai_assistance/tools/RunLighthouse.ts +5 -8
  22. package/front_end/models/ai_assistance/tools/Tool.ts +19 -6
  23. package/front_end/models/issues_manager/DOMIssuesManager.ts +144 -0
  24. package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +13 -1
  25. package/front_end/models/issues_manager/GenericIssue.ts +14 -2
  26. package/front_end/models/issues_manager/IssuesManager.ts +0 -1
  27. package/front_end/models/issues_manager/issues_manager.ts +2 -0
  28. package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
  29. package/front_end/models/trace/Processor.ts +1 -0
  30. package/front_end/panels/ai_assistance/ExternalHandler.ts +89 -0
  31. package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
  32. package/front_end/panels/application/BackgroundServiceModel.ts +4 -3
  33. package/front_end/panels/application/IndexedDBModel.ts +0 -7
  34. package/front_end/panels/console/ConsoleView.ts +17 -16
  35. package/front_end/panels/console/ConsoleViewMessage.ts +4 -1
  36. package/front_end/panels/console/console-meta.ts +4 -19
  37. package/front_end/panels/elements/ElementIssueUtils.ts +10 -2
  38. package/front_end/panels/elements/ElementsPanel.ts +8 -3
  39. package/front_end/panels/elements/ElementsTreeElement.ts +82 -161
  40. package/front_end/panels/elements/ElementsTreeOutline.ts +26 -105
  41. package/front_end/panels/elements/StandaloneStylesContainer.ts +5 -11
  42. package/front_end/panels/elements/StylePropertyTreeElement.ts +2 -0
  43. package/front_end/panels/elements/StylesContainer.ts +1 -0
  44. package/front_end/panels/elements/StylesSidebarPane.ts +174 -151
  45. package/front_end/panels/network/RequestPayloadView.ts +5 -2
  46. package/front_end/panels/security/SecurityPanelSidebar.ts +0 -32
  47. package/front_end/panels/settings/KeybindsSettingsTab.ts +5 -2
  48. package/front_end/panels/sources/SourcesPanel.ts +6 -3
  49. package/front_end/panels/timeline/components/BreadcrumbsUI.ts +2 -6
  50. package/front_end/panels/timeline/components/CWVMetrics.ts +9 -10
  51. package/front_end/panels/timeline/components/DetailsView.ts +12 -16
  52. package/front_end/panels/timeline/components/ExportTraceOptions.ts +13 -13
  53. package/front_end/panels/timeline/components/FieldSettingsDialog.ts +19 -19
  54. package/front_end/panels/timeline/components/IgnoreListSetting.ts +7 -9
  55. package/front_end/panels/timeline/components/InteractionBreakdown.ts +3 -3
  56. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +13 -13
  57. package/front_end/panels/timeline/components/LiveMetricsView.ts +64 -64
  58. package/front_end/panels/timeline/components/MetricCard.ts +25 -25
  59. package/front_end/panels/timeline/components/NetworkRequestDetails.ts +22 -22
  60. package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +9 -9
  61. package/front_end/panels/timeline/components/OriginMap.ts +7 -7
  62. package/front_end/panels/timeline/components/RelatedInsightChips.ts +2 -2
  63. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +19 -20
  64. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -1
  65. package/front_end/panels/timeline/components/TimelineSummary.ts +2 -2
  66. package/front_end/panels/timeline/components/Utils.ts +2 -6
  67. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +6 -9
  68. package/front_end/panels/timeline/components/insights/Checklist.ts +2 -2
  69. package/front_end/panels/timeline/components/insights/Table.ts +1 -1
  70. package/front_end/third_party/chromium/README.chromium +1 -1
  71. package/front_end/ui/comments/CommentAnchorResolver.ts +94 -0
  72. package/front_end/ui/comments/CommentOverlayManager.ts +16 -32
  73. package/front_end/ui/components/text_editor/config.ts +2 -1
  74. package/front_end/ui/legacy/DockController.ts +4 -1
  75. package/front_end/ui/legacy/InspectorView.ts +3 -1
  76. package/front_end/ui/legacy/KeyboardShortcut.ts +4 -7
  77. package/front_end/ui/legacy/SearchableView.ts +2 -1
  78. package/front_end/ui/legacy/ShortcutRegistry.ts +6 -3
  79. package/front_end/ui/legacy/UIUtils.ts +10 -6
  80. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +23 -24
  81. package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +2 -2
  82. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -6
  83. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +14 -15
  84. package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
  85. package/front_end/ui/legacy/components/perf_ui/NetworkPriorities.ts +5 -5
  86. package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +5 -5
  87. package/front_end/ui/legacy/components/perf_ui/PieChart.ts +1 -1
  88. package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +4 -6
  89. package/front_end/ui/legacy/components/source_frame/FontView.ts +2 -2
  90. package/front_end/ui/legacy/components/source_frame/ImageView.ts +13 -13
  91. package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -1
  92. package/front_end/ui/legacy/components/source_frame/PreviewFactory.ts +2 -2
  93. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
  94. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +15 -18
  95. package/front_end/ui/legacy/components/source_frame/XMLView.ts +1 -1
  96. package/front_end/ui/legacy/components/source_frame/source_frame-meta.ts +10 -10
  97. package/front_end/ui/legacy/theme_support/ThemeSupport.ts +5 -2
  98. package/front_end/ui/settings/ConsoleSettings.ts +32 -0
  99. package/front_end/ui/settings/InspectorMainSettings.ts +7 -0
  100. package/front_end/ui/settings/MainSettings.ts +80 -0
  101. package/front_end/ui/settings/settings.ts +4 -0
  102. package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
  103. package/package.json +1 -1
package/AUTHORS CHANGED
@@ -103,6 +103,7 @@ Shelley Vohr <shelley.vohr@gmail.com>
103
103
  Simon Siefke <simon.siefke@gmail.com>
104
104
  Stephen Tsoi-A-Sue <stsoiasue@gmail.com>
105
105
  Sunnylost <sunnylost@gmail.com>
106
+ Suyoung Jung <tdhitbtd@gmail.com>
106
107
  TaegeonKim <aksen5240@gmail.com>
107
108
  Thomas Stokes <git@tombl.dev>
108
109
  Thryze Knox <thryzx@gmail.com>
@@ -273,13 +273,6 @@ export class ServiceWorkerCacheModel extends SDKModel<EventTypes> implements Pro
273
273
  indexedDBContentUpdated(_event: Protocol.Storage.IndexedDBContentUpdatedEvent): void {
274
274
  }
275
275
 
276
- sharedStorageAccessed(_event: Protocol.Storage.SharedStorageAccessedEvent): void {
277
- }
278
-
279
- sharedStorageWorkletOperationExecutionFinished(
280
- _event: Protocol.Storage.SharedStorageWorkletOperationExecutionFinishedEvent): void {
281
- }
282
-
283
276
  storageBucketCreatedOrUpdated(_event: Protocol.Storage.StorageBucketCreatedOrUpdatedEvent): void {
284
277
  }
285
278
 
@@ -154,12 +154,6 @@ export class StorageBucketsModel extends SDKModel<EventTypes> implements Protoco
154
154
  cacheStorageContentUpdated(_event: Protocol.Storage.CacheStorageContentUpdatedEvent): void {
155
155
  }
156
156
 
157
- sharedStorageAccessed(_event: Protocol.Storage.SharedStorageAccessedEvent): void {
158
- }
159
-
160
- sharedStorageWorkletOperationExecutionFinished(
161
- _event: Protocol.Storage.SharedStorageWorkletOperationExecutionFinishedEvent): void {
162
- }
163
157
  }
164
158
 
165
159
  SDKModel.register(StorageBucketsModel, {capabilities: Capability.STORAGE, autostart: false});
@@ -248,7 +248,8 @@ export class BackendSettingsSync implements SDK.TargetManager.Observer {
248
248
  readonly #emulatePageFocusSetting: Common.Settings.Setting<boolean>;
249
249
 
250
250
  constructor() {
251
- this.#autoAttachSetting = Common.Settings.Settings.instance().moduleSetting('auto-attach-to-created-pages');
251
+ this.#autoAttachSetting = Common.Settings.Settings.instance().resolve(
252
+ SettingsUI.InspectorMainSettings.autoAttachToCreatedPagesSettingDescriptor);
252
253
  this.#autoAttachSetting.addChangeListener(this.#updateAutoAttach, this);
253
254
  this.#updateAutoAttach();
254
255
 
@@ -462,14 +462,10 @@ SettingsUI.SettingUIRegistration.register(SettingsUI.InspectorMainSettings.adBlo
462
462
  ],
463
463
  });
464
464
 
465
- Common.Settings.registerSettingExtension({
465
+ SettingsUI.SettingUIRegistration.register(SettingsUI.InspectorMainSettings.autoAttachToCreatedPagesSettingDescriptor, {
466
466
  category: Common.Settings.SettingCategory.GLOBAL,
467
- storageType: Common.Settings.SettingStorageType.SYNCED,
468
467
  title: i18nLazyString(UIStrings.autoOpenDevTools),
469
- settingName: 'auto-attach-to-created-pages',
470
- settingType: Common.Settings.SettingType.BOOLEAN,
471
468
  order: 2,
472
- defaultValue: false,
473
469
  options: [
474
470
  {
475
471
  value: true,
@@ -56,6 +56,7 @@ import * as Components from '../../ui/legacy/components/utils/utils.js';
56
56
  import * as UI from '../../ui/legacy/legacy.js';
57
57
  import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
58
58
  import {html, render} from '../../ui/lit/lit.js';
59
+ import * as SettingsUI from '../../ui/settings/settings.js';
59
60
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
60
61
 
61
62
  import {ExecutionContextSelector} from './ExecutionContextSelector.js';
@@ -223,7 +224,8 @@ export class MainImpl {
223
224
 
224
225
  await this.requestAndRegisterLocaleData();
225
226
 
226
- Host.userMetrics.syncSetting(Common.Settings.Settings.instance().moduleSetting<boolean>('sync-preferences').get());
227
+ Host.userMetrics.syncSetting(
228
+ Common.Settings.Settings.instance().resolve(SettingsUI.MainSettings.syncPreferencesSettingDescriptor).get());
227
229
  const veLogging = config.devToolsVeLogging;
228
230
 
229
231
  // Used by e2e to put VE Logs into "test mode".
@@ -268,7 +270,8 @@ export class MainImpl {
268
270
  }
269
271
 
270
272
  async requestAndRegisterLocaleData(): Promise<void> {
271
- const settingLanguage = Common.Settings.Settings.instance().moduleSetting<string>('language').get();
273
+ const settingLanguage =
274
+ Common.Settings.Settings.instance().resolve(SettingsUI.MainSettings.languageSettingDescriptor).get();
272
275
  const devToolsLocale = i18n.DevToolsLocale.DevToolsLocale.instance({
273
276
  create: true,
274
277
  data: {
@@ -427,8 +430,7 @@ export class MainImpl {
427
430
  Persistence.IsolatedFileSystemManager.Events.FileSystemError,
428
431
  event => Snackbar.Snackbar.Snackbar.show({message: event.data}));
429
432
 
430
- const defaultThemeSetting = 'systemPreferred';
431
- const themeSetting = Common.Settings.Settings.instance().createSetting('ui-theme', defaultThemeSetting);
433
+ const themeSetting = Common.Settings.Settings.instance().resolve(SettingsUI.MainSettings.uiThemeSettingDescriptor);
432
434
  UI.UIUtils.initializeUIUtils(document);
433
435
 
434
436
  // Initialize theme support and apply it.
@@ -658,13 +658,9 @@ UI.ActionRegistration.registerActionExtension({
658
658
  ],
659
659
  });
660
660
 
661
- Common.Settings.registerSettingExtension({
661
+ SettingsUI.SettingUIRegistration.register(SettingsUI.MainSettings.uiThemeSettingDescriptor, {
662
662
  category: Common.Settings.SettingCategory.APPEARANCE,
663
- storageType: Common.Settings.SettingStorageType.SYNCED,
664
663
  title: i18nLazyString(UIStrings.theme),
665
- settingName: 'ui-theme',
666
- settingType: Common.Settings.SettingType.ENUM,
667
- defaultValue: 'systemPreferred',
668
664
  reloadRequired: false,
669
665
  options: [
670
666
  {
@@ -689,13 +685,9 @@ Common.Settings.registerSettingExtension({
689
685
  ],
690
686
  });
691
687
 
692
- Common.Settings.registerSettingExtension({
688
+ SettingsUI.SettingUIRegistration.register(SettingsUI.MainSettings.chromeThemeColorsSettingDescriptor, {
693
689
  category: Common.Settings.SettingCategory.APPEARANCE,
694
- storageType: Common.Settings.SettingStorageType.SYNCED,
695
690
  title: i18nLazyString(UIStrings.matchChromeColorScheme),
696
- settingName: 'chrome-theme-colors',
697
- settingType: Common.Settings.SettingType.BOOLEAN,
698
- defaultValue: true,
699
691
  options: [
700
692
  {
701
693
  value: true,
@@ -713,13 +705,9 @@ Common.Settings.registerSettingExtension({
713
705
  },
714
706
  });
715
707
 
716
- Common.Settings.registerSettingExtension({
708
+ SettingsUI.SettingUIRegistration.register(SettingsUI.MainSettings.sidebarPositionSettingDescriptor, {
717
709
  category: Common.Settings.SettingCategory.APPEARANCE,
718
- storageType: Common.Settings.SettingStorageType.SYNCED,
719
710
  title: i18nLazyString(UIStrings.panelLayout),
720
- settingName: 'sidebar-position',
721
- settingType: Common.Settings.SettingType.ENUM,
722
- defaultValue: 'auto',
723
711
  options: [
724
712
  {
725
713
  title: i18nLazyString(UIStrings.useHorizontalPanelLayout),
@@ -739,13 +727,9 @@ Common.Settings.registerSettingExtension({
739
727
  ],
740
728
  });
741
729
 
742
- Common.Settings.registerSettingExtension({
730
+ SettingsUI.SettingUIRegistration.register(SettingsUI.MainSettings.languageSettingDescriptor, {
743
731
  category: Common.Settings.SettingCategory.APPEARANCE,
744
- storageType: Common.Settings.SettingStorageType.SYNCED,
745
- settingName: 'language',
746
- settingType: Common.Settings.SettingType.ENUM,
747
732
  title: i18nLazyString(UIStrings.language),
748
- defaultValue: 'en-US',
749
733
  options: [
750
734
  {
751
735
  value: 'browserLanguage',
@@ -757,14 +741,10 @@ Common.Settings.registerSettingExtension({
757
741
  reloadRequired: true,
758
742
  });
759
743
 
760
- Common.Settings.registerSettingExtension({
744
+ SettingsUI.SettingUIRegistration.register(SettingsUI.MainSettings.shortcutPanelSwitchSettingDescriptor, {
761
745
  category: Common.Settings.SettingCategory.APPEARANCE,
762
- storageType: Common.Settings.SettingStorageType.SYNCED,
763
746
  title: Host.Platform.platform() === 'mac' ? i18nLazyString(UIStrings.enableShortcutToSwitchPanels) :
764
747
  i18nLazyString(UIStrings.enableCtrlShortcutToSwitchPanels),
765
- settingName: 'shortcut-panel-switch',
766
- settingType: Common.Settings.SettingType.BOOLEAN,
767
- defaultValue: false,
768
748
  });
769
749
 
770
750
  SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.disablePausedStateOverlaySettingDescriptor, {
@@ -772,11 +752,8 @@ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.disablePausedStateOver
772
752
  title: i18nLazyString(UIStrings.disablePaused),
773
753
  });
774
754
 
775
- Common.Settings.registerSettingExtension({
755
+ SettingsUI.SettingUIRegistration.register(SettingsUI.MainSettings.currentDockStateSettingDescriptor, {
776
756
  category: Common.Settings.SettingCategory.GLOBAL,
777
- settingName: 'currentDockState',
778
- settingType: Common.Settings.SettingType.ENUM,
779
- defaultValue: 'right',
780
757
  options: [
781
758
  {
782
759
  value: 'right',
@@ -801,11 +778,7 @@ Common.Settings.registerSettingExtension({
801
778
  ],
802
779
  });
803
780
 
804
- Common.Settings.registerSettingExtension({
805
- storageType: Common.Settings.SettingStorageType.SYNCED,
806
- settingName: 'active-keybind-set',
807
- settingType: Common.Settings.SettingType.ENUM,
808
- defaultValue: 'devToolsDefault',
781
+ SettingsUI.SettingUIRegistration.register(SettingsUI.MainSettings.activeKeybindSetSettingDescriptor, {
809
782
  options: [
810
783
  {
811
784
  value: 'devToolsDefault',
@@ -833,13 +806,9 @@ function createOptionForLocale(localeString: string): Common.Settings.SettingExt
833
806
  };
834
807
  }
835
808
 
836
- Common.Settings.registerSettingExtension({
809
+ SettingsUI.SettingUIRegistration.register(SettingsUI.MainSettings.syncPreferencesSettingDescriptor, {
837
810
  category: Common.Settings.SettingCategory.ACCOUNT,
838
- // This name must be kept in sync with DevToolsSettings::kSyncDevToolsPreferencesFrontendName.
839
- settingName: 'sync-preferences',
840
- settingType: Common.Settings.SettingType.BOOLEAN,
841
811
  title: i18nLazyString(UIStrings.saveSettings),
842
- defaultValue: false,
843
812
  reloadRequired: true,
844
813
  });
845
814
 
@@ -872,21 +841,10 @@ SettingsUI.SettingUIRegistration.register(
872
841
  ],
873
842
  });
874
843
 
875
- Common.Settings.registerSettingExtension({
876
- storageType: Common.Settings.SettingStorageType.SYNCED,
877
- settingName: 'user-shortcuts',
878
- settingType: Common.Settings.SettingType.ARRAY,
879
- defaultValue: [],
880
- });
881
-
882
- Common.Settings.registerSettingExtension({
844
+ SettingsUI.SettingUIRegistration.register(SettingsUI.MainSettings.searchAsYouTypeSettingDescriptor, {
883
845
  category: Common.Settings.SettingCategory.GLOBAL,
884
- storageType: Common.Settings.SettingStorageType.LOCAL,
885
846
  title: i18nLazyString(UIStrings.searchAsYouTypeSetting),
886
- settingName: 'search-as-you-type',
887
- settingType: Common.Settings.SettingType.BOOLEAN,
888
847
  order: 3,
889
- defaultValue: true,
890
848
  options: [
891
849
  {
892
850
  value: true,
@@ -213,6 +213,9 @@ export class Universe {
213
213
  );
214
214
  context.set(IssuesManager.IssuesManager.IssuesManager, issuesManager);
215
215
 
216
+ const domIssuesManager = new IssuesManager.DOMIssuesManager.DOMIssuesManager(issuesManager, targetManager);
217
+ context.set(IssuesManager.DOMIssuesManager.DOMIssuesManager, domIssuesManager);
218
+
216
219
  const javaScriptMetadata = new JavaScriptMetadata.JavaScriptMetadata.JavaScriptMetadataImpl();
217
220
  context.set(JavaScriptMetadata.JavaScriptMetadata.JavaScriptMetadataImpl, javaScriptMetadata);
218
221
 
@@ -296,6 +299,10 @@ export class Universe {
296
299
  return this.context.get(SDK.DOMDebuggerModel.DOMDebuggerManager);
297
300
  }
298
301
 
302
+ get domIssuesManager(): IssuesManager.DOMIssuesManager.DOMIssuesManager {
303
+ return this.context.get(IssuesManager.DOMIssuesManager.DOMIssuesManager);
304
+ }
305
+
299
306
  get domModelUndoStack(): SDK.DOMModel.DOMModelUndoStack {
300
307
  return this.context.get(SDK.DOMModel.DOMModelUndoStack);
301
308
  }
@@ -45,8 +45,10 @@ inspectorBackend.registerType("Accessibility.AXNode", [{"name": "nodeId", "type"
45
45
 
46
46
  // Ads.
47
47
  inspectorBackend.registerCommand("Ads.getAdMetrics", [], ["metrics"], "Retrieves ad metrics for the current page.");
48
+ inspectorBackend.registerCommand("Ads.getAdScripts", [], ["newScripts"], "Retrieves ad scripts for the current page. To minimize payload size, this only returns the newly tracked ad scripts since the last call to getAdScripts (i.e., the delta).");
48
49
  inspectorBackend.registerType("Ads.AdFrameData", [{"name": "frameId", "type": "string", "optional": false, "description": "The DevTools frame token.", "typeRef": "Page.FrameId"}, {"name": "initialOrigin", "type": "string", "optional": true, "description": "The initial origin of the frame. To minimize the payload size, this is only sent once per frame.", "typeRef": null}, {"name": "networkBytes", "type": "number", "optional": false, "description": "The network bytes of the frame.", "typeRef": null}, {"name": "cpuTime", "type": "number", "optional": false, "description": "The CPU time of the frame, in milliseconds.", "typeRef": null}]);
49
50
  inspectorBackend.registerType("Ads.AdMetrics", [{"name": "viewportAdDensityByArea", "type": "number", "optional": false, "description": "The viewport ad density by area, represented as a percentage (an integer between 0 and 100).", "typeRef": null}, {"name": "averageViewportAdDensityByArea", "type": "number", "optional": false, "description": "The time-weighted average of the viewport ad density by area, measured across the duration of the page.", "typeRef": null}, {"name": "viewportAdCount", "type": "number", "optional": false, "description": "The number of ads currently visible within the viewport.", "typeRef": null}, {"name": "averageViewportAdCount", "type": "number", "optional": false, "description": "The time-weighted average of the viewport ad count, measured across the duration of the page.", "typeRef": null}, {"name": "totalAdCpuTime", "type": "number", "optional": false, "description": "The total ad CPU usage, in milliseconds.", "typeRef": null}, {"name": "totalAdNetworkBytes", "type": "number", "optional": false, "description": "The total ad network bytes.", "typeRef": null}, {"name": "updateAdFrames", "type": "array", "optional": false, "description": "The list of ad frames that have been updated since the last event.", "typeRef": "Ads.AdFrameData"}, {"name": "removeAdFrames", "type": "array", "optional": false, "description": "The list of ad frame IDs that have been removed since the last event.", "typeRef": "Page.FrameId"}]);
51
+ inspectorBackend.registerType("Ads.AdScript", [{"name": "scriptId", "type": "string", "optional": false, "description": "The script ID.", "typeRef": "Runtime.ScriptId"}, {"name": "provenance", "type": "object", "optional": false, "description": "The ad provenance.", "typeRef": "Network.AdProvenance"}]);
50
52
 
51
53
  // Animation.
52
54
  inspectorBackend.registerEnum("Animation.AnimationType", {CSSTransition: "CSSTransition", CSSAnimation: "CSSAnimation", WebAnimation: "WebAnimation"});
@@ -938,7 +940,7 @@ inspectorBackend.registerType("Network.ConnectTiming", [{"name": "requestTime",
938
940
  inspectorBackend.registerType("Network.ClientSecurityState", [{"name": "initiatorIsSecureContext", "type": "boolean", "optional": false, "description": "", "typeRef": null}, {"name": "initiatorIPAddressSpace", "type": "string", "optional": false, "description": "", "typeRef": "Network.IPAddressSpace"}, {"name": "localNetworkAccessRequestPolicy", "type": "string", "optional": false, "description": "", "typeRef": "Network.LocalNetworkAccessRequestPolicy"}]);
939
941
  inspectorBackend.registerType("Network.AdScriptIdentifier", [{"name": "scriptId", "type": "string", "optional": false, "description": "The script's V8 identifier.", "typeRef": "Runtime.ScriptId"}, {"name": "debuggerId", "type": "string", "optional": false, "description": "V8's debugging ID for the v8::Context.", "typeRef": "Runtime.UniqueDebuggerId"}, {"name": "name", "type": "string", "optional": false, "description": "The script's url (or generated name based on id if inline script).", "typeRef": null}]);
940
942
  inspectorBackend.registerType("Network.AdAncestry", [{"name": "ancestryChain", "type": "array", "optional": false, "description": "A chain of `AdScriptIdentifier`s representing the ancestry of an ad script that led to the creation of a resource or element. The chain is ordered from the script itself (lowest level) up to its root ancestor that was flagged by a filter list.", "typeRef": "Network.AdScriptIdentifier"}, {"name": "rootScriptFilterlistRule", "type": "string", "optional": true, "description": "The filter list rule that caused the root (last) script in `ancestryChain` to be tagged as an ad.", "typeRef": null}]);
941
- inspectorBackend.registerType("Network.AdProvenance", [{"name": "filterlistRule", "type": "string", "optional": true, "description": "The filterlist rule that matched, if any.", "typeRef": null}, {"name": "adScriptAncestry", "type": "object", "optional": true, "description": "The script ancestry that created the ad, if any.", "typeRef": "Network.AdAncestry"}]);
943
+ inspectorBackend.registerType("Network.AdProvenance", [{"name": "filterlistRule", "type": "string", "optional": true, "description": "The filterlist rule that matched, if any.", "typeRef": null}, {"name": "adScriptAncestry", "type": "object", "optional": true, "description": "The script ancestry that created the ad, if any. Note: depending on the context, this may represent the full ancestry up to the root script, or it may contain only one script representing the immediate ancestor.", "typeRef": "Network.AdAncestry"}]);
942
944
  inspectorBackend.registerType("Network.CrossOriginOpenerPolicyStatus", [{"name": "value", "type": "string", "optional": false, "description": "", "typeRef": "Network.CrossOriginOpenerPolicyValue"}, {"name": "reportOnlyValue", "type": "string", "optional": false, "description": "", "typeRef": "Network.CrossOriginOpenerPolicyValue"}, {"name": "reportingEndpoint", "type": "string", "optional": true, "description": "", "typeRef": null}, {"name": "reportOnlyReportingEndpoint", "type": "string", "optional": true, "description": "", "typeRef": null}]);
943
945
  inspectorBackend.registerType("Network.CrossOriginEmbedderPolicyStatus", [{"name": "value", "type": "string", "optional": false, "description": "", "typeRef": "Network.CrossOriginEmbedderPolicyValue"}, {"name": "reportOnlyValue", "type": "string", "optional": false, "description": "", "typeRef": "Network.CrossOriginEmbedderPolicyValue"}, {"name": "reportingEndpoint", "type": "string", "optional": true, "description": "", "typeRef": null}, {"name": "reportOnlyReportingEndpoint", "type": "string", "optional": true, "description": "", "typeRef": null}]);
944
946
  inspectorBackend.registerType("Network.ContentSecurityPolicyStatus", [{"name": "effectiveDirectives", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "isEnforced", "type": "boolean", "optional": false, "description": "", "typeRef": null}, {"name": "source", "type": "string", "optional": false, "description": "", "typeRef": "Network.ContentSecurityPolicySource"}]);
@@ -1137,7 +1139,7 @@ inspectorBackend.registerCommand("Page.setLifecycleEventsEnabled", [{"name": "en
1137
1139
  inspectorBackend.registerEnum("Page.SetTouchEmulationEnabledRequestConfiguration", {Mobile: "mobile", Desktop: "desktop"});
1138
1140
  inspectorBackend.registerCommand("Page.setTouchEmulationEnabled", [{"name": "enabled", "type": "boolean", "optional": false, "description": "Whether the touch event emulation should be enabled.", "typeRef": null}, {"name": "configuration", "type": "string", "optional": true, "description": "Touch/gesture events configuration. Default: current platform.", "typeRef": "Page.SetTouchEmulationEnabledRequestConfiguration"}], [], "Toggles mouse event-based touch event emulation.");
1139
1141
  inspectorBackend.registerEnum("Page.StartScreencastRequestFormat", {Jpeg: "jpeg", Png: "png"});
1140
- inspectorBackend.registerCommand("Page.startScreencast", [{"name": "format", "type": "string", "optional": true, "description": "Image compression format.", "typeRef": "Page.StartScreencastRequestFormat"}, {"name": "quality", "type": "number", "optional": true, "description": "Compression quality from range [0..100].", "typeRef": null}, {"name": "maxWidth", "type": "number", "optional": true, "description": "Maximum screenshot width.", "typeRef": null}, {"name": "maxHeight", "type": "number", "optional": true, "description": "Maximum screenshot height.", "typeRef": null}, {"name": "everyNthFrame", "type": "number", "optional": true, "description": "Send every n-th frame.", "typeRef": null}], [], "Starts sending each frame using the `screencastFrame` event.");
1142
+ inspectorBackend.registerCommand("Page.startScreencast", [{"name": "format", "type": "string", "optional": true, "description": "Image compression format.", "typeRef": "Page.StartScreencastRequestFormat"}, {"name": "quality", "type": "number", "optional": true, "description": "Compression quality from range [0..100].", "typeRef": null}, {"name": "maxWidth", "type": "number", "optional": true, "description": "Maximum screenshot width.", "typeRef": null}, {"name": "maxHeight", "type": "number", "optional": true, "description": "Maximum screenshot height.", "typeRef": null}, {"name": "everyNthFrame", "type": "number", "optional": true, "description": "Send every n-th frame. Must be a positive integer.", "typeRef": null}, {"name": "maxFramesInFlight", "type": "number", "optional": true, "description": "Maximum number of frames sent until screencastFrameAck is required. Defaults to 3. Must be a positive integer.", "typeRef": null}, {"name": "sendLastFrame", "type": "boolean", "optional": true, "description": "By default, after screencastFrameAck arrives, the next produced frame is sent. Passing this flag enables storing the last produced frame in memory, which is immediately sent upon screencastFrameAck. This way, overall performance is traded for a better latency.", "typeRef": null}], [], "Starts sending each frame using the `screencastFrame` event.");
1141
1143
  inspectorBackend.registerCommand("Page.startScreenRecording", [{"name": "audio", "type": "boolean", "optional": true, "description": "", "typeRef": null}, {"name": "maxWidth", "type": "number", "optional": true, "description": "Maximum frame width in pixels.", "typeRef": null}, {"name": "maxHeight", "type": "number", "optional": true, "description": "Maximum frame height in pixels.", "typeRef": null}, {"name": "frameRate", "type": "number", "optional": true, "description": "Maximum frame rate in frames per second.", "typeRef": null}], ["stream"], "Starts screencast video recording.");
1142
1144
  inspectorBackend.registerCommand("Page.stopScreenRecording", [], ["stream"], "Stops screencast video recording.");
1143
1145
  inspectorBackend.registerCommand("Page.stopLoading", [], [], "Force the page stop all navigations and pending resource fetches.");
@@ -1257,6 +1259,7 @@ inspectorBackend.registerType("Security.InsecureContentStatus", [{"name": "ranMi
1257
1259
  // ServiceWorker.
1258
1260
  inspectorBackend.registerEnum("ServiceWorker.ServiceWorkerVersionRunningStatus", {Stopped: "stopped", Starting: "starting", Running: "running", Stopping: "stopping"});
1259
1261
  inspectorBackend.registerEnum("ServiceWorker.ServiceWorkerVersionStatus", {New: "new", Installing: "installing", Installed: "installed", Activating: "activating", Activated: "activated", Redundant: "redundant"});
1262
+ inspectorBackend.registerEnum("ServiceWorker.ServiceWorkerRouterSourceType", {Cache: "cache", FetchEvent: "fetchEvent", Network: "network", RaceNetworkAndFetchHandler: "raceNetworkAndFetchHandler", RaceNetworkAndCache: "raceNetworkAndCache", SourceDict: "sourceDict"});
1260
1263
  inspectorBackend.registerEvent("ServiceWorker.workerErrorReported", ["errorMessage"]);
1261
1264
  inspectorBackend.registerEvent("ServiceWorker.workerRegistrationUpdated", ["registrations"]);
1262
1265
  inspectorBackend.registerEvent("ServiceWorker.workerVersionUpdated", ["versions"]);
@@ -1273,7 +1276,11 @@ inspectorBackend.registerCommand("ServiceWorker.stopWorker", [{"name": "versionI
1273
1276
  inspectorBackend.registerCommand("ServiceWorker.unregister", [{"name": "scopeURL", "type": "string", "optional": false, "description": "", "typeRef": null}], [], "");
1274
1277
  inspectorBackend.registerCommand("ServiceWorker.updateRegistration", [{"name": "scopeURL", "type": "string", "optional": false, "description": "", "typeRef": null}], [], "");
1275
1278
  inspectorBackend.registerType("ServiceWorker.ServiceWorkerRegistration", [{"name": "registrationId", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.RegistrationID"}, {"name": "scopeURL", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "isDeleted", "type": "boolean", "optional": false, "description": "", "typeRef": null}]);
1276
- inspectorBackend.registerType("ServiceWorker.ServiceWorkerVersion", [{"name": "versionId", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "registrationId", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.RegistrationID"}, {"name": "scriptURL", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "runningStatus", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.ServiceWorkerVersionRunningStatus"}, {"name": "status", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.ServiceWorkerVersionStatus"}, {"name": "scriptLastModified", "type": "number", "optional": true, "description": "The Last-Modified header value of the main script.", "typeRef": null}, {"name": "scriptResponseTime", "type": "number", "optional": true, "description": "The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated.", "typeRef": null}, {"name": "controlledClients", "type": "array", "optional": true, "description": "", "typeRef": "Target.TargetID"}, {"name": "targetId", "type": "string", "optional": true, "description": "", "typeRef": "Target.TargetID"}, {"name": "routerRules", "type": "string", "optional": true, "description": "", "typeRef": null}]);
1279
+ inspectorBackend.registerType("ServiceWorker.ServiceWorkerRouterCondition", [{"name": "urlPattern", "type": "string", "optional": true, "description": "Plain text, or JSON serialization of URLPatternInit or URLPattern", "typeRef": null}, {"name": "requestMethod", "type": "string", "optional": true, "description": "", "typeRef": null}, {"name": "requestMode", "type": "string", "optional": true, "description": "", "typeRef": null}, {"name": "requestDestination", "type": "string", "optional": true, "description": "", "typeRef": null}, {"name": "runningStatus", "type": "string", "optional": true, "description": "", "typeRef": "ServiceWorker.ServiceWorkerVersionRunningStatus"}]);
1280
+ inspectorBackend.registerType("ServiceWorker.ServiceWorkerRouterSourceDict", [{"name": "cacheName", "type": "string", "optional": false, "description": "", "typeRef": null}]);
1281
+ inspectorBackend.registerType("ServiceWorker.ServiceWorkerRouterSource", [{"name": "type", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.ServiceWorkerRouterSourceType"}, {"name": "sourceDict", "type": "object", "optional": true, "description": "Non-empty iff `type` equals \\\"sourceDict\\\".", "typeRef": "ServiceWorker.ServiceWorkerRouterSourceDict"}]);
1282
+ inspectorBackend.registerType("ServiceWorker.ServiceWorkerRouterRule", [{"name": "condition", "type": "object", "optional": false, "description": "", "typeRef": "ServiceWorker.ServiceWorkerRouterCondition"}, {"name": "source", "type": "object", "optional": false, "description": "", "typeRef": "ServiceWorker.ServiceWorkerRouterSource"}, {"name": "id", "type": "number", "optional": false, "description": "Rule ID assigned by the browser. Unique within each ServiceWorkerVersion.", "typeRef": null}]);
1283
+ inspectorBackend.registerType("ServiceWorker.ServiceWorkerVersion", [{"name": "versionId", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "registrationId", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.RegistrationID"}, {"name": "scriptURL", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "runningStatus", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.ServiceWorkerVersionRunningStatus"}, {"name": "status", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.ServiceWorkerVersionStatus"}, {"name": "scriptLastModified", "type": "number", "optional": true, "description": "The Last-Modified header value of the main script.", "typeRef": null}, {"name": "scriptResponseTime", "type": "number", "optional": true, "description": "The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated.", "typeRef": null}, {"name": "controlledClients", "type": "array", "optional": true, "description": "", "typeRef": "Target.TargetID"}, {"name": "targetId", "type": "string", "optional": true, "description": "", "typeRef": "Target.TargetID"}, {"name": "routerRules", "type": "string", "optional": true, "description": "Migration to `typedRouterRules` is in progress. The browser sends either `routerRules` or `typedRouterRules`. TODO(crbug.com/540469610): Remove `routerRules` after the migration.", "typeRef": null}, {"name": "typedRouterRules", "type": "array", "optional": true, "description": "", "typeRef": "ServiceWorker.ServiceWorkerRouterRule"}]);
1277
1284
  inspectorBackend.registerType("ServiceWorker.ServiceWorkerErrorMessage", [{"name": "errorMessage", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "registrationId", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.RegistrationID"}, {"name": "versionId", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "sourceURL", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "lineNumber", "type": "number", "optional": false, "description": "", "typeRef": null}, {"name": "columnNumber", "type": "number", "optional": false, "description": "", "typeRef": null}]);
1278
1285
 
1279
1286
  // SmartCardEmulation.
@@ -1314,16 +1321,12 @@ inspectorBackend.registerType("SmartCardEmulation.ReaderStateIn", [{"name": "rea
1314
1321
  inspectorBackend.registerType("SmartCardEmulation.ReaderStateOut", [{"name": "reader", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "eventState", "type": "object", "optional": false, "description": "", "typeRef": "SmartCardEmulation.ReaderStateFlags"}, {"name": "eventCount", "type": "number", "optional": false, "description": "", "typeRef": null}, {"name": "atr", "type": "string", "optional": false, "description": "", "typeRef": null}]);
1315
1322
 
1316
1323
  // Storage.
1317
- inspectorBackend.registerEnum("Storage.StorageType", {Cookies: "cookies", File_systems: "file_systems", Indexeddb: "indexeddb", Local_storage: "local_storage", Shader_cache: "shader_cache", Websql: "websql", Service_workers: "service_workers", Cache_storage: "cache_storage", Shared_storage: "shared_storage", Storage_buckets: "storage_buckets", All: "all", Other: "other"});
1318
- inspectorBackend.registerEnum("Storage.SharedStorageAccessScope", {Window: "window", SharedStorageWorklet: "sharedStorageWorklet", Header: "header"});
1319
- inspectorBackend.registerEnum("Storage.SharedStorageAccessMethod", {AddModule: "addModule", CreateWorklet: "createWorklet", SelectURL: "selectURL", Run: "run", BatchUpdate: "batchUpdate", Set: "set", Append: "append", Delete: "delete", Clear: "clear", Get: "get", Keys: "keys", Values: "values", Entries: "entries", Length: "length", RemainingBudget: "remainingBudget"});
1324
+ inspectorBackend.registerEnum("Storage.StorageType", {Cookies: "cookies", File_systems: "file_systems", Indexeddb: "indexeddb", Local_storage: "local_storage", Shader_cache: "shader_cache", Websql: "websql", Service_workers: "service_workers", Cache_storage: "cache_storage", Storage_buckets: "storage_buckets", All: "all", Other: "other"});
1320
1325
  inspectorBackend.registerEnum("Storage.StorageBucketsDurability", {Relaxed: "relaxed", Strict: "strict"});
1321
1326
  inspectorBackend.registerEvent("Storage.cacheStorageContentUpdated", ["origin", "storageKey", "bucketId", "cacheName"]);
1322
1327
  inspectorBackend.registerEvent("Storage.cacheStorageListUpdated", ["origin", "storageKey", "bucketId"]);
1323
1328
  inspectorBackend.registerEvent("Storage.indexedDBContentUpdated", ["origin", "storageKey", "bucketId", "databaseName", "objectStoreName"]);
1324
1329
  inspectorBackend.registerEvent("Storage.indexedDBListUpdated", ["origin", "storageKey", "bucketId"]);
1325
- inspectorBackend.registerEvent("Storage.sharedStorageAccessed", ["accessTime", "scope", "method", "mainFrameId", "ownerOrigin", "ownerSite", "params"]);
1326
- inspectorBackend.registerEvent("Storage.sharedStorageWorkletOperationExecutionFinished", ["finishedTime", "executionTime", "method", "operationId", "workletTargetId", "mainFrameId", "ownerOrigin"]);
1327
1330
  inspectorBackend.registerEvent("Storage.storageBucketCreatedOrUpdated", ["bucketInfo"]);
1328
1331
  inspectorBackend.registerEvent("Storage.storageBucketDeleted", ["bucketId"]);
1329
1332
  inspectorBackend.registerCommand("Storage.getStorageKeyForFrame", [{"name": "frameId", "type": "string", "optional": false, "description": "", "typeRef": "Page.FrameId"}], ["storageKey"], "Returns a storage key given a frame id. Deprecated. Please use Storage.getStorageKey instead.");
@@ -1345,25 +1348,12 @@ inspectorBackend.registerCommand("Storage.untrackIndexedDBForOrigin", [{"name":
1345
1348
  inspectorBackend.registerCommand("Storage.untrackIndexedDBForStorageKey", [{"name": "storageKey", "type": "string", "optional": false, "description": "Storage key.", "typeRef": null}], [], "Unregisters storage key from receiving notifications for IndexedDB.");
1346
1349
  inspectorBackend.registerCommand("Storage.getTrustTokens", [], ["tokens"], "Returns the number of stored Trust Tokens per issuer for the current browsing context.");
1347
1350
  inspectorBackend.registerCommand("Storage.clearTrustTokens", [{"name": "issuerOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}], ["didDeleteTokens"], "Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.");
1348
- inspectorBackend.registerCommand("Storage.getSharedStorageMetadata", [{"name": "ownerOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}], ["metadata"], "Gets metadata for an origin's shared storage.");
1349
- inspectorBackend.registerCommand("Storage.getSharedStorageEntries", [{"name": "ownerOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}], ["entries"], "Gets the entries in an given origin's shared storage.");
1350
- inspectorBackend.registerCommand("Storage.setSharedStorageEntry", [{"name": "ownerOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "key", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "value", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "ignoreIfPresent", "type": "boolean", "optional": true, "description": "If `ignoreIfPresent` is included and true, then only sets the entry if `key` doesn't already exist.", "typeRef": null}], [], "Sets entry with `key` and `value` for a given origin's shared storage.");
1351
- inspectorBackend.registerCommand("Storage.deleteSharedStorageEntry", [{"name": "ownerOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "key", "type": "string", "optional": false, "description": "", "typeRef": null}], [], "Deletes entry for `key` (if it exists) for a given origin's shared storage.");
1352
- inspectorBackend.registerCommand("Storage.clearSharedStorageEntries", [{"name": "ownerOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}], [], "Clears all entries for a given origin's shared storage.");
1353
- inspectorBackend.registerCommand("Storage.resetSharedStorageBudget", [{"name": "ownerOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}], [], "Resets the budget for `ownerOrigin` by clearing all budget withdrawals.");
1354
- inspectorBackend.registerCommand("Storage.setSharedStorageTracking", [{"name": "enable", "type": "boolean", "optional": false, "description": "", "typeRef": null}], [], "Enables/disables issuing of sharedStorageAccessed events.");
1355
1351
  inspectorBackend.registerCommand("Storage.setStorageBucketTracking", [{"name": "storageKey", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "enable", "type": "boolean", "optional": false, "description": "", "typeRef": null}], [], "Set tracking for a storage key's buckets.");
1356
1352
  inspectorBackend.registerCommand("Storage.deleteStorageBucket", [{"name": "bucket", "type": "object", "optional": false, "description": "", "typeRef": "Storage.StorageBucket"}], [], "Deletes the Storage Bucket with the given storage key and bucket name.");
1357
1353
  inspectorBackend.registerCommand("Storage.runBounceTrackingMitigations", [], ["deletedSites"], "Deletes state for sites identified as potential bounce trackers, immediately.");
1358
1354
  inspectorBackend.registerCommand("Storage.getRelatedWebsiteSets", [], ["sets"], "Returns the effective Related Website Sets in use by this profile for the browser session. The effective Related Website Sets will not change during a browser session.");
1359
1355
  inspectorBackend.registerType("Storage.UsageForType", [{"name": "storageType", "type": "string", "optional": false, "description": "Name of storage type.", "typeRef": "Storage.StorageType"}, {"name": "usage", "type": "number", "optional": false, "description": "Storage usage (bytes).", "typeRef": null}]);
1360
1356
  inspectorBackend.registerType("Storage.TrustTokens", [{"name": "issuerOrigin", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "count", "type": "number", "optional": false, "description": "", "typeRef": null}]);
1361
- inspectorBackend.registerType("Storage.SharedStorageEntry", [{"name": "key", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "value", "type": "string", "optional": false, "description": "", "typeRef": null}]);
1362
- inspectorBackend.registerType("Storage.SharedStorageMetadata", [{"name": "creationTime", "type": "number", "optional": false, "description": "Time when the origin's shared storage was last created.", "typeRef": "Network.TimeSinceEpoch"}, {"name": "length", "type": "number", "optional": false, "description": "Number of key-value pairs stored in origin's shared storage.", "typeRef": null}, {"name": "remainingBudget", "type": "number", "optional": false, "description": "Current amount of bits of entropy remaining in the navigation budget.", "typeRef": null}, {"name": "bytesUsed", "type": "number", "optional": false, "description": "Total number of bytes stored as key-value pairs in origin's shared storage.", "typeRef": null}]);
1363
- inspectorBackend.registerType("Storage.SharedStoragePrivateAggregationConfig", [{"name": "aggregationCoordinatorOrigin", "type": "string", "optional": true, "description": "The chosen aggregation service deployment.", "typeRef": null}, {"name": "contextId", "type": "string", "optional": true, "description": "The context ID provided.", "typeRef": null}, {"name": "filteringIdMaxBytes", "type": "number", "optional": false, "description": "Configures the maximum size allowed for filtering IDs.", "typeRef": null}, {"name": "maxContributions", "type": "number", "optional": true, "description": "The limit on the number of contributions in the final report.", "typeRef": null}]);
1364
- inspectorBackend.registerType("Storage.SharedStorageReportingMetadata", [{"name": "eventType", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "reportingUrl", "type": "string", "optional": false, "description": "", "typeRef": null}]);
1365
- inspectorBackend.registerType("Storage.SharedStorageUrlWithMetadata", [{"name": "url", "type": "string", "optional": false, "description": "Spec of candidate URL.", "typeRef": null}, {"name": "reportingMetadata", "type": "array", "optional": false, "description": "Any associated reporting metadata.", "typeRef": "Storage.SharedStorageReportingMetadata"}]);
1366
- inspectorBackend.registerType("Storage.SharedStorageAccessParams", [{"name": "scriptSourceUrl", "type": "string", "optional": true, "description": "Spec of the module script URL. Present only for SharedStorageAccessMethods: addModule and createWorklet.", "typeRef": null}, {"name": "dataOrigin", "type": "string", "optional": true, "description": "String denoting \\\"context-origin\\\", \\\"script-origin\\\", or a custom origin to be used as the worklet's data origin. Present only for SharedStorageAccessMethod: createWorklet.", "typeRef": null}, {"name": "operationName", "type": "string", "optional": true, "description": "Name of the registered operation to be run. Present only for SharedStorageAccessMethods: run and selectURL.", "typeRef": null}, {"name": "operationId", "type": "string", "optional": true, "description": "ID of the operation call. Present only for SharedStorageAccessMethods: run and selectURL.", "typeRef": null}, {"name": "keepAlive", "type": "boolean", "optional": true, "description": "Whether or not to keep the worket alive for future run or selectURL calls. Present only for SharedStorageAccessMethods: run and selectURL.", "typeRef": null}, {"name": "privateAggregationConfig", "type": "object", "optional": true, "description": "Configures the private aggregation options. Present only for SharedStorageAccessMethods: run and selectURL.", "typeRef": "Storage.SharedStoragePrivateAggregationConfig"}, {"name": "serializedData", "type": "string", "optional": true, "description": "The operation's serialized data in bytes (converted to a string). Present only for SharedStorageAccessMethods: run and selectURL. TODO(crbug.com/401011862): Consider updating this parameter to binary.", "typeRef": null}, {"name": "urlsWithMetadata", "type": "array", "optional": true, "description": "Array of candidate URLs' specs, along with any associated metadata. Present only for SharedStorageAccessMethod: selectURL.", "typeRef": "Storage.SharedStorageUrlWithMetadata"}, {"name": "urnUuid", "type": "string", "optional": true, "description": "Spec of the URN:UUID generated for a selectURL call. Present only for SharedStorageAccessMethod: selectURL.", "typeRef": null}, {"name": "key", "type": "string", "optional": true, "description": "Key for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set, append, delete, and get.", "typeRef": null}, {"name": "value", "type": "string", "optional": true, "description": "Value for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set and append.", "typeRef": null}, {"name": "ignoreIfPresent", "type": "boolean", "optional": true, "description": "Whether or not to set an entry for a key if that key is already present. Present only for SharedStorageAccessMethod: set.", "typeRef": null}, {"name": "workletOrdinal", "type": "number", "optional": true, "description": "A number denoting the (0-based) order of the worklet's creation relative to all other shared storage worklets created by documents using the current storage partition. Present only for SharedStorageAccessMethods: addModule, createWorklet.", "typeRef": null}, {"name": "workletTargetId", "type": "string", "optional": true, "description": "Hex representation of the DevTools token used as the TargetID for the associated shared storage worklet. Present only for SharedStorageAccessMethods: addModule, createWorklet, run, selectURL, and any other SharedStorageAccessMethod when the SharedStorageAccessScope is sharedStorageWorklet.", "typeRef": "Target.TargetID"}, {"name": "withLock", "type": "string", "optional": true, "description": "Name of the lock to be acquired, if present. Optionally present only for SharedStorageAccessMethods: batchUpdate, set, append, delete, and clear.", "typeRef": null}, {"name": "batchUpdateId", "type": "string", "optional": true, "description": "If the method has been called as part of a batchUpdate, then this number identifies the batch to which it belongs. Optionally present only for SharedStorageAccessMethods: batchUpdate (required), set, append, delete, and clear.", "typeRef": null}, {"name": "batchSize", "type": "number", "optional": true, "description": "Number of modifier methods sent in batch. Present only for SharedStorageAccessMethod: batchUpdate.", "typeRef": null}]);
1367
1357
  inspectorBackend.registerType("Storage.StorageBucket", [{"name": "storageKey", "type": "string", "optional": false, "description": "", "typeRef": "Storage.SerializedStorageKey"}, {"name": "name", "type": "string", "optional": true, "description": "If not specified, it is the default bucket of the storageKey.", "typeRef": null}]);
1368
1358
  inspectorBackend.registerType("Storage.StorageBucketInfo", [{"name": "bucket", "type": "object", "optional": false, "description": "", "typeRef": "Storage.StorageBucket"}, {"name": "id", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "expiration", "type": "number", "optional": false, "description": "", "typeRef": "Network.TimeSinceEpoch"}, {"name": "quota", "type": "number", "optional": false, "description": "Storage quota (bytes).", "typeRef": null}, {"name": "persistent", "type": "boolean", "optional": false, "description": "", "typeRef": null}, {"name": "durability", "type": "string", "optional": false, "description": "", "typeRef": "Storage.StorageBucketsDurability"}]);
1369
1359
  inspectorBackend.registerType("Storage.RelatedWebsiteSet", [{"name": "primarySites", "type": "array", "optional": false, "description": "The primary site of this set, along with the ccTLDs if there is any.", "typeRef": "string"}, {"name": "associatedSites", "type": "array", "optional": false, "description": "The associated sites of this set, along with the ccTLDs if there is any.", "typeRef": "string"}, {"name": "serviceSites", "type": "array", "optional": false, "description": "The service sites of this set, along with the ccTLDs if there is any.", "typeRef": "string"}]);
@@ -1499,7 +1489,7 @@ inspectorBackend.registerCommand("WebMCP.enable", [], [], "Enables the WebMCP do
1499
1489
  inspectorBackend.registerCommand("WebMCP.disable", [], [], "Disables the WebMCP domain.");
1500
1490
  inspectorBackend.registerCommand("WebMCP.invokeTool", [{"name": "frameId", "type": "string", "optional": false, "description": "Frame in which to invoke the tool.", "typeRef": "Page.FrameId"}, {"name": "toolName", "type": "string", "optional": false, "description": "Name of the tool to invoke.", "typeRef": null}, {"name": "input", "type": "object", "optional": false, "description": "Input parameters for the tool, matching the tool's inputSchema.", "typeRef": null}], ["invocationId"], "Invokes a registered tool.");
1501
1491
  inspectorBackend.registerCommand("WebMCP.cancelInvocation", [{"name": "invocationId", "type": "string", "optional": false, "description": "Invocation identifier to cancel.", "typeRef": null}], [], "Cancels a pending tool invocation.");
1502
- inspectorBackend.registerType("WebMCP.Annotation", [{"name": "readOnly", "type": "boolean", "optional": true, "description": "A hint indicating that the tool does not modify any state.", "typeRef": null}, {"name": "untrustedContent", "type": "boolean", "optional": true, "description": "A hint indicating that the tool output may contain untrusted content, ex: UGC, 3rd party data.", "typeRef": null}, {"name": "autosubmit", "type": "boolean", "optional": true, "description": "If the declarative tool was declared with the autosubmit attribute.", "typeRef": null}]);
1492
+ inspectorBackend.registerType("WebMCP.Annotation", [{"name": "readOnly", "type": "boolean", "optional": true, "description": "A hint indicating that the tool does not modify any state.", "typeRef": null}, {"name": "untrustedContent", "type": "boolean", "optional": true, "description": "A hint indicating that the tool output may contain untrusted content, ex: UGC, 3rd party data.", "typeRef": null}, {"name": "consequential", "type": "boolean", "optional": true, "description": "A hint indicating that executing the tool will result in consequential actions, ex: booking a flight, transferring money.", "typeRef": null}, {"name": "autosubmit", "type": "boolean", "optional": true, "description": "If the declarative tool was declared with the autosubmit attribute.", "typeRef": null}]);
1503
1493
  inspectorBackend.registerType("WebMCP.Tool", [{"name": "name", "type": "string", "optional": false, "description": "Tool name.", "typeRef": null}, {"name": "description", "type": "string", "optional": false, "description": "Tool description.", "typeRef": null}, {"name": "inputSchema", "type": "object", "optional": true, "description": "Schema for the tool's input parameters.", "typeRef": null}, {"name": "annotations", "type": "object", "optional": true, "description": "Optional annotations for the tool.", "typeRef": "WebMCP.Annotation"}, {"name": "frameId", "type": "string", "optional": false, "description": "Frame identifier associated with the tool registration.", "typeRef": "Page.FrameId"}, {"name": "backendNodeId", "type": "number", "optional": true, "description": "Optional node ID for declarative tools.", "typeRef": "DOM.BackendNodeId"}, {"name": "stackTrace", "type": "object", "optional": true, "description": "The stack trace at the time of the registration.", "typeRef": "Runtime.StackTrace"}]);
1504
1494
  inspectorBackend.registerType("WebMCP.RemovedTool", [{"name": "name", "type": "string", "optional": false, "description": "Tool name.", "typeRef": null}, {"name": "frameId", "type": "string", "optional": false, "description": "Frame identifier associated with the tool registration.", "typeRef": "Page.FrameId"}]);
1505
1495
 
@@ -775,16 +775,6 @@ export namespace ProtocolMapping {
775
775
  * The origin's IndexedDB database list has been modified.
776
776
  */
777
777
  'Storage.indexedDBListUpdated': [Protocol.Storage.IndexedDBListUpdatedEvent];
778
- /**
779
- * Shared storage was accessed by the associated page.
780
- * The following parameters are included in all events.
781
- */
782
- 'Storage.sharedStorageAccessed': [Protocol.Storage.SharedStorageAccessedEvent];
783
- /**
784
- * A shared storage run or selectURL operation finished its execution.
785
- * The following parameters are included in all events.
786
- */
787
- 'Storage.sharedStorageWorkletOperationExecutionFinished': [Protocol.Storage.SharedStorageWorkletOperationExecutionFinishedEvent];
788
778
  'Storage.storageBucketCreatedOrUpdated': [Protocol.Storage.StorageBucketCreatedOrUpdatedEvent];
789
779
  'Storage.storageBucketDeleted': [Protocol.Storage.StorageBucketDeletedEvent];
790
780
  /**
@@ -1073,6 +1063,15 @@ export namespace ProtocolMapping {
1073
1063
  paramsType: [];
1074
1064
  returnType: Protocol.Ads.GetAdMetricsResponse;
1075
1065
  };
1066
+ /**
1067
+ * Retrieves ad scripts for the current page. To minimize payload size, this
1068
+ * only returns the newly tracked ad scripts since the last call to
1069
+ * getAdScripts (i.e., the delta).
1070
+ */
1071
+ 'Ads.getAdScripts': {
1072
+ paramsType: [];
1073
+ returnType: Protocol.Ads.GetAdScriptsResponse;
1074
+ };
1076
1075
  /**
1077
1076
  * Disables animation domain notifications.
1078
1077
  */
@@ -4894,55 +4893,6 @@ export namespace ProtocolMapping {
4894
4893
  paramsType: [Protocol.Storage.ClearTrustTokensRequest];
4895
4894
  returnType: Protocol.Storage.ClearTrustTokensResponse;
4896
4895
  };
4897
- /**
4898
- * Gets metadata for an origin's shared storage.
4899
- */
4900
- 'Storage.getSharedStorageMetadata': {
4901
- paramsType: [Protocol.Storage.GetSharedStorageMetadataRequest];
4902
- returnType: Protocol.Storage.GetSharedStorageMetadataResponse;
4903
- };
4904
- /**
4905
- * Gets the entries in an given origin's shared storage.
4906
- */
4907
- 'Storage.getSharedStorageEntries': {
4908
- paramsType: [Protocol.Storage.GetSharedStorageEntriesRequest];
4909
- returnType: Protocol.Storage.GetSharedStorageEntriesResponse;
4910
- };
4911
- /**
4912
- * Sets entry with `key` and `value` for a given origin's shared storage.
4913
- */
4914
- 'Storage.setSharedStorageEntry': {
4915
- paramsType: [Protocol.Storage.SetSharedStorageEntryRequest];
4916
- returnType: void;
4917
- };
4918
- /**
4919
- * Deletes entry for `key` (if it exists) for a given origin's shared storage.
4920
- */
4921
- 'Storage.deleteSharedStorageEntry': {
4922
- paramsType: [Protocol.Storage.DeleteSharedStorageEntryRequest];
4923
- returnType: void;
4924
- };
4925
- /**
4926
- * Clears all entries for a given origin's shared storage.
4927
- */
4928
- 'Storage.clearSharedStorageEntries': {
4929
- paramsType: [Protocol.Storage.ClearSharedStorageEntriesRequest];
4930
- returnType: void;
4931
- };
4932
- /**
4933
- * Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
4934
- */
4935
- 'Storage.resetSharedStorageBudget': {
4936
- paramsType: [Protocol.Storage.ResetSharedStorageBudgetRequest];
4937
- returnType: void;
4938
- };
4939
- /**
4940
- * Enables/disables issuing of sharedStorageAccessed events.
4941
- */
4942
- 'Storage.setSharedStorageTracking': {
4943
- paramsType: [Protocol.Storage.SetSharedStorageTrackingRequest];
4944
- returnType: void;
4945
- };
4946
4896
  /**
4947
4897
  * Set tracking for a storage key's buckets.
4948
4898
  */
@@ -322,6 +322,13 @@ declare namespace ProtocolProxyApi {
322
322
  */
323
323
  invoke_getAdMetrics(): Promise<Protocol.Ads.GetAdMetricsResponse>;
324
324
 
325
+ /**
326
+ * Retrieves ad scripts for the current page. To minimize payload size, this
327
+ * only returns the newly tracked ad scripts since the last call to
328
+ * getAdScripts (i.e., the delta).
329
+ */
330
+ invoke_getAdScripts(): Promise<Protocol.Ads.GetAdScriptsResponse>;
331
+
325
332
  }
326
333
  export interface AdsDispatcher {
327
334
  }
@@ -4281,41 +4288,6 @@ declare namespace ProtocolProxyApi {
4281
4288
  */
4282
4289
  invoke_clearTrustTokens(params: Protocol.Storage.ClearTrustTokensRequest): Promise<Protocol.Storage.ClearTrustTokensResponse>;
4283
4290
 
4284
- /**
4285
- * Gets metadata for an origin's shared storage.
4286
- */
4287
- invoke_getSharedStorageMetadata(params: Protocol.Storage.GetSharedStorageMetadataRequest): Promise<Protocol.Storage.GetSharedStorageMetadataResponse>;
4288
-
4289
- /**
4290
- * Gets the entries in an given origin's shared storage.
4291
- */
4292
- invoke_getSharedStorageEntries(params: Protocol.Storage.GetSharedStorageEntriesRequest): Promise<Protocol.Storage.GetSharedStorageEntriesResponse>;
4293
-
4294
- /**
4295
- * Sets entry with `key` and `value` for a given origin's shared storage.
4296
- */
4297
- invoke_setSharedStorageEntry(params: Protocol.Storage.SetSharedStorageEntryRequest): Promise<Protocol.ProtocolResponseWithError>;
4298
-
4299
- /**
4300
- * Deletes entry for `key` (if it exists) for a given origin's shared storage.
4301
- */
4302
- invoke_deleteSharedStorageEntry(params: Protocol.Storage.DeleteSharedStorageEntryRequest): Promise<Protocol.ProtocolResponseWithError>;
4303
-
4304
- /**
4305
- * Clears all entries for a given origin's shared storage.
4306
- */
4307
- invoke_clearSharedStorageEntries(params: Protocol.Storage.ClearSharedStorageEntriesRequest): Promise<Protocol.ProtocolResponseWithError>;
4308
-
4309
- /**
4310
- * Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
4311
- */
4312
- invoke_resetSharedStorageBudget(params: Protocol.Storage.ResetSharedStorageBudgetRequest): Promise<Protocol.ProtocolResponseWithError>;
4313
-
4314
- /**
4315
- * Enables/disables issuing of sharedStorageAccessed events.
4316
- */
4317
- invoke_setSharedStorageTracking(params: Protocol.Storage.SetSharedStorageTrackingRequest): Promise<Protocol.ProtocolResponseWithError>;
4318
-
4319
4291
  /**
4320
4292
  * Set tracking for a storage key's buckets.
4321
4293
  */
@@ -4359,18 +4331,6 @@ declare namespace ProtocolProxyApi {
4359
4331
  */
4360
4332
  indexedDBListUpdated(params: Protocol.Storage.IndexedDBListUpdatedEvent): void;
4361
4333
 
4362
- /**
4363
- * Shared storage was accessed by the associated page.
4364
- * The following parameters are included in all events.
4365
- */
4366
- sharedStorageAccessed(params: Protocol.Storage.SharedStorageAccessedEvent): void;
4367
-
4368
- /**
4369
- * A shared storage run or selectURL operation finished its execution.
4370
- * The following parameters are included in all events.
4371
- */
4372
- sharedStorageWorkletOperationExecutionFinished(params: Protocol.Storage.SharedStorageWorkletOperationExecutionFinishedEvent): void;
4373
-
4374
4334
  storageBucketCreatedOrUpdated(params: Protocol.Storage.StorageBucketCreatedOrUpdatedEvent): void;
4375
4335
 
4376
4336
  storageBucketDeleted(params: Protocol.Storage.StorageBucketDeletedEvent): void;