chrome-devtools-frontend 1.0.955092 → 1.0.955630

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 (305) hide show
  1. package/.eslintrc.js +1 -0
  2. package/config/owner/COMMON_OWNERS +2 -2
  3. package/front_end/core/common/Console.ts +1 -1
  4. package/front_end/core/common/ResolverBase.ts +1 -1
  5. package/front_end/core/common/Throttler.ts +1 -1
  6. package/front_end/core/common/Worker.ts +4 -4
  7. package/front_end/core/host/InspectorFrontendHost.ts +1 -1
  8. package/front_end/core/host/ResourceLoader.ts +2 -2
  9. package/front_end/core/i18n/DevToolsLocale.ts +0 -2
  10. package/front_end/core/i18n/i18nImpl.ts +0 -2
  11. package/front_end/core/i18n/locales/en-US.json +3 -0
  12. package/front_end/core/i18n/locales/en-XL.json +3 -0
  13. package/front_end/core/sdk/AccessibilityModel.ts +1 -1
  14. package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
  15. package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
  16. package/front_end/core/sdk/CSSModel.ts +7 -7
  17. package/front_end/core/sdk/CSSProperty.ts +1 -1
  18. package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
  19. package/front_end/core/sdk/ChildTargetManager.ts +6 -6
  20. package/front_end/core/sdk/Connections.ts +2 -2
  21. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  22. package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
  23. package/front_end/core/sdk/DOMModel.ts +17 -17
  24. package/front_end/core/sdk/DebuggerModel.ts +24 -24
  25. package/front_end/core/sdk/EmulationModel.ts +16 -16
  26. package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
  27. package/front_end/core/sdk/IsolateManager.ts +2 -2
  28. package/front_end/core/sdk/IssuesModel.ts +1 -1
  29. package/front_end/core/sdk/LogModel.ts +3 -3
  30. package/front_end/core/sdk/NetworkManager.ts +25 -25
  31. package/front_end/core/sdk/OverlayModel.ts +23 -23
  32. package/front_end/core/sdk/PageResourceLoader.ts +1 -1
  33. package/front_end/core/sdk/PaintProfiler.ts +1 -1
  34. package/front_end/core/sdk/RemoteObject.ts +2 -2
  35. package/front_end/core/sdk/Resource.ts +2 -2
  36. package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
  37. package/front_end/core/sdk/RuntimeModel.ts +11 -11
  38. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
  39. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
  40. package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
  41. package/front_end/core/sdk/SourceMapManager.ts +1 -1
  42. package/front_end/core/sdk/TargetManager.ts +2 -2
  43. package/front_end/core/sdk/TracingManager.ts +1 -1
  44. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
  45. package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
  46. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
  47. package/front_end/entrypoints/js_app/js_app.ts +2 -2
  48. package/front_end/entrypoints/main/MainImpl.ts +11 -11
  49. package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
  50. package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
  51. package/front_end/models/bindings/BreakpointManager.ts +21 -23
  52. package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
  53. package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
  54. package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
  55. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
  56. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
  57. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
  58. package/front_end/models/bindings/FileUtils.ts +5 -5
  59. package/front_end/models/bindings/IgnoreListManager.ts +4 -4
  60. package/front_end/models/bindings/LiveLocation.ts +9 -0
  61. package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
  62. package/front_end/models/bindings/ResourceMapping.ts +1 -1
  63. package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
  64. package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
  65. package/front_end/models/bindings/TempFile.ts +1 -1
  66. package/front_end/models/emulation/DeviceModeModel.ts +5 -5
  67. package/front_end/models/emulation/EmulatedDevices.ts +1 -1
  68. package/front_end/models/extensions/ExtensionPanel.ts +1 -1
  69. package/front_end/models/extensions/ExtensionServer.ts +8 -8
  70. package/front_end/models/formatter/SourceFormatter.ts +2 -2
  71. package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
  72. package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
  73. package/front_end/models/persistence/Automapping.ts +3 -3
  74. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
  75. package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
  76. package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
  77. package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
  78. package/front_end/models/persistence/PersistenceActions.ts +3 -3
  79. package/front_end/models/persistence/PersistenceImpl.ts +2 -2
  80. package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
  81. package/front_end/models/workspace/UISourceCode.ts +2 -2
  82. package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
  83. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
  84. package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
  85. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
  86. package/front_end/panels/animation/AnimationModel.ts +6 -6
  87. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  88. package/front_end/panels/animation/AnimationUI.ts +3 -3
  89. package/front_end/panels/application/AppManifestView.ts +4 -4
  90. package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
  91. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
  92. package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
  93. package/front_end/panels/application/BackgroundServiceView.ts +3 -3
  94. package/front_end/panels/application/CookieItemsView.ts +5 -5
  95. package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
  96. package/front_end/panels/application/DOMStorageModel.ts +4 -4
  97. package/front_end/panels/application/DatabaseModel.ts +2 -2
  98. package/front_end/panels/application/DatabaseQueryView.ts +2 -2
  99. package/front_end/panels/application/DatabaseTableView.ts +1 -1
  100. package/front_end/panels/application/IndexedDBModel.ts +11 -11
  101. package/front_end/panels/application/IndexedDBViews.ts +5 -5
  102. package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
  103. package/front_end/panels/application/ReportingApiView.ts +1 -1
  104. package/front_end/panels/application/ResourcesPanel.ts +2 -2
  105. package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
  106. package/front_end/panels/application/ServiceWorkersView.ts +15 -15
  107. package/front_end/panels/application/StorageView.ts +5 -5
  108. package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
  109. package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
  110. package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
  111. package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
  112. package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
  113. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
  114. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
  115. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
  116. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
  117. package/front_end/panels/changes/ChangesView.ts +4 -4
  118. package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
  119. package/front_end/panels/console/ConsolePinPane.ts +4 -4
  120. package/front_end/panels/console/ConsolePrompt.ts +4 -4
  121. package/front_end/panels/console/ConsoleView.ts +6 -6
  122. package/front_end/panels/console/ConsoleViewMessage.ts +8 -7
  123. package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
  124. package/front_end/panels/coverage/CoverageListView.ts +3 -3
  125. package/front_end/panels/coverage/CoverageModel.ts +3 -3
  126. package/front_end/panels/coverage/CoverageView.ts +6 -6
  127. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
  128. package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
  129. package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
  130. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
  131. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
  132. package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
  133. package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
  134. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
  135. package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
  136. package/front_end/panels/elements/DOMLinkifier.ts +2 -2
  137. package/front_end/panels/elements/ElementsPanel.ts +19 -19
  138. package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
  139. package/front_end/panels/elements/ElementsTreeElement.ts +9 -9
  140. package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
  141. package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
  142. package/front_end/panels/elements/InspectElementModeController.ts +3 -3
  143. package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
  144. package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
  145. package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
  146. package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
  147. package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
  148. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  149. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
  150. package/front_end/panels/elements/elementsPanel.css +1 -0
  151. package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
  152. package/front_end/panels/emulation/DeviceModeView.ts +2 -2
  153. package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
  154. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
  155. package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
  156. package/front_end/panels/input/InputModel.ts +2 -2
  157. package/front_end/panels/input/InputTimeline.ts +6 -6
  158. package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
  159. package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
  160. package/front_end/panels/issues/AffectedElementsView.ts +1 -1
  161. package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
  162. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
  163. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
  164. package/front_end/panels/issues/IssueView.ts +1 -1
  165. package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
  166. package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
  167. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  168. package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
  169. package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
  170. package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
  171. package/front_end/panels/layers/LayerTreeModel.ts +4 -4
  172. package/front_end/panels/layers/LayersPanel.ts +4 -4
  173. package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
  174. package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
  175. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
  176. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
  177. package/front_end/panels/media/MediaModel.ts +1 -1
  178. package/front_end/panels/media/PlayerListView.ts +1 -1
  179. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
  180. package/front_end/panels/network/BinaryResourceView.ts +1 -1
  181. package/front_end/panels/network/BlockedURLsPane.ts +5 -5
  182. package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
  183. package/front_end/panels/network/NetworkItemView.ts +2 -2
  184. package/front_end/panels/network/NetworkLogView.ts +4 -4
  185. package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
  186. package/front_end/panels/network/NetworkPanel.ts +8 -8
  187. package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
  188. package/front_end/panels/network/RequestHeadersView.ts +4 -3
  189. package/front_end/panels/network/RequestPayloadView.ts +8 -8
  190. package/front_end/panels/network/RequestPreviewView.ts +1 -1
  191. package/front_end/panels/network/RequestResponseView.ts +2 -2
  192. package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
  193. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
  194. package/front_end/panels/profiler/CPUProfileView.ts +4 -4
  195. package/front_end/panels/profiler/HeapProfileView.ts +6 -6
  196. package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
  197. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
  198. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
  199. package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
  200. package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
  201. package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
  202. package/front_end/panels/profiler/ProfileView.ts +3 -3
  203. package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
  204. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
  205. package/front_end/panels/screencast/InputModel.ts +3 -3
  206. package/front_end/panels/screencast/ScreencastView.ts +10 -10
  207. package/front_end/panels/search/SearchResultsPane.ts +1 -1
  208. package/front_end/panels/search/SearchView.ts +2 -2
  209. package/front_end/panels/security/SecurityModel.ts +1 -1
  210. package/front_end/panels/security/SecurityPanel.ts +2 -2
  211. package/front_end/panels/sensors/SensorsView.ts +3 -2
  212. package/front_end/panels/settings/SettingsScreen.ts +5 -5
  213. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  214. package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
  215. package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
  216. package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
  217. package/front_end/panels/sources/CoveragePlugin.ts +3 -3
  218. package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
  219. package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
  220. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  221. package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
  222. package/front_end/panels/sources/NavigatorView.ts +6 -6
  223. package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
  224. package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
  225. package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
  226. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  227. package/front_end/panels/sources/SearchSourcesView.ts +2 -2
  228. package/front_end/panels/sources/SourcesNavigator.ts +9 -9
  229. package/front_end/panels/sources/SourcesPanel.ts +27 -24
  230. package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
  231. package/front_end/panels/sources/SourcesView.ts +4 -4
  232. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  233. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  234. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
  235. package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
  236. package/front_end/panels/timeline/TimelineController.ts +1 -1
  237. package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
  238. package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
  239. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -5
  240. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +4 -7
  241. package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
  242. package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
  243. package/front_end/panels/timeline/TimelineLoader.ts +2 -2
  244. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
  245. package/front_end/panels/timeline/TimelinePanel.ts +10 -10
  246. package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
  247. package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
  248. package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
  249. package/front_end/panels/web_audio/WebAudioView.ts +1 -1
  250. package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
  251. package/front_end/ui/components/buttons/Button.ts +10 -10
  252. package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
  253. package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
  254. package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
  255. package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
  256. package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
  257. package/front_end/ui/components/icon_button/Icon.ts +1 -1
  258. package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
  259. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
  260. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
  261. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
  262. package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
  263. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
  264. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
  265. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
  266. package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
  267. package/front_end/ui/components/text_editor/javascript.ts +2 -2
  268. package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
  269. package/front_end/ui/legacy/Context.ts +1 -1
  270. package/front_end/ui/legacy/ContextMenu.ts +1 -1
  271. package/front_end/ui/legacy/InspectorView.ts +2 -3
  272. package/front_end/ui/legacy/PopoverHelper.ts +1 -1
  273. package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
  274. package/front_end/ui/legacy/TabbedPane.ts +2 -2
  275. package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
  276. package/front_end/ui/legacy/Toolbar.ts +3 -3
  277. package/front_end/ui/legacy/Treeoutline.ts +6 -6
  278. package/front_end/ui/legacy/ViewManager.ts +9 -9
  279. package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
  280. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -2
  281. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
  282. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
  283. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
  284. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
  285. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
  286. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
  287. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  288. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
  289. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
  290. package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
  291. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
  292. package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
  293. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
  294. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
  295. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
  296. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
  297. package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -3
  298. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
  299. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
  300. package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
  301. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  302. package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
  303. package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
  304. package/front_end/ui/legacy/toolbar.css +1 -0
  305. package/package.json +1 -1
@@ -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
 
@@ -219,7 +219,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
219
219
  Math.floor(Math.min(maxImageDimension, dimensions.height)), undefined, this.screencastFrame.bind(this),
220
220
  this.screencastVisibilityChanged.bind(this));
221
221
  for (const emulationModel of SDK.TargetManager.TargetManager.instance().models(SDK.EmulationModel.EmulationModel)) {
222
- emulationModel.overrideEmulateTouch(true);
222
+ void emulationModel.overrideEmulateTouch(true);
223
223
  }
224
224
  if (this.overlayModel) {
225
225
  this.overlayModel.setHighlighter(this);
@@ -233,7 +233,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
233
233
  this.isCasting = false;
234
234
  this.screenCaptureModel.stopScreencast();
235
235
  for (const emulationModel of SDK.TargetManager.TargetManager.instance().models(SDK.EmulationModel.EmulationModel)) {
236
- emulationModel.overrideEmulateTouch(false);
236
+ void emulationModel.overrideEmulateTouch(false);
237
237
  }
238
238
  if (this.overlayModel) {
239
239
  this.overlayModel.setHighlighter(null);
@@ -263,7 +263,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
263
263
  this.viewportElement.style.height = metadata.deviceHeight * this.screenZoom + bordersSize + 'px';
264
264
 
265
265
  const data = this.highlightNode ? {node: this.highlightNode, selectorList: undefined} : {clear: true};
266
- this.updateHighlightInOverlayAndRepaint(data, this.highlightConfig);
266
+ void this.updateHighlightInOverlayAndRepaint(data, this.highlightConfig);
267
267
  };
268
268
  this.imageElement.src = 'data:image/jpg;base64,' + base64Data;
269
269
  }
@@ -331,7 +331,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
331
331
  }
332
332
 
333
333
  if (event.type === 'mousemove') {
334
- this.updateHighlightInOverlayAndRepaint({node, selectorList: undefined}, this.inspectModeConfig);
334
+ void this.updateHighlightInOverlayAndRepaint({node, selectorList: undefined}, this.inspectModeConfig);
335
335
  this.domModel.overlayModel().nodeHighlightRequested({nodeId: node.id});
336
336
  } else if (event.type === 'click') {
337
337
  this.domModel.overlayModel().inspectNodeRequested({backendNodeId: node.backendNodeId()});
@@ -386,7 +386,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
386
386
  }
387
387
 
388
388
  highlightInOverlay(data: SDK.OverlayModel.HighlightData, config: Protocol.Overlay.HighlightConfig|null): void {
389
- this.updateHighlightInOverlayAndRepaint(data, config);
389
+ void this.updateHighlightInOverlayAndRepaint(data, config);
390
390
  }
391
391
 
392
392
  private async updateHighlightInOverlayAndRepaint(
@@ -417,7 +417,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
417
417
  }
418
418
 
419
419
  this.node = node;
420
- node.boxModel().then(model => {
420
+ void node.boxModel().then(model => {
421
421
  if (!model || !this.pageScaleFactor) {
422
422
  this.repaint();
423
423
  return;
@@ -673,7 +673,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
673
673
  this.navigationForward.addEventListener('click', this.navigateToHistoryEntry.bind(this, 1), false);
674
674
  this.navigationReload.addEventListener('click', this.navigateReload.bind(this), false);
675
675
  this.navigationUrl.addEventListener('keyup', this.navigationUrlKeyUp.bind(this), true);
676
- this.requestNavigationHistory();
676
+ void this.requestNavigationHistory();
677
677
  this.resourceTreeModel.addEventListener(
678
678
  SDK.ResourceTreeModel.Events.MainFrameNavigated, this.requestNavigationHistoryEvent, this);
679
679
  this.resourceTreeModel.addEventListener(
@@ -690,7 +690,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
690
690
  return;
691
691
  }
692
692
  this.resourceTreeModel.navigateToHistoryEntry(this.historyEntries[newIndex]);
693
- this.requestNavigationHistory();
693
+ void this.requestNavigationHistory();
694
694
  }
695
695
 
696
696
  private navigateReload(): void {
@@ -717,13 +717,13 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
717
717
  // encodeURI ensures an encoded URL is always passed to the backend
718
718
  // This allows the input field to support both encoded and decoded URLs
719
719
  if (this.resourceTreeModel) {
720
- this.resourceTreeModel.navigate(encodeURI(decodeURI(url)));
720
+ void this.resourceTreeModel.navigate(encodeURI(decodeURI(url)));
721
721
  }
722
722
  this.canvasElement.focus();
723
723
  }
724
724
 
725
725
  private requestNavigationHistoryEvent(): void {
726
- this.requestNavigationHistory();
726
+ void this.requestNavigationHistory();
727
727
  }
728
728
 
729
729
  private async requestNavigationHistory(): Promise<void> {
@@ -206,7 +206,7 @@ export class SearchResultsTreeElement extends UI.TreeOutline.TreeElement {
206
206
  searchMatchElement.listItemElement.addEventListener('keydown', event => {
207
207
  if (event.key === 'Enter') {
208
208
  event.consume(true);
209
- Common.Revealer.reveal(searchResult.matchRevealable(i));
209
+ void Common.Revealer.reveal(searchResult.matchRevealable(i));
210
210
  }
211
211
  });
212
212
  searchMatchElement.tooltip = lineContent;
@@ -315,7 +315,7 @@ export class SearchView extends UI.Widget.VBox {
315
315
  this.progressIndicator = new UI.ProgressIndicator.ProgressIndicator();
316
316
  this.searchStarted(this.progressIndicator);
317
317
  if (this.searchScope) {
318
- this.searchScope.performSearch(
318
+ void this.searchScope.performSearch(
319
319
  searchConfig, this.progressIndicator, this.onSearchResult.bind(this, this.searchId),
320
320
  this.onSearchFinished.bind(this, this.searchId));
321
321
  }
@@ -488,6 +488,6 @@ export class SearchView extends UI.Widget.VBox {
488
488
  if (!searchConfig.query() || !searchConfig.query().length) {
489
489
  return;
490
490
  }
491
- this.startSearch(searchConfig);
491
+ void this.startSearch(searchConfig);
492
492
  }
493
493
  }
@@ -49,7 +49,7 @@ export class SecurityModel extends SDK.SDKModel.SDKModel<EventTypes> {
49
49
  this.dispatcher = new SecurityDispatcher(this);
50
50
  this.securityAgent = target.securityAgent();
51
51
  target.registerSecurityDispatcher(this.dispatcher);
52
- this.securityAgent.invoke_enable();
52
+ void this.securityAgent.invoke_enable();
53
53
  }
54
54
 
55
55
  resourceTreeModel(): SDK.ResourceTreeModel.ResourceTreeModel {
@@ -1382,7 +1382,7 @@ export class SecurityMainView extends UI.Widget.VBox {
1382
1382
 
1383
1383
  showNetworkFilter(filterKey: string, e: Event): void {
1384
1384
  e.consume();
1385
- Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters(
1385
+ void Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters(
1386
1386
  [{filterType: NetworkForward.UIFilter.FilterType.MixedContent, filterValue: filterKey}]));
1387
1387
  }
1388
1388
  wasShown(): void {
@@ -1416,7 +1416,7 @@ export class SecurityOriginView extends UI.Widget.VBox {
1416
1416
  const originNetworkButton = UI.UIUtils.createTextButton(i18nString(UIStrings.viewRequestsInNetworkPanel), event => {
1417
1417
  event.consume();
1418
1418
  const parsedURL = new Common.ParsedURL.ParsedURL(origin);
1419
- Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters([
1419
+ void Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters([
1420
1420
  {filterType: NetworkForward.UIFilter.FilterType.Domain, filterValue: parsedURL.host},
1421
1421
  {filterType: NetworkForward.UIFilter.FilterType.Scheme, filterValue: parsedURL.scheme},
1422
1422
  ]));
@@ -533,7 +533,8 @@ export class SensorsView extends UI.Widget.VBox {
533
533
  this.deviceOrientationSetting.set(this.deviceOrientation.toSetting());
534
534
  }
535
535
  for (const emulationModel of SDK.TargetManager.TargetManager.instance().models(SDK.EmulationModel.EmulationModel)) {
536
- emulationModel.emulateDeviceOrientation(this.deviceOrientationOverrideEnabled ? this.deviceOrientation : null);
536
+ void emulationModel.emulateDeviceOrientation(
537
+ this.deviceOrientationOverrideEnabled ? this.deviceOrientation : null);
537
538
  }
538
539
  }
539
540
 
@@ -792,7 +793,7 @@ let showActionDelegateInstance: ShowActionDelegate;
792
793
 
793
794
  export class ShowActionDelegate implements UI.ActionRegistration.ActionDelegate {
794
795
  handleAction(_context: UI.Context.Context, _actionId: string): boolean {
795
- UI.ViewManager.ViewManager.instance().showView('sensors');
796
+ void UI.ViewManager.ViewManager.instance().showView('sensors');
796
797
  return true;
797
798
  }
798
799
  static instance(opts: {
@@ -128,7 +128,7 @@ export class SettingsScreen extends UI.Widget.VBox implements UI.View.ViewLocati
128
128
  tabbedPane.makeVerticalTabLayout();
129
129
  const keyBindsView = UI.ViewManager.ViewManager.instance().view('keybinds');
130
130
  if (keyBindsView) {
131
- keyBindsView.widget().then(widget => {
131
+ void keyBindsView.widget().then(widget => {
132
132
  this.keybindsTab = widget as KeybindsSettingsTab;
133
133
  });
134
134
  }
@@ -506,14 +506,14 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
506
506
  handleAction(context: UI.Context.Context, actionId: string): boolean {
507
507
  switch (actionId) {
508
508
  case 'settings.show':
509
- SettingsScreen.showSettingsScreen({focusTabHeader: true} as ShowSettingsScreenOptions);
509
+ void SettingsScreen.showSettingsScreen({focusTabHeader: true} as ShowSettingsScreenOptions);
510
510
  return true;
511
511
  case 'settings.documentation':
512
512
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.openInNewTab(
513
513
  UI.UIUtils.addReferrerToURL('https://developer.chrome.com/docs/devtools/'));
514
514
  return true;
515
515
  case 'settings.shortcuts':
516
- SettingsScreen.showSettingsScreen({name: 'keybinds', focusTabHeader: true});
516
+ void SettingsScreen.showSettingsScreen({name: 'keybinds', focusTabHeader: true});
517
517
  return true;
518
518
  }
519
519
  return false;
@@ -541,7 +541,7 @@ export class Revealer implements Common.Revealer.Revealer {
541
541
  }
542
542
  if (settingRegistration.settingName === setting.name) {
543
543
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.bringToFront();
544
- SettingsScreen.showSettingsScreen();
544
+ void SettingsScreen.showSettingsScreen();
545
545
  success = true;
546
546
  }
547
547
  }
@@ -556,7 +556,7 @@ export class Revealer implements Common.Revealer.Revealer {
556
556
  const settings = view.settings();
557
557
  if (settings && settings.indexOf(setting.name) !== -1) {
558
558
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.bringToFront();
559
- SettingsScreen.showSettingsScreen({name: id} as ShowSettingsScreenOptions);
559
+ void SettingsScreen.showSettingsScreen({name: id} as ShowSettingsScreenOptions);
560
560
  success = true;
561
561
  }
562
562
  }
@@ -58,7 +58,7 @@ export class SyncSection extends HTMLElement {
58
58
  set data(data: SyncSectionData) {
59
59
  this.#syncInfo = data.syncInfo;
60
60
  this.#syncSetting = data.syncSetting;
61
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
61
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
62
62
  }
63
63
 
64
64
  #render(): void {
@@ -48,7 +48,7 @@ export class SnippetsQuickOpen extends QuickOpen.FilteredListWidget.Provider {
48
48
  if (itemIndex === null) {
49
49
  return;
50
50
  }
51
- evaluateScriptSnippet(this.snippets[itemIndex]);
51
+ void evaluateScriptSnippet(this.snippets[itemIndex]);
52
52
  }
53
53
 
54
54
  notFoundText(_query: string): string {
@@ -106,7 +106,7 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
106
106
 
107
107
  const content = oldCondition || '';
108
108
  const finishIfComplete = (view: CodeMirror.EditorView): boolean => {
109
- TextEditor.JavaScript.isExpressionComplete(view.state.doc.toString()).then((complete): void => {
109
+ void TextEditor.JavaScript.isExpressionComplete(view.state.doc.toString()).then((complete): void => {
110
110
  if (complete) {
111
111
  this.finishEditing(true, this.editor.state.doc.toString());
112
112
  } else {
@@ -215,7 +215,7 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
215
215
  if (this.isLogpoint) {
216
216
  condition = BreakpointEditDialog.conditionForLogpoint(condition);
217
217
  }
218
- this.onFinish({committed, condition});
218
+ void this.onFinish({committed, condition});
219
219
  }
220
220
 
221
221
  wasShown(): void {
@@ -169,7 +169,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
169
169
  }
170
170
 
171
171
  private update(): void {
172
- this.updateThrottler.schedule(() => this.doUpdate());
172
+ void this.updateThrottler.schedule(() => this.doUpdate());
173
173
  }
174
174
 
175
175
  private async doUpdate(): Promise<void> {
@@ -253,7 +253,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
253
253
 
254
254
  private refreshItem(item: Item): void {
255
255
  this.scheduledForUpdateItems.add(item);
256
- this.updateItemThrottler.schedule(async () => {
256
+ void this.updateItemThrottler.schedule(async () => {
257
257
  const items = Array.from(this.scheduledForUpdateItems);
258
258
  this.scheduledForUpdateItems.clear();
259
259
 
@@ -388,7 +388,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
388
388
  if (item.uiLocation) {
389
389
  this.appendIgnoreListURLContextMenuItems(contextMenu, item.uiLocation.uiSourceCode);
390
390
  }
391
- contextMenu.show();
391
+ void contextMenu.show();
392
392
  }
393
393
 
394
394
  private onClick(event: Event): void {
@@ -414,7 +414,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
414
414
  }
415
415
  this.refreshItem(item);
416
416
  } else {
417
- Common.Revealer.reveal(uiLocation);
417
+ void Common.Revealer.reveal(uiLocation);
418
418
  }
419
419
  }
420
420
 
@@ -51,7 +51,7 @@ export class CoveragePlugin extends Plugin {
51
51
  this.infoInToolbar = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.clickToShowCoveragePanel));
52
52
  this.infoInToolbar.setSecondary();
53
53
  this.infoInToolbar.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, () => {
54
- UI.ViewManager.ViewManager.instance().showView('coverage');
54
+ void UI.ViewManager.ViewManager.instance().showView('coverage');
55
55
  });
56
56
 
57
57
  const mainTarget = SDK.TargetManager.TargetManager.instance().mainTarget();
@@ -135,7 +135,7 @@ export class CoveragePlugin extends Plugin {
135
135
 
136
136
  private startDecoUpdate(editor: TextEditor.TextEditor.TextEditor): void {
137
137
  const manager = this.getCoverageManager();
138
- (manager ? manager.usageByLine(this.uiSourceCode) : Promise.resolve([])).then(usageByLine => {
138
+ void (manager ? manager.usageByLine(this.uiSourceCode) : Promise.resolve([])).then(usageByLine => {
139
139
  const enabled = Boolean(editor.state.field(coverageState, false));
140
140
  if (!usageByLine.length) {
141
141
  if (enabled) {
@@ -196,7 +196,7 @@ function coverageGutter(url: string): CodeMirror.Extension {
196
196
 
197
197
  domEventHandlers: {
198
198
  click() {
199
- UI.ViewManager.ViewManager.instance()
199
+ void UI.ViewManager.ViewManager.instance()
200
200
  .showView('coverage')
201
201
  .then(() => {
202
202
  const view = UI.ViewManager.ViewManager.instance().view('coverage');