chrome-devtools-frontend 1.0.1548980 → 1.0.1550444

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 (323) hide show
  1. package/docs/contributing/settings-experiments-features.md +35 -0
  2. package/docs/styleguide/ux/components.md +53 -12
  3. package/docs/styleguide/ux/images/cards.png +0 -0
  4. package/docs/styleguide/ux/patterns.md +27 -0
  5. package/docs/ui_engineering.md +2 -2
  6. package/eslint.config.mjs +1 -0
  7. package/front_end/Tests.js +2 -0
  8. package/front_end/core/host/InspectorFrontendHost.ts +26 -558
  9. package/front_end/core/host/InspectorFrontendHostAPI.ts +6 -3
  10. package/front_end/core/host/InspectorFrontendHostStub.ts +558 -0
  11. package/front_end/core/host/ResourceLoader.ts +9 -23
  12. package/front_end/core/host/UserMetrics.ts +4 -4
  13. package/front_end/core/root/DevToolsContext.ts +4 -0
  14. package/front_end/core/root/Runtime.ts +10 -0
  15. package/front_end/core/sdk/CSSMatchedStyles.ts +2 -2
  16. package/front_end/core/sdk/CSSModel.ts +24 -24
  17. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +11 -11
  18. package/front_end/core/sdk/CSSQuery.ts +1 -1
  19. package/front_end/core/sdk/CSSRule.ts +2 -2
  20. package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
  21. package/front_end/core/sdk/CSSStyleSheetHeader.ts +1 -1
  22. package/front_end/core/sdk/DOMModel.ts +3 -0
  23. package/front_end/core/sdk/NetworkManager.ts +41 -41
  24. package/front_end/core/sdk/NetworkRequest.ts +4 -0
  25. package/front_end/core/sdk/OverlayModel.ts +2 -2
  26. package/front_end/core/sdk/PageResourceLoader.ts +71 -38
  27. package/front_end/core/sdk/SourceMap.ts +6 -0
  28. package/front_end/core/sdk/SourceMapCache.ts +21 -0
  29. package/front_end/core/sdk/SourceMapManager.ts +14 -7
  30. package/front_end/core/sdk/SourceMapScopesInfo.ts +6 -2
  31. package/front_end/core/sdk/TargetManager.ts +14 -2
  32. package/front_end/core/sdk/sdk-meta.ts +13 -0
  33. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +1 -0
  34. package/front_end/entrypoints/formatter_worker/ScopeParser.ts +1 -1
  35. package/front_end/entrypoints/main/MainImpl.ts +5 -4
  36. package/front_end/foundation/Universe.ts +8 -1
  37. package/front_end/generated/Deprecation.ts +18 -4
  38. package/front_end/generated/InspectorBackendCommands.ts +38 -33
  39. package/front_end/generated/SupportedCSSProperties.js +41 -41
  40. package/front_end/generated/protocol-mapping.d.ts +20 -0
  41. package/front_end/generated/protocol-proxy-api.d.ts +17 -0
  42. package/front_end/generated/protocol.ts +146 -35
  43. package/front_end/models/ai_assistance/AiConversation.ts +5 -4
  44. package/front_end/models/ai_assistance/BuiltInAi.ts +79 -5
  45. package/front_end/models/ai_assistance/ChangeManager.ts +4 -4
  46. package/front_end/models/ai_assistance/ConversationHandler.ts +0 -15
  47. package/front_end/models/ai_assistance/agents/AiAgent.ts +9 -6
  48. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +135 -3
  49. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +24 -0
  50. package/front_end/models/bindings/CompilerScriptMapping.ts +43 -0
  51. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +19 -0
  52. package/front_end/models/bindings/ResourceMapping.ts +73 -0
  53. package/front_end/models/bindings/ResourceScriptMapping.ts +50 -0
  54. package/front_end/models/issues_manager/AttributionReportingIssue.ts +6 -8
  55. package/front_end/models/issues_manager/BounceTrackingIssue.ts +4 -14
  56. package/front_end/models/issues_manager/ClientHintIssue.ts +5 -12
  57. package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +5 -12
  58. package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +7 -14
  59. package/front_end/models/issues_manager/CookieIssue.ts +27 -30
  60. package/front_end/models/issues_manager/CorsIssue.ts +8 -17
  61. package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +5 -8
  62. package/front_end/models/issues_manager/DeprecationIssue.ts +7 -14
  63. package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +7 -14
  64. package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +4 -11
  65. package/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.ts +4 -11
  66. package/front_end/models/issues_manager/GenericIssue.ts +28 -16
  67. package/front_end/models/issues_manager/HeavyAdIssue.ts +4 -11
  68. package/front_end/models/issues_manager/Issue.ts +12 -4
  69. package/front_end/models/issues_manager/IssueAggregator.ts +8 -2
  70. package/front_end/models/issues_manager/LowTextContrastIssue.ts +3 -10
  71. package/front_end/models/issues_manager/MixedContentIssue.ts +7 -13
  72. package/front_end/models/issues_manager/PartitioningBlobURLIssue.ts +4 -11
  73. package/front_end/models/issues_manager/PropertyRuleIssue.ts +6 -12
  74. package/front_end/models/issues_manager/QuirksModeIssue.ts +3 -10
  75. package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +7 -13
  76. package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +4 -11
  77. package/front_end/models/issues_manager/SharedDictionaryIssue.ts +6 -13
  78. package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +8 -13
  79. package/front_end/models/issues_manager/UnencodedDigestIssue.ts +2 -9
  80. package/front_end/models/issues_manager/descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
  81. package/front_end/models/javascript_metadata/NativeFunctions.js +7 -16
  82. package/front_end/models/source_map_scopes/FunctionCodeResolver.snapshot.txt +98 -0
  83. package/front_end/models/source_map_scopes/FunctionCodeResolver.ts +270 -0
  84. package/front_end/models/source_map_scopes/source_map_scopes.ts +2 -0
  85. package/front_end/models/workspace/UISourceCode.ts +51 -44
  86. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +76 -34
  87. package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -0
  88. package/front_end/panels/ai_assistance/components/ChatView.ts +23 -11
  89. package/front_end/panels/application/AppManifestView.ts +7 -6
  90. package/front_end/panels/application/ApplicationPanelSidebar.ts +21 -21
  91. package/front_end/panels/application/BackForwardCacheTreeElement.ts +2 -2
  92. package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +2 -2
  93. package/front_end/panels/application/FrameDetailsView.ts +5 -6
  94. package/front_end/panels/application/InterestGroupTreeElement.ts +2 -2
  95. package/front_end/panels/application/OpenedWindowDetailsView.ts +2 -2
  96. package/front_end/panels/application/OriginTrialTreeView.ts +1 -1
  97. package/front_end/panels/application/PreloadingTreeElement.ts +3 -3
  98. package/front_end/panels/application/ReportingApiTreeElement.ts +2 -2
  99. package/front_end/panels/application/ServiceWorkerCacheTreeElement.ts +3 -3
  100. package/front_end/panels/application/ServiceWorkersView.ts +2 -2
  101. package/front_end/panels/application/SharedStorageListTreeElement.ts +2 -2
  102. package/front_end/panels/application/StorageBucketsTreeElement.ts +3 -3
  103. package/front_end/panels/application/StorageView.ts +2 -2
  104. package/front_end/panels/application/TrustTokensTreeElement.ts +4 -8
  105. package/front_end/panels/application/components/PermissionsPolicySection.ts +202 -158
  106. package/front_end/panels/application/components/ProtocolHandlersView.ts +118 -81
  107. package/front_end/panels/application/components/ServiceWorkerRouterView.ts +47 -41
  108. package/front_end/panels/application/components/SharedStorageMetadataView.ts +1 -1
  109. package/front_end/panels/application/components/StorageMetadataView.ts +31 -34
  110. package/front_end/panels/application/components/TrustTokensView.ts +77 -69
  111. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
  112. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +1 -1
  113. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +1 -1
  114. package/front_end/panels/changes/ChangesSidebar.ts +2 -0
  115. package/front_end/panels/changes/CombinedDiffView.ts +2 -0
  116. package/front_end/panels/common/AnnotationManager.ts +71 -0
  117. package/front_end/panels/common/PersistenceUtils.ts +6 -7
  118. package/front_end/panels/common/common.ts +1 -0
  119. package/front_end/panels/console/ConsolePrompt.ts +4 -4
  120. package/front_end/panels/console/ConsoleView.ts +5 -4
  121. package/front_end/panels/console/ConsoleViewMessage.ts +16 -15
  122. package/front_end/panels/console/console-meta.ts +0 -13
  123. package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -0
  124. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +1 -1
  125. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +3 -1
  126. package/front_end/panels/elements/CSSRuleValidator.ts +7 -7
  127. package/front_end/panels/elements/CSSRuleValidatorHelper.ts +2 -2
  128. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +3 -3
  129. package/front_end/panels/elements/ElementsPanel.ts +49 -0
  130. package/front_end/panels/elements/ElementsTreeElement.ts +172 -121
  131. package/front_end/panels/elements/ElementsTreeOutline.ts +11 -3
  132. package/front_end/panels/elements/LayoutPane.ts +12 -10
  133. package/front_end/panels/elements/ShortcutTreeElement.ts +2 -2
  134. package/front_end/panels/elements/StyleEditorWidget.ts +2 -2
  135. package/front_end/panels/elements/StylePropertyTreeElement.ts +18 -18
  136. package/front_end/panels/elements/StylesSidebarPane.ts +4 -5
  137. package/front_end/panels/elements/TopLayerContainer.ts +2 -2
  138. package/front_end/panels/elements/components/AdornerManager.ts +3 -3
  139. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -1
  140. package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
  141. package/front_end/panels/elements/components/QueryContainer.ts +1 -1
  142. package/front_end/panels/elements/components/StylePropertyEditor.ts +7 -7
  143. package/front_end/panels/emulation/DeviceModeWrapper.ts +48 -3
  144. package/front_end/panels/explain/components/ConsoleInsight.ts +6 -4
  145. package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
  146. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +2 -2
  147. package/front_end/panels/issues/IssueKindView.ts +2 -2
  148. package/front_end/panels/issues/IssueView.ts +4 -4
  149. package/front_end/panels/js_timeline/js_timeline-meta.ts +4 -2
  150. package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +28 -50
  151. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +15 -11
  152. package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +1 -1
  153. package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +1 -1
  154. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -1
  155. package/front_end/panels/media/PlayerListView.ts +100 -73
  156. package/front_end/panels/media/playerListView.css +5 -0
  157. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +2 -2
  158. package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +4 -5
  159. package/front_end/panels/network/NetworkDataGridNode.ts +3 -3
  160. package/front_end/panels/network/NetworkFrameGrouper.ts +2 -2
  161. package/front_end/panels/network/NetworkItemView.ts +4 -4
  162. package/front_end/panels/network/NetworkLogViewColumns.ts +3 -3
  163. package/front_end/panels/network/RequestConditionsDrawer.ts +5 -5
  164. package/front_end/panels/network/RequestCookiesView.ts +2 -2
  165. package/front_end/panels/network/SignedExchangeInfoView.ts +2 -2
  166. package/front_end/panels/network/components/DirectSocketConnectionView.ts +17 -0
  167. package/front_end/panels/network/components/RequestTrustTokensView.ts +5 -6
  168. package/front_end/panels/network/resourceChunkView.css +4 -0
  169. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +3 -3
  170. package/front_end/panels/profiler/ProfileDataGrid.ts +2 -2
  171. package/front_end/panels/profiler/ProfilesPanel.ts +2 -2
  172. package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
  173. package/front_end/panels/recorder/components/CreateRecordingView.ts +1 -1
  174. package/front_end/panels/recorder/components/ExtensionView.ts +1 -1
  175. package/front_end/panels/recorder/components/RecordingListView.ts +1 -1
  176. package/front_end/panels/recorder/components/RecordingView.ts +1 -1
  177. package/front_end/panels/recorder/components/StepView.ts +1 -1
  178. package/front_end/panels/screencast/ScreencastView.ts +8 -8
  179. package/front_end/panels/search/SearchView.ts +1 -1
  180. package/front_end/panels/security/CookieControlsTreeElement.ts +2 -2
  181. package/front_end/panels/security/CookieControlsView.ts +1 -1
  182. package/front_end/panels/security/CookieReportTreeElement.ts +2 -2
  183. package/front_end/panels/security/SecurityPanel.ts +5 -5
  184. package/front_end/panels/security/SecurityPanelSidebar.ts +3 -4
  185. package/front_end/panels/sensors/LocationsSettingsTab.ts +1 -1
  186. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +1 -1
  187. package/front_end/panels/settings/KeybindsSettingsTab.ts +5 -5
  188. package/front_end/panels/settings/SettingsScreen.ts +7 -8
  189. package/front_end/panels/settings/WorkspaceSettingsTab.ts +1 -1
  190. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +1 -1
  191. package/front_end/panels/snippets/SnippetsQuickOpen.ts +16 -6
  192. package/front_end/panels/sources/BreakpointEditDialog.ts +3 -3
  193. package/front_end/panels/sources/BreakpointsView.ts +1 -1
  194. package/front_end/panels/sources/CSSPlugin.ts +4 -4
  195. package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
  196. package/front_end/panels/sources/DebuggerPausedMessage.ts +3 -3
  197. package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +40 -23
  198. package/front_end/panels/sources/GoToLineQuickOpen.ts +11 -5
  199. package/front_end/panels/sources/NavigatorView.ts +4 -4
  200. package/front_end/panels/sources/OpenFileQuickOpen.ts +11 -16
  201. package/front_end/panels/sources/OutlineQuickOpen.ts +23 -23
  202. package/front_end/panels/sources/ProfilePlugin.ts +21 -12
  203. package/front_end/panels/sources/SourcesView.ts +2 -2
  204. package/front_end/panels/sources/TabbedEditorContainer.ts +4 -5
  205. package/front_end/panels/sources/ThreadsSidebarPane.ts +2 -2
  206. package/front_end/panels/sources/UISourceCodeFrame.ts +5 -6
  207. package/front_end/panels/sources/filteredUISourceCodeListProvider.css +41 -0
  208. package/front_end/panels/timeline/TimelineHistoryManager.ts +2 -2
  209. package/front_end/panels/timeline/TimelinePanel.ts +29 -25
  210. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +3 -3
  211. package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +1 -1
  212. package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
  213. package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +1 -1
  214. package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +1 -1
  215. package/front_end/panels/timeline/components/OriginMap.ts +1 -1
  216. package/front_end/panels/timeline/components/insights/Checklist.ts +1 -1
  217. package/front_end/panels/timeline/components/insights/DOMSize.ts +1 -1
  218. package/front_end/panels/timeline/components/insights/ImageDelivery.ts +1 -1
  219. package/front_end/panels/timeline/components/insights/NetworkDependencyTree.ts +1 -1
  220. package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +2 -2
  221. package/front_end/panels/timeline/docs/flame_chart_migration.md +11 -16
  222. package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
  223. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +1 -1
  224. package/front_end/panels/timeline/timeline-meta.ts +3 -2
  225. package/front_end/panels/utils/utils.ts +18 -3
  226. package/front_end/panels/whats_new/ReleaseNoteText.ts +10 -20
  227. package/front_end/panels/whats_new/resources/WNDT.md +8 -8
  228. package/front_end/third_party/chromium/README.chromium +1 -1
  229. package/front_end/third_party/puppeteer/third_party/mitt/README.chromium +1 -0
  230. package/front_end/third_party/puppeteer/third_party/parsel/README.chromium +1 -0
  231. package/front_end/third_party/puppeteer/third_party/rxjs/README.chromium +1 -0
  232. package/front_end/ui/components/adorners/Adorner.ts +21 -1
  233. package/front_end/ui/components/annotations/AnnotationRepository.ts +98 -0
  234. package/front_end/ui/components/annotations/AnnotationType.ts +10 -0
  235. package/front_end/ui/components/annotations/annotations.ts +6 -0
  236. package/front_end/ui/components/buttons/Button.ts +2 -2
  237. package/front_end/ui/components/buttons/FloatingButton.ts +2 -2
  238. package/front_end/ui/components/chrome_link/ChromeLink.ts +1 -1
  239. package/front_end/ui/components/dialogs/ButtonDialog.ts +1 -1
  240. package/front_end/ui/components/dialogs/Dialog.ts +1 -1
  241. package/front_end/ui/components/dialogs/ShortcutDialog.ts +1 -0
  242. package/front_end/ui/components/diff_view/DiffView.ts +1 -1
  243. package/front_end/ui/components/expandable_list/ExpandableList.ts +1 -1
  244. package/front_end/ui/components/highlighting/HighlightElement.ts +16 -2
  245. package/front_end/ui/components/highlighting/MarkupHighlight.ts +162 -0
  246. package/front_end/ui/components/highlighting/highlighting.ts +7 -0
  247. package/front_end/ui/components/icon_button/FileSourceIcon.ts +2 -2
  248. package/front_end/ui/components/icon_button/IconButton.ts +2 -2
  249. package/front_end/ui/components/icon_button/icon_button.ts +0 -2
  250. package/front_end/ui/components/issue_counter/IssueCounter.ts +2 -2
  251. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
  252. package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -1
  253. package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
  254. package/front_end/ui/components/list/List.ts +184 -0
  255. package/front_end/ui/components/list/list.css +90 -0
  256. package/front_end/ui/components/{cards/cards.ts → list/lists.ts} +3 -3
  257. package/front_end/ui/components/markdown_view/CodeBlock.ts +1 -1
  258. package/front_end/ui/components/markdown_view/MarkdownImage.ts +4 -4
  259. package/front_end/ui/components/markdown_view/MarkdownLink.ts +1 -1
  260. package/front_end/ui/components/markdown_view/MarkdownView.ts +1 -1
  261. package/front_end/ui/components/menus/Menu.ts +1 -1
  262. package/front_end/ui/components/menus/SelectMenu.ts +1 -1
  263. package/front_end/ui/components/node_text/NodeText.ts +1 -1
  264. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
  265. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
  266. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
  267. package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +1 -1
  268. package/front_end/ui/components/report_view/ReportView.ts +1 -1
  269. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +2 -2
  270. package/front_end/ui/components/settings/SettingCheckbox.ts +1 -1
  271. package/front_end/ui/components/settings/SettingDeprecationWarning.ts +2 -2
  272. package/front_end/ui/components/snackbars/Snackbar.ts +1 -1
  273. package/front_end/ui/components/spinners/Spinner.ts +1 -1
  274. package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +1 -1
  275. package/front_end/ui/components/suggestion_input/SuggestionInput.ts +1 -0
  276. package/front_end/ui/components/survey_link/SurveyLink.ts +2 -2
  277. package/front_end/ui/components/switch/SwitchImpl.ts +1 -1
  278. package/front_end/ui/components/text_editor/TextEditor.ts +1 -0
  279. package/front_end/ui/components/text_editor/config.ts +2 -2
  280. package/front_end/ui/components/text_prompt/TextPrompt.ts +1 -1
  281. package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
  282. package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -1
  283. package/front_end/ui/kit/cards/Card.docs.ts +43 -0
  284. package/front_end/ui/{components/icon_button → kit/icons}/Icon.docs.ts +3 -4
  285. package/front_end/ui/{components/icon_button → kit/icons}/Icon.ts +6 -4
  286. package/front_end/ui/kit/kit.ts +6 -0
  287. package/front_end/ui/legacy/Infobar.ts +3 -3
  288. package/front_end/ui/legacy/InspectorView.ts +3 -3
  289. package/front_end/ui/legacy/SearchableView.ts +2 -2
  290. package/front_end/ui/legacy/SoftContextMenu.ts +5 -5
  291. package/front_end/ui/legacy/SoftDropDown.ts +2 -2
  292. package/front_end/ui/legacy/TabbedPane.ts +106 -8
  293. package/front_end/ui/legacy/Toolbar.ts +3 -3
  294. package/front_end/ui/legacy/Treeoutline.ts +2 -2
  295. package/front_end/ui/legacy/UIUtils.ts +4 -188
  296. package/front_end/ui/legacy/ViewManager.ts +27 -12
  297. package/front_end/ui/legacy/ViewRegistration.ts +21 -22
  298. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +8 -8
  299. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +4 -4
  300. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +4 -4
  301. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +2 -2
  302. package/front_end/ui/legacy/components/inline_editor/Swatches.ts +5 -5
  303. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
  304. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +5 -4
  305. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +73 -35
  306. package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +11 -2
  307. package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +3 -3
  308. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +23 -31
  309. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +11 -27
  310. package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +11 -15
  311. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +18 -65
  312. package/front_end/ui/legacy/components/source_frame/JSONView.ts +2 -1
  313. package/front_end/ui/legacy/components/utils/Linkifier.ts +3 -3
  314. package/front_end/ui/legacy/tabbedPane.css +10 -0
  315. package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
  316. package/inspector_overlay/README.md +3 -3
  317. package/mcp/HostBindings.ts +310 -0
  318. package/mcp/mcp.ts +18 -0
  319. package/mcp/tsconfig.json +6 -1
  320. package/package.json +26 -24
  321. /package/front_end/ui/{components → kit}/cards/Card.ts +0 -0
  322. /package/front_end/ui/{components → kit}/cards/card.css +0 -0
  323. /package/front_end/ui/{components/icon_button → kit/icons}/icon.css +0 -0
@@ -503,6 +503,8 @@ export const generatedProperties = [
503
503
  "grid-auto-rows",
504
504
  "grid-column-end",
505
505
  "grid-column-start",
506
+ "grid-lanes-direction",
507
+ "grid-lanes-fill",
506
508
  "grid-row-end",
507
509
  "grid-row-start",
508
510
  "grid-template-areas",
@@ -559,8 +561,6 @@ export const generatedProperties = [
559
561
  "mask-repeat",
560
562
  "mask-size",
561
563
  "mask-type",
562
- "masonry-direction",
563
- "masonry-fill",
564
564
  "math-depth",
565
565
  "math-shift",
566
566
  "math-style",
@@ -2647,11 +2647,34 @@ export const generatedProperties = [
2647
2647
  "longhands": [
2648
2648
  "grid-template-areas",
2649
2649
  "grid-template-columns",
2650
- "masonry-direction",
2651
- "masonry-fill"
2650
+ "grid-lanes-direction",
2651
+ "grid-lanes-fill"
2652
2652
  ],
2653
2653
  "name": "grid-lanes"
2654
2654
  },
2655
+ {
2656
+ "keywords": [
2657
+ "row",
2658
+ "row-reverse",
2659
+ "column",
2660
+ "column-reverse"
2661
+ ],
2662
+ "name": "grid-lanes-direction"
2663
+ },
2664
+ {
2665
+ "keywords": [
2666
+ "normal",
2667
+ "reverse"
2668
+ ],
2669
+ "name": "grid-lanes-fill"
2670
+ },
2671
+ {
2672
+ "longhands": [
2673
+ "grid-lanes-direction",
2674
+ "grid-lanes-fill"
2675
+ ],
2676
+ "name": "grid-lanes-flow"
2677
+ },
2655
2678
  {
2656
2679
  "longhands": [
2657
2680
  "grid-row-start",
@@ -3096,29 +3119,6 @@ export const generatedProperties = [
3096
3119
  ],
3097
3120
  "name": "mask-type"
3098
3121
  },
3099
- {
3100
- "keywords": [
3101
- "row",
3102
- "row-reverse",
3103
- "column",
3104
- "column-reverse"
3105
- ],
3106
- "name": "masonry-direction"
3107
- },
3108
- {
3109
- "keywords": [
3110
- "normal",
3111
- "reverse"
3112
- ],
3113
- "name": "masonry-fill"
3114
- },
3115
- {
3116
- "longhands": [
3117
- "masonry-direction",
3118
- "masonry-fill"
3119
- ],
3120
- "name": "masonry-flow"
3121
- },
3122
3122
  {
3123
3123
  "inherited": true,
3124
3124
  "name": "math-depth"
@@ -5966,6 +5966,20 @@ export const generatedPropertyValues = {
5966
5966
  "auto"
5967
5967
  ]
5968
5968
  },
5969
+ "grid-lanes-direction": {
5970
+ "values": [
5971
+ "row",
5972
+ "row-reverse",
5973
+ "column",
5974
+ "column-reverse"
5975
+ ]
5976
+ },
5977
+ "grid-lanes-fill": {
5978
+ "values": [
5979
+ "normal",
5980
+ "reverse"
5981
+ ]
5982
+ },
5969
5983
  "grid-row-end": {
5970
5984
  "values": [
5971
5985
  "auto"
@@ -6184,20 +6198,6 @@ export const generatedPropertyValues = {
6184
6198
  "alpha"
6185
6199
  ]
6186
6200
  },
6187
- "masonry-direction": {
6188
- "values": [
6189
- "row",
6190
- "row-reverse",
6191
- "column",
6192
- "column-reverse"
6193
- ]
6194
- },
6195
- "masonry-fill": {
6196
- "values": [
6197
- "normal",
6198
- "reverse"
6199
- ]
6200
- },
6201
6201
  "math-shift": {
6202
6202
  "values": [
6203
6203
  "normal",
@@ -116,6 +116,10 @@ export namespace ProtocolMapping {
116
116
  * Fired when `Element`'s attribute is modified.
117
117
  */
118
118
  'DOM.attributeModified': [Protocol.DOM.AttributeModifiedEvent];
119
+ /**
120
+ * Fired when `Element`'s adoptedStyleSheets are modified.
121
+ */
122
+ 'DOM.adoptedStyleSheetsModified': [Protocol.DOM.AdoptedStyleSheetsModifiedEvent];
119
123
  /**
120
124
  * Fired when `Element`'s attribute is removed.
121
125
  */
@@ -4259,6 +4263,14 @@ export namespace ProtocolMapping {
4259
4263
  paramsType: [Protocol.Page.SetPrerenderingAllowedRequest];
4260
4264
  returnType: void;
4261
4265
  };
4266
+ /**
4267
+ * Get the annotated page content for the main frame.
4268
+ * This is an experimental command that is subject to change.
4269
+ */
4270
+ 'Page.getAnnotatedPageContent': {
4271
+ paramsType: [Protocol.Page.GetAnnotatedPageContentRequest?];
4272
+ returnType: Protocol.Page.GetAnnotatedPageContentResponse;
4273
+ };
4262
4274
  /**
4263
4275
  * Disable collecting and reporting metrics.
4264
4276
  */
@@ -4825,6 +4837,14 @@ export namespace ProtocolMapping {
4825
4837
  paramsType: [Protocol.Target.SetRemoteLocationsRequest];
4826
4838
  returnType: void;
4827
4839
  };
4840
+ /**
4841
+ * Gets the targetId of the DevTools page target opened for the given target
4842
+ * (if any).
4843
+ */
4844
+ 'Target.getDevToolsTarget': {
4845
+ paramsType: [Protocol.Target.GetDevToolsTargetRequest];
4846
+ returnType: Protocol.Target.GetDevToolsTargetResponse;
4847
+ };
4828
4848
  /**
4829
4849
  * Opens a DevTools window for the target.
4830
4850
  */
@@ -1339,6 +1339,11 @@ declare namespace ProtocolProxyApi {
1339
1339
  */
1340
1340
  attributeModified(params: Protocol.DOM.AttributeModifiedEvent): void;
1341
1341
 
1342
+ /**
1343
+ * Fired when `Element`'s adoptedStyleSheets are modified.
1344
+ */
1345
+ adoptedStyleSheetsModified(params: Protocol.DOM.AdoptedStyleSheetsModifiedEvent): void;
1346
+
1342
1347
  /**
1343
1348
  * Fired when `Element`'s attribute is removed.
1344
1349
  */
@@ -3472,6 +3477,12 @@ declare namespace ProtocolProxyApi {
3472
3477
  */
3473
3478
  invoke_setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<Protocol.ProtocolResponseWithError>;
3474
3479
 
3480
+ /**
3481
+ * Get the annotated page content for the main frame.
3482
+ * This is an experimental command that is subject to change.
3483
+ */
3484
+ invoke_getAnnotatedPageContent(params: Protocol.Page.GetAnnotatedPageContentRequest): Promise<Protocol.Page.GetAnnotatedPageContentResponse>;
3485
+
3475
3486
  }
3476
3487
  export interface PageDispatcher {
3477
3488
  domContentEventFired(params: Protocol.Page.DomContentEventFiredEvent): void;
@@ -4198,6 +4209,12 @@ declare namespace ProtocolProxyApi {
4198
4209
  */
4199
4210
  invoke_setRemoteLocations(params: Protocol.Target.SetRemoteLocationsRequest): Promise<Protocol.ProtocolResponseWithError>;
4200
4211
 
4212
+ /**
4213
+ * Gets the targetId of the DevTools page target opened for the given target
4214
+ * (if any).
4215
+ */
4216
+ invoke_getDevToolsTarget(params: Protocol.Target.GetDevToolsTargetRequest): Promise<Protocol.Target.GetDevToolsTargetResponse>;
4217
+
4201
4218
  /**
4202
4219
  * Opens a DevTools window for the target.
4203
4220
  */
@@ -1461,6 +1461,66 @@ export namespace Audits {
1461
1461
  sourceCodeLocation?: SourceCodeLocation;
1462
1462
  }
1463
1463
 
1464
+ export const enum PermissionElementIssueType {
1465
+ InvalidType = 'InvalidType',
1466
+ FencedFrameDisallowed = 'FencedFrameDisallowed',
1467
+ CspFrameAncestorsMissing = 'CspFrameAncestorsMissing',
1468
+ PermissionsPolicyBlocked = 'PermissionsPolicyBlocked',
1469
+ PaddingRightUnsupported = 'PaddingRightUnsupported',
1470
+ PaddingBottomUnsupported = 'PaddingBottomUnsupported',
1471
+ InsetBoxShadowUnsupported = 'InsetBoxShadowUnsupported',
1472
+ RequestInProgress = 'RequestInProgress',
1473
+ UntrustedEvent = 'UntrustedEvent',
1474
+ RegistrationFailed = 'RegistrationFailed',
1475
+ TypeNotSupported = 'TypeNotSupported',
1476
+ InvalidTypeActivation = 'InvalidTypeActivation',
1477
+ SecurityChecksFailed = 'SecurityChecksFailed',
1478
+ ActivationDisabled = 'ActivationDisabled',
1479
+ GeolocationDeprecated = 'GeolocationDeprecated',
1480
+ InvalidDisplayStyle = 'InvalidDisplayStyle',
1481
+ NonOpaqueColor = 'NonOpaqueColor',
1482
+ LowContrast = 'LowContrast',
1483
+ FontSizeTooSmall = 'FontSizeTooSmall',
1484
+ FontSizeTooLarge = 'FontSizeTooLarge',
1485
+ InvalidSizeValue = 'InvalidSizeValue',
1486
+ }
1487
+
1488
+ /**
1489
+ * This issue warns about improper usage of the <permission> element.
1490
+ */
1491
+ export interface PermissionElementIssueDetails {
1492
+ issueType: PermissionElementIssueType;
1493
+ /**
1494
+ * The value of the type attribute.
1495
+ */
1496
+ type?: string;
1497
+ /**
1498
+ * The node ID of the <permission> element.
1499
+ */
1500
+ nodeId?: DOM.BackendNodeId;
1501
+ /**
1502
+ * True if the issue is a warning, false if it is an error.
1503
+ */
1504
+ isWarning?: boolean;
1505
+ /**
1506
+ * Fields for message construction:
1507
+ * Used for messages that reference a specific permission name
1508
+ */
1509
+ permissionName?: string;
1510
+ /**
1511
+ * Used for messages about occlusion
1512
+ */
1513
+ occluderNodeInfo?: string;
1514
+ /**
1515
+ * Used for messages about occluder's parent
1516
+ */
1517
+ occluderParentNodeInfo?: string;
1518
+ /**
1519
+ * Used for messages about activation disabled reason
1520
+ */
1521
+ disableReason?: string;
1522
+ }
1523
+
1464
1524
  /**
1465
1525
  * A unique identifier for the type of issue. Each type may use one of the
1466
1526
  * optional fields in InspectorIssueDetails to convey more specific
@@ -1493,6 +1553,7 @@ export namespace Audits {
1493
1553
  SRIMessageSignatureIssue = 'SRIMessageSignatureIssue',
1494
1554
  UnencodedDigestIssue = 'UnencodedDigestIssue',
1495
1555
  UserReidentificationIssue = 'UserReidentificationIssue',
1556
+ PermissionElementIssue = 'PermissionElementIssue',
1496
1557
  }
1497
1558
 
1498
1559
  /**
@@ -1530,6 +1591,7 @@ export namespace Audits {
1530
1591
  sriMessageSignatureIssueDetails?: SRIMessageSignatureIssueDetails;
1531
1592
  unencodedDigestIssueDetails?: UnencodedDigestIssueDetails;
1532
1593
  userReidentificationIssueDetails?: UserReidentificationIssueDetails;
1594
+ permissionElementIssueDetails?: PermissionElementIssueDetails;
1533
1595
  }
1534
1596
 
1535
1597
  /**
@@ -2589,8 +2651,6 @@ export namespace Browser {
2589
2651
  */
2590
2652
  export namespace CSS {
2591
2653
 
2592
- export type StyleSheetId = OpaqueIdentifier<string, 'Protocol.CSS.StyleSheetId'>;
2593
-
2594
2654
  /**
2595
2655
  * Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent
2596
2656
  * stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via
@@ -2746,7 +2806,7 @@ export namespace CSS {
2746
2806
  /**
2747
2807
  * The stylesheet identifier.
2748
2808
  */
2749
- styleSheetId: StyleSheetId;
2809
+ styleSheetId: DOM.StyleSheetId;
2750
2810
  /**
2751
2811
  * Owner frame identifier.
2752
2812
  */
@@ -2832,7 +2892,7 @@ export namespace CSS {
2832
2892
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
2833
2893
  * stylesheet rules) this rule came from.
2834
2894
  */
2835
- styleSheetId?: StyleSheetId;
2895
+ styleSheetId?: DOM.StyleSheetId;
2836
2896
  /**
2837
2897
  * Rule selector data.
2838
2898
  */
@@ -2911,7 +2971,7 @@ export namespace CSS {
2911
2971
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
2912
2972
  * stylesheet rules) this rule came from.
2913
2973
  */
2914
- styleSheetId: StyleSheetId;
2974
+ styleSheetId: DOM.StyleSheetId;
2915
2975
  /**
2916
2976
  * Offset of the start of the rule (including selector) from the beginning of the stylesheet.
2917
2977
  */
@@ -2991,7 +3051,7 @@ export namespace CSS {
2991
3051
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
2992
3052
  * stylesheet rules) this rule came from.
2993
3053
  */
2994
- styleSheetId?: StyleSheetId;
3054
+ styleSheetId?: DOM.StyleSheetId;
2995
3055
  /**
2996
3056
  * CSS properties in the style.
2997
3057
  */
@@ -3087,7 +3147,7 @@ export namespace CSS {
3087
3147
  /**
3088
3148
  * Identifier of the stylesheet containing this object (if exists).
3089
3149
  */
3090
- styleSheetId?: StyleSheetId;
3150
+ styleSheetId?: DOM.StyleSheetId;
3091
3151
  /**
3092
3152
  * Array of media queries.
3093
3153
  */
@@ -3150,7 +3210,7 @@ export namespace CSS {
3150
3210
  /**
3151
3211
  * Identifier of the stylesheet containing this object (if exists).
3152
3212
  */
3153
- styleSheetId?: StyleSheetId;
3213
+ styleSheetId?: DOM.StyleSheetId;
3154
3214
  /**
3155
3215
  * Optional name for the container.
3156
3216
  */
@@ -3193,7 +3253,7 @@ export namespace CSS {
3193
3253
  /**
3194
3254
  * Identifier of the stylesheet containing this object (if exists).
3195
3255
  */
3196
- styleSheetId?: StyleSheetId;
3256
+ styleSheetId?: DOM.StyleSheetId;
3197
3257
  }
3198
3258
 
3199
3259
  /**
@@ -3212,7 +3272,7 @@ export namespace CSS {
3212
3272
  /**
3213
3273
  * Identifier of the stylesheet containing this object (if exists).
3214
3274
  */
3215
- styleSheetId?: StyleSheetId;
3275
+ styleSheetId?: DOM.StyleSheetId;
3216
3276
  }
3217
3277
 
3218
3278
  /**
@@ -3231,7 +3291,7 @@ export namespace CSS {
3231
3291
  /**
3232
3292
  * Identifier of the stylesheet containing this object (if exists).
3233
3293
  */
3234
- styleSheetId?: StyleSheetId;
3294
+ styleSheetId?: DOM.StyleSheetId;
3235
3295
  }
3236
3296
 
3237
3297
  /**
@@ -3246,7 +3306,7 @@ export namespace CSS {
3246
3306
  /**
3247
3307
  * Identifier of the stylesheet containing this object (if exists).
3248
3308
  */
3249
- styleSheetId?: StyleSheetId;
3309
+ styleSheetId?: DOM.StyleSheetId;
3250
3310
  }
3251
3311
 
3252
3312
  /**
@@ -3371,7 +3431,7 @@ export namespace CSS {
3371
3431
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
3372
3432
  * stylesheet rules) this rule came from.
3373
3433
  */
3374
- styleSheetId?: StyleSheetId;
3434
+ styleSheetId?: DOM.StyleSheetId;
3375
3435
  /**
3376
3436
  * Parent stylesheet's origin.
3377
3437
  */
@@ -3394,7 +3454,7 @@ export namespace CSS {
3394
3454
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
3395
3455
  * stylesheet rules) this rule came from.
3396
3456
  */
3397
- styleSheetId?: StyleSheetId;
3457
+ styleSheetId?: DOM.StyleSheetId;
3398
3458
  /**
3399
3459
  * Parent stylesheet's origin.
3400
3460
  */
@@ -3466,7 +3526,7 @@ export namespace CSS {
3466
3526
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
3467
3527
  * stylesheet rules) this rule came from.
3468
3528
  */
3469
- styleSheetId?: StyleSheetId;
3529
+ styleSheetId?: DOM.StyleSheetId;
3470
3530
  /**
3471
3531
  * Parent stylesheet's origin.
3472
3532
  */
@@ -3485,7 +3545,7 @@ export namespace CSS {
3485
3545
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
3486
3546
  * stylesheet rules) this rule came from.
3487
3547
  */
3488
- styleSheetId?: StyleSheetId;
3548
+ styleSheetId?: DOM.StyleSheetId;
3489
3549
  /**
3490
3550
  * Parent stylesheet's origin.
3491
3551
  */
@@ -3566,7 +3626,7 @@ export namespace CSS {
3566
3626
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
3567
3627
  * stylesheet rules) this rule came from.
3568
3628
  */
3569
- styleSheetId?: StyleSheetId;
3629
+ styleSheetId?: DOM.StyleSheetId;
3570
3630
  /**
3571
3631
  * Parent stylesheet's origin.
3572
3632
  */
@@ -3589,7 +3649,7 @@ export namespace CSS {
3589
3649
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
3590
3650
  * stylesheet rules) this rule came from.
3591
3651
  */
3592
- styleSheetId?: StyleSheetId;
3652
+ styleSheetId?: DOM.StyleSheetId;
3593
3653
  /**
3594
3654
  * Parent stylesheet's origin.
3595
3655
  */
@@ -3611,7 +3671,7 @@ export namespace CSS {
3611
3671
  /**
3612
3672
  * The css style sheet identifier.
3613
3673
  */
3614
- styleSheetId: StyleSheetId;
3674
+ styleSheetId: DOM.StyleSheetId;
3615
3675
  /**
3616
3676
  * The range of the style text in the enclosing stylesheet.
3617
3677
  */
@@ -3626,7 +3686,7 @@ export namespace CSS {
3626
3686
  /**
3627
3687
  * The css style sheet identifier where a new rule should be inserted.
3628
3688
  */
3629
- styleSheetId: StyleSheetId;
3689
+ styleSheetId: DOM.StyleSheetId;
3630
3690
  /**
3631
3691
  * The text of a new rule.
3632
3692
  */
@@ -3651,7 +3711,7 @@ export namespace CSS {
3651
3711
  }
3652
3712
 
3653
3713
  export interface CollectClassNamesRequest {
3654
- styleSheetId: StyleSheetId;
3714
+ styleSheetId: DOM.StyleSheetId;
3655
3715
  }
3656
3716
 
3657
3717
  export interface CollectClassNamesResponse extends ProtocolResponseWithError {
@@ -3679,7 +3739,7 @@ export namespace CSS {
3679
3739
  /**
3680
3740
  * Identifier of the created "via-inspector" stylesheet.
3681
3741
  */
3682
- styleSheetId: StyleSheetId;
3742
+ styleSheetId: DOM.StyleSheetId;
3683
3743
  }
3684
3744
 
3685
3745
  export interface ForcePseudoStateRequest {
@@ -3903,7 +3963,7 @@ export namespace CSS {
3903
3963
  }
3904
3964
 
3905
3965
  export interface GetStyleSheetTextRequest {
3906
- styleSheetId: StyleSheetId;
3966
+ styleSheetId: DOM.StyleSheetId;
3907
3967
  }
3908
3968
 
3909
3969
  export interface GetStyleSheetTextResponse extends ProtocolResponseWithError {
@@ -3922,7 +3982,7 @@ export namespace CSS {
3922
3982
  }
3923
3983
 
3924
3984
  export interface GetLocationForSelectorRequest {
3925
- styleSheetId: StyleSheetId;
3985
+ styleSheetId: DOM.StyleSheetId;
3926
3986
  selectorText: string;
3927
3987
  }
3928
3988
 
@@ -3955,7 +4015,7 @@ export namespace CSS {
3955
4015
  }
3956
4016
 
3957
4017
  export interface SetPropertyRulePropertyNameRequest {
3958
- styleSheetId: StyleSheetId;
4018
+ styleSheetId: DOM.StyleSheetId;
3959
4019
  range: SourceRange;
3960
4020
  propertyName: string;
3961
4021
  }
@@ -3968,7 +4028,7 @@ export namespace CSS {
3968
4028
  }
3969
4029
 
3970
4030
  export interface SetKeyframeKeyRequest {
3971
- styleSheetId: StyleSheetId;
4031
+ styleSheetId: DOM.StyleSheetId;
3972
4032
  range: SourceRange;
3973
4033
  keyText: string;
3974
4034
  }
@@ -3981,7 +4041,7 @@ export namespace CSS {
3981
4041
  }
3982
4042
 
3983
4043
  export interface SetMediaTextRequest {
3984
- styleSheetId: StyleSheetId;
4044
+ styleSheetId: DOM.StyleSheetId;
3985
4045
  range: SourceRange;
3986
4046
  text: string;
3987
4047
  }
@@ -3994,7 +4054,7 @@ export namespace CSS {
3994
4054
  }
3995
4055
 
3996
4056
  export interface SetContainerQueryTextRequest {
3997
- styleSheetId: StyleSheetId;
4057
+ styleSheetId: DOM.StyleSheetId;
3998
4058
  range: SourceRange;
3999
4059
  text: string;
4000
4060
  }
@@ -4007,7 +4067,7 @@ export namespace CSS {
4007
4067
  }
4008
4068
 
4009
4069
  export interface SetSupportsTextRequest {
4010
- styleSheetId: StyleSheetId;
4070
+ styleSheetId: DOM.StyleSheetId;
4011
4071
  range: SourceRange;
4012
4072
  text: string;
4013
4073
  }
@@ -4020,7 +4080,7 @@ export namespace CSS {
4020
4080
  }
4021
4081
 
4022
4082
  export interface SetScopeTextRequest {
4023
- styleSheetId: StyleSheetId;
4083
+ styleSheetId: DOM.StyleSheetId;
4024
4084
  range: SourceRange;
4025
4085
  text: string;
4026
4086
  }
@@ -4033,7 +4093,7 @@ export namespace CSS {
4033
4093
  }
4034
4094
 
4035
4095
  export interface SetRuleSelectorRequest {
4036
- styleSheetId: StyleSheetId;
4096
+ styleSheetId: DOM.StyleSheetId;
4037
4097
  range: SourceRange;
4038
4098
  selector: string;
4039
4099
  }
@@ -4046,7 +4106,7 @@ export namespace CSS {
4046
4106
  }
4047
4107
 
4048
4108
  export interface SetStyleSheetTextRequest {
4049
- styleSheetId: StyleSheetId;
4109
+ styleSheetId: DOM.StyleSheetId;
4050
4110
  text: string;
4051
4111
  }
4052
4112
 
@@ -4118,7 +4178,7 @@ export namespace CSS {
4118
4178
  * Fired whenever a stylesheet is changed as a result of the client operation.
4119
4179
  */
4120
4180
  export interface StyleSheetChangedEvent {
4121
- styleSheetId: StyleSheetId;
4181
+ styleSheetId: DOM.StyleSheetId;
4122
4182
  }
4123
4183
 
4124
4184
  /**
@@ -4128,7 +4188,7 @@ export namespace CSS {
4128
4188
  /**
4129
4189
  * Identifier of the removed stylesheet.
4130
4190
  */
4131
- styleSheetId: StyleSheetId;
4191
+ styleSheetId: DOM.StyleSheetId;
4132
4192
  }
4133
4193
 
4134
4194
  export interface ComputedStyleUpdatedEvent {
@@ -4407,6 +4467,11 @@ export namespace DOM {
4407
4467
  */
4408
4468
  export type BackendNodeId = OpaqueIdentifier<integer, 'Protocol.DOM.BackendNodeId'>;
4409
4469
 
4470
+ /**
4471
+ * Unique identifier for a CSS stylesheet.
4472
+ */
4473
+ export type StyleSheetId = OpaqueIdentifier<string, 'Protocol.DOM.StyleSheetId'>;
4474
+
4410
4475
  /**
4411
4476
  * Backend node with a friendly name.
4412
4477
  */
@@ -4644,6 +4709,7 @@ export namespace DOM {
4644
4709
  assignedSlot?: BackendNode;
4645
4710
  isScrollable?: boolean;
4646
4711
  affectedByStartingStyles?: boolean;
4712
+ adoptedStyleSheets?: StyleSheetId[];
4647
4713
  }
4648
4714
 
4649
4715
  /**
@@ -5561,6 +5627,20 @@ export namespace DOM {
5561
5627
  value: string;
5562
5628
  }
5563
5629
 
5630
+ /**
5631
+ * Fired when `Element`'s adoptedStyleSheets are modified.
5632
+ */
5633
+ export interface AdoptedStyleSheetsModifiedEvent {
5634
+ /**
5635
+ * Id of the node that has changed.
5636
+ */
5637
+ nodeId: NodeId;
5638
+ /**
5639
+ * New adoptedStyleSheets array.
5640
+ */
5641
+ adoptedStyleSheets: StyleSheetId[];
5642
+ }
5643
+
5564
5644
  /**
5565
5645
  * Fired when `Element`'s attribute is removed.
5566
5646
  */
@@ -13590,6 +13670,7 @@ export namespace Page {
13590
13670
  AmbientLightSensor = 'ambient-light-sensor',
13591
13671
  AriaNotify = 'aria-notify',
13592
13672
  AttributionReporting = 'attribution-reporting',
13673
+ Autofill = 'autofill',
13593
13674
  Autoplay = 'autoplay',
13594
13675
  Bluetooth = 'bluetooth',
13595
13676
  BrowsingTopics = 'browsing-topics',
@@ -13655,6 +13736,7 @@ export namespace Page {
13655
13736
  LocalFonts = 'local-fonts',
13656
13737
  LocalNetworkAccess = 'local-network-access',
13657
13738
  Magnetometer = 'magnetometer',
13739
+ ManualText = 'manual-text',
13658
13740
  MediaPlaybackWhileNotVisible = 'media-playback-while-not-visible',
13659
13741
  Microphone = 'microphone',
13660
13742
  Midi = 'midi',
@@ -13672,7 +13754,6 @@ export namespace Page {
13672
13754
  RunAdAuction = 'run-ad-auction',
13673
13755
  ScreenWakeLock = 'screen-wake-lock',
13674
13756
  Serial = 'serial',
13675
- SharedAutofill = 'shared-autofill',
13676
13757
  SharedStorage = 'shared-storage',
13677
13758
  SharedStorageSelectUrl = 'shared-storage-select-url',
13678
13759
  SmartCard = 'smart-card',
@@ -15399,6 +15480,22 @@ export namespace Page {
15399
15480
  isAllowed: boolean;
15400
15481
  }
15401
15482
 
15483
+ export interface GetAnnotatedPageContentRequest {
15484
+ /**
15485
+ * Whether to include actionable information. Defaults to true.
15486
+ */
15487
+ includeActionableInformation?: boolean;
15488
+ }
15489
+
15490
+ export interface GetAnnotatedPageContentResponse extends ProtocolResponseWithError {
15491
+ /**
15492
+ * The annotated page content as a base64 encoded protobuf.
15493
+ * The format is defined by the `AnnotatedPageContent` message in
15494
+ * components/optimization_guide/proto/features/common_quality_data.proto
15495
+ */
15496
+ content: binary;
15497
+ }
15498
+
15402
15499
  export interface DomContentEventFiredEvent {
15403
15500
  timestamp: Network.MonotonicTime;
15404
15501
  }
@@ -18466,6 +18563,20 @@ export namespace Target {
18466
18563
  locations: RemoteLocation[];
18467
18564
  }
18468
18565
 
18566
+ export interface GetDevToolsTargetRequest {
18567
+ /**
18568
+ * Page or tab target ID.
18569
+ */
18570
+ targetId: TargetID;
18571
+ }
18572
+
18573
+ export interface GetDevToolsTargetResponse extends ProtocolResponseWithError {
18574
+ /**
18575
+ * The targetId of DevTools page target if exists.
18576
+ */
18577
+ targetId?: TargetID;
18578
+ }
18579
+
18469
18580
  export interface OpenDevToolsRequest {
18470
18581
  /**
18471
18582
  * This can be the page or tab target ID.