chrome-devtools-frontend 1.0.954826 → 1.0.956060

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 (329) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTHORS +1 -0
  3. package/config/owner/COMMON_OWNERS +2 -2
  4. package/front_end/.eslintrc.js +1 -11
  5. package/front_end/core/common/Console.ts +1 -1
  6. package/front_end/core/common/ResolverBase.ts +1 -1
  7. package/front_end/core/common/Throttler.ts +1 -1
  8. package/front_end/core/common/Worker.ts +4 -4
  9. package/front_end/core/host/InspectorFrontendHost.ts +1 -1
  10. package/front_end/core/host/ResourceLoader.ts +2 -2
  11. package/front_end/core/i18n/DevToolsLocale.ts +0 -2
  12. package/front_end/core/i18n/i18nImpl.ts +0 -2
  13. package/front_end/core/i18n/locales/en-US.json +3 -0
  14. package/front_end/core/i18n/locales/en-XL.json +3 -0
  15. package/front_end/core/sdk/AccessibilityModel.ts +1 -1
  16. package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
  17. package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
  18. package/front_end/core/sdk/CSSModel.ts +7 -7
  19. package/front_end/core/sdk/CSSProperty.ts +1 -1
  20. package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
  21. package/front_end/core/sdk/ChildTargetManager.ts +6 -6
  22. package/front_end/core/sdk/Connections.ts +2 -2
  23. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  24. package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
  25. package/front_end/core/sdk/DOMModel.ts +17 -17
  26. package/front_end/core/sdk/DebuggerModel.ts +24 -24
  27. package/front_end/core/sdk/EmulationModel.ts +16 -16
  28. package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
  29. package/front_end/core/sdk/IsolateManager.ts +2 -2
  30. package/front_end/core/sdk/IssuesModel.ts +1 -1
  31. package/front_end/core/sdk/LogModel.ts +3 -3
  32. package/front_end/core/sdk/NetworkManager.ts +25 -25
  33. package/front_end/core/sdk/OverlayModel.ts +23 -23
  34. package/front_end/core/sdk/PageResourceLoader.ts +1 -1
  35. package/front_end/core/sdk/PaintProfiler.ts +1 -1
  36. package/front_end/core/sdk/RemoteObject.ts +2 -2
  37. package/front_end/core/sdk/Resource.ts +2 -2
  38. package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
  39. package/front_end/core/sdk/RuntimeModel.ts +11 -11
  40. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
  41. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
  42. package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
  43. package/front_end/core/sdk/SourceMapManager.ts +1 -1
  44. package/front_end/core/sdk/TargetManager.ts +2 -2
  45. package/front_end/core/sdk/TracingManager.ts +1 -1
  46. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
  47. package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
  48. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
  49. package/front_end/entrypoints/js_app/js_app.ts +2 -2
  50. package/front_end/entrypoints/main/MainImpl.ts +11 -11
  51. package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
  52. package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
  53. package/front_end/generated/ARIAProperties.js +1 -1
  54. package/front_end/generated/InspectorBackendCommands.js +5 -1
  55. package/front_end/generated/SupportedCSSProperties.js +15 -15
  56. package/front_end/generated/protocol.d.ts +13 -0
  57. package/front_end/global_typings/global_defs.d.ts +0 -1
  58. package/front_end/models/bindings/BreakpointManager.ts +21 -23
  59. package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
  60. package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
  61. package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
  62. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
  63. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
  64. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
  65. package/front_end/models/bindings/FileUtils.ts +5 -5
  66. package/front_end/models/bindings/IgnoreListManager.ts +4 -4
  67. package/front_end/models/bindings/LiveLocation.ts +9 -0
  68. package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
  69. package/front_end/models/bindings/ResourceMapping.ts +1 -1
  70. package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
  71. package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
  72. package/front_end/models/bindings/TempFile.ts +1 -1
  73. package/front_end/models/emulation/DeviceModeModel.ts +5 -5
  74. package/front_end/models/emulation/EmulatedDevices.ts +1 -1
  75. package/front_end/models/extensions/ExtensionPanel.ts +1 -1
  76. package/front_end/models/extensions/ExtensionServer.ts +8 -8
  77. package/front_end/models/formatter/SourceFormatter.ts +2 -2
  78. package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
  79. package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
  80. package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
  81. package/front_end/models/persistence/Automapping.ts +3 -3
  82. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
  83. package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
  84. package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
  85. package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
  86. package/front_end/models/persistence/PersistenceActions.ts +3 -3
  87. package/front_end/models/persistence/PersistenceImpl.ts +2 -2
  88. package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
  89. package/front_end/models/workspace/UISourceCode.ts +2 -2
  90. package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
  91. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
  92. package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
  93. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
  94. package/front_end/panels/animation/AnimationModel.ts +6 -6
  95. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  96. package/front_end/panels/animation/AnimationUI.ts +3 -3
  97. package/front_end/panels/application/AppManifestView.ts +4 -4
  98. package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
  99. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
  100. package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
  101. package/front_end/panels/application/BackgroundServiceView.ts +3 -3
  102. package/front_end/panels/application/CookieItemsView.ts +5 -5
  103. package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
  104. package/front_end/panels/application/DOMStorageModel.ts +4 -4
  105. package/front_end/panels/application/DatabaseModel.ts +2 -2
  106. package/front_end/panels/application/DatabaseQueryView.ts +2 -2
  107. package/front_end/panels/application/DatabaseTableView.ts +1 -1
  108. package/front_end/panels/application/IndexedDBModel.ts +11 -11
  109. package/front_end/panels/application/IndexedDBViews.ts +5 -5
  110. package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
  111. package/front_end/panels/application/ReportingApiView.ts +1 -1
  112. package/front_end/panels/application/ResourcesPanel.ts +2 -2
  113. package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
  114. package/front_end/panels/application/ServiceWorkersView.ts +15 -15
  115. package/front_end/panels/application/StorageView.ts +5 -5
  116. package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
  117. package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
  118. package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
  119. package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
  120. package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
  121. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
  122. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
  123. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
  124. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
  125. package/front_end/panels/changes/ChangesView.ts +4 -4
  126. package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
  127. package/front_end/panels/console/ConsoleFilter.ts +17 -2
  128. package/front_end/panels/console/ConsoleFormat.ts +5 -4
  129. package/front_end/panels/console/ConsolePinPane.ts +4 -4
  130. package/front_end/panels/console/ConsolePrompt.ts +4 -4
  131. package/front_end/panels/console/ConsoleView.ts +96 -71
  132. package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
  133. package/front_end/panels/console/consoleView.css +36 -0
  134. package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
  135. package/front_end/panels/coverage/CoverageListView.ts +3 -3
  136. package/front_end/panels/coverage/CoverageModel.ts +3 -3
  137. package/front_end/panels/coverage/CoverageView.ts +6 -6
  138. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
  139. package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
  140. package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
  141. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
  142. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
  143. package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
  144. package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
  145. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
  146. package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
  147. package/front_end/panels/elements/DOMLinkifier.ts +2 -2
  148. package/front_end/panels/elements/ElementsPanel.ts +19 -19
  149. package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
  150. package/front_end/panels/elements/ElementsTreeElement.ts +26 -25
  151. package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
  152. package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
  153. package/front_end/panels/elements/InspectElementModeController.ts +3 -3
  154. package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
  155. package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
  156. package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
  157. package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
  158. package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
  159. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  160. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
  161. package/front_end/panels/elements/elementsPanel.css +1 -0
  162. package/front_end/panels/elements/elementsTreeOutline.css +6 -1
  163. package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
  164. package/front_end/panels/emulation/DeviceModeView.ts +2 -2
  165. package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
  166. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
  167. package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
  168. package/front_end/panels/input/InputModel.ts +2 -2
  169. package/front_end/panels/input/InputTimeline.ts +6 -6
  170. package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
  171. package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
  172. package/front_end/panels/issues/AffectedElementsView.ts +1 -1
  173. package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
  174. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
  175. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
  176. package/front_end/panels/issues/IssueView.ts +1 -1
  177. package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
  178. package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
  179. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  180. package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
  181. package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
  182. package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
  183. package/front_end/panels/layers/LayerTreeModel.ts +4 -4
  184. package/front_end/panels/layers/LayersPanel.ts +4 -4
  185. package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
  186. package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
  187. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
  188. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
  189. package/front_end/panels/media/MediaModel.ts +1 -1
  190. package/front_end/panels/media/PlayerListView.ts +1 -1
  191. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
  192. package/front_end/panels/network/BinaryResourceView.ts +1 -1
  193. package/front_end/panels/network/BlockedURLsPane.ts +5 -5
  194. package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
  195. package/front_end/panels/network/NetworkItemView.ts +2 -2
  196. package/front_end/panels/network/NetworkLogView.ts +4 -4
  197. package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
  198. package/front_end/panels/network/NetworkPanel.ts +8 -8
  199. package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
  200. package/front_end/panels/network/RequestHeadersView.ts +4 -3
  201. package/front_end/panels/network/RequestPayloadView.ts +8 -8
  202. package/front_end/panels/network/RequestPreviewView.ts +1 -1
  203. package/front_end/panels/network/RequestResponseView.ts +2 -2
  204. package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
  205. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
  206. package/front_end/panels/profiler/CPUProfileView.ts +4 -4
  207. package/front_end/panels/profiler/HeapProfileView.ts +6 -6
  208. package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
  209. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
  210. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
  211. package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
  212. package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
  213. package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
  214. package/front_end/panels/profiler/ProfileView.ts +3 -3
  215. package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
  216. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
  217. package/front_end/panels/screencast/InputModel.ts +3 -3
  218. package/front_end/panels/screencast/ScreencastView.ts +10 -10
  219. package/front_end/panels/search/SearchResultsPane.ts +1 -1
  220. package/front_end/panels/search/SearchView.ts +2 -2
  221. package/front_end/panels/security/SecurityModel.ts +1 -1
  222. package/front_end/panels/security/SecurityPanel.ts +2 -2
  223. package/front_end/panels/sensors/SensorsView.ts +3 -2
  224. package/front_end/panels/settings/SettingsScreen.ts +5 -5
  225. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  226. package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
  227. package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
  228. package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
  229. package/front_end/panels/sources/CoveragePlugin.ts +3 -3
  230. package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
  231. package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
  232. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  233. package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
  234. package/front_end/panels/sources/NavigatorView.ts +6 -6
  235. package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
  236. package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
  237. package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
  238. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  239. package/front_end/panels/sources/SearchSourcesView.ts +2 -2
  240. package/front_end/panels/sources/SourcesNavigator.ts +9 -9
  241. package/front_end/panels/sources/SourcesPanel.ts +28 -25
  242. package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
  243. package/front_end/panels/sources/SourcesView.ts +4 -4
  244. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  245. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  246. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
  247. package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
  248. package/front_end/panels/timeline/TimelineController.ts +1 -1
  249. package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
  250. package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
  251. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -5
  252. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +4 -7
  253. package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
  254. package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
  255. package/front_end/panels/timeline/TimelineLoader.ts +2 -2
  256. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
  257. package/front_end/panels/timeline/TimelinePanel.ts +10 -10
  258. package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
  259. package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
  260. package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
  261. package/front_end/panels/web_audio/WebAudioView.ts +1 -1
  262. package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
  263. package/front_end/ui/components/buttons/Button.ts +10 -10
  264. package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
  265. package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
  266. package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
  267. package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
  268. package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
  269. package/front_end/ui/components/icon_button/Icon.ts +1 -1
  270. package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
  271. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
  272. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
  273. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
  274. package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
  275. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
  276. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
  277. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
  278. package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
  279. package/front_end/ui/components/text_editor/javascript.ts +2 -2
  280. package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
  281. package/front_end/ui/legacy/Context.ts +1 -1
  282. package/front_end/ui/legacy/ContextMenu.ts +1 -1
  283. package/front_end/ui/legacy/GlassPane.ts +0 -1
  284. package/front_end/ui/legacy/InspectorView.ts +2 -3
  285. package/front_end/ui/legacy/PopoverHelper.ts +1 -1
  286. package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
  287. package/front_end/ui/legacy/TabbedPane.ts +2 -2
  288. package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
  289. package/front_end/ui/legacy/Toolbar.ts +3 -3
  290. package/front_end/ui/legacy/Treeoutline.ts +6 -6
  291. package/front_end/ui/legacy/UIUtils.ts +16 -16
  292. package/front_end/ui/legacy/ViewManager.ts +9 -9
  293. package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
  294. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -7
  295. package/front_end/ui/legacy/components/color_picker/spectrum.css +5 -2
  296. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
  297. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
  298. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
  299. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
  300. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
  301. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
  302. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  303. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
  304. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
  305. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +10 -19
  306. package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
  307. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
  308. package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
  309. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
  310. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
  311. package/front_end/ui/legacy/components/perf_ui/flameChart.css +8 -0
  312. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
  313. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -2
  314. package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -4
  315. package/front_end/ui/legacy/components/source_frame/JSONView.ts +0 -1
  316. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -2
  317. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
  318. package/front_end/ui/legacy/components/source_frame/XMLView.ts +0 -2
  319. package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
  320. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  321. package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
  322. package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
  323. package/front_end/ui/legacy/tabbedPane.css +1 -0
  324. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +3 -210
  325. package/front_end/ui/legacy/toolbar.css +1 -0
  326. package/package.json +1 -1
  327. package/scripts/component_server/server.js +2 -2
  328. package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
  329. package/front_end/global_typings/intl_display_names.d.ts +0 -111
@@ -118,7 +118,7 @@ export class PerformanceMonitorImpl extends UI.Widget.HBox implements
118
118
  this.controlPane.instantiateMetricData();
119
119
  SDK.TargetManager.TargetManager.instance().addEventListener(
120
120
  SDK.TargetManager.Events.SuspendStateChanged, this.suspendStateChanged, this);
121
- this.model.enable();
121
+ void this.model.enable();
122
122
  this.suspendStateChanged();
123
123
  }
124
124
 
@@ -129,7 +129,7 @@ export class PerformanceMonitorImpl extends UI.Widget.HBox implements
129
129
  SDK.TargetManager.TargetManager.instance().removeEventListener(
130
130
  SDK.TargetManager.Events.SuspendStateChanged, this.suspendStateChanged, this);
131
131
  this.stopPolling();
132
- this.model.disable();
132
+ void this.model.disable();
133
133
  }
134
134
 
135
135
  modelAdded(model: SDK.PerformanceMetricsModel.PerformanceMetricsModel): void {
@@ -180,7 +180,7 @@ export class CPUProfileType extends ProfileType {
180
180
 
181
181
  buttonClicked(): boolean {
182
182
  if (this.recording) {
183
- this.stopRecordingProfile();
183
+ void this.stopRecordingProfile();
184
184
  return false;
185
185
  }
186
186
  this.startRecordingProfile();
@@ -208,11 +208,11 @@ export class CPUProfileType extends ProfileType {
208
208
  }
209
209
  const profile = new CPUProfileHeader(cpuProfilerModel, this);
210
210
  this.setProfileBeingRecorded(profile as ProfileHeader);
211
- SDK.TargetManager.TargetManager.instance().suspendAllTargets();
211
+ void SDK.TargetManager.TargetManager.instance().suspendAllTargets();
212
212
  this.addProfile(profile as ProfileHeader);
213
213
  profile.updateStatus(i18nString(UIStrings.recording));
214
214
  this.recording = true;
215
- cpuProfilerModel.startRecording();
215
+ void cpuProfilerModel.startRecording();
216
216
  Host.userMetrics.actionTaken(Host.UserMetrics.Action.ProfilesCPUProfileTaken);
217
217
  }
218
218
 
@@ -243,7 +243,7 @@ export class CPUProfileType extends ProfileType {
243
243
  }
244
244
 
245
245
  profileBeingRecordedRemoved(): void {
246
- this.stopRecordingProfile();
246
+ void this.stopRecordingProfile();
247
247
  }
248
248
 
249
249
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -160,7 +160,7 @@ export class HeapProfileView extends ProfileView implements UI.SearchableView.Se
160
160
  this.timelineOverview.start();
161
161
 
162
162
  this.profileType.addEventListener(SamplingHeapProfileType.Events.StatsUpdate, this.onStatsUpdate, this);
163
- this.profileType.once(ProfileEvents.ProfileComplete).then(() => {
163
+ void this.profileType.once(ProfileEvents.ProfileComplete).then(() => {
164
164
  this.profileType.removeEventListener(SamplingHeapProfileType.Events.StatsUpdate, this.onStatsUpdate, this);
165
165
  this.timelineOverview.stop();
166
166
  this.timelineOverview.updateGrid();
@@ -272,7 +272,7 @@ export class SamplingHeapProfileTypeBase extends
272
272
 
273
273
  buttonClicked(): boolean {
274
274
  if (this.recording) {
275
- this.stopRecordingProfile();
275
+ void this.stopRecordingProfile();
276
276
  } else {
277
277
  this.startRecordingProfile();
278
278
  }
@@ -333,7 +333,7 @@ export class SamplingHeapProfileTypeBase extends
333
333
 
334
334
  profileBeingRecordedRemoved(): void {
335
335
  this.clearedDuringRecording = true;
336
- this.stopRecordingProfile();
336
+ void this.stopRecordingProfile();
337
337
  }
338
338
 
339
339
  startSampling(): void {
@@ -388,10 +388,10 @@ export class SamplingHeapProfileType extends SamplingHeapProfileTypeBase {
388
388
  return;
389
389
  }
390
390
 
391
- heapProfilerModel.startSampling();
391
+ void heapProfilerModel.startSampling();
392
392
  if (Root.Runtime.experiments.isEnabled('samplingHeapProfilerTimeline')) {
393
393
  this.updateTimer = window.setTimeout(() => {
394
- this.updateStats();
394
+ void this.updateStats();
395
395
  }, this.updateIntervalMs);
396
396
  }
397
397
  }
@@ -433,7 +433,7 @@ export class SamplingHeapProfileType extends SamplingHeapProfileTypeBase {
433
433
  }
434
434
  this.dispatchEventToListeners(SamplingHeapProfileType.Events.StatsUpdate, profile);
435
435
  this.updateTimer = window.setTimeout(() => {
436
- this.updateStats();
436
+ void this.updateStats();
437
437
  }, this.updateIntervalMs);
438
438
  }
439
439
 
@@ -63,7 +63,7 @@ export class HeapProfilerPanel extends ProfilesPanel implements UI.ContextMenu.P
63
63
  }
64
64
 
65
65
  function revealInView(this: ProfilesPanel, viewName: string): void {
66
- heapProfilerModel.snapshotObjectIdForObjectId(objectId).then(result => {
66
+ void heapProfilerModel.snapshotObjectIdForObjectId(objectId).then(result => {
67
67
  if (this.isShowing() && result) {
68
68
  this.showObject(result, viewName);
69
69
  }
@@ -103,7 +103,7 @@ export class HeapProfilerPanel extends ProfilesPanel implements UI.ContextMenu.P
103
103
  if (profile.maxJSObjectId >= parseInt(snapshotObjectId, 10)) {
104
104
  this.showProfile(profile);
105
105
  const view = (this.viewForProfile(profile) as HeapSnapshotView);
106
- view.selectLiveObject(perspectiveName, snapshotObjectId);
106
+ void view.selectLiveObject(perspectiveName, snapshotObjectId);
107
107
  break;
108
108
  }
109
109
  }
@@ -354,7 +354,7 @@ export class HeapSnapshotSortableDataGrid extends
354
354
  const child = (children[i] as HeapSnapshotGridNode);
355
355
  this.appendChildAfterSorting(child);
356
356
  if (child.expanded) {
357
- child.sort();
357
+ void child.sort();
358
358
  }
359
359
  }
360
360
  this.recursiveSortingLeave();
@@ -675,7 +675,7 @@ export class HeapSnapshotContainmentDataGrid extends HeapSnapshotSortableDataGri
675
675
  const node =
676
676
  new HeapSnapshotModel.HeapSnapshotModel.Node(-1, 'root', 0, nodeIndex || snapshot.rootNodeIndex, 0, 0, '');
677
677
  this.setRootNode(this.createRootNode(snapshot, node));
678
- (this.rootNode() as HeapSnapshotGridNode).sort();
678
+ void (this.rootNode() as HeapSnapshotGridNode).sort();
679
679
  }
680
680
 
681
681
  createRootNode(snapshot: HeapSnapshotProxy, node: HeapSnapshotModel.HeapSnapshotModel.Node): HeapSnapshotObjectNode {
@@ -686,7 +686,7 @@ export class HeapSnapshotContainmentDataGrid extends HeapSnapshotSortableDataGri
686
686
  sortingChanged(): void {
687
687
  const rootNode = this.rootNode();
688
688
  if (rootNode.hasChildren()) {
689
- (rootNode as HeapSnapshotGridNode).sort();
689
+ void (rootNode as HeapSnapshotGridNode).sort();
690
690
  }
691
691
  }
692
692
  }
@@ -829,24 +829,24 @@ export class HeapSnapshotConstructorsDataGrid extends HeapSnapshotViewportDataGr
829
829
  async setDataSource(snapshot: HeapSnapshotProxy, _nodeIndex: number): Promise<void> {
830
830
  this.snapshot = snapshot;
831
831
  if (this.profileIndex === -1) {
832
- this.populateChildren();
832
+ void this.populateChildren();
833
833
  }
834
834
 
835
835
  if (this.objectIdToSelect) {
836
- this.revealObjectByHeapSnapshotId(this.objectIdToSelect);
836
+ void this.revealObjectByHeapSnapshotId(this.objectIdToSelect);
837
837
  this.objectIdToSelect = null;
838
838
  }
839
839
  }
840
840
 
841
841
  setSelectionRange(minNodeId: number, maxNodeId: number): void {
842
842
  this.nodeFilterInternal = new HeapSnapshotModel.HeapSnapshotModel.NodeFilter(minNodeId, maxNodeId);
843
- this.populateChildren(this.nodeFilterInternal);
843
+ void this.populateChildren(this.nodeFilterInternal);
844
844
  }
845
845
 
846
846
  setAllocationNodeId(allocationNodeId: number): void {
847
847
  this.nodeFilterInternal = new HeapSnapshotModel.HeapSnapshotModel.NodeFilter();
848
848
  this.nodeFilterInternal.allocationNodeId = allocationNodeId;
849
- this.populateChildren(this.nodeFilterInternal);
849
+ void this.populateChildren(this.nodeFilterInternal);
850
850
  }
851
851
 
852
852
  aggregatesReceived(nodeFilter: HeapSnapshotModel.HeapSnapshotModel.NodeFilter, aggregates: {
@@ -854,7 +854,7 @@ export class HeapSnapshotConstructorsDataGrid extends HeapSnapshotViewportDataGr
854
854
  }): void {
855
855
  this.filterInProgress = null;
856
856
  if (this.nextRequestedFilter && this.snapshot) {
857
- this.snapshot.aggregatesWithFilter(this.nextRequestedFilter)
857
+ void this.snapshot.aggregatesWithFilter(this.nextRequestedFilter)
858
858
  .then(this.aggregatesReceived.bind(this, this.nextRequestedFilter));
859
859
  this.filterInProgress = this.nextRequestedFilter;
860
860
  this.nextRequestedFilter = null;
@@ -897,7 +897,7 @@ export class HeapSnapshotConstructorsDataGrid extends HeapSnapshotViewportDataGr
897
897
  this.nodeFilterInternal = new HeapSnapshotModel.HeapSnapshotModel.NodeFilter(minNodeId, maxNodeId);
898
898
  }
899
899
 
900
- this.populateChildren(this.nodeFilterInternal);
900
+ void this.populateChildren(this.nodeFilterInternal);
901
901
  }
902
902
  }
903
903
 
@@ -964,7 +964,7 @@ export class HeapSnapshotDiffDataGrid extends HeapSnapshotViewportDataGrid {
964
964
  this.dispatchEventToListeners(HeapSnapshotSortableDataGridEvents.SortingComplete);
965
965
  return;
966
966
  }
967
- this.populateChildren();
967
+ void this.populateChildren();
968
968
  }
969
969
 
970
970
  async populateChildren(): Promise<void> {
@@ -262,7 +262,7 @@ export class HeapSnapshotGridNode extends
262
262
  return;
263
263
  }
264
264
  this.populated = true;
265
- this.provider().sortAndRewind(this.comparator()).then(() => this.populateChildren());
265
+ void this.provider().sortAndRewind(this.comparator()).then(() => this.populateChildren());
266
266
  }
267
267
 
268
268
  expandWithoutPopulate(): Promise<void> {
@@ -292,7 +292,7 @@ export class HeapSnapshotGridNode extends
292
292
  return;
293
293
  }
294
294
  const end = Math.min(firstNotSerializedPosition + this.dataGridInternal.defaultPopulateCount(), toPosition);
295
- this.provider()
295
+ void this.provider()
296
296
  .serializeItemsRange(firstNotSerializedPosition, end)
297
297
  .then(itemsRange => childrenRetrieved.call(this, itemsRange, toPosition));
298
298
  firstNotSerializedPosition = end;
@@ -460,7 +460,7 @@ export class HeapSnapshotGridNode extends
460
460
 
461
461
  for (const child of this.allChildren()) {
462
462
  if (child.expanded) {
463
- child.sort();
463
+ void child.sort();
464
464
  }
465
465
  }
466
466
  this.dataGridInternal.recursiveSortingLeave();
@@ -599,7 +599,7 @@ export abstract class HeapSnapshotGenericObjectNode extends HeapSnapshotGridNode
599
599
  div.appendChild(UI.Fragment.html`<span class="heap-object-tag" title="${
600
600
  i18nString(UIStrings.detachedFromDomTree)}">✀</span>`);
601
601
  }
602
- this.appendSourceLocation(div);
602
+ void this.appendSourceLocation(div);
603
603
  const cell = (fragment.element() as HTMLElement);
604
604
  if (this.depth) {
605
605
  cell.style.setProperty(
@@ -714,7 +714,7 @@ export class HeapSnapshotObjectNode extends HeapSnapshotGenericObjectNode {
714
714
  this.parentObjectNode = parentObjectNode;
715
715
  this.cycledWithAncestorGridNode = this.findAncestorWithSameSnapshotNodeId();
716
716
  if (!this.cycledWithAncestorGridNode) {
717
- this.updateHasChildren();
717
+ void this.updateHasChildren();
718
718
  }
719
719
 
720
720
  const data = this.data;
@@ -843,7 +843,8 @@ export class HeapSnapshotRetainingObjectNode extends HeapSnapshotObjectNode {
843
843
 
844
844
  expandRetainersChain(maxExpandLevels: number): void {
845
845
  if (!this.populated) {
846
- this.once(HeapSnapshotGridNode.Events.PopulateComplete).then(() => this.expandRetainersChain(maxExpandLevels));
846
+ void this.once(HeapSnapshotGridNode.Events.PopulateComplete)
847
+ .then(() => this.expandRetainersChain(maxExpandLevels));
847
848
  this.populate();
848
849
  return;
849
850
  }
@@ -868,7 +869,7 @@ export class HeapSnapshotInstanceNode extends HeapSnapshotGenericObjectNode {
868
869
  super(dataGrid, node);
869
870
  this.baseSnapshotOrSnapshot = snapshot;
870
871
  this.isDeletedNode = isDeletedNode;
871
- this.updateHasChildren();
872
+ void this.updateHasChildren();
872
873
 
873
874
  const data = this.data;
874
875
  data['count'] = '';
@@ -1246,7 +1247,7 @@ export class AllocationGridNode extends HeapSnapshotGridNode {
1246
1247
  if (this.populated) {
1247
1248
  return;
1248
1249
  }
1249
- this.doPopulate();
1250
+ void this.doPopulate();
1250
1251
  }
1251
1252
 
1252
1253
  async doPopulate(): Promise<void> {
@@ -431,7 +431,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
431
431
  this.currentPerspective.activate(this);
432
432
  this.dataGrid = this.currentPerspective.masterGrid(this);
433
433
 
434
- this.populate();
434
+ void this.populate();
435
435
  this.searchThrottler = new Common.Throttler.Throttler(0);
436
436
 
437
437
  for (const existingProfile of this.profiles()) {
@@ -478,7 +478,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
478
478
 
479
479
  showObject(snapshotObjectId: string, perspectiveName: string): void {
480
480
  if (Number(snapshotObjectId) <= this.profile.maxJSObjectId) {
481
- this.selectLiveObject(perspectiveName, snapshotObjectId);
481
+ void this.selectLiveObject(perspectiveName, snapshotObjectId);
482
482
  } else {
483
483
  this.parentDataDisplayDelegate.showObject(snapshotObjectId, perspectiveName);
484
484
  }
@@ -508,9 +508,9 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
508
508
  async populate(): Promise<void> {
509
509
  const heapSnapshotProxy = await this.profile.loadPromise;
510
510
 
511
- this.retrieveStatistics(heapSnapshotProxy);
511
+ void this.retrieveStatistics(heapSnapshotProxy);
512
512
  if (this.dataGrid) {
513
- this.dataGrid.setDataSource(heapSnapshotProxy, 0);
513
+ void this.dataGrid.setDataSource(heapSnapshotProxy, 0);
514
514
  }
515
515
 
516
516
  if (this.profile.profileType().id === TrackingHeapSnapshotProfileType.TypeId && this.profile.fromFile()) {
@@ -599,7 +599,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
599
599
  searchConfig.query.trim(), searchConfig.caseSensitive, searchConfig.isRegex, shouldJump,
600
600
  jumpBackwards || false);
601
601
 
602
- this.searchThrottler.schedule(this.performSearchInternal.bind(this, nextQuery));
602
+ void this.searchThrottler.schedule(this.performSearchInternal.bind(this, nextQuery));
603
603
  }
604
604
 
605
605
  async performSearchInternal(nextQuery: HeapSnapshotModel.HeapSnapshotModel.SearchConfig): Promise<void> {
@@ -649,7 +649,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
649
649
  return;
650
650
  }
651
651
  this.currentSearchResultIndex = (this.currentSearchResultIndex + 1) % this.searchResults.length;
652
- this.searchThrottler.schedule(this.jumpToSearchResult.bind(this, this.currentSearchResultIndex));
652
+ void this.searchThrottler.schedule(this.jumpToSearchResult.bind(this, this.currentSearchResultIndex));
653
653
  }
654
654
 
655
655
  jumpToPreviousSearchResult(): void {
@@ -658,7 +658,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
658
658
  }
659
659
  this.currentSearchResultIndex =
660
660
  (this.currentSearchResultIndex + this.searchResults.length - 1) % this.searchResults.length;
661
- this.searchThrottler.schedule(this.jumpToSearchResult.bind(this, this.currentSearchResultIndex));
661
+ void this.searchThrottler.schedule(this.jumpToSearchResult.bind(this, this.currentSearchResultIndex));
662
662
  }
663
663
 
664
664
  async jumpToSearchResult(searchResultIndex: number): Promise<void> {
@@ -692,7 +692,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
692
692
  const dataGrid = (this.dataGrid as HeapSnapshotDiffDataGrid);
693
693
  // Change set base data source only if main data source is already set.
694
694
  if (dataGrid.snapshot) {
695
- this.baseProfile.loadPromise.then(dataGrid.setBaseDataSource.bind(dataGrid));
695
+ void this.baseProfile.loadPromise.then(dataGrid.setBaseDataSource.bind(dataGrid));
696
696
  }
697
697
 
698
698
  if (!this.currentQuery || !this.searchResults) {
@@ -746,7 +746,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
746
746
  const selectedNode = (event.data as HeapSnapshotGridNode);
747
747
  const heapProfilerModel = this.profile.heapProfilerModel();
748
748
  if (heapProfilerModel && selectedNode instanceof HeapSnapshotGenericObjectNode) {
749
- heapProfilerModel.addInspectedHeapObject(
749
+ void heapProfilerModel.addInspectedHeapObject(
750
750
  String(selectedNode.snapshotNodeId) as Protocol.HeapProfiler.HeapSnapshotObjectId);
751
751
  }
752
752
  }
@@ -754,9 +754,9 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
754
754
  setSelectedNodeForDetailsView(nodeItem: HeapSnapshotGridNode|null): void {
755
755
  const dataSource = nodeItem && nodeItem.retainersDataSource();
756
756
  if (dataSource) {
757
- this.retainmentDataGrid.setDataSource(dataSource.snapshot, dataSource.snapshotNodeIndex);
757
+ void this.retainmentDataGrid.setDataSource(dataSource.snapshot, dataSource.snapshotNodeIndex);
758
758
  if (this.allocationStackView) {
759
- this.allocationStackView.setAllocatedObject(dataSource.snapshot, dataSource.snapshotNodeIndex);
759
+ void this.allocationStackView.setAllocatedObject(dataSource.snapshot, dataSource.snapshotNodeIndex);
760
760
  }
761
761
  } else {
762
762
  if (this.allocationStackView) {
@@ -797,7 +797,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
797
797
  return;
798
798
  }
799
799
  if (dataGrid.snapshot !== snapshotProxy) {
800
- dataGrid.setDataSource(snapshotProxy, 0);
800
+ void dataGrid.setDataSource(snapshotProxy, 0);
801
801
  }
802
802
  if (dataGrid !== this.diffDataGrid) {
803
803
  return;
@@ -835,7 +835,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
835
835
  this.dataGrid.updateWidths();
836
836
  }
837
837
 
838
- this.updateDataSourceAndView();
838
+ void this.updateDataSourceAndView();
839
839
 
840
840
  if (!this.currentQuery || !this.searchResults) {
841
841
  return;
@@ -1189,7 +1189,7 @@ export class HeapSnapshotProfileType extends
1189
1189
  }
1190
1190
 
1191
1191
  modelAdded(heapProfilerModel: SDK.HeapProfilerModel.HeapProfilerModel): void {
1192
- heapProfilerModel.enable();
1192
+ void heapProfilerModel.enable();
1193
1193
  }
1194
1194
 
1195
1195
  modelRemoved(_heapProfilerModel: SDK.HeapProfilerModel.HeapProfilerModel): void {
@@ -1212,7 +1212,7 @@ export class HeapSnapshotProfileType extends
1212
1212
  }
1213
1213
 
1214
1214
  buttonClicked(): boolean {
1215
- this.takeHeapSnapshot();
1215
+ void this.takeHeapSnapshot();
1216
1216
  Host.userMetrics.actionTaken(Host.UserMetrics.Action.ProfilesHeapProfileTaken);
1217
1217
  return false;
1218
1218
  }
@@ -1429,7 +1429,7 @@ export class TrackingHeapSnapshotProfileType extends
1429
1429
  if (!heapProfilerModel) {
1430
1430
  return;
1431
1431
  }
1432
- heapProfilerModel.startTrackingHeapObjects(this.recordAllocationStacksSettingInternal.get());
1432
+ void heapProfilerModel.startTrackingHeapObjects(this.recordAllocationStacksSettingInternal.get());
1433
1433
  }
1434
1434
 
1435
1435
  customContent(): Element|null {
@@ -1486,7 +1486,7 @@ export class TrackingHeapSnapshotProfileType extends
1486
1486
 
1487
1487
  toggleRecording(): boolean {
1488
1488
  if (this.recording) {
1489
- this.stopRecordingProfile();
1489
+ void this.stopRecordingProfile();
1490
1490
  } else {
1491
1491
  this.startRecordingProfile();
1492
1492
  }
@@ -1517,7 +1517,7 @@ export class TrackingHeapSnapshotProfileType extends
1517
1517
  }
1518
1518
 
1519
1519
  profileBeingRecordedRemoved(): void {
1520
- this.stopRecordingProfile();
1520
+ void this.stopRecordingProfile();
1521
1521
  this.profileSamples = null;
1522
1522
  }
1523
1523
 
@@ -1602,7 +1602,7 @@ export class HeapProfileHeader extends ProfileHeader {
1602
1602
 
1603
1603
  finishLoad(): void {
1604
1604
  if (!this.wasDisposed && this.receiver) {
1605
- this.receiver.close();
1605
+ void this.receiver.close();
1606
1606
  }
1607
1607
  if (!this.bufferedWriter) {
1608
1608
  return;
@@ -1678,7 +1678,7 @@ export class HeapProfileHeader extends ProfileHeader {
1678
1678
 
1679
1679
  ++this.totalNumberOfChunks;
1680
1680
  if (this.receiver) {
1681
- this.receiver.write(chunk);
1681
+ void this.receiver.write(chunk);
1682
1682
  }
1683
1683
  }
1684
1684
 
@@ -1720,7 +1720,7 @@ export class HeapProfileHeader extends ProfileHeader {
1720
1720
  }
1721
1721
  if (this.failedToCreateTempFile) {
1722
1722
  Common.Console.Console.instance().error('Failed to open temp file with heap snapshot');
1723
- fileOutputStream.close();
1723
+ void fileOutputStream.close();
1724
1724
  return;
1725
1725
  }
1726
1726
  if (this.tempFile) {
@@ -1734,12 +1734,12 @@ export class HeapProfileHeader extends ProfileHeader {
1734
1734
  return;
1735
1735
  }
1736
1736
  this.onTempFileReady = (): void => {
1737
- onOpen(accepted);
1737
+ void onOpen(accepted);
1738
1738
  };
1739
1739
  this.updateSaveProgress(0, 1);
1740
1740
  };
1741
1741
 
1742
- fileOutputStream.open(this.fileName).then(onOpen.bind(this));
1742
+ void fileOutputStream.open(this.fileName).then(onOpen.bind(this));
1743
1743
  }
1744
1744
 
1745
1745
  onChunkTransferred(reader: Bindings.FileUtils.ChunkedReader): void {
@@ -1815,7 +1815,7 @@ export class HeapAllocationStackView extends UI.Widget.Widget {
1815
1815
  if (!contextMenu.containsTarget(link)) {
1816
1816
  contextMenu.appendApplicableItems(link);
1817
1817
  }
1818
- contextMenu.show();
1818
+ void contextMenu.show();
1819
1819
  event.consume(true);
1820
1820
  }
1821
1821
 
@@ -173,7 +173,7 @@ export class LiveHeapProfileView extends UI.Widget.VBox {
173
173
 
174
174
  wasShown(): void {
175
175
  super.wasShown();
176
- this.poll();
176
+ void this.poll();
177
177
  this.registerCSSFiles([liveHeapProfileStyles]);
178
178
  this.setting.addChangeListener(this.settingChanged, this);
179
179
  }
@@ -294,7 +294,7 @@ export class LiveHeapProfileView extends UI.Widget.VBox {
294
294
  }
295
295
  const sourceCode = Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(node.url);
296
296
  if (sourceCode) {
297
- Common.Revealer.reveal(sourceCode);
297
+ void Common.Revealer.reveal(sourceCode);
298
298
  }
299
299
  }
300
300
 
@@ -325,7 +325,7 @@ export class LiveHeapProfileView extends UI.Widget.VBox {
325
325
  if (enable) {
326
326
  this.startRecording(false);
327
327
  } else {
328
- this.stopRecording();
328
+ void this.stopRecording();
329
329
  }
330
330
  }
331
331
 
@@ -403,7 +403,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
403
403
  }
404
404
 
405
405
  handleAction(_context: UI.Context.Context, actionId: string): boolean {
406
- (async(): Promise<void> => {
406
+ void (async(): Promise<void> => {
407
407
  const profileViewId = 'live_heap_profile';
408
408
  await UI.ViewManager.ViewManager.instance().showView(profileViewId);
409
409
  const view = UI.ViewManager.ViewManager.instance().view(profileViewId);
@@ -164,7 +164,7 @@ export class ProfileSidebarTreeElement extends UI.TreeOutline.TreeElement {
164
164
  contextMenu.saveSection().appendItem(i18nString(UIStrings.saveWithEllipsis), profile.saveToFile.bind(profile));
165
165
  }
166
166
  contextMenu.footerSection().appendItem(i18nString(UIStrings.delete), this.ondelete.bind(this));
167
- contextMenu.show();
167
+ void contextMenu.show();
168
168
  }
169
169
 
170
170
  saveProfile(_event: Event): void {
@@ -409,7 +409,7 @@ export class ProfileView extends UI.View.SimpleView implements UI.SearchableView
409
409
  this.dataProvider = this.createFlameChartDataProvider();
410
410
  this.flameChart = new CPUProfileFlameChart(this.searchableViewInternal, this.dataProvider);
411
411
  this.flameChart.addEventListener(PerfUI.FlameChart.Events.EntryInvoked, event => {
412
- this.onEntryInvoked(event);
412
+ void this.onEntryInvoked(event);
413
413
  });
414
414
  }
415
415
 
@@ -431,7 +431,7 @@ export class ProfileView extends UI.View.SimpleView implements UI.SearchableView
431
431
  (debuggerModel.createRawLocation(script, node.lineNumber, node.columnNumber) as SDK.DebuggerModel.Location);
432
432
  const uiLocation =
433
433
  await Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance().rawLocationToUILocation(location);
434
- Common.Revealer.reveal(uiLocation);
434
+ void Common.Revealer.reveal(uiLocation);
435
435
  }
436
436
 
437
437
  changeView(): void {
@@ -610,7 +610,7 @@ export class WritableProfileHeader extends ProfileHeader implements Common.Strin
610
610
  if (data) {
611
611
  await fileOutputStream.write(data);
612
612
  }
613
- fileOutputStream.close();
613
+ void fileOutputStream.close();
614
614
  }
615
615
 
616
616
  async loadFromFile(file: File): Promise<Error|null> {
@@ -227,7 +227,7 @@ export class ProfilesPanel extends UI.Panel.PanelWithSidebar implements DataDisp
227
227
 
228
228
  const error = await profileType.loadFromFile(file);
229
229
  if (error && 'message' in error) {
230
- UI.UIUtils.MessageDialog.show(i18nString(UIStrings.profileLoadingFailedS, {PH1: error.message}));
230
+ void UI.UIUtils.MessageDialog.show(i18nString(UIStrings.profileLoadingFailedS, {PH1: error.message}));
231
231
  }
232
232
  }
233
233
 
@@ -357,7 +357,7 @@ export class ProfilesPanel extends UI.Panel.PanelWithSidebar implements DataDisp
357
357
  contextMenu.defaultSection().appendItem(
358
358
  i18nString(UIStrings.load), this.fileSelectorElement.click.bind(this.fileSelectorElement));
359
359
  }
360
- contextMenu.show();
360
+ void contextMenu.show();
361
361
  }
362
362
 
363
363
  showLoadFromFileDialog(): void {
@@ -419,7 +419,7 @@ export class ProfilesPanel extends UI.Panel.PanelWithSidebar implements DataDisp
419
419
 
420
420
  this.profileViewToolbar.removeToolbarItems();
421
421
 
422
- (view as unknown as UI.View.View).toolbarItems().then(items => {
422
+ void (view as unknown as UI.View.View).toolbarItems().then(items => {
423
423
  items.map(item => this.profileViewToolbar.appendToolbarItem(item));
424
424
  });
425
425
 
@@ -148,7 +148,7 @@ export class ProtocolMonitorImpl extends UI.Widget.VBox {
148
148
 
149
149
  const saveButton = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.save), 'largeicon-download');
150
150
  saveButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, () => {
151
- this.saveAsFile();
151
+ void this.saveAsFile();
152
152
  });
153
153
  topToolbar.appendToolbarItem(saveButton);
154
154
 
@@ -474,8 +474,8 @@ export class ProtocolMonitorImpl extends UI.Widget.VBox {
474
474
  return;
475
475
  }
476
476
 
477
- stream.write(JSON.stringify(this.messages, null, ' '));
478
- stream.close();
477
+ void stream.write(JSON.stringify(this.messages, null, ' '));
478
+ void stream.close();
479
479
  }
480
480
  }
481
481
 
@@ -35,7 +35,7 @@ export class InputModel extends SDK.SDKModel.SDKModel<void> {
35
35
  }
36
36
  const keyboardEvent = event as KeyboardEvent;
37
37
  const text = event.type === 'keypress' ? String.fromCharCode(keyboardEvent.charCode) : undefined;
38
- this.inputAgent.invoke_dispatchKeyEvent({
38
+ void this.inputAgent.invoke_dispatchKeyEvent({
39
39
  type: type,
40
40
  modifiers: this.modifiersForEvent(keyboardEvent),
41
41
  text: text,
@@ -99,7 +99,7 @@ export class InputModel extends SDK.SDKModel.SDKModel<void> {
99
99
  if (event.type === 'mouseup') {
100
100
  this.activeTouchOffsetTop = null;
101
101
  }
102
- this.inputAgent.invoke_emulateTouchFromMouseEvent(params);
102
+ void this.inputAgent.invoke_emulateTouchFromMouseEvent(params);
103
103
  }
104
104
 
105
105
  cancelTouch(): void {
@@ -107,7 +107,7 @@ export class InputModel extends SDK.SDKModel.SDKModel<void> {
107
107
  const params = this.activeTouchParams;
108
108
  this.activeTouchParams = null;
109
109
  params.type = 'mouseReleased' as Protocol.Input.EmulateTouchFromMouseEventRequestType;
110
- this.inputAgent.invoke_emulateTouchFromMouseEvent(params);
110
+ void this.inputAgent.invoke_emulateTouchFromMouseEvent(params);
111
111
  }
112
112
  }
113
113