chrome-devtools-frontend 1.0.954826 → 1.0.956060

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTHORS +1 -0
  3. package/config/owner/COMMON_OWNERS +2 -2
  4. package/front_end/.eslintrc.js +1 -11
  5. package/front_end/core/common/Console.ts +1 -1
  6. package/front_end/core/common/ResolverBase.ts +1 -1
  7. package/front_end/core/common/Throttler.ts +1 -1
  8. package/front_end/core/common/Worker.ts +4 -4
  9. package/front_end/core/host/InspectorFrontendHost.ts +1 -1
  10. package/front_end/core/host/ResourceLoader.ts +2 -2
  11. package/front_end/core/i18n/DevToolsLocale.ts +0 -2
  12. package/front_end/core/i18n/i18nImpl.ts +0 -2
  13. package/front_end/core/i18n/locales/en-US.json +3 -0
  14. package/front_end/core/i18n/locales/en-XL.json +3 -0
  15. package/front_end/core/sdk/AccessibilityModel.ts +1 -1
  16. package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
  17. package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
  18. package/front_end/core/sdk/CSSModel.ts +7 -7
  19. package/front_end/core/sdk/CSSProperty.ts +1 -1
  20. package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
  21. package/front_end/core/sdk/ChildTargetManager.ts +6 -6
  22. package/front_end/core/sdk/Connections.ts +2 -2
  23. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  24. package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
  25. package/front_end/core/sdk/DOMModel.ts +17 -17
  26. package/front_end/core/sdk/DebuggerModel.ts +24 -24
  27. package/front_end/core/sdk/EmulationModel.ts +16 -16
  28. package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
  29. package/front_end/core/sdk/IsolateManager.ts +2 -2
  30. package/front_end/core/sdk/IssuesModel.ts +1 -1
  31. package/front_end/core/sdk/LogModel.ts +3 -3
  32. package/front_end/core/sdk/NetworkManager.ts +25 -25
  33. package/front_end/core/sdk/OverlayModel.ts +23 -23
  34. package/front_end/core/sdk/PageResourceLoader.ts +1 -1
  35. package/front_end/core/sdk/PaintProfiler.ts +1 -1
  36. package/front_end/core/sdk/RemoteObject.ts +2 -2
  37. package/front_end/core/sdk/Resource.ts +2 -2
  38. package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
  39. package/front_end/core/sdk/RuntimeModel.ts +11 -11
  40. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
  41. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
  42. package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
  43. package/front_end/core/sdk/SourceMapManager.ts +1 -1
  44. package/front_end/core/sdk/TargetManager.ts +2 -2
  45. package/front_end/core/sdk/TracingManager.ts +1 -1
  46. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
  47. package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
  48. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
  49. package/front_end/entrypoints/js_app/js_app.ts +2 -2
  50. package/front_end/entrypoints/main/MainImpl.ts +11 -11
  51. package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
  52. package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
  53. package/front_end/generated/ARIAProperties.js +1 -1
  54. package/front_end/generated/InspectorBackendCommands.js +5 -1
  55. package/front_end/generated/SupportedCSSProperties.js +15 -15
  56. package/front_end/generated/protocol.d.ts +13 -0
  57. package/front_end/global_typings/global_defs.d.ts +0 -1
  58. package/front_end/models/bindings/BreakpointManager.ts +21 -23
  59. package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
  60. package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
  61. package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
  62. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
  63. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
  64. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
  65. package/front_end/models/bindings/FileUtils.ts +5 -5
  66. package/front_end/models/bindings/IgnoreListManager.ts +4 -4
  67. package/front_end/models/bindings/LiveLocation.ts +9 -0
  68. package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
  69. package/front_end/models/bindings/ResourceMapping.ts +1 -1
  70. package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
  71. package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
  72. package/front_end/models/bindings/TempFile.ts +1 -1
  73. package/front_end/models/emulation/DeviceModeModel.ts +5 -5
  74. package/front_end/models/emulation/EmulatedDevices.ts +1 -1
  75. package/front_end/models/extensions/ExtensionPanel.ts +1 -1
  76. package/front_end/models/extensions/ExtensionServer.ts +8 -8
  77. package/front_end/models/formatter/SourceFormatter.ts +2 -2
  78. package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
  79. package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
  80. package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
  81. package/front_end/models/persistence/Automapping.ts +3 -3
  82. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
  83. package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
  84. package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
  85. package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
  86. package/front_end/models/persistence/PersistenceActions.ts +3 -3
  87. package/front_end/models/persistence/PersistenceImpl.ts +2 -2
  88. package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
  89. package/front_end/models/workspace/UISourceCode.ts +2 -2
  90. package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
  91. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
  92. package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
  93. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
  94. package/front_end/panels/animation/AnimationModel.ts +6 -6
  95. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  96. package/front_end/panels/animation/AnimationUI.ts +3 -3
  97. package/front_end/panels/application/AppManifestView.ts +4 -4
  98. package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
  99. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
  100. package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
  101. package/front_end/panels/application/BackgroundServiceView.ts +3 -3
  102. package/front_end/panels/application/CookieItemsView.ts +5 -5
  103. package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
  104. package/front_end/panels/application/DOMStorageModel.ts +4 -4
  105. package/front_end/panels/application/DatabaseModel.ts +2 -2
  106. package/front_end/panels/application/DatabaseQueryView.ts +2 -2
  107. package/front_end/panels/application/DatabaseTableView.ts +1 -1
  108. package/front_end/panels/application/IndexedDBModel.ts +11 -11
  109. package/front_end/panels/application/IndexedDBViews.ts +5 -5
  110. package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
  111. package/front_end/panels/application/ReportingApiView.ts +1 -1
  112. package/front_end/panels/application/ResourcesPanel.ts +2 -2
  113. package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
  114. package/front_end/panels/application/ServiceWorkersView.ts +15 -15
  115. package/front_end/panels/application/StorageView.ts +5 -5
  116. package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
  117. package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
  118. package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
  119. package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
  120. package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
  121. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
  122. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
  123. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
  124. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
  125. package/front_end/panels/changes/ChangesView.ts +4 -4
  126. package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
  127. package/front_end/panels/console/ConsoleFilter.ts +17 -2
  128. package/front_end/panels/console/ConsoleFormat.ts +5 -4
  129. package/front_end/panels/console/ConsolePinPane.ts +4 -4
  130. package/front_end/panels/console/ConsolePrompt.ts +4 -4
  131. package/front_end/panels/console/ConsoleView.ts +96 -71
  132. package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
  133. package/front_end/panels/console/consoleView.css +36 -0
  134. package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
  135. package/front_end/panels/coverage/CoverageListView.ts +3 -3
  136. package/front_end/panels/coverage/CoverageModel.ts +3 -3
  137. package/front_end/panels/coverage/CoverageView.ts +6 -6
  138. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
  139. package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
  140. package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
  141. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
  142. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
  143. package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
  144. package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
  145. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
  146. package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
  147. package/front_end/panels/elements/DOMLinkifier.ts +2 -2
  148. package/front_end/panels/elements/ElementsPanel.ts +19 -19
  149. package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
  150. package/front_end/panels/elements/ElementsTreeElement.ts +26 -25
  151. package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
  152. package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
  153. package/front_end/panels/elements/InspectElementModeController.ts +3 -3
  154. package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
  155. package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
  156. package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
  157. package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
  158. package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
  159. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  160. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
  161. package/front_end/panels/elements/elementsPanel.css +1 -0
  162. package/front_end/panels/elements/elementsTreeOutline.css +6 -1
  163. package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
  164. package/front_end/panels/emulation/DeviceModeView.ts +2 -2
  165. package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
  166. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
  167. package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
  168. package/front_end/panels/input/InputModel.ts +2 -2
  169. package/front_end/panels/input/InputTimeline.ts +6 -6
  170. package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
  171. package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
  172. package/front_end/panels/issues/AffectedElementsView.ts +1 -1
  173. package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
  174. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
  175. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
  176. package/front_end/panels/issues/IssueView.ts +1 -1
  177. package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
  178. package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
  179. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  180. package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
  181. package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
  182. package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
  183. package/front_end/panels/layers/LayerTreeModel.ts +4 -4
  184. package/front_end/panels/layers/LayersPanel.ts +4 -4
  185. package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
  186. package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
  187. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
  188. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
  189. package/front_end/panels/media/MediaModel.ts +1 -1
  190. package/front_end/panels/media/PlayerListView.ts +1 -1
  191. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
  192. package/front_end/panels/network/BinaryResourceView.ts +1 -1
  193. package/front_end/panels/network/BlockedURLsPane.ts +5 -5
  194. package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
  195. package/front_end/panels/network/NetworkItemView.ts +2 -2
  196. package/front_end/panels/network/NetworkLogView.ts +4 -4
  197. package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
  198. package/front_end/panels/network/NetworkPanel.ts +8 -8
  199. package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
  200. package/front_end/panels/network/RequestHeadersView.ts +4 -3
  201. package/front_end/panels/network/RequestPayloadView.ts +8 -8
  202. package/front_end/panels/network/RequestPreviewView.ts +1 -1
  203. package/front_end/panels/network/RequestResponseView.ts +2 -2
  204. package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
  205. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
  206. package/front_end/panels/profiler/CPUProfileView.ts +4 -4
  207. package/front_end/panels/profiler/HeapProfileView.ts +6 -6
  208. package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
  209. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
  210. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
  211. package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
  212. package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
  213. package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
  214. package/front_end/panels/profiler/ProfileView.ts +3 -3
  215. package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
  216. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
  217. package/front_end/panels/screencast/InputModel.ts +3 -3
  218. package/front_end/panels/screencast/ScreencastView.ts +10 -10
  219. package/front_end/panels/search/SearchResultsPane.ts +1 -1
  220. package/front_end/panels/search/SearchView.ts +2 -2
  221. package/front_end/panels/security/SecurityModel.ts +1 -1
  222. package/front_end/panels/security/SecurityPanel.ts +2 -2
  223. package/front_end/panels/sensors/SensorsView.ts +3 -2
  224. package/front_end/panels/settings/SettingsScreen.ts +5 -5
  225. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  226. package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
  227. package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
  228. package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
  229. package/front_end/panels/sources/CoveragePlugin.ts +3 -3
  230. package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
  231. package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
  232. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  233. package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
  234. package/front_end/panels/sources/NavigatorView.ts +6 -6
  235. package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
  236. package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
  237. package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
  238. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  239. package/front_end/panels/sources/SearchSourcesView.ts +2 -2
  240. package/front_end/panels/sources/SourcesNavigator.ts +9 -9
  241. package/front_end/panels/sources/SourcesPanel.ts +28 -25
  242. package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
  243. package/front_end/panels/sources/SourcesView.ts +4 -4
  244. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  245. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  246. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
  247. package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
  248. package/front_end/panels/timeline/TimelineController.ts +1 -1
  249. package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
  250. package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
  251. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -5
  252. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +4 -7
  253. package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
  254. package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
  255. package/front_end/panels/timeline/TimelineLoader.ts +2 -2
  256. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
  257. package/front_end/panels/timeline/TimelinePanel.ts +10 -10
  258. package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
  259. package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
  260. package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
  261. package/front_end/panels/web_audio/WebAudioView.ts +1 -1
  262. package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
  263. package/front_end/ui/components/buttons/Button.ts +10 -10
  264. package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
  265. package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
  266. package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
  267. package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
  268. package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
  269. package/front_end/ui/components/icon_button/Icon.ts +1 -1
  270. package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
  271. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
  272. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
  273. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
  274. package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
  275. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
  276. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
  277. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
  278. package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
  279. package/front_end/ui/components/text_editor/javascript.ts +2 -2
  280. package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
  281. package/front_end/ui/legacy/Context.ts +1 -1
  282. package/front_end/ui/legacy/ContextMenu.ts +1 -1
  283. package/front_end/ui/legacy/GlassPane.ts +0 -1
  284. package/front_end/ui/legacy/InspectorView.ts +2 -3
  285. package/front_end/ui/legacy/PopoverHelper.ts +1 -1
  286. package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
  287. package/front_end/ui/legacy/TabbedPane.ts +2 -2
  288. package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
  289. package/front_end/ui/legacy/Toolbar.ts +3 -3
  290. package/front_end/ui/legacy/Treeoutline.ts +6 -6
  291. package/front_end/ui/legacy/UIUtils.ts +16 -16
  292. package/front_end/ui/legacy/ViewManager.ts +9 -9
  293. package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
  294. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -7
  295. package/front_end/ui/legacy/components/color_picker/spectrum.css +5 -2
  296. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
  297. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
  298. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
  299. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
  300. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
  301. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
  302. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  303. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
  304. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
  305. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +10 -19
  306. package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
  307. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
  308. package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
  309. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
  310. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
  311. package/front_end/ui/legacy/components/perf_ui/flameChart.css +8 -0
  312. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
  313. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -2
  314. package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -4
  315. package/front_end/ui/legacy/components/source_frame/JSONView.ts +0 -1
  316. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -2
  317. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
  318. package/front_end/ui/legacy/components/source_frame/XMLView.ts +0 -2
  319. package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
  320. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  321. package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
  322. package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
  323. package/front_end/ui/legacy/tabbedPane.css +1 -0
  324. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +3 -210
  325. package/front_end/ui/legacy/toolbar.css +1 -0
  326. package/package.json +1 -1
  327. package/scripts/component_server/server.js +2 -2
  328. package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
  329. package/front_end/global_typings/intl_display_names.d.ts +0 -111
@@ -52,7 +52,7 @@ export class Context {
52
52
  private dispatchFlavorChange<T>(flavorType: ConstructorFn<T>, flavorValue: T|null): void {
53
53
  for (const extension of getRegisteredListeners()) {
54
54
  if (extension.contextTypes().includes(flavorType)) {
55
- extension.loadListener().then(instance => instance.flavorChanged(flavorValue));
55
+ void extension.loadListener().then(instance => instance.flavorChanged(flavorValue));
56
56
  }
57
57
  }
58
58
  const dispatcher = this.eventDispatchers.get(flavorType);
@@ -388,7 +388,7 @@ export class ContextMenu extends SubMenu {
388
388
 
389
389
  function handler(event: Event): void {
390
390
  const contextMenu = new ContextMenu(event);
391
- contextMenu.show();
391
+ void contextMenu.show();
392
392
  }
393
393
  }
394
394
 
@@ -56,7 +56,6 @@ export class GlassPane {
56
56
  }
57
57
 
58
58
  registerRequiredCSS(cssFile: {cssContent: string}): void {
59
- // eslint-disable-next-line no-restricted-syntax -- Should import styles https://crbug.com/1106746
60
59
  this.widgetInternal.registerRequiredCSS(cssFile);
61
60
  }
62
61
 
@@ -198,7 +198,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
198
198
  Host.InspectorFrontendHostAPI.Events.ShowPanel, showPanel.bind(this));
199
199
 
200
200
  function showPanel(this: InspectorView, {data: panelName}: Common.EventTarget.EventTargetEvent<string>): void {
201
- this.showPanel(panelName);
201
+ void this.showPanel(panelName);
202
202
  }
203
203
 
204
204
  if (shouldShowLocaleInfobar()) {
@@ -375,7 +375,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
375
375
  const panelName = this.tabbedPane.tabIds()[panelIndex];
376
376
  if (panelName) {
377
377
  if (!Dialog.hasInstance() && !this.currentPanelLocked) {
378
- this.showPanel(panelName);
378
+ void this.showPanel(panelName);
379
379
  }
380
380
  event.consume(true);
381
381
  }
@@ -478,7 +478,6 @@ function shouldShowLocaleInfobar(): boolean {
478
478
  function createLocaleInfobar(): Infobar {
479
479
  const devtoolsLocale = i18n.DevToolsLocale.DevToolsLocale.instance();
480
480
  const closestSupportedLocale = devtoolsLocale.lookupClosestDevToolsLocale(navigator.language);
481
- // @ts-ignore TODO(crbug.com/1163928) Wait for Intl support.
482
481
  const locale = new Intl.Locale(closestSupportedLocale);
483
482
  const closestSupportedLanguageInCurrentLocale =
484
483
  new Intl.DisplayNames([devtoolsLocale.locale], {type: 'language'}).of(locale.language || 'en');
@@ -197,7 +197,7 @@ export class PopoverHelper {
197
197
  if (!request) {
198
198
  return;
199
199
  }
200
- request.show.call(null, popover).then(success => {
200
+ void request.show.call(null, popover).then(success => {
201
201
  if (!success) {
202
202
  return;
203
203
  }
@@ -137,7 +137,7 @@ export class ShortcutRegistry {
137
137
  handleShortcut(event: KeyboardEvent, handlers?: {
138
138
  [x: string]: () => Promise<boolean>,
139
139
  }): void {
140
- this.handleKey(KeyboardShortcut.makeKeyFromEvent(event), event.key, event, handlers);
140
+ void this.handleKey(KeyboardShortcut.makeKeyFromEvent(event), event.key, event, handlers);
141
141
  }
142
142
 
143
143
  actionHasDefaultShortcut(actionId: string): boolean {
@@ -632,7 +632,7 @@ export class TabbedPane extends Common.ObjectWrapper.eventMixin<EventTypes, type
632
632
  menu.defaultSection().appendItem(tab.title, this.dropDownMenuItemSelected.bind(this, tab));
633
633
  }
634
634
  }
635
- menu.show();
635
+ void menu.show();
636
636
  }
637
637
 
638
638
  private dropDownKeydown(event: Event): void {
@@ -1250,7 +1250,7 @@ export class TabbedPaneTab {
1250
1250
  if (this.delegate) {
1251
1251
  this.delegate.onContextMenu(this.id, contextMenu);
1252
1252
  }
1253
- contextMenu.show();
1253
+ void contextMenu.show();
1254
1254
  }
1255
1255
 
1256
1256
  private startTabDragging(ev: Event): boolean {
@@ -24,7 +24,7 @@ export class ThrottledWidget extends VBox {
24
24
  if (this.updateWhenVisible) {
25
25
  return;
26
26
  }
27
- this.updateThrottler.schedule(() => {
27
+ void this.updateThrottler.schedule(() => {
28
28
  if (this.isShowing()) {
29
29
  return this.doUpdate();
30
30
  }
@@ -225,13 +225,13 @@ export class Toolbar {
225
225
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
226
226
  data: any,
227
227
  }): void => {
228
- action.execute();
228
+ void action.execute();
229
229
  };
230
230
  if (options.userActionCode) {
231
231
  const actionCode = options.userActionCode;
232
232
  handler = (): void => {
233
233
  Host.userMetrics.actionTaken(actionCode);
234
- action.execute();
234
+ void action.execute();
235
235
  };
236
236
  }
237
237
  button.addEventListener(ToolbarButton.Events.Click, handler, action);
@@ -814,7 +814,7 @@ export class ToolbarMenuButton extends ToolbarButton {
814
814
  y: this.element.totalOffsetTop() + this.element.offsetHeight,
815
815
  });
816
816
  this.contextMenuHandler(contextMenu);
817
- contextMenu.show();
817
+ void contextMenu.show();
818
818
  this.lastTriggerTime = Date.now();
819
819
  }
820
820
 
@@ -924,7 +924,7 @@ export class TreeElement {
924
924
  }
925
925
  } else {
926
926
  if (event.altKey) {
927
- this.expandRecursively();
927
+ void this.expandRecursively();
928
928
  } else {
929
929
  this.expand();
930
930
  }
@@ -1020,7 +1020,7 @@ export class TreeElement {
1020
1020
 
1021
1021
  this.expanded = true;
1022
1022
 
1023
- this.populateIfNeeded();
1023
+ void this.populateIfNeeded();
1024
1024
  this.listItemNode.classList.add('expanded');
1025
1025
  this.childrenListNode.classList.add('expanded');
1026
1026
  ARIAUtils.setExpanded(this.listItemNode, true);
@@ -1093,7 +1093,7 @@ export class TreeElement {
1093
1093
 
1094
1094
  if (!this.expanded) {
1095
1095
  if (altKey) {
1096
- this.expandRecursively();
1096
+ void this.expandRecursively();
1097
1097
  } else {
1098
1098
  this.expand();
1099
1099
  }
@@ -1292,7 +1292,7 @@ export class TreeElement {
1292
1292
  depthChange: number,
1293
1293
  }): TreeElement|null {
1294
1294
  if (!dontPopulate) {
1295
- this.populateIfNeeded();
1295
+ void this.populateIfNeeded();
1296
1296
  }
1297
1297
 
1298
1298
  if (info) {
@@ -1338,14 +1338,14 @@ export class TreeElement {
1338
1338
  let element: (TreeElement|null) =
1339
1339
  skipUnrevealed ? (this.revealed() ? this.previousSibling : null) : this.previousSibling;
1340
1340
  if (!dontPopulate && element) {
1341
- element.populateIfNeeded();
1341
+ void element.populateIfNeeded();
1342
1342
  }
1343
1343
 
1344
1344
  while (element &&
1345
1345
  (skipUnrevealed ? (element.revealed() && element.expanded ? element.lastChild() : null) :
1346
1346
  element.lastChild())) {
1347
1347
  if (!dontPopulate) {
1348
- element.populateIfNeeded();
1348
+ void element.populateIfNeeded();
1349
1349
  }
1350
1350
  element =
1351
1351
  (skipUnrevealed ? (element.revealed() && element.expanded ? element.lastChild() : null) :
@@ -141,9 +141,9 @@ export function installDragHandle(
141
141
  }
142
142
 
143
143
  let startTimer: number|null;
144
- element.addEventListener('mousedown', onMouseDown, false);
144
+ element.addEventListener('pointerdown', onMouseDown, false);
145
145
  if (startDelay) {
146
- element.addEventListener('mouseup', onMouseUp, false);
146
+ element.addEventListener('pointerup', onMouseUp, false);
147
147
  }
148
148
  if (hoverCursor !== null) {
149
149
  (element as HTMLElement).style.cursor = hoverCursor || cursor || '';
@@ -233,12 +233,12 @@ class DragHandler {
233
233
  this.dragEventsTargetDocumentTop = this.dragEventsTargetDocument;
234
234
  }
235
235
 
236
- targetDocument.addEventListener('mousemove', this.elementDragMove, true);
237
- targetDocument.addEventListener('mouseup', this.elementDragEnd, true);
236
+ targetDocument.addEventListener('pointermove', this.elementDragMove, true);
237
+ targetDocument.addEventListener('pointerup', this.elementDragEnd, true);
238
238
  DragHandler.rootForMouseOut &&
239
- DragHandler.rootForMouseOut.addEventListener('mouseout', this.mouseOutWhileDragging, {capture: true});
239
+ DragHandler.rootForMouseOut.addEventListener('pointerout', this.mouseOutWhileDragging, {capture: true});
240
240
  if (this.dragEventsTargetDocumentTop && targetDocument !== this.dragEventsTargetDocumentTop) {
241
- this.dragEventsTargetDocumentTop.addEventListener('mouseup', this.elementDragEnd, true);
241
+ this.dragEventsTargetDocumentTop.addEventListener('pointerup', this.elementDragEnd, true);
242
242
  }
243
243
 
244
244
  const targetHtmlElement = (targetElement as HTMLElement);
@@ -264,17 +264,17 @@ class DragHandler {
264
264
  if (!DragHandler.rootForMouseOut) {
265
265
  return;
266
266
  }
267
- DragHandler.rootForMouseOut.removeEventListener('mouseout', this.mouseOutWhileDragging, {capture: true});
267
+ DragHandler.rootForMouseOut.removeEventListener('pointerout', this.mouseOutWhileDragging, {capture: true});
268
268
  }
269
269
 
270
270
  private unregisterDragEvents(): void {
271
271
  if (!this.dragEventsTargetDocument) {
272
272
  return;
273
273
  }
274
- this.dragEventsTargetDocument.removeEventListener('mousemove', this.elementDragMove, true);
275
- this.dragEventsTargetDocument.removeEventListener('mouseup', this.elementDragEnd, true);
274
+ this.dragEventsTargetDocument.removeEventListener('pointermove', this.elementDragMove, true);
275
+ this.dragEventsTargetDocument.removeEventListener('pointerup', this.elementDragEnd, true);
276
276
  if (this.dragEventsTargetDocumentTop && this.dragEventsTargetDocument !== this.dragEventsTargetDocumentTop) {
277
- this.dragEventsTargetDocumentTop.removeEventListener('mouseup', this.elementDragEnd, true);
277
+ this.dragEventsTargetDocumentTop.removeEventListener('pointerup', this.elementDragEnd, true);
278
278
  }
279
279
  delete this.dragEventsTargetDocument;
280
280
  delete this.dragEventsTargetDocumentTop;
@@ -993,9 +993,9 @@ export class LongClickController {
993
993
 
994
994
  this.element.addEventListener('keydown', boundKeyDown, false);
995
995
  this.element.addEventListener('keyup', boundKeyUp, false);
996
- this.element.addEventListener('mousedown', boundMouseDown, false);
997
- this.element.addEventListener('mouseout', boundReset, false);
998
- this.element.addEventListener('mouseup', boundMouseUp, false);
996
+ this.element.addEventListener('pointerdown', boundMouseDown, false);
997
+ this.element.addEventListener('pointerout', boundReset, false);
998
+ this.element.addEventListener('pointerup', boundMouseUp, false);
999
999
  this.element.addEventListener('click', boundReset, true);
1000
1000
 
1001
1001
  this.longClickData = {mouseUp: boundMouseUp, mouseDown: boundMouseDown, reset: boundReset};
@@ -1033,9 +1033,9 @@ export class LongClickController {
1033
1033
  if (!this.longClickData) {
1034
1034
  return;
1035
1035
  }
1036
- this.element.removeEventListener('mousedown', this.longClickData.mouseDown, false);
1037
- this.element.removeEventListener('mouseout', this.longClickData.reset, false);
1038
- this.element.removeEventListener('mouseup', this.longClickData.mouseUp, false);
1036
+ this.element.removeEventListener('poinerdown', this.longClickData.mouseDown, false);
1037
+ this.element.removeEventListener('pointerout', this.longClickData.reset, false);
1038
+ this.element.removeEventListener('pointerup', this.longClickData.mouseUp, false);
1039
1039
  this.element.addEventListener('click', this.longClickData.reset, true);
1040
1040
  delete this.longClickData;
1041
1041
  }
@@ -239,7 +239,7 @@ export class ViewManager {
239
239
  }
240
240
 
241
241
  // Find new location and show view there
242
- this.resolveLocation(locationName).then(location => {
242
+ void this.resolveLocation(locationName).then(location => {
243
243
  if (!location) {
244
244
  throw new Error('Move view: Could not resolve location for view: ' + viewId);
245
245
  }
@@ -393,7 +393,7 @@ export class ContainerWidget extends VBox {
393
393
  }
394
394
 
395
395
  wasShown(): void {
396
- this.materialize().then(() => {
396
+ void this.materialize().then(() => {
397
397
  const widget = widgetForView.get(this.view);
398
398
  if (widget) {
399
399
  widget.show(this.element);
@@ -442,7 +442,7 @@ export class _ExpandableContainerWidget extends VBox {
442
442
 
443
443
  wasShown(): void {
444
444
  if (this.widget && this.materializePromise) {
445
- this.materializePromise.then(() => {
445
+ void this.materializePromise.then(() => {
446
446
  if (this.titleElement.classList.contains('expanded') && this.widget) {
447
447
  this.widget.show(this.element);
448
448
  }
@@ -496,7 +496,7 @@ export class _ExpandableContainerWidget extends VBox {
496
496
  this.titleElement.classList.remove('expanded');
497
497
  ARIAUtils.setExpanded(this.titleElement, false);
498
498
  this.titleExpandIcon.setIconType('smallicon-triangle-right');
499
- this.materialize().then(() => {
499
+ void this.materialize().then(() => {
500
500
  if (this.widget) {
501
501
  this.widget.detach();
502
502
  }
@@ -510,7 +510,7 @@ export class _ExpandableContainerWidget extends VBox {
510
510
  if (this.titleElement.classList.contains('expanded')) {
511
511
  this.collapse();
512
512
  } else {
513
- this.expand();
513
+ void this.expand();
514
514
  }
515
515
  }
516
516
 
@@ -523,7 +523,7 @@ export class _ExpandableContainerWidget extends VBox {
523
523
  this.collapse();
524
524
  } else if (keyEvent.key === 'ArrowRight') {
525
525
  if (!this.titleElement.classList.contains('expanded')) {
526
- this.expand();
526
+ void this.expand();
527
527
  } else if (this.widget) {
528
528
  this.widget.focus();
529
529
  }
@@ -685,7 +685,7 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
685
685
  const view = Array.from(this.views.values()).find(view => view.viewId() === this.defaultTab);
686
686
  if (view) {
687
687
  // defaultTab is indeed part of the views for this tabbed location
688
- this.showView(view);
688
+ void this.showView(view);
689
689
  }
690
690
  }
691
691
  } else if (this.lastSelectedTabSetting && this.tabbedPaneInternal.hasTab(this.lastSelectedTabSetting.get())) {
@@ -702,7 +702,7 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
702
702
  if (view.viewId() === 'issues-pane') {
703
703
  contextMenu.defaultSection().appendItem(title, () => {
704
704
  Host.userMetrics.issuesPanelOpenedFrom(Host.UserMetrics.IssueOpener.HamburgerMenu);
705
- this.showView(view, undefined, true);
705
+ void this.showView(view, undefined, true);
706
706
  });
707
707
  continue;
708
708
  }
@@ -801,7 +801,7 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
801
801
  }
802
802
  const view = this.views.get(tabId);
803
803
  if (view) {
804
- view.disposeView();
804
+ void view.disposeView();
805
805
  }
806
806
  }
807
807
 
@@ -57,7 +57,7 @@ export class ContrastOverlay {
57
57
  if (!this.contrastInfo.contrastRatio()) {
58
58
  return;
59
59
  }
60
- this.contrastRatioLinesThrottler.schedule(this.drawContrastRatioLinesBound);
60
+ void this.contrastRatioLinesThrottler.schedule(this.drawContrastRatioLinesBound);
61
61
  }
62
62
 
63
63
  setDimensions(width: number, height: number): void {
@@ -267,14 +267,14 @@ export class Spectrum extends Common.ObjectWrapper.eventMixin<EventTypes, typeof
267
267
  UI.ARIAUtils.markAsButton(displaySwitcher);
268
268
 
269
269
  UI.UIUtils.installDragHandle(
270
- this.hueElement, this.dragStart.bind(this, positionHue.bind(this)), positionHue.bind(this), null, 'pointer',
271
- 'default');
270
+ this.hueElement, this.dragStart.bind(this, positionHue.bind(this)), positionHue.bind(this), null, 'ew-resize',
271
+ 'crosshair');
272
272
  UI.UIUtils.installDragHandle(
273
273
  this.alphaElement, this.dragStart.bind(this, positionAlpha.bind(this)), positionAlpha.bind(this), null,
274
- 'pointer', 'default');
274
+ 'ew-resize', 'crosshair');
275
275
  UI.UIUtils.installDragHandle(
276
- this.colorElement, this.dragStart.bind(this, positionColor.bind(this)), positionColor.bind(this), null,
277
- 'pointer', 'default');
276
+ this.colorElement, this.dragStart.bind(this, positionColor.bind(this)), positionColor.bind(this), null, 'move',
277
+ 'crosshair');
278
278
 
279
279
  // Color contrast business.
280
280
  if (contrastInfo) {
@@ -894,7 +894,7 @@ export class Spectrum extends Common.ObjectWrapper.eventMixin<EventTypes, typeof
894
894
  }
895
895
  contextMenu.defaultSection().appendItem(
896
896
  i18nString(UIStrings.clearPalette), this.deletePaletteColors.bind(this, -1, true));
897
- contextMenu.show();
897
+ void contextMenu.show();
898
898
  }
899
899
 
900
900
  private deletePaletteColors(colorIndex: number, toRight: boolean): void {
@@ -1231,7 +1231,7 @@ export class PaletteGenerator {
1231
1231
  stylesheetPromises.push(this.processStylesheet(stylesheet));
1232
1232
  }
1233
1233
  }
1234
- Promise.all(stylesheetPromises)
1234
+ void Promise.all(stylesheetPromises)
1235
1235
  .catch(error => {
1236
1236
  console.error(error);
1237
1237
  })
@@ -25,6 +25,7 @@
25
25
  border-radius: 2px 2px 0 0;
26
26
  overflow: hidden;
27
27
  flex: none;
28
+ touch-action: none;
28
29
  }
29
30
 
30
31
  .spectrum-dragger,
@@ -37,7 +38,8 @@
37
38
  height: 12px;
38
39
  width: 12px;
39
40
  border: 1px solid var(--color-background);
40
- cursor: pointer;
41
+ cursor: move;
42
+ z-index: 1;
41
43
  position: absolute;
42
44
  top: 0;
43
45
  left: 0;
@@ -48,7 +50,7 @@
48
50
  .spectrum-slider {
49
51
  position: absolute;
50
52
  top: -1px;
51
- cursor: pointer;
53
+ cursor: ew-resize;
52
54
  width: 13px;
53
55
  height: 13px;
54
56
  border-radius: 13px;
@@ -90,6 +92,7 @@
90
92
  width: 130px;
91
93
  height: 11px;
92
94
  border-radius: 2px;
95
+ touch-action: none;
93
96
  }
94
97
 
95
98
  .spectrum-hue:focus-visible .spectrum-slider,
@@ -639,7 +639,7 @@ export class CookiesTable extends UI.Widget.VBox {
639
639
  if (!this.saveCallback) {
640
640
  return;
641
641
  }
642
- this.saveCallback(newCookie, oldCookie).then(success => {
642
+ void this.saveCallback(newCookie, oldCookie).then(success => {
643
643
  if (success) {
644
644
  this.refresh();
645
645
  } else {
@@ -731,12 +731,12 @@ export class CookiesTable extends UI.Widget.VBox {
731
731
  filterValue: cookie.name(),
732
732
  },
733
733
  ]);
734
- Common.Revealer.reveal(requestFilter);
734
+ void Common.Revealer.reveal(requestFilter);
735
735
  });
736
736
  if (IssuesManager.RelatedIssue.hasIssues(cookie)) {
737
737
  contextMenu.revealSection().appendItem(i18nString(UIStrings.showIssueAssociatedWithThis), () => {
738
738
  // TODO(chromium:1077719): Just filter for the cookie instead of revealing one of the associated issues.
739
- IssuesManager.RelatedIssue.reveal(cookie);
739
+ void IssuesManager.RelatedIssue.reveal(cookie);
740
740
  });
741
741
  }
742
742
  }
@@ -1307,7 +1307,7 @@ export class DataGridImpl<T> extends Common.ObjectWrapper.ObjectWrapper<EventTyp
1307
1307
  this.headerContextMenuCallback(contextMenu);
1308
1308
  }
1309
1309
  contextMenu.defaultSection().appendItem(i18nString(UIStrings.resetColumns), this.resetColumnWeights.bind(this));
1310
- contextMenu.show();
1310
+ void contextMenu.show();
1311
1311
  return;
1312
1312
  }
1313
1313
 
@@ -1368,7 +1368,7 @@ export class DataGridImpl<T> extends Common.ObjectWrapper.ObjectWrapper<EventTyp
1368
1368
  }
1369
1369
  }
1370
1370
 
1371
- contextMenu.show();
1371
+ void contextMenu.show();
1372
1372
  }
1373
1373
 
1374
1374
  private clickInDataTable(event: Event): void {
@@ -97,15 +97,15 @@ export class ShowMoreDataGridNode extends DataGridNode<ShowMoreDataGridNode> {
97
97
  }
98
98
 
99
99
  private showNextChunk(): void {
100
- this.callback(this.startPosition, this.startPosition + this.chunkSize);
100
+ void this.callback(this.startPosition, this.startPosition + this.chunkSize);
101
101
  }
102
102
 
103
103
  private showAllInternal(): void {
104
- this.callback(this.startPosition, this.endPosition);
104
+ void this.callback(this.startPosition, this.endPosition);
105
105
  }
106
106
 
107
107
  private showLastChunk(): void {
108
- this.callback(this.endPosition - this.chunkSize, this.endPosition);
108
+ void this.callback(this.endPosition - this.chunkSize, this.endPosition);
109
109
  }
110
110
 
111
111
  private updateLabels(): void {
@@ -92,7 +92,7 @@ export class CSSAngleEditor extends HTMLElement {
92
92
 
93
93
  event.preventDefault();
94
94
 
95
- this.mousemoveThrottler.schedule(() => {
95
+ void this.mousemoveThrottler.schedule(() => {
96
96
  this.updateAngleFromMousePosition(event.pageX, event.pageY, event.shiftKey);
97
97
  return Promise.resolve();
98
98
  });
@@ -140,7 +140,7 @@ export class FontEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
140
140
 
141
141
  const propertyValue: string|undefined = this.propertyMap.get('font-family');
142
142
 
143
- this.createFontSelectorSection(propertyValue);
143
+ void this.createFontSelectorSection(propertyValue);
144
144
 
145
145
  // CSS Font Property Section
146
146
  const cssPropertySection = this.contentElement.createChild('div', 'font-section');
@@ -187,11 +187,11 @@ export class FontEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
187
187
  if (!FontEditorUtils.GlobalValues.includes(splitValue[0])) {
188
188
  // We add one to the splitValue length so that we have an additional empty fallback selector
189
189
  for (let i = 1; i < splitValue.length + 1; i++) {
190
- this.createFontSelector(splitValue[i]);
190
+ void this.createFontSelector(splitValue[i]);
191
191
  }
192
192
  }
193
193
  } else {
194
- this.createFontSelector('', true);
194
+ void this.createFontSelector('', true);
195
195
  }
196
196
  this.resizePopout();
197
197
  }
@@ -383,7 +383,7 @@ export class FontEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
383
383
  // selector's value is not a global value and if the list of selectors has not exceeded 10.
384
384
  if (this.fontSelectors[this.fontSelectors.length - 1].input.value !== '' && !isGlobalValue &&
385
385
  this.fontSelectors.length < 10) {
386
- this.createFontSelector(/** value= */ '');
386
+ void this.createFontSelector(/** value= */ '');
387
387
  this.resizePopout();
388
388
  }
389
389
  this.updatePropertyValue('font-family', value);
@@ -133,7 +133,7 @@ export class CustomPreviewSection {
133
133
  if (this.cachedContent) {
134
134
  this.toggleExpand();
135
135
  } else {
136
- this.loadBody();
136
+ void this.loadBody();
137
137
  }
138
138
  }
139
139
 
@@ -199,7 +199,7 @@ export class CustomPreviewComponent {
199
199
  expandIfPossible(): void {
200
200
  const customPreview = this.object.customPreview();
201
201
  if (customPreview && customPreview.bodyGetterId && this.customPreviewSection) {
202
- this.customPreviewSection.loadBody();
202
+ void this.customPreviewSection.loadBody();
203
203
  }
204
204
  }
205
205
 
@@ -209,7 +209,7 @@ export class CustomPreviewComponent {
209
209
  contextMenu.revealSection().appendItem(i18nString(UIStrings.showAsJavascriptObject), this.disassemble.bind(this));
210
210
  }
211
211
  contextMenu.appendApplicableItems(this.object);
212
- contextMenu.show();
212
+ void contextMenu.show();
213
213
  }
214
214
 
215
215
  private disassemble(): void {
@@ -107,7 +107,7 @@ export class ObjectPopoverHelper {
107
107
  return new ObjectPopoverHelper(null, false);
108
108
  }
109
109
 
110
- ObjectPropertiesSection.formatObjectAsFunction(result, valueElement, true);
110
+ void ObjectPropertiesSection.formatObjectAsFunction(result, valueElement, true);
111
111
  const response = await result.debuggerModel().functionDetailsPromise(result);
112
112
  if (!response) {
113
113
  return null;
@@ -370,7 +370,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
370
370
  };
371
371
  memoryIcon.onclick = (event: MouseEvent): void => {
372
372
  Host.userMetrics.linearMemoryInspectorRevealedFrom(Host.UserMetrics.LinearMemoryInspectorRevealedFrom.MemoryIcon);
373
- LinearMemoryInspector.LinearMemoryInspectorController.LinearMemoryInspectorController.instance()
373
+ void LinearMemoryInspector.LinearMemoryInspectorController.LinearMemoryInspectorController.instance()
374
374
  .openInspectorView(obj);
375
375
  event.stopPropagation();
376
376
  };
@@ -476,7 +476,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
476
476
  valueElement.classList.add('object-value-node');
477
477
  createSpansForNodeTitle(valueElement, (description as string));
478
478
  valueElement.addEventListener('click', event => {
479
- Common.Revealer.reveal(value);
479
+ void Common.Revealer.reveal(value);
480
480
  event.consume(true);
481
481
  }, false);
482
482
  valueElement.addEventListener(
@@ -495,7 +495,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
495
495
  if (linkify && response && response.location) {
496
496
  element.classList.add('linkified');
497
497
  element.addEventListener('click', () => {
498
- Common.Revealer.reveal(response.location);
498
+ void Common.Revealer.reveal(response.location);
499
499
  return false;
500
500
  });
501
501
  }
@@ -553,7 +553,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
553
553
  i18nString(UIStrings.collapseChildren),
554
554
  this.objectTreeElementInternal.collapseChildren.bind(this.objectTreeElementInternal));
555
555
  }
556
- contextMenu.show();
556
+ void contextMenu.show();
557
557
  }
558
558
 
559
559
  titleLessMode(): void {
@@ -655,7 +655,7 @@ export class RootElement extends UI.TreeOutline.TreeElement {
655
655
  contextMenu.viewSection().appendItem(
656
656
  i18nString(UIStrings.expandRecursively), this.expandRecursively.bind(this, Number.MAX_VALUE));
657
657
  contextMenu.viewSection().appendItem(i18nString(UIStrings.collapseChildren), this.collapseChildren.bind(this));
658
- contextMenu.show();
658
+ void contextMenu.show();
659
659
  }
660
660
 
661
661
  async onpopulate(): Promise<void> {
@@ -706,7 +706,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
706
706
  targetValue?: SDK.RemoteObject.RemoteObject): Promise<void> {
707
707
  if (value.arrayLength() > ARRAY_LOAD_THRESHOLD) {
708
708
  treeElement.removeChildren();
709
- ArrayGroupingTreeElement.populateArray(treeElement, value, 0, value.arrayLength() - 1, linkifier);
709
+ void ArrayGroupingTreeElement.populateArray(treeElement, value, 0, value.arrayLength() - 1, linkifier);
710
710
  return;
711
711
  }
712
712
 
@@ -838,7 +838,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
838
838
  // The definition of callFunction expects an unknown, and setting to `any` causes Closure to fail.
839
839
  // However, leaving this as unknown also causes TypeScript to fail, so for now we leave this as unchecked.
840
840
  // @ts-ignore TODO(crbug.com/1011811): Fix after Closure is removed.
841
- object.callFunction(invokeGetter, [{value: JSON.stringify(propertyPath)}]).then(callback);
841
+ void object.callFunction(invokeGetter, [{value: JSON.stringify(propertyPath)}]).then(callback);
842
842
  }
843
843
  }
844
844
 
@@ -1105,7 +1105,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
1105
1105
  if (this.propertyValue) {
1106
1106
  this.propertyValue.appendApplicableItems(event, contextMenu, {});
1107
1107
  }
1108
- contextMenu.show();
1108
+ void contextMenu.show();
1109
1109
  }
1110
1110
 
1111
1111
  private startEditing(): void {
@@ -1177,7 +1177,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
1177
1177
  const keyboardEvent = (event as KeyboardEvent);
1178
1178
  if (keyboardEvent.key === 'Enter') {
1179
1179
  keyboardEvent.consume();
1180
- this.editingCommitted(originalContent);
1180
+ void this.editingCommitted(originalContent);
1181
1181
  return;
1182
1182
  }
1183
1183
  if (keyboardEvent.key === Platform.KeyboardUtilities.ESCAPE_KEY) {
@@ -1200,7 +1200,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
1200
1200
  const parent = this.parent;
1201
1201
  if (parent) {
1202
1202
  parent.invalidateChildren();
1203
- parent.onpopulate();
1203
+ void parent.onpopulate();
1204
1204
  }
1205
1205
  } else {
1206
1206
  this.update();
@@ -1225,7 +1225,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
1225
1225
  const parent = this.parent;
1226
1226
  if (parent) {
1227
1227
  parent.invalidateChildren();
1228
- parent.onpopulate();
1228
+ void parent.onpopulate();
1229
1229
  }
1230
1230
  }
1231
1231
  }