chrome-devtools-frontend 1.0.954777 → 1.0.955630
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -0
- package/config/owner/COMMON_OWNERS +2 -2
- package/front_end/core/common/Console.ts +1 -1
- package/front_end/core/common/ResolverBase.ts +1 -1
- package/front_end/core/common/Throttler.ts +1 -1
- package/front_end/core/common/Worker.ts +4 -4
- package/front_end/core/host/InspectorFrontendHost.ts +1 -1
- package/front_end/core/host/ResourceLoader.ts +2 -2
- package/front_end/core/i18n/DevToolsLocale.ts +0 -2
- package/front_end/core/i18n/i18nImpl.ts +0 -2
- package/front_end/core/i18n/locales/en-US.json +3 -0
- package/front_end/core/i18n/locales/en-XL.json +3 -0
- package/front_end/core/sdk/AccessibilityModel.ts +1 -1
- package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
- package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
- package/front_end/core/sdk/CSSModel.ts +7 -7
- package/front_end/core/sdk/CSSProperty.ts +1 -1
- package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
- package/front_end/core/sdk/ChildTargetManager.ts +6 -6
- package/front_end/core/sdk/Connections.ts +2 -2
- package/front_end/core/sdk/ConsoleModel.ts +1 -1
- package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
- package/front_end/core/sdk/DOMModel.ts +17 -17
- package/front_end/core/sdk/DebuggerModel.ts +24 -24
- package/front_end/core/sdk/EmulationModel.ts +16 -16
- package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
- package/front_end/core/sdk/IsolateManager.ts +2 -2
- package/front_end/core/sdk/IssuesModel.ts +1 -1
- package/front_end/core/sdk/LogModel.ts +3 -3
- package/front_end/core/sdk/NetworkManager.ts +25 -25
- package/front_end/core/sdk/OverlayModel.ts +23 -23
- package/front_end/core/sdk/PageResourceLoader.ts +1 -1
- package/front_end/core/sdk/PaintProfiler.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +2 -2
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
- package/front_end/core/sdk/RuntimeModel.ts +11 -11
- package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
- package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
- package/front_end/core/sdk/SourceMapManager.ts +1 -1
- package/front_end/core/sdk/TargetManager.ts +2 -2
- package/front_end/core/sdk/TracingManager.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
- package/front_end/entrypoints/js_app/js_app.ts +2 -2
- package/front_end/entrypoints/main/MainImpl.ts +11 -11
- package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
- package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
- package/front_end/generated/ARIAProperties.js +1 -1
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/SupportedCSSProperties.js +15 -15
- package/front_end/generated/protocol.d.ts +12 -0
- package/front_end/models/bindings/BreakpointManager.ts +21 -23
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
- package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
- package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
- package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
- package/front_end/models/bindings/FileUtils.ts +5 -5
- package/front_end/models/bindings/IgnoreListManager.ts +4 -4
- package/front_end/models/bindings/LiveLocation.ts +9 -0
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
- package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
- package/front_end/models/bindings/TempFile.ts +1 -1
- package/front_end/models/emulation/DeviceModeModel.ts +5 -5
- package/front_end/models/emulation/EmulatedDevices.ts +1 -1
- package/front_end/models/extensions/ExtensionPanel.ts +1 -1
- package/front_end/models/extensions/ExtensionServer.ts +8 -8
- package/front_end/models/formatter/SourceFormatter.ts +2 -2
- package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
- package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
- package/front_end/models/persistence/Automapping.ts +3 -3
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
- package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
- package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
- package/front_end/models/persistence/PersistenceActions.ts +3 -3
- package/front_end/models/persistence/PersistenceImpl.ts +2 -2
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
- package/front_end/models/workspace/UISourceCode.ts +2 -2
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
- package/front_end/panels/animation/AnimationModel.ts +6 -6
- package/front_end/panels/animation/AnimationTimeline.ts +3 -3
- package/front_end/panels/animation/AnimationUI.ts +3 -3
- package/front_end/panels/application/AppManifestView.ts +4 -4
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
- package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
- package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
- package/front_end/panels/application/BackgroundServiceView.ts +3 -3
- package/front_end/panels/application/CookieItemsView.ts +5 -5
- package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
- package/front_end/panels/application/DOMStorageModel.ts +4 -4
- package/front_end/panels/application/DatabaseModel.ts +2 -2
- package/front_end/panels/application/DatabaseQueryView.ts +2 -2
- package/front_end/panels/application/DatabaseTableView.ts +1 -1
- package/front_end/panels/application/IndexedDBModel.ts +11 -11
- package/front_end/panels/application/IndexedDBViews.ts +5 -5
- package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
- package/front_end/panels/application/ReportingApiView.ts +1 -1
- package/front_end/panels/application/ResourcesPanel.ts +2 -2
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
- package/front_end/panels/application/ServiceWorkersView.ts +15 -15
- package/front_end/panels/application/StorageView.ts +5 -5
- package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
- package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
- package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
- package/front_end/panels/changes/ChangesView.ts +4 -4
- package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
- package/front_end/panels/console/ConsoleFilter.ts +17 -2
- package/front_end/panels/console/ConsoleFormat.ts +5 -4
- package/front_end/panels/console/ConsolePinPane.ts +4 -4
- package/front_end/panels/console/ConsolePrompt.ts +4 -4
- package/front_end/panels/console/ConsoleView.ts +96 -71
- package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
- package/front_end/panels/console/consoleView.css +36 -0
- package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
- package/front_end/panels/coverage/CoverageListView.ts +3 -3
- package/front_end/panels/coverage/CoverageModel.ts +3 -3
- package/front_end/panels/coverage/CoverageView.ts +6 -6
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
- package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
- package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
- package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
- package/front_end/panels/elements/DOMLinkifier.ts +2 -2
- package/front_end/panels/elements/ElementsPanel.ts +19 -19
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +21 -21
- package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
- package/front_end/panels/elements/InspectElementModeController.ts +3 -3
- package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
- package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
- package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
- package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
- package/front_end/panels/elements/elementsPanel.css +1 -0
- package/front_end/panels/elements/elementsTreeOutline.css +6 -1
- package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
- package/front_end/panels/emulation/DeviceModeView.ts +2 -2
- package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
- package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
- package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
- package/front_end/panels/input/InputModel.ts +2 -2
- package/front_end/panels/input/InputTimeline.ts +6 -6
- package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
- package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
- package/front_end/panels/issues/AffectedElementsView.ts +1 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
- package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
- package/front_end/panels/issues/IssueView.ts +1 -1
- package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
- package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
- package/front_end/panels/layers/LayerTreeModel.ts +4 -4
- package/front_end/panels/layers/LayersPanel.ts +4 -4
- package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
- package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
- package/front_end/panels/media/MediaModel.ts +1 -1
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
- package/front_end/panels/network/BinaryResourceView.ts +1 -1
- package/front_end/panels/network/BlockedURLsPane.ts +5 -5
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
- package/front_end/panels/network/NetworkItemView.ts +2 -2
- package/front_end/panels/network/NetworkLogView.ts +4 -4
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +8 -8
- package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
- package/front_end/panels/network/RequestHeadersView.ts +4 -3
- package/front_end/panels/network/RequestPayloadView.ts +8 -8
- package/front_end/panels/network/RequestPreviewView.ts +1 -1
- package/front_end/panels/network/RequestResponseView.ts +2 -2
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
- package/front_end/panels/profiler/CPUProfileView.ts +4 -4
- package/front_end/panels/profiler/HeapProfileView.ts +6 -6
- package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
- package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
- package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
- package/front_end/panels/profiler/ProfileView.ts +3 -3
- package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
- package/front_end/panels/screencast/InputModel.ts +3 -3
- package/front_end/panels/screencast/ScreencastView.ts +10 -10
- package/front_end/panels/search/SearchResultsPane.ts +1 -1
- package/front_end/panels/search/SearchView.ts +2 -2
- package/front_end/panels/security/SecurityModel.ts +1 -1
- package/front_end/panels/security/SecurityPanel.ts +2 -2
- package/front_end/panels/sensors/SensorsView.ts +3 -2
- package/front_end/panels/settings/SettingsScreen.ts +5 -5
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
- package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
- package/front_end/panels/sources/CoveragePlugin.ts +3 -3
- package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
- package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
- package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
- package/front_end/panels/sources/NavigatorView.ts +6 -6
- package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
- package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
- package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/SearchSourcesView.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +9 -9
- package/front_end/panels/sources/SourcesPanel.ts +27 -24
- package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
- package/front_end/panels/sources/SourcesView.ts +4 -4
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
- package/front_end/panels/timeline/TimelineController.ts +1 -1
- package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
- package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -5
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +4 -7
- package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
- package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
- package/front_end/panels/timeline/TimelineLoader.ts +2 -2
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
- package/front_end/panels/timeline/TimelinePanel.ts +10 -10
- package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
- package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
- package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
- package/front_end/panels/web_audio/WebAudioView.ts +1 -1
- package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
- package/front_end/ui/components/buttons/Button.ts +10 -10
- package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
- package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
- package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
- package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
- package/front_end/ui/components/icon_button/Icon.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
- package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/javascript.ts +2 -2
- package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
- package/front_end/ui/legacy/Context.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +2 -3
- package/front_end/ui/legacy/PopoverHelper.ts +1 -1
- package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
- package/front_end/ui/legacy/TabbedPane.ts +2 -2
- package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
- package/front_end/ui/legacy/Toolbar.ts +3 -3
- package/front_end/ui/legacy/Treeoutline.ts +20 -13
- package/front_end/ui/legacy/ViewManager.ts +9 -9
- package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -2
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
- package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
- package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
- package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -3
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
- package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
- package/front_end/ui/legacy/toolbar.css +1 -0
- package/front_end/ui/legacy/treeoutline.css +4 -0
- package/package.json +1 -1
- package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
|
@@ -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
|
}
|
|
@@ -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
|
|
|
@@ -109,7 +109,7 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid
|
|
|
109
109
|
|
|
110
110
|
this.addButton = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.addWatchExpression), 'largeicon-add');
|
|
111
111
|
this.addButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
|
|
112
|
-
this.addButtonClicked();
|
|
112
|
+
void this.addButtonClicked();
|
|
113
113
|
});
|
|
114
114
|
this.refreshButton =
|
|
115
115
|
new UI.Toolbar.ToolbarButton(i18nString(UIStrings.refreshWatchExpressions), 'largeicon-refresh');
|
|
@@ -219,7 +219,7 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid
|
|
|
219
219
|
private contextMenu(event: MouseEvent): void {
|
|
220
220
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
221
221
|
this.populateContextMenu(contextMenu, event);
|
|
222
|
-
contextMenu.show();
|
|
222
|
+
void contextMenu.show();
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
private populateContextMenu(contextMenu: UI.ContextMenu.ContextMenu, event: MouseEvent): void {
|
|
@@ -268,7 +268,7 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid
|
|
|
268
268
|
}
|
|
269
269
|
const {state} = frame.textEditor;
|
|
270
270
|
const text = state.sliceDoc(state.selection.main.from, state.selection.main.to);
|
|
271
|
-
this.focusAndAddExpressionToWatch(text);
|
|
271
|
+
void this.focusAndAddExpressionToWatch(text);
|
|
272
272
|
return true;
|
|
273
273
|
}
|
|
274
274
|
|
|
@@ -334,7 +334,7 @@ export class WatchExpression extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
334
334
|
update(): void {
|
|
335
335
|
const currentExecutionContext = UI.Context.Context.instance().flavor(SDK.RuntimeModel.ExecutionContext);
|
|
336
336
|
if (currentExecutionContext && this.expressionInternal) {
|
|
337
|
-
currentExecutionContext
|
|
337
|
+
void currentExecutionContext
|
|
338
338
|
.evaluate(
|
|
339
339
|
{
|
|
340
340
|
expression: this.expressionInternal,
|
|
@@ -142,7 +142,7 @@ export class EventsTimelineTreeView extends TimelineTreeView {
|
|
|
142
142
|
if (!model) {
|
|
143
143
|
return false;
|
|
144
144
|
}
|
|
145
|
-
TimelineUIUtils.buildTraceEventDetails(traceEvent, model.timelineModel(), this.linkifier, false)
|
|
145
|
+
void TimelineUIUtils.buildTraceEventDetails(traceEvent, model.timelineModel(), this.linkifier, false)
|
|
146
146
|
.then(fragment => this.detailsView.element.appendChild(fragment));
|
|
147
147
|
return true;
|
|
148
148
|
}
|
|
@@ -153,7 +153,7 @@ export class TimelineController implements SDK.TargetManager.SDKModelObserver<SD
|
|
|
153
153
|
|
|
154
154
|
modelAdded(cpuProfilerModel: SDK.CPUProfilerModel.CPUProfilerModel): void {
|
|
155
155
|
if (this.profiling) {
|
|
156
|
-
cpuProfilerModel.startRecording();
|
|
156
|
+
void cpuProfilerModel.startRecording();
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -217,7 +217,7 @@ export class TimelineDetailsView extends UI.Widget.VBox {
|
|
|
217
217
|
switch (this.selection.type()) {
|
|
218
218
|
case TimelineSelection.Type.TraceEvent: {
|
|
219
219
|
const event = (this.selection.object() as SDK.TracingModel.Event);
|
|
220
|
-
TimelineUIUtils.buildTraceEventDetails(event, this.model.timelineModel(), this.detailsLinkifier, true)
|
|
220
|
+
void TimelineUIUtils.buildTraceEventDetails(event, this.model.timelineModel(), this.detailsLinkifier, true)
|
|
221
221
|
.then(fragment => this.appendDetailsTabsForTraceEventAndShowDetails(event, fragment));
|
|
222
222
|
break;
|
|
223
223
|
}
|
|
@@ -236,7 +236,7 @@ export class TimelineDetailsView extends UI.Widget.VBox {
|
|
|
236
236
|
}
|
|
237
237
|
case TimelineSelection.Type.NetworkRequest: {
|
|
238
238
|
const request = (this.selection.object() as TimelineModel.TimelineModel.NetworkRequest);
|
|
239
|
-
TimelineUIUtils.buildNetworkRequestDetails(request, this.model.timelineModel(), this.detailsLinkifier)
|
|
239
|
+
void TimelineUIUtils.buildNetworkRequestDetails(request, this.model.timelineModel(), this.detailsLinkifier)
|
|
240
240
|
.then(this.setContent.bind(this));
|
|
241
241
|
break;
|
|
242
242
|
}
|
|
@@ -384,7 +384,7 @@ export class TimelineFilmStripOverview extends TimelineEventOverview {
|
|
|
384
384
|
|
|
385
385
|
const drawGeneration = Symbol('drawGeneration');
|
|
386
386
|
this.drawGeneration = drawGeneration;
|
|
387
|
-
this.imageByFrame(frames[0]).then(image => {
|
|
387
|
+
void this.imageByFrame(frames[0]).then(image => {
|
|
388
388
|
if (this.drawGeneration !== drawGeneration) {
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
@@ -433,7 +433,7 @@ export class TimelineFilmStripOverview extends TimelineEventOverview {
|
|
|
433
433
|
continue;
|
|
434
434
|
}
|
|
435
435
|
context.rect(x - 0.5, 0.5, imageWidth + 1, imageHeight + 1);
|
|
436
|
-
this.imageByFrame(frame).then(drawFrameImage.bind(this, x));
|
|
436
|
+
void this.imageByFrame(frame).then(drawFrameImage.bind(this, x));
|
|
437
437
|
}
|
|
438
438
|
context.strokeStyle = '#ddd';
|
|
439
439
|
context.stroke();
|
|
@@ -251,10 +251,8 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
|
251
251
|
padding: 4,
|
|
252
252
|
height: 17,
|
|
253
253
|
collapsible: true,
|
|
254
|
-
color:
|
|
255
|
-
|
|
256
|
-
backgroundColor:
|
|
257
|
-
ThemeSupport.ThemeSupport.instance().patchColorText('white', ThemeSupport.ThemeSupport.ColorUsage.Background),
|
|
254
|
+
color: ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary'),
|
|
255
|
+
backgroundColor: ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background'),
|
|
258
256
|
font: this.font,
|
|
259
257
|
nestingLevel: 0,
|
|
260
258
|
shareHeaderLine: true,
|
|
@@ -1140,7 +1138,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
|
1140
1138
|
}
|
|
1141
1139
|
|
|
1142
1140
|
if (type === entryTypes.Screenshot) {
|
|
1143
|
-
this.drawScreenshot(entryIndex, context, barX, barY, barWidth, barHeight);
|
|
1141
|
+
void this.drawScreenshot(entryIndex, context, barX, barY, barWidth, barHeight);
|
|
1144
1142
|
return true;
|
|
1145
1143
|
}
|
|
1146
1144
|
|
|
@@ -63,11 +63,9 @@ export class TimelineFlameChartNetworkDataProvider implements PerfUI.FlameChart.
|
|
|
63
63
|
padding: 4,
|
|
64
64
|
height: 17,
|
|
65
65
|
collapsible: true,
|
|
66
|
-
color:
|
|
67
|
-
ThemeSupport.ThemeSupport.instance().patchColorText('#222', ThemeSupport.ThemeSupport.ColorUsage.Foreground),
|
|
66
|
+
color: ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary'),
|
|
68
67
|
font: this.font,
|
|
69
|
-
backgroundColor:
|
|
70
|
-
ThemeSupport.ThemeSupport.instance().patchColorText('white', ThemeSupport.ThemeSupport.ColorUsage.Background),
|
|
68
|
+
backgroundColor: ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background'),
|
|
71
69
|
nestingLevel: 0,
|
|
72
70
|
useFirstLineForOverview: false,
|
|
73
71
|
useDecoratorsForOverview: true,
|
|
@@ -196,11 +194,10 @@ export class TimelineFlameChartNetworkDataProvider implements PerfUI.FlameChart.
|
|
|
196
194
|
const end = Math.max(timeToPixel(endTime), finish);
|
|
197
195
|
|
|
198
196
|
// Draw waiting time.
|
|
199
|
-
context.fillStyle =
|
|
197
|
+
context.fillStyle = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background-opacity-80');
|
|
200
198
|
context.fillRect(sendStart + 0.5, barY + 0.5, headersEnd - sendStart - 0.5, barHeight - 2);
|
|
201
199
|
// Clear portions of initial rect to prepare for the ticks.
|
|
202
|
-
context.fillStyle =
|
|
203
|
-
ThemeSupport.ThemeSupport.instance().patchColorText('white', ThemeSupport.ThemeSupport.ColorUsage.Background);
|
|
200
|
+
context.fillStyle = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background');
|
|
204
201
|
context.fillRect(barX, barY - 0.5, sendStart - barX, barHeight);
|
|
205
202
|
context.fillRect(finish, barY - 0.5, barX + barWidth - finish, barHeight);
|
|
206
203
|
|
|
@@ -271,7 +271,7 @@ export class TimelineHistoryManager {
|
|
|
271
271
|
if (!lastFrame) {
|
|
272
272
|
return container;
|
|
273
273
|
}
|
|
274
|
-
lastFrame.imageDataPromise()
|
|
274
|
+
void lastFrame.imageDataPromise()
|
|
275
275
|
.then(data => UI.UIUtils.loadImageFromData(data))
|
|
276
276
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
277
277
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -74,7 +74,7 @@ export class TimelineLayersView extends UI.SplitWidget.SplitWidget {
|
|
|
74
74
|
|
|
75
75
|
private update(): void {
|
|
76
76
|
if (this.frameLayerTree) {
|
|
77
|
-
this.frameLayerTree.layerTreePromise().then(layerTree => this.layerViewHost.setLayerTree(layerTree));
|
|
77
|
+
void this.frameLayerTree.layerTreePromise().then(layerTree => this.layerViewHost.setLayerTree(layerTree));
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -67,7 +67,7 @@ export class TimelineLoader implements Common.StringOutputStream.OutputStream {
|
|
|
67
67
|
const fileReader = new Bindings.FileUtils.ChunkedFileReader(file, TransferChunkLengthBytes);
|
|
68
68
|
loader.canceledCallback = fileReader.cancel.bind(fileReader);
|
|
69
69
|
loader.totalSize = file.size;
|
|
70
|
-
fileReader.read(loader).then(success => {
|
|
70
|
+
void fileReader.read(loader).then(success => {
|
|
71
71
|
if (!success && fileReader.error()) {
|
|
72
72
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
73
73
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -89,7 +89,7 @@ export class TimelineLoader implements Common.StringOutputStream.OutputStream {
|
|
|
89
89
|
client.loadingProgress((i + chunk.length) / events.length);
|
|
90
90
|
await new Promise(r => setTimeout(r)); // Yield event loop to paint.
|
|
91
91
|
}
|
|
92
|
-
loader.close();
|
|
92
|
+
void loader.close();
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
return loader;
|
|
@@ -90,7 +90,7 @@ export class TimelinePaintProfilerView extends UI.SplitWidget.SplitWidget {
|
|
|
90
90
|
|
|
91
91
|
private update(): void {
|
|
92
92
|
this.logTreeView.setCommandLog([]);
|
|
93
|
-
this.paintProfilerView.setSnapshotAndLog(null, [], null);
|
|
93
|
+
void this.paintProfilerView.setSnapshotAndLog(null, [], null);
|
|
94
94
|
|
|
95
95
|
let snapshotPromise: Promise<{
|
|
96
96
|
rect: Protocol.DOM.Rect | null,
|
|
@@ -115,7 +115,7 @@ export class TimelinePaintProfilerView extends UI.SplitWidget.SplitWidget {
|
|
|
115
115
|
console.assert(false, 'Unexpected event type or no snapshot');
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
|
-
snapshotPromise.then(snapshotWithRect => {
|
|
118
|
+
void snapshotPromise.then(snapshotWithRect => {
|
|
119
119
|
this.releaseSnapshot();
|
|
120
120
|
if (!snapshotWithRect) {
|
|
121
121
|
this.imageView.showImage();
|
|
@@ -124,14 +124,14 @@ export class TimelinePaintProfilerView extends UI.SplitWidget.SplitWidget {
|
|
|
124
124
|
const snapshot = snapshotWithRect.snapshot;
|
|
125
125
|
this.lastLoadedSnapshot = snapshot;
|
|
126
126
|
this.imageView.setMask(snapshotWithRect.rect);
|
|
127
|
-
snapshot.commandLog().then(log => onCommandLogDone.call(this, snapshot, snapshotWithRect.rect, log || []));
|
|
127
|
+
void snapshot.commandLog().then(log => onCommandLogDone.call(this, snapshot, snapshotWithRect.rect, log || []));
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
function onCommandLogDone(
|
|
131
131
|
this: TimelinePaintProfilerView, snapshot: SDK.PaintProfiler.PaintProfilerSnapshot,
|
|
132
132
|
clipRect: Protocol.DOM.Rect|null, log?: SDK.PaintProfiler.PaintProfilerLogItem[]): void {
|
|
133
133
|
this.logTreeView.setCommandLog(log || []);
|
|
134
|
-
this.paintProfilerView.setSnapshotAndLog(snapshot, log || [], clipRect);
|
|
134
|
+
void this.paintProfilerView.setSnapshotAndLog(snapshot, log || [], clipRect);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -493,7 +493,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
|
|
|
493
493
|
this.saveButton = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.saveProfile), 'largeicon-download');
|
|
494
494
|
this.saveButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
|
|
495
495
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.PerfPanelTraceExported);
|
|
496
|
-
this.saveToFile();
|
|
496
|
+
void this.saveToFile();
|
|
497
497
|
});
|
|
498
498
|
this.panelToolbar.appendSeparator();
|
|
499
499
|
this.panelToolbar.appendToolbarItem(this.loadButton);
|
|
@@ -624,7 +624,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
|
|
|
624
624
|
private contextMenu(event: Event): void {
|
|
625
625
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
626
626
|
contextMenu.appendItemsAtLocation('timelineMenu');
|
|
627
|
-
contextMenu.show();
|
|
627
|
+
void contextMenu.show();
|
|
628
628
|
}
|
|
629
629
|
async saveToFile(): Promise<void> {
|
|
630
630
|
if (this.state !== State.Idle) {
|
|
@@ -886,10 +886,10 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
|
|
|
886
886
|
toggleRecording(): void {
|
|
887
887
|
if (this.state === State.Idle) {
|
|
888
888
|
this.recordingPageReload = false;
|
|
889
|
-
this.startRecording();
|
|
889
|
+
void this.startRecording();
|
|
890
890
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.TimelineStarted);
|
|
891
891
|
} else if (this.state === State.Recording) {
|
|
892
|
-
this.stopRecording();
|
|
892
|
+
void this.stopRecording();
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
|
|
@@ -898,7 +898,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
|
|
|
898
898
|
return;
|
|
899
899
|
}
|
|
900
900
|
this.recordingPageReload = true;
|
|
901
|
-
this.startRecording();
|
|
901
|
+
void this.startRecording();
|
|
902
902
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.TimelinePageReloadStarted);
|
|
903
903
|
}
|
|
904
904
|
|
|
@@ -1090,7 +1090,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
|
|
|
1090
1090
|
this.historyManager.addRecording(this.performanceModel);
|
|
1091
1091
|
|
|
1092
1092
|
if (this.startCoverage.get()) {
|
|
1093
|
-
UI.ViewManager.ViewManager.instance()
|
|
1093
|
+
void UI.ViewManager.ViewManager.instance()
|
|
1094
1094
|
.showView('coverage')
|
|
1095
1095
|
.then(() => this.getCoverageViewWidget())
|
|
1096
1096
|
.then(widget => widget.processBacklog())
|
|
@@ -1154,7 +1154,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
|
|
|
1154
1154
|
if (controller !== this.controller || this.state !== State.Recording) {
|
|
1155
1155
|
return;
|
|
1156
1156
|
}
|
|
1157
|
-
this.stopRecording();
|
|
1157
|
+
void this.stopRecording();
|
|
1158
1158
|
}
|
|
1159
1159
|
|
|
1160
1160
|
private frameForSelection(selection: TimelineSelection): TimelineModel.TimelineFrameModel.TimelineFrame|null {
|
|
@@ -1483,7 +1483,7 @@ export class LoadTimelineHandler implements Common.QueryParamHandler.QueryParamH
|
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
1485
1485
|
handleQueryParam(value: string): void {
|
|
1486
|
-
UI.ViewManager.ViewManager.instance().showView('timeline').then(() => {
|
|
1486
|
+
void UI.ViewManager.ViewManager.instance().showView('timeline').then(() => {
|
|
1487
1487
|
TimelinePanel.instance().loadFromURL(window.decodeURIComponent(value));
|
|
1488
1488
|
});
|
|
1489
1489
|
}
|
|
@@ -1514,7 +1514,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
|
1514
1514
|
panel.recordReload();
|
|
1515
1515
|
return true;
|
|
1516
1516
|
case 'timeline.save-to-file':
|
|
1517
|
-
panel.saveToFile();
|
|
1517
|
+
void panel.saveToFile();
|
|
1518
1518
|
return true;
|
|
1519
1519
|
case 'timeline.load-from-file':
|
|
1520
1520
|
panel.selectFileToLoad();
|
|
@@ -1526,7 +1526,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
|
1526
1526
|
panel.jumpToFrame(1);
|
|
1527
1527
|
return true;
|
|
1528
1528
|
case 'timeline.show-history':
|
|
1529
|
-
panel.showHistory();
|
|
1529
|
+
void panel.showHistory();
|
|
1530
1530
|
return true;
|
|
1531
1531
|
case 'timeline.previous-recording':
|
|
1532
1532
|
panel.navigateHistory(1);
|
|
@@ -3145,7 +3145,7 @@ export class TimelineUIUtils {
|
|
|
3145
3145
|
if (filmStripFrame) {
|
|
3146
3146
|
const filmStripPreview = document.createElement('div');
|
|
3147
3147
|
filmStripPreview.classList.add('timeline-filmstrip-preview');
|
|
3148
|
-
filmStripFrame.imageDataPromise()
|
|
3148
|
+
void filmStripFrame.imageDataPromise()
|
|
3149
3149
|
.then(data => UI.UIUtils.loadImageFromData(data))
|
|
3150
3150
|
.then(image => image && filmStripPreview.appendChild(image));
|
|
3151
3151
|
contentHelper.appendElementRow('', filmStripPreview);
|
|
@@ -3582,7 +3582,7 @@ export class InvalidationsGroupElement extends UI.TreeOutline.TreeElement {
|
|
|
3582
3582
|
const node = (invalidation.nodeId && this.relatedNodesMap) ? this.relatedNodesMap.get(invalidation.nodeId) : null;
|
|
3583
3583
|
if (node) {
|
|
3584
3584
|
const nodeSpan = document.createElement('span');
|
|
3585
|
-
Common.Linkifier.Linkifier.linkify(node).then(link => nodeSpan.appendChild(link));
|
|
3585
|
+
void Common.Linkifier.Linkifier.linkify(node).then(link => nodeSpan.appendChild(link));
|
|
3586
3586
|
return nodeSpan;
|
|
3587
3587
|
}
|
|
3588
3588
|
if (invalidation.nodeName) {
|
|
@@ -247,13 +247,13 @@ export class WebVitalsTimeline extends HTMLElement {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
#updateOverlayPosition(clientX: number, clientY: number): void {
|
|
250
|
-
coordinator.read(() => {
|
|
250
|
+
void coordinator.read(() => {
|
|
251
251
|
const bb1 = this.getBoundingClientRect();
|
|
252
252
|
const bb2 = this.#overlay.getBoundingClientRect();
|
|
253
253
|
|
|
254
254
|
const x = clientX + 10 + bb2.width > bb1.x + bb1.width ? clientX - bb2.width - 10 : clientX + 10;
|
|
255
255
|
|
|
256
|
-
coordinator.write(() => {
|
|
256
|
+
void coordinator.write(() => {
|
|
257
257
|
this.#overlay.style.top = `${clientY + 10}px`;
|
|
258
258
|
this.#overlay.style.left = `${x}px`;
|
|
259
259
|
});
|
|
@@ -72,7 +72,7 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
72
72
|
if (context) {
|
|
73
73
|
this.updateDetailView(context);
|
|
74
74
|
}
|
|
75
|
-
this.doUpdate();
|
|
75
|
+
void this.doUpdate();
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
SDK.TargetManager.TargetManager.instance().observeModels(WebAudioModel, this);
|