chrome-devtools-frontend 1.0.954845 → 1.0.956401

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 (341) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTHORS +1 -0
  3. package/config/gni/devtools_grd_files.gni +0 -1
  4. package/config/owner/COMMON_OWNERS +2 -2
  5. package/front_end/.eslintrc.js +1 -11
  6. package/front_end/core/common/Console.ts +1 -1
  7. package/front_end/core/common/ResolverBase.ts +1 -1
  8. package/front_end/core/common/Throttler.ts +1 -1
  9. package/front_end/core/common/Worker.ts +4 -4
  10. package/front_end/core/host/InspectorFrontendHost.ts +1 -1
  11. package/front_end/core/host/ResourceLoader.ts +2 -2
  12. package/front_end/core/i18n/DevToolsLocale.ts +0 -2
  13. package/front_end/core/i18n/i18nImpl.ts +0 -2
  14. package/front_end/core/i18n/locales/en-US.json +3 -3
  15. package/front_end/core/i18n/locales/en-XL.json +3 -3
  16. package/front_end/core/sdk/AccessibilityModel.ts +1 -1
  17. package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
  18. package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
  19. package/front_end/core/sdk/CSSModel.ts +7 -7
  20. package/front_end/core/sdk/CSSProperty.ts +1 -1
  21. package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
  22. package/front_end/core/sdk/ChildTargetManager.ts +6 -6
  23. package/front_end/core/sdk/Connections.ts +2 -2
  24. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  25. package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
  26. package/front_end/core/sdk/DOMModel.ts +17 -17
  27. package/front_end/core/sdk/DebuggerModel.ts +24 -24
  28. package/front_end/core/sdk/EmulationModel.ts +16 -16
  29. package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
  30. package/front_end/core/sdk/IsolateManager.ts +2 -2
  31. package/front_end/core/sdk/IssuesModel.ts +1 -1
  32. package/front_end/core/sdk/LogModel.ts +3 -3
  33. package/front_end/core/sdk/NetworkManager.ts +25 -25
  34. package/front_end/core/sdk/OverlayModel.ts +23 -23
  35. package/front_end/core/sdk/PageResourceLoader.ts +1 -1
  36. package/front_end/core/sdk/PaintProfiler.ts +1 -1
  37. package/front_end/core/sdk/RemoteObject.ts +2 -2
  38. package/front_end/core/sdk/Resource.ts +2 -2
  39. package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
  40. package/front_end/core/sdk/RuntimeModel.ts +11 -11
  41. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
  42. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
  43. package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
  44. package/front_end/core/sdk/SourceMapManager.ts +1 -1
  45. package/front_end/core/sdk/TargetManager.ts +2 -2
  46. package/front_end/core/sdk/TracingManager.ts +1 -1
  47. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +10 -0
  48. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +3 -4
  49. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
  50. package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
  51. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
  52. package/front_end/entrypoints/js_app/js_app.ts +2 -2
  53. package/front_end/entrypoints/main/MainImpl.ts +31 -23
  54. package/front_end/entrypoints/main/main-meta.ts +1 -1
  55. package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
  56. package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
  57. package/front_end/generated/ARIAProperties.js +1 -1
  58. package/front_end/generated/InspectorBackendCommands.js +5 -1
  59. package/front_end/generated/SupportedCSSProperties.js +15 -15
  60. package/front_end/generated/protocol.d.ts +13 -0
  61. package/front_end/global_typings/global_defs.d.ts +0 -1
  62. package/front_end/models/bindings/BreakpointManager.ts +21 -23
  63. package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
  64. package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
  65. package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
  66. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
  67. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
  68. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
  69. package/front_end/models/bindings/FileUtils.ts +5 -5
  70. package/front_end/models/bindings/IgnoreListManager.ts +4 -4
  71. package/front_end/models/bindings/LiveLocation.ts +9 -0
  72. package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
  73. package/front_end/models/bindings/ResourceMapping.ts +1 -1
  74. package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
  75. package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
  76. package/front_end/models/bindings/TempFile.ts +1 -1
  77. package/front_end/models/emulation/DeviceModeModel.ts +5 -5
  78. package/front_end/models/emulation/EmulatedDevices.ts +1 -1
  79. package/front_end/models/extensions/ExtensionPanel.ts +1 -1
  80. package/front_end/models/extensions/ExtensionServer.ts +8 -8
  81. package/front_end/models/formatter/FormatterWorkerPool.ts +2 -12
  82. package/front_end/models/formatter/ScriptFormatter.ts +3 -3
  83. package/front_end/models/formatter/SourceFormatter.ts +2 -2
  84. package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
  85. package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
  86. package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
  87. package/front_end/models/persistence/Automapping.ts +3 -3
  88. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
  89. package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
  90. package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
  91. package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
  92. package/front_end/models/persistence/PersistenceActions.ts +3 -3
  93. package/front_end/models/persistence/PersistenceImpl.ts +2 -2
  94. package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
  95. package/front_end/models/workspace/UISourceCode.ts +2 -2
  96. package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
  97. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
  98. package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
  99. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
  100. package/front_end/panels/animation/AnimationModel.ts +6 -6
  101. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  102. package/front_end/panels/animation/AnimationUI.ts +3 -3
  103. package/front_end/panels/application/AppManifestView.ts +4 -4
  104. package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
  105. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
  106. package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
  107. package/front_end/panels/application/BackgroundServiceView.ts +3 -3
  108. package/front_end/panels/application/CookieItemsView.ts +5 -5
  109. package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
  110. package/front_end/panels/application/DOMStorageModel.ts +4 -4
  111. package/front_end/panels/application/DatabaseModel.ts +2 -2
  112. package/front_end/panels/application/DatabaseQueryView.ts +2 -2
  113. package/front_end/panels/application/DatabaseTableView.ts +1 -1
  114. package/front_end/panels/application/IndexedDBModel.ts +11 -11
  115. package/front_end/panels/application/IndexedDBViews.ts +5 -5
  116. package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
  117. package/front_end/panels/application/ReportingApiView.ts +1 -1
  118. package/front_end/panels/application/ResourcesPanel.ts +2 -2
  119. package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
  120. package/front_end/panels/application/ServiceWorkersView.ts +15 -15
  121. package/front_end/panels/application/StorageView.ts +5 -5
  122. package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
  123. package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
  124. package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
  125. package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
  126. package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
  127. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
  128. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
  129. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
  130. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
  131. package/front_end/panels/changes/ChangesView.ts +4 -4
  132. package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
  133. package/front_end/panels/console/ConsoleFilter.ts +17 -2
  134. package/front_end/panels/console/ConsoleFormat.ts +5 -4
  135. package/front_end/panels/console/ConsolePinPane.ts +4 -4
  136. package/front_end/panels/console/ConsolePrompt.ts +4 -4
  137. package/front_end/panels/console/ConsoleView.ts +96 -71
  138. package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
  139. package/front_end/panels/console/consoleView.css +36 -0
  140. package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
  141. package/front_end/panels/coverage/CoverageListView.ts +3 -3
  142. package/front_end/panels/coverage/CoverageModel.ts +3 -3
  143. package/front_end/panels/coverage/CoverageView.ts +6 -6
  144. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
  145. package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
  146. package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
  147. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
  148. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
  149. package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
  150. package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
  151. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
  152. package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
  153. package/front_end/panels/elements/DOMLinkifier.ts +2 -2
  154. package/front_end/panels/elements/ElementsPanel.ts +19 -19
  155. package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
  156. package/front_end/panels/elements/ElementsTreeElement.ts +26 -25
  157. package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
  158. package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
  159. package/front_end/panels/elements/InspectElementModeController.ts +3 -3
  160. package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
  161. package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
  162. package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
  163. package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
  164. package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
  165. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  166. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
  167. package/front_end/panels/elements/elementsPanel.css +1 -0
  168. package/front_end/panels/elements/elementsTreeOutline.css +6 -1
  169. package/front_end/panels/emulation/AdvancedApp.ts +2 -2
  170. package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
  171. package/front_end/panels/emulation/DeviceModeView.ts +2 -2
  172. package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
  173. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
  174. package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
  175. package/front_end/panels/input/InputModel.ts +2 -2
  176. package/front_end/panels/input/InputTimeline.ts +6 -6
  177. package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
  178. package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
  179. package/front_end/panels/issues/AffectedElementsView.ts +1 -1
  180. package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
  181. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
  182. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
  183. package/front_end/panels/issues/IssueView.ts +1 -1
  184. package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
  185. package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
  186. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  187. package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
  188. package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
  189. package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
  190. package/front_end/panels/layers/LayerTreeModel.ts +4 -4
  191. package/front_end/panels/layers/LayersPanel.ts +4 -4
  192. package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
  193. package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
  194. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
  195. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
  196. package/front_end/panels/media/MediaModel.ts +1 -1
  197. package/front_end/panels/media/PlayerListView.ts +1 -1
  198. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
  199. package/front_end/panels/network/BinaryResourceView.ts +1 -1
  200. package/front_end/panels/network/BlockedURLsPane.ts +5 -5
  201. package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
  202. package/front_end/panels/network/NetworkItemView.ts +2 -2
  203. package/front_end/panels/network/NetworkLogView.ts +4 -4
  204. package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
  205. package/front_end/panels/network/NetworkPanel.ts +8 -8
  206. package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
  207. package/front_end/panels/network/RequestHeadersView.ts +4 -3
  208. package/front_end/panels/network/RequestPayloadView.ts +8 -8
  209. package/front_end/panels/network/RequestPreviewView.ts +1 -1
  210. package/front_end/panels/network/RequestResponseView.ts +2 -2
  211. package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
  212. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
  213. package/front_end/panels/profiler/CPUProfileView.ts +4 -4
  214. package/front_end/panels/profiler/HeapProfileView.ts +6 -6
  215. package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
  216. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
  217. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
  218. package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
  219. package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
  220. package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
  221. package/front_end/panels/profiler/ProfileView.ts +3 -3
  222. package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
  223. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
  224. package/front_end/panels/screencast/InputModel.ts +3 -3
  225. package/front_end/panels/screencast/ScreencastView.ts +10 -10
  226. package/front_end/panels/search/SearchResultsPane.ts +1 -1
  227. package/front_end/panels/search/SearchView.ts +2 -2
  228. package/front_end/panels/security/SecurityModel.ts +1 -1
  229. package/front_end/panels/security/SecurityPanel.ts +2 -2
  230. package/front_end/panels/sensors/SensorsView.ts +3 -2
  231. package/front_end/panels/settings/SettingsScreen.ts +5 -5
  232. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  233. package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
  234. package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
  235. package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
  236. package/front_end/panels/sources/CoveragePlugin.ts +3 -3
  237. package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
  238. package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
  239. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  240. package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
  241. package/front_end/panels/sources/NavigatorView.ts +6 -6
  242. package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
  243. package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
  244. package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
  245. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  246. package/front_end/panels/sources/SearchSourcesView.ts +2 -2
  247. package/front_end/panels/sources/SourcesNavigator.ts +9 -9
  248. package/front_end/panels/sources/SourcesPanel.ts +28 -25
  249. package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
  250. package/front_end/panels/sources/SourcesView.ts +4 -4
  251. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  252. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  253. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
  254. package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
  255. package/front_end/panels/timeline/TimelineController.ts +1 -1
  256. package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
  257. package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
  258. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +22 -5
  259. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +9 -6
  260. package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
  261. package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
  262. package/front_end/panels/timeline/TimelineLoader.ts +2 -2
  263. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
  264. package/front_end/panels/timeline/TimelinePanel.ts +10 -10
  265. package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
  266. package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
  267. package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
  268. package/front_end/panels/web_audio/WebAudioView.ts +1 -1
  269. package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
  270. package/front_end/ui/components/buttons/Button.ts +10 -10
  271. package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
  272. package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
  273. package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
  274. package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
  275. package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
  276. package/front_end/ui/components/icon_button/Icon.ts +1 -1
  277. package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
  278. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
  279. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
  280. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
  281. package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
  282. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
  283. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
  284. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
  285. package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
  286. package/front_end/ui/components/text_editor/javascript.ts +2 -2
  287. package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
  288. package/front_end/ui/legacy/Context.ts +1 -1
  289. package/front_end/ui/legacy/ContextMenu.ts +1 -1
  290. package/front_end/ui/legacy/GlassPane.ts +0 -1
  291. package/front_end/ui/legacy/InspectorView.ts +2 -3
  292. package/front_end/ui/legacy/PopoverHelper.ts +1 -1
  293. package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
  294. package/front_end/ui/legacy/TabbedPane.ts +2 -2
  295. package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
  296. package/front_end/ui/legacy/Toolbar.ts +3 -3
  297. package/front_end/ui/legacy/Treeoutline.ts +6 -6
  298. package/front_end/ui/legacy/UIUtils.ts +17 -24
  299. package/front_end/ui/legacy/ViewManager.ts +9 -9
  300. package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
  301. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -7
  302. package/front_end/ui/legacy/components/color_picker/spectrum.css +5 -2
  303. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
  304. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
  305. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
  306. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
  307. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
  308. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
  309. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  310. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
  311. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
  312. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +13 -18
  313. package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
  314. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
  315. package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
  316. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
  317. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
  318. package/front_end/ui/legacy/components/perf_ui/flameChart.css +8 -0
  319. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
  320. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -2
  321. package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -4
  322. package/front_end/ui/legacy/components/source_frame/JSONView.ts +0 -1
  323. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -2
  324. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
  325. package/front_end/ui/legacy/components/source_frame/XMLView.ts +0 -2
  326. package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
  327. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  328. package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
  329. package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
  330. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +8 -11
  331. package/front_end/ui/legacy/tabbedPane.css +1 -0
  332. package/front_end/ui/legacy/themeColors.css +3 -1
  333. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +23 -229
  334. package/front_end/ui/legacy/toolbar.css +1 -0
  335. package/package.json +1 -1
  336. package/scripts/component_server/server.js +2 -2
  337. package/scripts/eslint_rules/lib/no_bound_component_methods.js +116 -0
  338. package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
  339. package/scripts/eslint_rules/tests/no_bound_component_methods_test.js +85 -0
  340. package/front_end/global_typings/intl_display_names.d.ts +0 -111
  341. package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +0 -270
@@ -109,7 +109,7 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid
109
109
 
110
110
  this.addButton = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.addWatchExpression), 'largeicon-add');
111
111
  this.addButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
112
- this.addButtonClicked();
112
+ void this.addButtonClicked();
113
113
  });
114
114
  this.refreshButton =
115
115
  new UI.Toolbar.ToolbarButton(i18nString(UIStrings.refreshWatchExpressions), 'largeicon-refresh');
@@ -219,7 +219,7 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid
219
219
  private contextMenu(event: MouseEvent): void {
220
220
  const contextMenu = new UI.ContextMenu.ContextMenu(event);
221
221
  this.populateContextMenu(contextMenu, event);
222
- contextMenu.show();
222
+ void contextMenu.show();
223
223
  }
224
224
 
225
225
  private populateContextMenu(contextMenu: UI.ContextMenu.ContextMenu, event: MouseEvent): void {
@@ -268,7 +268,7 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid
268
268
  }
269
269
  const {state} = frame.textEditor;
270
270
  const text = state.sliceDoc(state.selection.main.from, state.selection.main.to);
271
- this.focusAndAddExpressionToWatch(text);
271
+ void this.focusAndAddExpressionToWatch(text);
272
272
  return true;
273
273
  }
274
274
 
@@ -334,7 +334,7 @@ export class WatchExpression extends Common.ObjectWrapper.ObjectWrapper<EventTyp
334
334
  update(): void {
335
335
  const currentExecutionContext = UI.Context.Context.instance().flavor(SDK.RuntimeModel.ExecutionContext);
336
336
  if (currentExecutionContext && this.expressionInternal) {
337
- currentExecutionContext
337
+ void currentExecutionContext
338
338
  .evaluate(
339
339
  {
340
340
  expression: this.expressionInternal,
@@ -142,7 +142,7 @@ export class EventsTimelineTreeView extends TimelineTreeView {
142
142
  if (!model) {
143
143
  return false;
144
144
  }
145
- TimelineUIUtils.buildTraceEventDetails(traceEvent, model.timelineModel(), this.linkifier, false)
145
+ void TimelineUIUtils.buildTraceEventDetails(traceEvent, model.timelineModel(), this.linkifier, false)
146
146
  .then(fragment => this.detailsView.element.appendChild(fragment));
147
147
  return true;
148
148
  }
@@ -153,7 +153,7 @@ export class TimelineController implements SDK.TargetManager.SDKModelObserver<SD
153
153
 
154
154
  modelAdded(cpuProfilerModel: SDK.CPUProfilerModel.CPUProfilerModel): void {
155
155
  if (this.profiling) {
156
- cpuProfilerModel.startRecording();
156
+ void cpuProfilerModel.startRecording();
157
157
  }
158
158
  }
159
159
 
@@ -217,7 +217,7 @@ export class TimelineDetailsView extends UI.Widget.VBox {
217
217
  switch (this.selection.type()) {
218
218
  case TimelineSelection.Type.TraceEvent: {
219
219
  const event = (this.selection.object() as SDK.TracingModel.Event);
220
- TimelineUIUtils.buildTraceEventDetails(event, this.model.timelineModel(), this.detailsLinkifier, true)
220
+ void TimelineUIUtils.buildTraceEventDetails(event, this.model.timelineModel(), this.detailsLinkifier, true)
221
221
  .then(fragment => this.appendDetailsTabsForTraceEventAndShowDetails(event, fragment));
222
222
  break;
223
223
  }
@@ -236,7 +236,7 @@ export class TimelineDetailsView extends UI.Widget.VBox {
236
236
  }
237
237
  case TimelineSelection.Type.NetworkRequest: {
238
238
  const request = (this.selection.object() as TimelineModel.TimelineModel.NetworkRequest);
239
- TimelineUIUtils.buildNetworkRequestDetails(request, this.model.timelineModel(), this.detailsLinkifier)
239
+ void TimelineUIUtils.buildNetworkRequestDetails(request, this.model.timelineModel(), this.detailsLinkifier)
240
240
  .then(this.setContent.bind(this));
241
241
  break;
242
242
  }
@@ -384,7 +384,7 @@ export class TimelineFilmStripOverview extends TimelineEventOverview {
384
384
 
385
385
  const drawGeneration = Symbol('drawGeneration');
386
386
  this.drawGeneration = drawGeneration;
387
- this.imageByFrame(frames[0]).then(image => {
387
+ void this.imageByFrame(frames[0]).then(image => {
388
388
  if (this.drawGeneration !== drawGeneration) {
389
389
  return;
390
390
  }
@@ -433,7 +433,7 @@ export class TimelineFilmStripOverview extends TimelineEventOverview {
433
433
  continue;
434
434
  }
435
435
  context.rect(x - 0.5, 0.5, imageWidth + 1, imageHeight + 1);
436
- this.imageByFrame(frame).then(drawFrameImage.bind(this, x));
436
+ void this.imageByFrame(frame).then(drawFrameImage.bind(this, x));
437
437
  }
438
438
  context.strokeStyle = '#ddd';
439
439
  context.stroke();
@@ -243,6 +243,25 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
243
243
  this.interactionsHeaderLevel2 = this.buildGroupStyle({padding: 2, nestingLevel: 1});
244
244
  this.experienceHeader = this.buildGroupStyle({collapsible: false});
245
245
 
246
+ ThemeSupport.ThemeSupport.instance().addEventListener(ThemeSupport.ThemeChangeEvent.eventName, () => {
247
+ const headers = [
248
+ this.headerLevel1,
249
+ this.headerLevel2,
250
+ this.staticHeader,
251
+ this.framesHeader,
252
+ this.collapsibleTimingsHeader,
253
+ this.timingsHeader,
254
+ this.screenshotsHeader,
255
+ this.interactionsHeaderLevel1,
256
+ this.interactionsHeaderLevel2,
257
+ this.experienceHeader,
258
+ ];
259
+ for (const header of headers) {
260
+ header.color = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary');
261
+ header.backgroundColor = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background');
262
+ }
263
+ });
264
+
246
265
  this.flowEventIndexById = new Map();
247
266
  }
248
267
 
@@ -251,10 +270,8 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
251
270
  padding: 4,
252
271
  height: 17,
253
272
  collapsible: true,
254
- color:
255
- ThemeSupport.ThemeSupport.instance().patchColorText('#222', ThemeSupport.ThemeSupport.ColorUsage.Foreground),
256
- backgroundColor:
257
- ThemeSupport.ThemeSupport.instance().patchColorText('white', ThemeSupport.ThemeSupport.ColorUsage.Background),
273
+ color: ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary'),
274
+ backgroundColor: ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background'),
258
275
  font: this.font,
259
276
  nestingLevel: 0,
260
277
  shareHeaderLine: true,
@@ -1140,7 +1157,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
1140
1157
  }
1141
1158
 
1142
1159
  if (type === entryTypes.Screenshot) {
1143
- this.drawScreenshot(entryIndex, context, barX, barY, barWidth, barHeight);
1160
+ void this.drawScreenshot(entryIndex, context, barX, barY, barWidth, barHeight);
1144
1161
  return true;
1145
1162
  }
1146
1163
 
@@ -63,11 +63,9 @@ export class TimelineFlameChartNetworkDataProvider implements PerfUI.FlameChart.
63
63
  padding: 4,
64
64
  height: 17,
65
65
  collapsible: true,
66
- color:
67
- ThemeSupport.ThemeSupport.instance().patchColorText('#222', ThemeSupport.ThemeSupport.ColorUsage.Foreground),
66
+ color: ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary'),
68
67
  font: this.font,
69
- backgroundColor:
70
- ThemeSupport.ThemeSupport.instance().patchColorText('white', ThemeSupport.ThemeSupport.ColorUsage.Background),
68
+ backgroundColor: ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background'),
71
69
  nestingLevel: 0,
72
70
  useFirstLineForOverview: false,
73
71
  useDecoratorsForOverview: true,
@@ -81,6 +79,12 @@ export class TimelineFlameChartNetworkDataProvider implements PerfUI.FlameChart.
81
79
  this.timeSpan = 0;
82
80
  this.requests = [];
83
81
  this.maxLevel = 0;
82
+
83
+ // In the event of a theme change, these colors must be recalculated.
84
+ ThemeSupport.ThemeSupport.instance().addEventListener(ThemeSupport.ThemeChangeEvent.eventName, () => {
85
+ this.style.color = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary');
86
+ this.style.backgroundColor = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background');
87
+ });
84
88
  }
85
89
 
86
90
  setModel(performanceModel: PerformanceModel|null): void {
@@ -199,8 +203,7 @@ export class TimelineFlameChartNetworkDataProvider implements PerfUI.FlameChart.
199
203
  context.fillStyle = 'hsla(0, 100%, 100%, 0.8)';
200
204
  context.fillRect(sendStart + 0.5, barY + 0.5, headersEnd - sendStart - 0.5, barHeight - 2);
201
205
  // Clear portions of initial rect to prepare for the ticks.
202
- context.fillStyle =
203
- ThemeSupport.ThemeSupport.instance().patchColorText('white', ThemeSupport.ThemeSupport.ColorUsage.Background);
206
+ context.fillStyle = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background');
204
207
  context.fillRect(barX, barY - 0.5, sendStart - barX, barHeight);
205
208
  context.fillRect(finish, barY - 0.5, barX + barWidth - finish, barHeight);
206
209
 
@@ -271,7 +271,7 @@ export class TimelineHistoryManager {
271
271
  if (!lastFrame) {
272
272
  return container;
273
273
  }
274
- lastFrame.imageDataPromise()
274
+ void lastFrame.imageDataPromise()
275
275
  .then(data => UI.UIUtils.loadImageFromData(data))
276
276
  // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
277
277
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -74,7 +74,7 @@ export class TimelineLayersView extends UI.SplitWidget.SplitWidget {
74
74
 
75
75
  private update(): void {
76
76
  if (this.frameLayerTree) {
77
- this.frameLayerTree.layerTreePromise().then(layerTree => this.layerViewHost.setLayerTree(layerTree));
77
+ void this.frameLayerTree.layerTreePromise().then(layerTree => this.layerViewHost.setLayerTree(layerTree));
78
78
  }
79
79
  }
80
80
  }
@@ -67,7 +67,7 @@ export class TimelineLoader implements Common.StringOutputStream.OutputStream {
67
67
  const fileReader = new Bindings.FileUtils.ChunkedFileReader(file, TransferChunkLengthBytes);
68
68
  loader.canceledCallback = fileReader.cancel.bind(fileReader);
69
69
  loader.totalSize = file.size;
70
- fileReader.read(loader).then(success => {
70
+ void fileReader.read(loader).then(success => {
71
71
  if (!success && fileReader.error()) {
72
72
  // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
73
73
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -89,7 +89,7 @@ export class TimelineLoader implements Common.StringOutputStream.OutputStream {
89
89
  client.loadingProgress((i + chunk.length) / events.length);
90
90
  await new Promise(r => setTimeout(r)); // Yield event loop to paint.
91
91
  }
92
- loader.close();
92
+ void loader.close();
93
93
  });
94
94
 
95
95
  return loader;
@@ -90,7 +90,7 @@ export class TimelinePaintProfilerView extends UI.SplitWidget.SplitWidget {
90
90
 
91
91
  private update(): void {
92
92
  this.logTreeView.setCommandLog([]);
93
- this.paintProfilerView.setSnapshotAndLog(null, [], null);
93
+ void this.paintProfilerView.setSnapshotAndLog(null, [], null);
94
94
 
95
95
  let snapshotPromise: Promise<{
96
96
  rect: Protocol.DOM.Rect | null,
@@ -115,7 +115,7 @@ export class TimelinePaintProfilerView extends UI.SplitWidget.SplitWidget {
115
115
  console.assert(false, 'Unexpected event type or no snapshot');
116
116
  return;
117
117
  }
118
- snapshotPromise.then(snapshotWithRect => {
118
+ void snapshotPromise.then(snapshotWithRect => {
119
119
  this.releaseSnapshot();
120
120
  if (!snapshotWithRect) {
121
121
  this.imageView.showImage();
@@ -124,14 +124,14 @@ export class TimelinePaintProfilerView extends UI.SplitWidget.SplitWidget {
124
124
  const snapshot = snapshotWithRect.snapshot;
125
125
  this.lastLoadedSnapshot = snapshot;
126
126
  this.imageView.setMask(snapshotWithRect.rect);
127
- snapshot.commandLog().then(log => onCommandLogDone.call(this, snapshot, snapshotWithRect.rect, log || []));
127
+ void snapshot.commandLog().then(log => onCommandLogDone.call(this, snapshot, snapshotWithRect.rect, log || []));
128
128
  });
129
129
 
130
130
  function onCommandLogDone(
131
131
  this: TimelinePaintProfilerView, snapshot: SDK.PaintProfiler.PaintProfilerSnapshot,
132
132
  clipRect: Protocol.DOM.Rect|null, log?: SDK.PaintProfiler.PaintProfilerLogItem[]): void {
133
133
  this.logTreeView.setCommandLog(log || []);
134
- this.paintProfilerView.setSnapshotAndLog(snapshot, log || [], clipRect);
134
+ void this.paintProfilerView.setSnapshotAndLog(snapshot, log || [], clipRect);
135
135
  }
136
136
  }
137
137
 
@@ -493,7 +493,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
493
493
  this.saveButton = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.saveProfile), 'largeicon-download');
494
494
  this.saveButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
495
495
  Host.userMetrics.actionTaken(Host.UserMetrics.Action.PerfPanelTraceExported);
496
- this.saveToFile();
496
+ void this.saveToFile();
497
497
  });
498
498
  this.panelToolbar.appendSeparator();
499
499
  this.panelToolbar.appendToolbarItem(this.loadButton);
@@ -624,7 +624,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
624
624
  private contextMenu(event: Event): void {
625
625
  const contextMenu = new UI.ContextMenu.ContextMenu(event);
626
626
  contextMenu.appendItemsAtLocation('timelineMenu');
627
- contextMenu.show();
627
+ void contextMenu.show();
628
628
  }
629
629
  async saveToFile(): Promise<void> {
630
630
  if (this.state !== State.Idle) {
@@ -886,10 +886,10 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
886
886
  toggleRecording(): void {
887
887
  if (this.state === State.Idle) {
888
888
  this.recordingPageReload = false;
889
- this.startRecording();
889
+ void this.startRecording();
890
890
  Host.userMetrics.actionTaken(Host.UserMetrics.Action.TimelineStarted);
891
891
  } else if (this.state === State.Recording) {
892
- this.stopRecording();
892
+ void this.stopRecording();
893
893
  }
894
894
  }
895
895
 
@@ -898,7 +898,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
898
898
  return;
899
899
  }
900
900
  this.recordingPageReload = true;
901
- this.startRecording();
901
+ void this.startRecording();
902
902
  Host.userMetrics.actionTaken(Host.UserMetrics.Action.TimelinePageReloadStarted);
903
903
  }
904
904
 
@@ -1090,7 +1090,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
1090
1090
  this.historyManager.addRecording(this.performanceModel);
1091
1091
 
1092
1092
  if (this.startCoverage.get()) {
1093
- UI.ViewManager.ViewManager.instance()
1093
+ void UI.ViewManager.ViewManager.instance()
1094
1094
  .showView('coverage')
1095
1095
  .then(() => this.getCoverageViewWidget())
1096
1096
  .then(widget => widget.processBacklog())
@@ -1154,7 +1154,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
1154
1154
  if (controller !== this.controller || this.state !== State.Recording) {
1155
1155
  return;
1156
1156
  }
1157
- this.stopRecording();
1157
+ void this.stopRecording();
1158
1158
  }
1159
1159
 
1160
1160
  private frameForSelection(selection: TimelineSelection): TimelineModel.TimelineFrameModel.TimelineFrame|null {
@@ -1483,7 +1483,7 @@ export class LoadTimelineHandler implements Common.QueryParamHandler.QueryParamH
1483
1483
  }
1484
1484
 
1485
1485
  handleQueryParam(value: string): void {
1486
- UI.ViewManager.ViewManager.instance().showView('timeline').then(() => {
1486
+ void UI.ViewManager.ViewManager.instance().showView('timeline').then(() => {
1487
1487
  TimelinePanel.instance().loadFromURL(window.decodeURIComponent(value));
1488
1488
  });
1489
1489
  }
@@ -1514,7 +1514,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
1514
1514
  panel.recordReload();
1515
1515
  return true;
1516
1516
  case 'timeline.save-to-file':
1517
- panel.saveToFile();
1517
+ void panel.saveToFile();
1518
1518
  return true;
1519
1519
  case 'timeline.load-from-file':
1520
1520
  panel.selectFileToLoad();
@@ -1526,7 +1526,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
1526
1526
  panel.jumpToFrame(1);
1527
1527
  return true;
1528
1528
  case 'timeline.show-history':
1529
- panel.showHistory();
1529
+ void panel.showHistory();
1530
1530
  return true;
1531
1531
  case 'timeline.previous-recording':
1532
1532
  panel.navigateHistory(1);
@@ -3145,7 +3145,7 @@ export class TimelineUIUtils {
3145
3145
  if (filmStripFrame) {
3146
3146
  const filmStripPreview = document.createElement('div');
3147
3147
  filmStripPreview.classList.add('timeline-filmstrip-preview');
3148
- filmStripFrame.imageDataPromise()
3148
+ void filmStripFrame.imageDataPromise()
3149
3149
  .then(data => UI.UIUtils.loadImageFromData(data))
3150
3150
  .then(image => image && filmStripPreview.appendChild(image));
3151
3151
  contentHelper.appendElementRow('', filmStripPreview);
@@ -3582,7 +3582,7 @@ export class InvalidationsGroupElement extends UI.TreeOutline.TreeElement {
3582
3582
  const node = (invalidation.nodeId && this.relatedNodesMap) ? this.relatedNodesMap.get(invalidation.nodeId) : null;
3583
3583
  if (node) {
3584
3584
  const nodeSpan = document.createElement('span');
3585
- Common.Linkifier.Linkifier.linkify(node).then(link => nodeSpan.appendChild(link));
3585
+ void Common.Linkifier.Linkifier.linkify(node).then(link => nodeSpan.appendChild(link));
3586
3586
  return nodeSpan;
3587
3587
  }
3588
3588
  if (invalidation.nodeName) {
@@ -247,13 +247,13 @@ export class WebVitalsTimeline extends HTMLElement {
247
247
  }
248
248
 
249
249
  #updateOverlayPosition(clientX: number, clientY: number): void {
250
- coordinator.read(() => {
250
+ void coordinator.read(() => {
251
251
  const bb1 = this.getBoundingClientRect();
252
252
  const bb2 = this.#overlay.getBoundingClientRect();
253
253
 
254
254
  const x = clientX + 10 + bb2.width > bb1.x + bb1.width ? clientX - bb2.width - 10 : clientX + 10;
255
255
 
256
- coordinator.write(() => {
256
+ void coordinator.write(() => {
257
257
  this.#overlay.style.top = `${clientY + 10}px`;
258
258
  this.#overlay.style.left = `${x}px`;
259
259
  });
@@ -49,7 +49,7 @@ export class WebAudioModel extends SDK.SDKModel.SDKModel<EventTypes> implements
49
49
  if (this.enabled) {
50
50
  return;
51
51
  }
52
- this.agent.invoke_enable();
52
+ void this.agent.invoke_enable();
53
53
  this.enabled = true;
54
54
  }
55
55
 
@@ -72,7 +72,7 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
72
72
  if (context) {
73
73
  this.updateDetailView(context);
74
74
  }
75
- this.doUpdate();
75
+ void this.doUpdate();
76
76
  });
77
77
 
78
78
  SDK.TargetManager.TargetManager.instance().observeModels(WebAudioModel, this);
@@ -296,7 +296,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
296
296
  }
297
297
 
298
298
  const authenticatorId = await this.#model.addAuthenticator(options);
299
- this.#addAuthenticatorSection(authenticatorId, options);
299
+ void this.#addAuthenticatorSection(authenticatorId, options);
300
300
  // Update the authenticatorIds in the options.
301
301
  options.authenticatorId = authenticatorId;
302
302
  if (options.active) {
@@ -307,7 +307,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
307
307
  // Update the settings to reflect the new authenticatorIds.
308
308
  this.#availableAuthenticatorSetting.set(availableAuthenticators);
309
309
  if (activeAuthenticatorId) {
310
- this.#setActiveAuthenticator(activeAuthenticatorId);
310
+ void this.#setActiveAuthenticator(activeAuthenticatorId);
311
311
  }
312
312
  }
313
313
 
@@ -382,7 +382,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
382
382
  #handleRemoveCredential(authenticatorId: Protocol.WebAuthn.AuthenticatorId, {
383
383
  data: credential,
384
384
  }: Common.EventTarget.EventTargetEvent<Protocol.WebAuthn.Credential>): void {
385
- this.#removeCredential(authenticatorId, credential.credentialId);
385
+ void this.#removeCredential(authenticatorId, credential.credentialId);
386
386
  }
387
387
 
388
388
  async #updateCredentials(authenticatorId: Protocol.WebAuthn.AuthenticatorId): Promise<void> {
@@ -450,7 +450,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
450
450
  }
451
451
 
452
452
  #handleCheckboxToggle(e: MouseEvent): void {
453
- this.#setVirtualAuthEnvEnabled((e.target as HTMLInputElement).checked);
453
+ void this.#setVirtualAuthEnvEnabled((e.target as HTMLInputElement).checked);
454
454
  }
455
455
 
456
456
  #updateEnabledTransportOptions(enabledOptions: Protocol.WebAuthn.AuthenticatorTransport[]): void {
@@ -656,7 +656,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
656
656
  const dataGrid = this.#createCredentialsDataGrid(authenticatorId);
657
657
  dataGrid.asWidget().show(section);
658
658
 
659
- this.#updateCredentials(authenticatorId);
659
+ void this.#updateCredentials(authenticatorId);
660
660
 
661
661
  return section;
662
662
  }
@@ -759,7 +759,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
759
759
  this.#dataGrids.delete(authenticatorId);
760
760
 
761
761
  if (this.#model) {
762
- this.#model.removeAuthenticator(authenticatorId);
762
+ void this.#model.removeAuthenticator(authenticatorId);
763
763
  }
764
764
 
765
765
  // Update available authenticator setting.
@@ -770,7 +770,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
770
770
  if (this.#activeAuthId === authenticatorId) {
771
771
  const availableAuthenticatorIds = Array.from(this.#dataGrids.keys());
772
772
  if (availableAuthenticatorIds.length) {
773
- this.#setActiveAuthenticator(availableAuthenticatorIds[0]);
773
+ void this.#setActiveAuthenticator(availableAuthenticatorIds[0]);
774
774
  } else {
775
775
  this.#activeAuthId = null;
776
776
  }
@@ -101,42 +101,42 @@ export class Button extends HTMLElement {
101
101
  this.#props.spinner = Boolean(data.spinner);
102
102
  this.#props.type = data.type || 'button';
103
103
  this.#setDisabledProperty(data.disabled || false);
104
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
104
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
105
105
  }
106
106
 
107
107
  set iconUrl(iconUrl: string|undefined) {
108
108
  this.#props.iconUrl = iconUrl;
109
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
109
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
110
110
  }
111
111
 
112
112
  set variant(variant: Variant) {
113
113
  this.#props.variant = variant;
114
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
114
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
115
115
  }
116
116
 
117
117
  set size(size: Size) {
118
118
  this.#props.size = size;
119
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
119
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
120
120
  }
121
121
 
122
122
  set type(type: ButtonType) {
123
123
  this.#props.type = type;
124
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
124
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
125
125
  }
126
126
 
127
127
  set disabled(disabled: boolean) {
128
128
  this.#setDisabledProperty(disabled);
129
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
129
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
130
130
  }
131
131
 
132
132
  set active(active: boolean) {
133
133
  this.#props.active = active;
134
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
134
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
135
135
  }
136
136
 
137
137
  set spinner(spinner: boolean) {
138
138
  this.#props.spinner = spinner;
139
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
139
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
140
140
  }
141
141
 
142
142
  #setDisabledProperty(disabled: boolean): void {
@@ -150,7 +150,7 @@ export class Button extends HTMLElement {
150
150
 
151
151
  connectedCallback(): void {
152
152
  this.#shadow.adoptedStyleSheets = [buttonStyles];
153
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
153
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
154
154
  }
155
155
 
156
156
  #onClick(event: Event): void {
@@ -175,7 +175,7 @@ export class Button extends HTMLElement {
175
175
  const slot = event.target as HTMLSlotElement | undefined;
176
176
  const nodes = slot?.assignedNodes();
177
177
  this.#isEmpty = !nodes || !Boolean(nodes.length);
178
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
178
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
179
179
  }
180
180
 
181
181
  #render(): void {
@@ -85,7 +85,7 @@ export class DataGrid extends HTMLElement {
85
85
  // lookup constant.
86
86
  readonly #rowIndexMap = new WeakMap<Row, number>();
87
87
  readonly #resizeObserver = new ResizeObserver(() => {
88
- this.#alignScrollHandlers();
88
+ void this.#alignScrollHandlers();
89
89
  });
90
90
 
91
91
  // These have to be bound as they are put onto the global document, not onto
@@ -173,7 +173,7 @@ export class DataGrid extends HTMLElement {
173
173
  }
174
174
  }
175
175
 
176
- this.#render();
176
+ void this.#render();
177
177
  }
178
178
 
179
179
  #shouldAutoScrollToBottom(): boolean {
@@ -206,13 +206,13 @@ export class DataGrid extends HTMLElement {
206
206
  return;
207
207
  }
208
208
 
209
- coordinator.read(() => {
209
+ void coordinator.read(() => {
210
210
  const wrapper = this.#shadow.querySelector('.wrapping-container');
211
211
  if (!wrapper) {
212
212
  return;
213
213
  }
214
214
  const scrollHeight = wrapper.scrollHeight;
215
- coordinator.scroll(() => {
215
+ void coordinator.scroll(() => {
216
216
  wrapper.scrollTo(0, scrollHeight);
217
217
  });
218
218
  });
@@ -254,7 +254,7 @@ export class DataGrid extends HTMLElement {
254
254
  }
255
255
 
256
256
  this.#cellUserHasFocused = [newColumnIndex, newRowIndex];
257
- this.#render();
257
+ void this.#render();
258
258
  const tableCell = this.#getTableElementForCellUserHasFocused();
259
259
  if (!tableCell) {
260
260
  // Return in case the cell is out of bounds and we do nothing
@@ -264,7 +264,7 @@ export class DataGrid extends HTMLElement {
264
264
  * add arrow key support, so in the case where we're programatically moving the
265
265
  * focus, ensure we actually focus the cell.
266
266
  */
267
- this.#focusTableCellInDOM(tableCell);
267
+ void this.#focusTableCellInDOM(tableCell);
268
268
  }
269
269
 
270
270
  #onTableKeyDown(event: KeyboardEvent): void {
@@ -344,7 +344,7 @@ export class DataGrid extends HTMLElement {
344
344
  this.#currentResize.documentForCursorChange.body.style.cursor = this.#currentResize.cursorToRestore;
345
345
  this.#currentResize = null;
346
346
  // Realign the scroll handlers now the table columns have been resized.
347
- this.#alignScrollHandlers();
347
+ void this.#alignScrollHandlers();
348
348
  }
349
349
 
350
350
  #onResizePointerDown(event: PointerEvent): void {
@@ -528,7 +528,7 @@ export class DataGrid extends HTMLElement {
528
528
  // Let the user append things to the menu
529
529
  this.#contextMenus.headerRow(menu, this.#columns);
530
530
  }
531
- menu.show();
531
+ void menu.show();
532
532
  }
533
533
 
534
534
  #onBodyRowContextMenu(event: MouseEvent): void {
@@ -566,7 +566,7 @@ export class DataGrid extends HTMLElement {
566
566
  if (this.#contextMenus && this.#contextMenus.bodyRow) {
567
567
  this.#contextMenus.bodyRow(menu, this.#columns, rowThatWasClicked);
568
568
  }
569
- menu.show();
569
+ void menu.show();
570
570
  }
571
571
 
572
572
  #onScroll(event: Event): void {
@@ -581,7 +581,7 @@ export class DataGrid extends HTMLElement {
581
581
  this.#userScrollState =
582
582
  userIsAtBottom ? UserScrollState.SCROLLED_TO_BOTTOM : UserScrollState.MANUAL_SCROLL_NOT_BOTTOM;
583
583
 
584
- this.#render();
584
+ void this.#render();
585
585
  }
586
586
 
587
587
  #alignScrollHandlers(): Promise<void> {
@@ -598,7 +598,7 @@ export class DataGrid extends HTMLElement {
598
598
  const columnLeftOffset = header.offsetLeft;
599
599
  if (handlers[index]) {
600
600
  const handlerWidth = handlers[index].clientWidth;
601
- coordinator.write(() => {
601
+ void coordinator.write(() => {
602
602
  /**
603
603
  * Render the resizer at the far right of the column; we subtract
604
604
  * its width so it sits on the inner edge of the column.
@@ -828,7 +828,7 @@ export class DataGrid extends HTMLElement {
828
828
  const currentlyFocusedRowIndex = tabbableCell[1];
829
829
  const tabbableCellElement = this.#getTableElementForCellUserHasFocused();
830
830
  if (this.#userHasFocusInDataGrid && currentlyFocusedRowIndex > 0 && tabbableCellElement) {
831
- this.#focusTableCellInDOM(tabbableCellElement);
831
+ void this.#focusTableCellInDOM(tabbableCellElement);
832
832
  }
833
833
  this.#scrollToBottomIfRequired();
834
834
  this.#engageResizeObserver();
@@ -838,7 +838,7 @@ export class DataGrid extends HTMLElement {
838
838
  // re-positioned correctly if so.
839
839
 
840
840
  // We don't have to do this on first render as it will fire when the resize observer is engaged.
841
- this.#alignScrollHandlers();
841
+ void this.#alignScrollHandlers();
842
842
  }
843
843
 
844
844
  this.#isRendering = false;
@@ -848,7 +848,7 @@ export class DataGrid extends HTMLElement {
848
848
  // the end with the most recent data.
849
849
  if (this.#scheduleRender) {
850
850
  this.#scheduleRender = false;
851
- this.#render();
851
+ void this.#render();
852
852
  }
853
853
  }
854
854
  }
@@ -31,8 +31,8 @@ component.addEventListener('treenodemouseout', (event: Event) => {
31
31
 
32
32
  document.getElementById('container')?.appendChild(component);
33
33
  document.getElementById('recursively-expand')?.addEventListener('click', () => {
34
- component.expandRecursively();
34
+ void component.expandRecursively();
35
35
  });
36
36
  document.getElementById('expand-to-belgrave-house')?.addEventListener('click', () => {
37
- component.expandToAndSelectTreeNode(belgraveHouse);
37
+ void component.expandToAndSelectTreeNode(belgraveHouse);
38
38
  });