chrome-devtools-frontend 1.0.954845 → 1.0.956401

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTHORS +1 -0
  3. package/config/gni/devtools_grd_files.gni +0 -1
  4. package/config/owner/COMMON_OWNERS +2 -2
  5. package/front_end/.eslintrc.js +1 -11
  6. package/front_end/core/common/Console.ts +1 -1
  7. package/front_end/core/common/ResolverBase.ts +1 -1
  8. package/front_end/core/common/Throttler.ts +1 -1
  9. package/front_end/core/common/Worker.ts +4 -4
  10. package/front_end/core/host/InspectorFrontendHost.ts +1 -1
  11. package/front_end/core/host/ResourceLoader.ts +2 -2
  12. package/front_end/core/i18n/DevToolsLocale.ts +0 -2
  13. package/front_end/core/i18n/i18nImpl.ts +0 -2
  14. package/front_end/core/i18n/locales/en-US.json +3 -3
  15. package/front_end/core/i18n/locales/en-XL.json +3 -3
  16. package/front_end/core/sdk/AccessibilityModel.ts +1 -1
  17. package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
  18. package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
  19. package/front_end/core/sdk/CSSModel.ts +7 -7
  20. package/front_end/core/sdk/CSSProperty.ts +1 -1
  21. package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
  22. package/front_end/core/sdk/ChildTargetManager.ts +6 -6
  23. package/front_end/core/sdk/Connections.ts +2 -2
  24. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  25. package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
  26. package/front_end/core/sdk/DOMModel.ts +17 -17
  27. package/front_end/core/sdk/DebuggerModel.ts +24 -24
  28. package/front_end/core/sdk/EmulationModel.ts +16 -16
  29. package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
  30. package/front_end/core/sdk/IsolateManager.ts +2 -2
  31. package/front_end/core/sdk/IssuesModel.ts +1 -1
  32. package/front_end/core/sdk/LogModel.ts +3 -3
  33. package/front_end/core/sdk/NetworkManager.ts +25 -25
  34. package/front_end/core/sdk/OverlayModel.ts +23 -23
  35. package/front_end/core/sdk/PageResourceLoader.ts +1 -1
  36. package/front_end/core/sdk/PaintProfiler.ts +1 -1
  37. package/front_end/core/sdk/RemoteObject.ts +2 -2
  38. package/front_end/core/sdk/Resource.ts +2 -2
  39. package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
  40. package/front_end/core/sdk/RuntimeModel.ts +11 -11
  41. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
  42. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
  43. package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
  44. package/front_end/core/sdk/SourceMapManager.ts +1 -1
  45. package/front_end/core/sdk/TargetManager.ts +2 -2
  46. package/front_end/core/sdk/TracingManager.ts +1 -1
  47. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +10 -0
  48. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +3 -4
  49. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
  50. package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
  51. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
  52. package/front_end/entrypoints/js_app/js_app.ts +2 -2
  53. package/front_end/entrypoints/main/MainImpl.ts +31 -23
  54. package/front_end/entrypoints/main/main-meta.ts +1 -1
  55. package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
  56. package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
  57. package/front_end/generated/ARIAProperties.js +1 -1
  58. package/front_end/generated/InspectorBackendCommands.js +5 -1
  59. package/front_end/generated/SupportedCSSProperties.js +15 -15
  60. package/front_end/generated/protocol.d.ts +13 -0
  61. package/front_end/global_typings/global_defs.d.ts +0 -1
  62. package/front_end/models/bindings/BreakpointManager.ts +21 -23
  63. package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
  64. package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
  65. package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
  66. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
  67. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
  68. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
  69. package/front_end/models/bindings/FileUtils.ts +5 -5
  70. package/front_end/models/bindings/IgnoreListManager.ts +4 -4
  71. package/front_end/models/bindings/LiveLocation.ts +9 -0
  72. package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
  73. package/front_end/models/bindings/ResourceMapping.ts +1 -1
  74. package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
  75. package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
  76. package/front_end/models/bindings/TempFile.ts +1 -1
  77. package/front_end/models/emulation/DeviceModeModel.ts +5 -5
  78. package/front_end/models/emulation/EmulatedDevices.ts +1 -1
  79. package/front_end/models/extensions/ExtensionPanel.ts +1 -1
  80. package/front_end/models/extensions/ExtensionServer.ts +8 -8
  81. package/front_end/models/formatter/FormatterWorkerPool.ts +2 -12
  82. package/front_end/models/formatter/ScriptFormatter.ts +3 -3
  83. package/front_end/models/formatter/SourceFormatter.ts +2 -2
  84. package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
  85. package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
  86. package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
  87. package/front_end/models/persistence/Automapping.ts +3 -3
  88. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
  89. package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
  90. package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
  91. package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
  92. package/front_end/models/persistence/PersistenceActions.ts +3 -3
  93. package/front_end/models/persistence/PersistenceImpl.ts +2 -2
  94. package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
  95. package/front_end/models/workspace/UISourceCode.ts +2 -2
  96. package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
  97. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
  98. package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
  99. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
  100. package/front_end/panels/animation/AnimationModel.ts +6 -6
  101. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  102. package/front_end/panels/animation/AnimationUI.ts +3 -3
  103. package/front_end/panels/application/AppManifestView.ts +4 -4
  104. package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
  105. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
  106. package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
  107. package/front_end/panels/application/BackgroundServiceView.ts +3 -3
  108. package/front_end/panels/application/CookieItemsView.ts +5 -5
  109. package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
  110. package/front_end/panels/application/DOMStorageModel.ts +4 -4
  111. package/front_end/panels/application/DatabaseModel.ts +2 -2
  112. package/front_end/panels/application/DatabaseQueryView.ts +2 -2
  113. package/front_end/panels/application/DatabaseTableView.ts +1 -1
  114. package/front_end/panels/application/IndexedDBModel.ts +11 -11
  115. package/front_end/panels/application/IndexedDBViews.ts +5 -5
  116. package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
  117. package/front_end/panels/application/ReportingApiView.ts +1 -1
  118. package/front_end/panels/application/ResourcesPanel.ts +2 -2
  119. package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
  120. package/front_end/panels/application/ServiceWorkersView.ts +15 -15
  121. package/front_end/panels/application/StorageView.ts +5 -5
  122. package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
  123. package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
  124. package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
  125. package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
  126. package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
  127. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
  128. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
  129. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
  130. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
  131. package/front_end/panels/changes/ChangesView.ts +4 -4
  132. package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
  133. package/front_end/panels/console/ConsoleFilter.ts +17 -2
  134. package/front_end/panels/console/ConsoleFormat.ts +5 -4
  135. package/front_end/panels/console/ConsolePinPane.ts +4 -4
  136. package/front_end/panels/console/ConsolePrompt.ts +4 -4
  137. package/front_end/panels/console/ConsoleView.ts +96 -71
  138. package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
  139. package/front_end/panels/console/consoleView.css +36 -0
  140. package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
  141. package/front_end/panels/coverage/CoverageListView.ts +3 -3
  142. package/front_end/panels/coverage/CoverageModel.ts +3 -3
  143. package/front_end/panels/coverage/CoverageView.ts +6 -6
  144. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
  145. package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
  146. package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
  147. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
  148. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
  149. package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
  150. package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
  151. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
  152. package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
  153. package/front_end/panels/elements/DOMLinkifier.ts +2 -2
  154. package/front_end/panels/elements/ElementsPanel.ts +19 -19
  155. package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
  156. package/front_end/panels/elements/ElementsTreeElement.ts +26 -25
  157. package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
  158. package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
  159. package/front_end/panels/elements/InspectElementModeController.ts +3 -3
  160. package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
  161. package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
  162. package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
  163. package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
  164. package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
  165. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  166. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
  167. package/front_end/panels/elements/elementsPanel.css +1 -0
  168. package/front_end/panels/elements/elementsTreeOutline.css +6 -1
  169. package/front_end/panels/emulation/AdvancedApp.ts +2 -2
  170. package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
  171. package/front_end/panels/emulation/DeviceModeView.ts +2 -2
  172. package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
  173. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
  174. package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
  175. package/front_end/panels/input/InputModel.ts +2 -2
  176. package/front_end/panels/input/InputTimeline.ts +6 -6
  177. package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
  178. package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
  179. package/front_end/panels/issues/AffectedElementsView.ts +1 -1
  180. package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
  181. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
  182. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
  183. package/front_end/panels/issues/IssueView.ts +1 -1
  184. package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
  185. package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
  186. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  187. package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
  188. package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
  189. package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
  190. package/front_end/panels/layers/LayerTreeModel.ts +4 -4
  191. package/front_end/panels/layers/LayersPanel.ts +4 -4
  192. package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
  193. package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
  194. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
  195. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
  196. package/front_end/panels/media/MediaModel.ts +1 -1
  197. package/front_end/panels/media/PlayerListView.ts +1 -1
  198. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
  199. package/front_end/panels/network/BinaryResourceView.ts +1 -1
  200. package/front_end/panels/network/BlockedURLsPane.ts +5 -5
  201. package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
  202. package/front_end/panels/network/NetworkItemView.ts +2 -2
  203. package/front_end/panels/network/NetworkLogView.ts +4 -4
  204. package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
  205. package/front_end/panels/network/NetworkPanel.ts +8 -8
  206. package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
  207. package/front_end/panels/network/RequestHeadersView.ts +4 -3
  208. package/front_end/panels/network/RequestPayloadView.ts +8 -8
  209. package/front_end/panels/network/RequestPreviewView.ts +1 -1
  210. package/front_end/panels/network/RequestResponseView.ts +2 -2
  211. package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
  212. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
  213. package/front_end/panels/profiler/CPUProfileView.ts +4 -4
  214. package/front_end/panels/profiler/HeapProfileView.ts +6 -6
  215. package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
  216. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
  217. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
  218. package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
  219. package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
  220. package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
  221. package/front_end/panels/profiler/ProfileView.ts +3 -3
  222. package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
  223. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
  224. package/front_end/panels/screencast/InputModel.ts +3 -3
  225. package/front_end/panels/screencast/ScreencastView.ts +10 -10
  226. package/front_end/panels/search/SearchResultsPane.ts +1 -1
  227. package/front_end/panels/search/SearchView.ts +2 -2
  228. package/front_end/panels/security/SecurityModel.ts +1 -1
  229. package/front_end/panels/security/SecurityPanel.ts +2 -2
  230. package/front_end/panels/sensors/SensorsView.ts +3 -2
  231. package/front_end/panels/settings/SettingsScreen.ts +5 -5
  232. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  233. package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
  234. package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
  235. package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
  236. package/front_end/panels/sources/CoveragePlugin.ts +3 -3
  237. package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
  238. package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
  239. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  240. package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
  241. package/front_end/panels/sources/NavigatorView.ts +6 -6
  242. package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
  243. package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
  244. package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
  245. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  246. package/front_end/panels/sources/SearchSourcesView.ts +2 -2
  247. package/front_end/panels/sources/SourcesNavigator.ts +9 -9
  248. package/front_end/panels/sources/SourcesPanel.ts +28 -25
  249. package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
  250. package/front_end/panels/sources/SourcesView.ts +4 -4
  251. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  252. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  253. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
  254. package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
  255. package/front_end/panels/timeline/TimelineController.ts +1 -1
  256. package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
  257. package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
  258. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +22 -5
  259. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +9 -6
  260. package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
  261. package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
  262. package/front_end/panels/timeline/TimelineLoader.ts +2 -2
  263. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
  264. package/front_end/panels/timeline/TimelinePanel.ts +10 -10
  265. package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
  266. package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
  267. package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
  268. package/front_end/panels/web_audio/WebAudioView.ts +1 -1
  269. package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
  270. package/front_end/ui/components/buttons/Button.ts +10 -10
  271. package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
  272. package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
  273. package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
  274. package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
  275. package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
  276. package/front_end/ui/components/icon_button/Icon.ts +1 -1
  277. package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
  278. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
  279. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
  280. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
  281. package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
  282. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
  283. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
  284. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
  285. package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
  286. package/front_end/ui/components/text_editor/javascript.ts +2 -2
  287. package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
  288. package/front_end/ui/legacy/Context.ts +1 -1
  289. package/front_end/ui/legacy/ContextMenu.ts +1 -1
  290. package/front_end/ui/legacy/GlassPane.ts +0 -1
  291. package/front_end/ui/legacy/InspectorView.ts +2 -3
  292. package/front_end/ui/legacy/PopoverHelper.ts +1 -1
  293. package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
  294. package/front_end/ui/legacy/TabbedPane.ts +2 -2
  295. package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
  296. package/front_end/ui/legacy/Toolbar.ts +3 -3
  297. package/front_end/ui/legacy/Treeoutline.ts +6 -6
  298. package/front_end/ui/legacy/UIUtils.ts +17 -24
  299. package/front_end/ui/legacy/ViewManager.ts +9 -9
  300. package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
  301. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -7
  302. package/front_end/ui/legacy/components/color_picker/spectrum.css +5 -2
  303. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
  304. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
  305. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
  306. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
  307. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
  308. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
  309. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  310. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
  311. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
  312. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +13 -18
  313. package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
  314. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
  315. package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
  316. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
  317. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
  318. package/front_end/ui/legacy/components/perf_ui/flameChart.css +8 -0
  319. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
  320. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -2
  321. package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -4
  322. package/front_end/ui/legacy/components/source_frame/JSONView.ts +0 -1
  323. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -2
  324. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
  325. package/front_end/ui/legacy/components/source_frame/XMLView.ts +0 -2
  326. package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
  327. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  328. package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
  329. package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
  330. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +8 -11
  331. package/front_end/ui/legacy/tabbedPane.css +1 -0
  332. package/front_end/ui/legacy/themeColors.css +3 -1
  333. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +23 -229
  334. package/front_end/ui/legacy/toolbar.css +1 -0
  335. package/package.json +1 -1
  336. package/scripts/component_server/server.js +2 -2
  337. package/scripts/eslint_rules/lib/no_bound_component_methods.js +116 -0
  338. package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
  339. package/scripts/eslint_rules/tests/no_bound_component_methods_test.js +85 -0
  340. package/front_end/global_typings/intl_display_names.d.ts +0 -111
  341. package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +0 -270
@@ -244,7 +244,7 @@ export class DebuggerPlugin extends Plugin {
244
244
 
245
245
  if (!Root.Runtime.experiments.isEnabled('sourcesPrettyPrint')) {
246
246
  this.prettyPrintInfobar = null;
247
- this.detectMinified();
247
+ void this.detectMinified();
248
248
  }
249
249
  }
250
250
 
@@ -333,9 +333,9 @@ export class DebuggerPlugin extends Plugin {
333
333
  }
334
334
  }, console.error);
335
335
  if (!this.muted) {
336
- this.refreshBreakpoints();
336
+ void this.refreshBreakpoints();
337
337
  }
338
- this.callFrameChanged();
338
+ void this.callFrameChanged();
339
339
  }
340
340
 
341
341
  static accepts(uiSourceCode: Workspace.UISourceCode.UISourceCode): boolean {
@@ -738,7 +738,7 @@ export class DebuggerPlugin extends Plugin {
738
738
  if (this.executionLocation && this.controlDown &&
739
739
  UI.KeyboardShortcut.KeyboardShortcut.eventHasCtrlEquivalentKey(event)) {
740
740
  if (!this.continueToLocations) {
741
- this.showContinueToLocations();
741
+ void this.showContinueToLocations();
742
742
  }
743
743
  }
744
744
  }
@@ -779,7 +779,7 @@ export class DebuggerPlugin extends Plugin {
779
779
  if (state && this.executionLocation) {
780
780
  this.controlTimeout = window.setTimeout(() => {
781
781
  if (this.executionLocation && this.controlDown) {
782
- this.showContinueToLocations();
782
+ void this.showContinueToLocations();
783
783
  }
784
784
  }, 150);
785
785
  } else {
@@ -1224,7 +1224,7 @@ export class DebuggerPlugin extends Plugin {
1224
1224
  const editorLocation = editor.toLineColumn(position);
1225
1225
  const uiLocation =
1226
1226
  this.transformer.editorLocationToUILocation(editorLocation.lineNumber, editorLocation.columnNumber);
1227
- this.setBreakpoint(uiLocation.lineNumber, uiLocation.columnNumber, condition, enabled);
1227
+ void this.setBreakpoint(uiLocation.lineNumber, uiLocation.columnNumber, condition, enabled);
1228
1228
  }
1229
1229
  }
1230
1230
 
@@ -1234,7 +1234,7 @@ export class DebuggerPlugin extends Plugin {
1234
1234
  const forBreakpoints = this.breakpoints;
1235
1235
  const decorations = await this.computeBreakpointDecoration(this.editor.state, forBreakpoints);
1236
1236
  if (this.breakpoints === forBreakpoints &&
1237
- (decorations.gutter.size || this.editor.state.field(breakpointMarkers).gutter.size)) {
1237
+ (decorations.gutter.size || this.editor.state.field(breakpointMarkers, false)?.gutter.size)) {
1238
1238
  this.editor.dispatch({effects: setBreakpointDeco.of(decorations)});
1239
1239
  }
1240
1240
  }
@@ -1268,7 +1268,7 @@ export class DebuggerPlugin extends Plugin {
1268
1268
  const editorLocation = this.editor.editor.posAtDOM(event.target as unknown as HTMLElement);
1269
1269
  const line = this.editor.state.doc.lineAt(editorLocation);
1270
1270
  const uiLocation = this.transformer.editorLocationToUILocation(line.number - 1, editorLocation - line.from);
1271
- this.setBreakpoint(uiLocation.lineNumber, uiLocation.columnNumber, '', true);
1271
+ void this.setBreakpoint(uiLocation.lineNumber, uiLocation.columnNumber, '', true);
1272
1272
  }
1273
1273
  }
1274
1274
 
@@ -1303,7 +1303,7 @@ export class DebuggerPlugin extends Plugin {
1303
1303
  i18nString(UIStrings.neverPauseHere),
1304
1304
  this.setBreakpoint.bind(this, uiLocation.lineNumber, uiLocation.columnNumber, 'false', true));
1305
1305
  }
1306
- contextMenu.show();
1306
+ void contextMenu.show();
1307
1307
  }
1308
1308
 
1309
1309
  private updateScriptFiles(): void {
@@ -1415,7 +1415,7 @@ export class DebuggerPlugin extends Plugin {
1415
1415
  if (this.muted || event.button !== 0 || event.altKey || event.ctrlKey || event.metaKey) {
1416
1416
  return false;
1417
1417
  }
1418
- this.toggleBreakpoint(line, event.shiftKey);
1418
+ void this.toggleBreakpoint(line, event.shiftKey);
1419
1419
  return true;
1420
1420
  }
1421
1421
 
@@ -1488,9 +1488,9 @@ export class DebuggerPlugin extends Plugin {
1488
1488
  const decorations =
1489
1489
  this.computeExecutionDecorations(this.editor.state, editorLocation.lineNumber, editorLocation.columnNumber);
1490
1490
  this.editor.dispatch({effects: executionLine.update.of(decorations)});
1491
- this.updateValueDecorations();
1491
+ void this.updateValueDecorations();
1492
1492
  if (this.controlDown) {
1493
- this.showContinueToLocations();
1493
+ void this.showContinueToLocations();
1494
1494
  }
1495
1495
  } else {
1496
1496
  this.editor.dispatch({
@@ -82,7 +82,7 @@ export class GoToLineQuickOpen extends QuickOpen.FilteredListWidget.Provider {
82
82
  if (!position) {
83
83
  return;
84
84
  }
85
- Common.Revealer.reveal(uiSourceCode.uiLocation(position.line - 1, position.column - 1));
85
+ void Common.Revealer.reveal(uiSourceCode.uiLocation(position.line - 1, position.column - 1));
86
86
  }
87
87
 
88
88
  updateGoToLineStrings(query: string): void {
@@ -101,10 +101,10 @@ export class InplaceFormatterEditorAction implements EditorAction {
101
101
  }
102
102
 
103
103
  if (uiSourceCode.isDirty()) {
104
- this.contentLoaded(uiSourceCode, uiSourceCode.workingCopy());
104
+ void this.contentLoaded(uiSourceCode, uiSourceCode.workingCopy());
105
105
  } else {
106
- uiSourceCode.requestContent().then(deferredContent => {
107
- this.contentLoaded((uiSourceCode as Workspace.UISourceCode.UISourceCode), deferredContent.content || '');
106
+ void uiSourceCode.requestContent().then(deferredContent => {
107
+ void this.contentLoaded((uiSourceCode as Workspace.UISourceCode.UISourceCode), deferredContent.content || '');
108
108
  });
109
109
  }
110
110
  }
@@ -246,7 +246,7 @@ export class JavaScriptBreakpointsSidebarPane extends UI.ThrottledWidget.Throttl
246
246
  }
247
247
 
248
248
  if (breakpoints.some(breakpoint => breakpoint.isSelected)) {
249
- UI.ViewManager.ViewManager.instance().showView('sources.jsBreakpoints');
249
+ void UI.ViewManager.ViewManager.instance().showView('sources.jsBreakpoints');
250
250
  }
251
251
 
252
252
  this.list.element.classList.toggle(
@@ -415,7 +415,7 @@ export class JavaScriptBreakpointsSidebarPane extends UI.ThrottledWidget.Throttl
415
415
  }
416
416
  }
417
417
  if (uiLocation) {
418
- Common.Revealer.reveal(uiLocation);
418
+ void Common.Revealer.reveal(uiLocation);
419
419
  }
420
420
  }
421
421
 
@@ -463,7 +463,7 @@ export class JavaScriptBreakpointsSidebarPane extends UI.ThrottledWidget.Throttl
463
463
  const removeOtherTitle = i18nString(UIStrings.removeOtherBreakpoints);
464
464
  contextMenu.defaultSection().appendItem(
465
465
  removeOtherTitle, this.removeOtherBreakpoints.bind(this, new Set(breakpoints)));
466
- contextMenu.show();
466
+ void contextMenu.show();
467
467
  }
468
468
 
469
469
  private toggleAllBreakpointsInFile(element: Element, toggleState: boolean): void {
@@ -232,7 +232,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
232
232
  }
233
233
  contextMenu.viewSection().appendItem(searchLabel, () => {
234
234
  if (path) {
235
- SearchSourcesView.openSearch(`file:${path.trim()}`);
235
+ void SearchSourcesView.openSearch(`file:${path.trim()}`);
236
236
  }
237
237
  });
238
238
  }
@@ -691,7 +691,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
691
691
 
692
692
  sourceSelected(uiSourceCode: Workspace.UISourceCode.UISourceCode, focusSource: boolean): void {
693
693
  this.lastSelectedUISourceCode = uiSourceCode;
694
- Common.Revealer.reveal(uiSourceCode, !focusSource);
694
+ void Common.Revealer.reveal(uiSourceCode, !focusSource);
695
695
  }
696
696
 
697
697
  private removeUISourceCode(uiSourceCode: Workspace.UISourceCode.UISourceCode): void {
@@ -775,7 +775,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
775
775
  relativePath.pop();
776
776
  path = relativePath.join('/');
777
777
  }
778
- this.create(project, path, uiSourceCode);
778
+ void this.create(project, path, uiSourceCode);
779
779
  }
780
780
 
781
781
  private handleContextMenuRename(node: NavigatorUISourceCodeTreeNode): void {
@@ -813,7 +813,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
813
813
  i18nString(UIStrings.delete), this.handleContextMenuDelete.bind(this, uiSourceCode));
814
814
  }
815
815
 
816
- contextMenu.show();
816
+ void contextMenu.show();
817
817
  }
818
818
 
819
819
  private async handleDeleteOverrides(node: NavigatorTreeNode): Promise<void> {
@@ -884,7 +884,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
884
884
  }
885
885
  }
886
886
 
887
- contextMenu.show();
887
+ void contextMenu.show();
888
888
  }
889
889
 
890
890
  rename(node: NavigatorUISourceCodeTreeNode, creatingNewUISourceCode: boolean): void {
@@ -1409,7 +1409,7 @@ export class NavigatorUISourceCodeTreeNode extends NavigatorTreeNode {
1409
1409
  if (this.treeElement) {
1410
1410
  this.treeElement.title = newTitle;
1411
1411
  }
1412
- this.uiSourceCodeInternal.rename(newTitle).then(renameCallback.bind(this));
1412
+ void this.uiSourceCodeInternal.rename(newTitle).then(renameCallback.bind(this));
1413
1413
  return;
1414
1414
  }
1415
1415
  afterEditing.call(this, true);
@@ -38,9 +38,9 @@ export class OpenFileQuickOpen extends FilteredUISourceCodeListProvider {
38
38
  return;
39
39
  }
40
40
  if (typeof lineNumber === 'number') {
41
- Common.Revealer.reveal(uiSourceCode.uiLocation(lineNumber, columnNumber));
41
+ void Common.Revealer.reveal(uiSourceCode.uiLocation(lineNumber, columnNumber));
42
42
  } else {
43
- Common.Revealer.reveal(uiSourceCode);
43
+ void Common.Revealer.reveal(uiSourceCode);
44
44
  }
45
45
  }
46
46
 
@@ -107,7 +107,7 @@ export class OutlineQuickOpen extends QuickOpen.FilteredListWidget.Provider {
107
107
  }
108
108
  const lineNumber = this.items[itemIndex].line;
109
109
  if (!isNaN(lineNumber) && lineNumber >= 0) {
110
- Common.Revealer.reveal(uiSourceCode.uiLocation(lineNumber, this.items[itemIndex].column));
110
+ void Common.Revealer.reveal(uiSourceCode.uiLocation(lineNumber, this.items[itemIndex].column));
111
111
  }
112
112
  }
113
113
 
@@ -102,7 +102,7 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
102
102
  this.infoElement = document.createElement('div');
103
103
  this.infoElement.className = 'gray-info-message';
104
104
  this.infoElement.tabIndex = -1;
105
- this.update();
105
+ void this.update();
106
106
  }
107
107
 
108
108
  static instance(): ScopeChainSidebarPane {
@@ -113,7 +113,7 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
113
113
  }
114
114
 
115
115
  flavorChanged(_object: Object|null): void {
116
- this.update();
116
+ void this.update();
117
117
  }
118
118
 
119
119
  focus(): void {
@@ -322,6 +322,6 @@ export class OpenLinearMemoryInspector extends UI.Widget.VBox implements UI.Cont
322
322
  memoryObj = runtimeModel.createRemoteObject(response.result);
323
323
  }
324
324
  Host.userMetrics.linearMemoryInspectorRevealedFrom(Host.UserMetrics.LinearMemoryInspectorRevealedFrom.ContextMenu);
325
- controller.openInspectorView(memoryObj, address);
325
+ void controller.openInspectorView(memoryObj, address);
326
326
  }
327
327
  }
@@ -54,7 +54,7 @@ export class ScriptFormatterEditorAction implements EditorAction {
54
54
 
55
55
  if (this.isFormattableScript(uiSourceCode) && this.pathsToFormatOnLoad.has(uiSourceCode.url()) &&
56
56
  !FormatterModule.SourceFormatter.SourceFormatter.instance().hasFormatted(uiSourceCode)) {
57
- this.showFormatted(uiSourceCode);
57
+ void this.showFormatted(uiSourceCode);
58
58
  }
59
59
  }
60
60
 
@@ -92,7 +92,7 @@ export class ScriptFormatterEditorAction implements EditorAction {
92
92
  this.editorSelected(event);
93
93
  });
94
94
  this.sourcesView.addEventListener(Events.EditorClosed, event => {
95
- this.editorClosed(event);
95
+ void this.editorClosed(event);
96
96
  });
97
97
 
98
98
  this.button = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.prettyPrint), 'largeicon-pretty-print');
@@ -136,7 +136,7 @@ export class ScriptFormatterEditorAction implements EditorAction {
136
136
  return;
137
137
  }
138
138
  this.pathsToFormatOnLoad.add(uiSourceCode.url());
139
- this.showFormatted(uiSourceCode);
139
+ void this.showFormatted(uiSourceCode);
140
140
  }
141
141
 
142
142
  private async showFormatted(uiSourceCode: Workspace.UISourceCode.UISourceCode): Promise<void> {
@@ -31,7 +31,7 @@ export class SearchSourcesView extends Search.SearchView.SearchView {
31
31
  location.appendView(view);
32
32
  await UI.ViewManager.ViewManager.instance().revealView((view as UI.View.View));
33
33
  const widget = (await view.widget() as Search.SearchView.SearchView);
34
- widget.toggle(query, Boolean(searchImmediately));
34
+ void widget.toggle(query, Boolean(searchImmediately));
35
35
  return widget;
36
36
  }
37
37
 
@@ -54,7 +54,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
54
54
  return actionDelegateInstance;
55
55
  }
56
56
  handleAction(_context: UI.Context.Context, _actionId: string): boolean {
57
- this.showSearch();
57
+ void this.showSearch();
58
58
  return true;
59
59
  }
60
60
 
@@ -171,7 +171,7 @@ export class FilesNavigatorView extends NavigatorView {
171
171
  `);
172
172
 
173
173
  const toolbar = new UI.Toolbar.Toolbar('navigator-toolbar');
174
- toolbar.appendItemsAtLocation('files-navigator-toolbar').then(() => {
174
+ void toolbar.appendItemsAtLocation('files-navigator-toolbar').then(() => {
175
175
  if (!toolbar.empty()) {
176
176
  this.contentElement.insertBefore(toolbar.element, this.contentElement.firstChild);
177
177
  }
@@ -194,7 +194,7 @@ export class FilesNavigatorView extends NavigatorView {
194
194
  handleContextMenu(event: Event): void {
195
195
  const contextMenu = new UI.ContextMenu.ContextMenu(event);
196
196
  contextMenu.defaultSection().appendAction('sources.add-folder-to-workspace', undefined, true);
197
- contextMenu.show();
197
+ void contextMenu.show();
198
198
  }
199
199
  }
200
200
 
@@ -272,7 +272,7 @@ export class OverridesNavigatorView extends NavigatorView {
272
272
  const title = i18nString(UIStrings.selectFolderForOverrides);
273
273
  const setupButton = new UI.Toolbar.ToolbarButton(title, 'largeicon-add', title);
274
274
  setupButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
275
- this.setupNewWorkspace();
275
+ void this.setupNewWorkspace();
276
276
  }, this);
277
277
  this.toolbar.appendToolbarItem(setupButton);
278
278
  }
@@ -338,7 +338,7 @@ export class SnippetsNavigatorView extends NavigatorView {
338
338
  const newButton = new UI.Toolbar.ToolbarButton(
339
339
  i18nString(UIStrings.newSnippet), 'largeicon-add', i18nString(UIStrings.newSnippet));
340
340
  newButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
341
- this.create(Snippets.ScriptSnippetFileSystem.findSnippetsProject(), '');
341
+ void this.create(Snippets.ScriptSnippetFileSystem.findSnippetsProject(), '');
342
342
  });
343
343
  toolbar.appendToolbarItem(newButton);
344
344
  this.contentElement.insertBefore(toolbar.element, this.contentElement.firstChild);
@@ -360,7 +360,7 @@ export class SnippetsNavigatorView extends NavigatorView {
360
360
  contextMenu.headerSection().appendItem(
361
361
  i18nString(UIStrings.createNewSnippet),
362
362
  () => this.create(Snippets.ScriptSnippetFileSystem.findSnippetsProject(), ''));
363
- contextMenu.show();
363
+ void contextMenu.show();
364
364
  }
365
365
 
366
366
  handleFileContextMenu(event: Event, node: NavigatorUISourceCodeTreeNode): void {
@@ -372,13 +372,13 @@ export class SnippetsNavigatorView extends NavigatorView {
372
372
  contextMenu.editSection().appendItem(
373
373
  i18nString(UIStrings.remove), () => uiSourceCode.project().deleteFile(uiSourceCode));
374
374
  contextMenu.saveSection().appendItem(i18nString(UIStrings.saveAs), this.handleSaveAs.bind(this, uiSourceCode));
375
- contextMenu.show();
375
+ void contextMenu.show();
376
376
  }
377
377
 
378
378
  private async handleSaveAs(uiSourceCode: Workspace.UISourceCode.UISourceCode): Promise<void> {
379
379
  uiSourceCode.commitWorkingCopy();
380
380
  const {content} = await uiSourceCode.requestContent();
381
- Workspace.FileManager.FileManager.instance().save(uiSourceCode.url(), content || '', true);
381
+ void Workspace.FileManager.FileManager.instance().save(uiSourceCode.url(), content || '', true);
382
382
  Workspace.FileManager.FileManager.instance().close(uiSourceCode.url());
383
383
  }
384
384
  }
@@ -399,12 +399,12 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
399
399
  handleAction(context: UI.Context.Context, actionId: string): boolean {
400
400
  switch (actionId) {
401
401
  case 'sources.create-snippet':
402
- Snippets.ScriptSnippetFileSystem.findSnippetsProject()
402
+ void Snippets.ScriptSnippetFileSystem.findSnippetsProject()
403
403
  .createFile('', null, '')
404
404
  .then(uiSourceCode => Common.Revealer.reveal(uiSourceCode));
405
405
  return true;
406
406
  case 'sources.add-folder-to-workspace':
407
- Persistence.IsolatedFileSystemManager.IsolatedFileSystemManager.instance().addFileSystem();
407
+ void Persistence.IsolatedFileSystemManager.IsolatedFileSystemManager.instance().addFileSystem();
408
408
  return true;
409
409
  }
410
410
  return false;
@@ -266,7 +266,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
266
266
  .addChangeListener(this.updateSidebarPosition.bind(this));
267
267
  this.updateSidebarPosition();
268
268
 
269
- this.updateDebuggerButtonsAndStatus();
269
+ void this.updateDebuggerButtonsAndStatus();
270
270
  this.pauseOnExceptionEnabledChanged();
271
271
  Common.Settings.Settings.instance()
272
272
  .moduleSetting('pauseOnExceptionEnabled')
@@ -338,7 +338,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
338
338
  if (ThreadsSidebarPane.shouldBeShown() && !this.threadsSidebarPane) {
339
339
  this.threadsSidebarPane = (UI.ViewManager.ViewManager.instance().view('sources.threads') as UI.View.View);
340
340
  if (this.sidebarPaneStack && this.threadsSidebarPane) {
341
- this.sidebarPaneStack.showView(
341
+ void this.sidebarPaneStack.showView(
342
342
  this.threadsSidebarPane, this.splitWidget.isVertical() ? this.watchSidebarPane : this.callstackPane);
343
343
  }
344
344
  }
@@ -407,7 +407,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
407
407
  if (!UI.InspectorView.InspectorView.instance().canSelectPanel('sources')) {
408
408
  return false;
409
409
  }
410
- UI.ViewManager.ViewManager.instance().showView('sources');
410
+ void UI.ViewManager.ViewManager.instance().showView('sources');
411
411
  return true;
412
412
  }
413
413
 
@@ -426,7 +426,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
426
426
  const details = debuggerModel.debuggerPausedDetails();
427
427
  if (!this.pausedInternal &&
428
428
  Common.Settings.Settings.instance().moduleSetting('autoFocusOnDebuggerPausedEnabled').get()) {
429
- this.setAsCurrentPanel();
429
+ void this.setAsCurrentPanel();
430
430
  }
431
431
 
432
432
  if (UI.Context.Context.instance().flavor(SDK.Target.Target) === debuggerModel.target()) {
@@ -438,7 +438,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
438
438
 
439
439
  private showDebuggerPausedDetails(details: SDK.DebuggerModel.DebuggerPausedDetails): void {
440
440
  this.pausedInternal = true;
441
- this.updateDebuggerButtonsAndStatus();
441
+ void this.updateDebuggerButtonsAndStatus();
442
442
  UI.Context.Context.instance().setFlavor(SDK.DebuggerModel.DebuggerPausedDetails, details);
443
443
  this.toggleDebuggerSidebarButton.setEnabled(false);
444
444
  this.revealDebuggerSidebar();
@@ -463,7 +463,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
463
463
  return;
464
464
  }
465
465
 
466
- this.updateDebuggerButtonsAndStatus();
466
+ void this.updateDebuggerButtonsAndStatus();
467
467
  }
468
468
 
469
469
  get visibleView(): UI.Widget.Widget|null {
@@ -489,7 +489,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
489
489
  if (WrapperView.isShowing()) {
490
490
  return;
491
491
  }
492
- this.setAsCurrentPanel();
492
+ void this.setAsCurrentPanel();
493
493
  }
494
494
 
495
495
  showUILocation(uiLocation: Workspace.UISourceCode.UILocation, omitFocus?: boolean): void {
@@ -505,7 +505,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
505
505
  if (skipReveal) {
506
506
  this.navigatorTabbedLocation.tabbedPane().selectTab(viewId);
507
507
  } else {
508
- UI.ViewManager.ViewManager.instance().showView(viewId);
508
+ void UI.ViewManager.ViewManager.instance().showView(viewId);
509
509
  }
510
510
  }
511
511
  }
@@ -529,6 +529,9 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
529
529
 
530
530
  private async executionLineChanged(liveLocation: Bindings.LiveLocation.LiveLocation): Promise<void> {
531
531
  const uiLocation = await liveLocation.uiLocation();
532
+ if (liveLocation.isDisposed()) {
533
+ return;
534
+ }
532
535
  if (!uiLocation) {
533
536
  return;
534
537
  }
@@ -563,7 +566,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
563
566
  const enabled = Common.Settings.Settings.instance().moduleSetting('pauseOnExceptionEnabled').get();
564
567
  const button = (this.pauseOnExceptionButton as UI.Toolbar.ToolbarToggle);
565
568
  button.setToggled(enabled);
566
- button.setTitle(enabled ? i18nString(UIStrings.pauseOnExceptions) : i18nString(UIStrings.dontPauseOnExceptions));
569
+ button.setTitle(enabled ? i18nString(UIStrings.dontPauseOnExceptions) : i18nString(UIStrings.pauseOnExceptions));
567
570
  this.debugToolbarDrawer.classList.toggle('expanded', enabled);
568
571
  }
569
572
 
@@ -605,7 +608,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
605
608
  }
606
609
 
607
610
  private clearInterface(): void {
608
- this.updateDebuggerButtonsAndStatus();
611
+ void this.updateDebuggerButtonsAndStatus();
609
612
  UI.Context.Context.instance().setFlavor(SDK.DebuggerModel.DebuggerPausedDetails, null);
610
613
 
611
614
  if (this.switchToPausedTargetTimeout) {
@@ -639,7 +642,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
639
642
  runSnippet(): void {
640
643
  const uiSourceCode = this.sourcesViewInternal.currentUISourceCode();
641
644
  if (uiSourceCode) {
642
- Snippets.ScriptSnippetFileSystem.evaluateScriptSnippet(uiSourceCode);
645
+ void Snippets.ScriptSnippetFileSystem.evaluateScriptSnippet(uiSourceCode);
643
646
  }
644
647
  }
645
648
 
@@ -696,7 +699,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
696
699
  private terminateExecution(): void {
697
700
  const debuggerModel = this.prepareToResume();
698
701
  if (debuggerModel) {
699
- debuggerModel.runtimeModel().terminateExecution();
702
+ void debuggerModel.runtimeModel().terminateExecution();
700
703
  debuggerModel.resume();
701
704
  }
702
705
  }
@@ -704,7 +707,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
704
707
  stepOver(): boolean {
705
708
  const debuggerModel = this.prepareToResume();
706
709
  if (debuggerModel) {
707
- debuggerModel.stepOver();
710
+ void debuggerModel.stepOver();
708
711
  }
709
712
  return true;
710
713
  }
@@ -712,7 +715,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
712
715
  stepInto(): boolean {
713
716
  const debuggerModel = this.prepareToResume();
714
717
  if (debuggerModel) {
715
- debuggerModel.stepInto();
718
+ void debuggerModel.stepInto();
716
719
  }
717
720
  return true;
718
721
  }
@@ -728,7 +731,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
728
731
  stepOut(): boolean {
729
732
  const debuggerModel = this.prepareToResume();
730
733
  if (debuggerModel) {
731
- debuggerModel.stepOut();
734
+ void debuggerModel.stepOut();
732
735
  }
733
736
  return true;
734
737
  }
@@ -961,7 +964,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
961
964
  }
962
965
 
963
966
  private showFunctionDefinition(remoteObject: SDK.RemoteObject.RemoteObject): void {
964
- remoteObject.debuggerModel().functionDetailsPromise(remoteObject).then(this.didGetFunctionDetails.bind(this));
967
+ void remoteObject.debuggerModel().functionDetailsPromise(remoteObject).then(this.didGetFunctionDetails.bind(this));
965
968
  }
966
969
 
967
970
  private async didGetFunctionDetails(response: {
@@ -980,7 +983,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
980
983
  }
981
984
 
982
985
  private revealNavigatorSidebar(): void {
983
- this.setAsCurrentPanel();
986
+ void this.setAsCurrentPanel();
984
987
  this.editorView.showBoth(true);
985
988
  }
986
989
 
@@ -988,7 +991,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
988
991
  if (!Common.Settings.Settings.instance().moduleSetting('autoFocusOnDebuggerPausedEnabled').get()) {
989
992
  return;
990
993
  }
991
- this.setAsCurrentPanel();
994
+ void this.setAsCurrentPanel();
992
995
  this.splitWidget.showBoth(true);
993
996
  }
994
997
 
@@ -1034,7 +1037,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
1034
1037
  this.sidebarPaneStack.appendApplicableItems('sources.sidebar-top');
1035
1038
 
1036
1039
  if (this.threadsSidebarPane) {
1037
- this.sidebarPaneStack.showView(this.threadsSidebarPane);
1040
+ void this.sidebarPaneStack.showView(this.threadsSidebarPane);
1038
1041
  }
1039
1042
 
1040
1043
  const jsBreakpoints = (UI.ViewManager.ViewManager.instance().view('sources.jsBreakpoints') as UI.View.View);
@@ -1048,9 +1051,9 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
1048
1051
  if (!vertically) {
1049
1052
  // Populate the rest of the stack.
1050
1053
  this.sidebarPaneStack.appendView(this.watchSidebarPane);
1051
- this.sidebarPaneStack.showView(jsBreakpoints);
1052
- this.sidebarPaneStack.showView(scopeChainView);
1053
- this.sidebarPaneStack.showView(this.callstackPane);
1054
+ void this.sidebarPaneStack.showView(jsBreakpoints);
1055
+ void this.sidebarPaneStack.showView(scopeChainView);
1056
+ void this.sidebarPaneStack.showView(this.callstackPane);
1054
1057
  this.extensionSidebarPanesContainer = this.sidebarPaneStack;
1055
1058
  this.sidebarPaneView = vbox;
1056
1059
  this.splitWidget.uninstallResizer(this.debugToolbar.gripElementForResize());
@@ -1059,8 +1062,8 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
1059
1062
  splitWidget.setMainWidget(vbox);
1060
1063
 
1061
1064
  // Populate the left stack.
1062
- this.sidebarPaneStack.showView(jsBreakpoints);
1063
- this.sidebarPaneStack.showView(this.callstackPane);
1065
+ void this.sidebarPaneStack.showView(jsBreakpoints);
1066
+ void this.sidebarPaneStack.showView(this.callstackPane);
1064
1067
 
1065
1068
  const tabbedLocation =
1066
1069
  UI.ViewManager.ViewManager.instance().createTabbedLocation(this.revealDebuggerSidebar.bind(this));
@@ -1316,7 +1319,7 @@ export class DebuggingActionDelegate implements UI.ActionRegistration.ActionDele
1316
1319
  if (executionContext) {
1317
1320
  const message = SDK.ConsoleModel.ConsoleModel.instance().addCommandMessage(executionContext, text);
1318
1321
  text = ObjectUI.JavaScriptREPL.JavaScriptREPL.wrapObjectLiteral(text);
1319
- SDK.ConsoleModel.ConsoleModel.instance().evaluateCommandInConsole(
1322
+ void SDK.ConsoleModel.ConsoleModel.instance().evaluateCommandInConsole(
1320
1323
  executionContext, message, text, /* useCommandLineAPI */ true);
1321
1324
  }
1322
1325
  }
@@ -135,7 +135,7 @@ export class SourcesSearchScope implements Search.SearchConfig.SearchScope {
135
135
  promises.push(promise);
136
136
  }
137
137
 
138
- Promise.all(promises).then(this.processMatchingFiles.bind(
138
+ void Promise.all(promises).then(this.processMatchingFiles.bind(
139
139
  this, this.searchId, searchContentProgress, this.searchFinishedCallback.bind(this, true)));
140
140
  }
141
141
 
@@ -222,7 +222,7 @@ export class SourcesSearchScope implements Search.SearchConfig.SearchScope {
222
222
  if (uiSourceCode.isDirty()) {
223
223
  contentLoaded.call(this, uiSourceCode, uiSourceCode.workingCopy());
224
224
  } else {
225
- uiSourceCode.requestContent().then(deferredContent => {
225
+ void uiSourceCode.requestContent().then(deferredContent => {
226
226
  contentLoaded.call(this, uiSourceCode, deferredContent.content || '');
227
227
  });
228
228
  }
@@ -124,9 +124,9 @@ export class SourcesView extends Common.ObjectWrapper.eventMixin<EventTypes, typ
124
124
  }
125
125
 
126
126
  event.returnValue = true;
127
- UI.ViewManager.ViewManager.instance().showView('sources');
127
+ void UI.ViewManager.ViewManager.instance().showView('sources');
128
128
  for (const sourceCode of unsavedSourceCodes) {
129
- Common.Revealer.reveal(sourceCode);
129
+ void Common.Revealer.reveal(sourceCode);
130
130
  }
131
131
  }
132
132
 
@@ -172,7 +172,7 @@ export class SourcesView extends Common.ObjectWrapper.eventMixin<EventTypes, typ
172
172
  this.placeholderOptionArray.push({
173
173
  element: row,
174
174
  handler(): void {
175
- action.execute();
175
+ void action.execute();
176
176
  },
177
177
  });
178
178
  }
@@ -342,7 +342,7 @@ export class SourcesView extends Common.ObjectWrapper.eventMixin<EventTypes, typ
342
342
  private updateScriptViewToolbarItems(): void {
343
343
  const view = this.visibleView();
344
344
  if (view instanceof UI.View.SimpleView) {
345
- view.toolbarItems().then(items => {
345
+ void view.toolbarItems().then(items => {
346
346
  this.scriptViewToolbar.removeToolbarItems();
347
347
  items.map(item => this.scriptViewToolbar.appendToolbarItem(item));
348
348
  });
@@ -477,7 +477,7 @@ export class TabbedEditorContainer extends Common.ObjectWrapper.ObjectWrapper<Ev
477
477
  if (uiSourceCode.loadError()) {
478
478
  this.addLoadErrorIcon(tabId);
479
479
  } else if (!uiSourceCode.contentLoaded()) {
480
- uiSourceCode.requestContent().then(_content => {
480
+ void uiSourceCode.requestContent().then(_content => {
481
481
  if (uiSourceCode.loadError()) {
482
482
  this.addLoadErrorIcon(tabId);
483
483
  }
@@ -172,7 +172,7 @@ export class UISourceCodeFrame extends
172
172
  this.unloadUISourceCode();
173
173
  this.uiSourceCodeInternal = uiSourceCode;
174
174
  if (uiSourceCode.workingCopy() !== this.textEditor.state.doc.toString()) {
175
- this.setContent(uiSourceCode.workingCopy());
175
+ void this.setContent(uiSourceCode.workingCopy());
176
176
  } else {
177
177
  this.reloadPlugins();
178
178
  }
@@ -373,7 +373,7 @@ export class UISourceCodeFrame extends
373
373
 
374
374
  private maybeSetContent(content: string): void {
375
375
  if (this.textEditor.state.doc.toString() !== content) {
376
- this.setContent(content);
376
+ void this.setContent(content);
377
377
  }
378
378
  }
379
379