chrome-devtools-frontend 1.0.955092 → 1.0.956812
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/AUTHORS +1 -0
- package/config/gni/devtools_grd_files.gni +0 -2
- package/config/owner/COMMON_OWNERS +2 -2
- package/front_end/.eslintrc.js +1 -11
- package/front_end/Images/generate-css-vars.js +2 -2
- package/front_end/core/common/Console.ts +1 -1
- package/front_end/core/common/ParsedURL.ts +35 -2
- package/front_end/core/common/ResolverBase.ts +1 -1
- package/front_end/core/common/Settings.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 +3 -2
- 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 +2 -5
- package/front_end/core/i18n/locales/en-US.json +3 -3
- package/front_end/core/i18n/locales/en-XL.json +3 -3
- package/front_end/core/root/Runtime.ts +0 -72
- package/front_end/core/root/root-legacy.ts +0 -2
- 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/formatter_worker/FormatterActions.ts +10 -0
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +3 -4
- 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/lighthouse_worker/LighthouseService.ts +4 -7
- package/front_end/entrypoints/main/MainImpl.ts +32 -24
- package/front_end/entrypoints/main/main-meta.ts +1 -1
- package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
- package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
- package/front_end/generated/protocol.d.ts +1 -0
- package/front_end/global_typings/global_defs.d.ts +0 -1
- 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 +9 -30
- package/front_end/models/formatter/FormatterWorkerPool.ts +2 -12
- package/front_end/models/formatter/ScriptFormatter.ts +3 -3
- 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/DeprecationIssue.ts +7 -7
- 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/ConsolePinPane.ts +4 -4
- package/front_end/panels/console/ConsolePrompt.ts +4 -4
- package/front_end/panels/console/ConsoleSidebar.ts +9 -9
- package/front_end/panels/console/ConsoleView.ts +6 -6
- package/front_end/panels/console/ConsoleViewMessage.ts +8 -7
- 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 +20 -20
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +14 -13
- 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/components/LayoutPane.ts +1 -1
- package/front_end/panels/elements/elementsPanel.css +1 -0
- package/front_end/panels/emulation/AdvancedApp.ts +2 -2
- 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 +4 -3
- 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 +28 -25
- 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 +22 -5
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +9 -6
- 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/third_party/acorn/acorn.ts +1 -1
- 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/GlassPane.ts +0 -1
- package/front_end/ui/legacy/InspectorView.ts +2 -3
- package/front_end/ui/legacy/PopoverHelper.ts +1 -1
- package/front_end/ui/legacy/ResizerWidget.ts +4 -2
- package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
- package/front_end/ui/legacy/SoftDropDown.ts +2 -1
- package/front_end/ui/legacy/TabbedPane.ts +2 -2
- package/front_end/ui/legacy/TextPrompt.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 +15 -21
- package/front_end/ui/legacy/UIUtils.ts +17 -24
- package/front_end/ui/legacy/ViewManager.ts +10 -10
- package/front_end/ui/legacy/Widget.ts +3 -2
- package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -7
- package/front_end/ui/legacy/components/color_picker/spectrum.css +5 -2
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +3 -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/FlameChart.ts +13 -18
- 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/OverviewGrid.ts +2 -1
- package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +3 -6
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +8 -0
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -2
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -4
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +0 -1
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -2
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +0 -2
- 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/inspectorSyntaxHighlight.css +8 -11
- package/front_end/ui/legacy/softContextMenu.css +4 -1
- package/front_end/ui/legacy/tabbedPane.css +1 -0
- package/front_end/ui/legacy/themeColors.css +3 -1
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +24 -234
- package/front_end/ui/legacy/toolbar.css +1 -0
- package/front_end/ui/legacy/treeoutline.css +0 -4
- package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +3 -2
- package/front_end/ui/legacy/utils/inject-core-styles.ts +3 -31
- package/front_end/ui/legacy/utils/utils.ts +1 -5
- package/front_end/ui/lit-html/lit-html.ts +1 -1
- package/package.json +1 -1
- package/scripts/build/generate_css_js_files.js +2 -2
- package/scripts/build/ninja/generate_css.gni +3 -0
- package/scripts/component_server/server.js +2 -2
- package/scripts/eslint_rules/lib/no_bound_component_methods.js +116 -0
- package/scripts/eslint_rules/tests/no_bound_component_methods_test.js +85 -0
- package/front_end/global_typings/intl_display_names.d.ts +0 -111
- package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +0 -270
- package/front_end/ui/legacy/utils/append-style.ts +0 -9
|
@@ -72,7 +72,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
72
72
|
|
|
73
73
|
this.manager = SDK.NetworkManager.MultitargetNetworkManager.instance();
|
|
74
74
|
this.manager.addEventListener(SDK.NetworkManager.MultitargetNetworkManager.Events.BlockedPatternsChanged, () => {
|
|
75
|
-
this.update();
|
|
75
|
+
void this.update();
|
|
76
76
|
}, this);
|
|
77
77
|
|
|
78
78
|
this.toolbar = new UI.Toolbar.Toolbar('', this.contentElement);
|
|
@@ -101,7 +101,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
101
101
|
|
|
102
102
|
this.updateThrottler = new Common.Throttler.Throttler(200);
|
|
103
103
|
|
|
104
|
-
this.update();
|
|
104
|
+
void this.update();
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
static instance(opts: {
|
|
@@ -161,7 +161,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
161
161
|
|
|
162
162
|
private toggleEnabled(): void {
|
|
163
163
|
this.manager.setBlockingEnabled(!this.manager.blockingEnabled());
|
|
164
|
-
this.update();
|
|
164
|
+
void this.update();
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
removeItemRequested(pattern: SDK.NetworkManager.BlockedPattern, index: number): void {
|
|
@@ -270,7 +270,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
270
270
|
|
|
271
271
|
reset(): void {
|
|
272
272
|
this.blockedCountForUrl.clear();
|
|
273
|
-
this.updateThrottler.schedule(this.update.bind(this));
|
|
273
|
+
void this.updateThrottler.schedule(this.update.bind(this));
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
private onRequestFinished(event: Common.EventTarget.EventTargetEvent<SDK.NetworkRequest.NetworkRequest>): void {
|
|
@@ -278,7 +278,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
278
278
|
if (request.wasBlocked()) {
|
|
279
279
|
const count = this.blockedCountForUrl.get(request.url()) || 0;
|
|
280
280
|
this.blockedCountForUrl.set(request.url(), count + 1);
|
|
281
|
-
this.updateThrottler.schedule(this.update.bind(this));
|
|
281
|
+
void this.updateThrottler.schedule(this.update.bind(this));
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
wasShown(): void {
|
|
@@ -1019,7 +1019,7 @@ export class NetworkRequestNode extends NetworkNode {
|
|
|
1019
1019
|
const previewImage = document.createElement('img');
|
|
1020
1020
|
previewImage.classList.add('image-network-icon-preview');
|
|
1021
1021
|
previewImage.alt = this.requestInternal.resourceType().title();
|
|
1022
|
-
this.requestInternal.populateImageSource((previewImage as HTMLImageElement));
|
|
1022
|
+
void this.requestInternal.populateImageSource((previewImage as HTMLImageElement));
|
|
1023
1023
|
|
|
1024
1024
|
iconElement = document.createElement('div');
|
|
1025
1025
|
iconElement.classList.add('image');
|
|
@@ -151,7 +151,7 @@ export class NetworkItemView extends UI.TabbedPane.TabbedPane {
|
|
|
151
151
|
i18nString(UIStrings.headers));
|
|
152
152
|
|
|
153
153
|
this.payloadView = null;
|
|
154
|
-
this.maybeAppendPayloadPanel();
|
|
154
|
+
void this.maybeAppendPayloadPanel();
|
|
155
155
|
|
|
156
156
|
this.addEventListener(UI.TabbedPane.Events.TabSelected, this.tabSelected, this);
|
|
157
157
|
|
|
@@ -235,7 +235,7 @@ export class NetworkItemView extends UI.TabbedPane.TabbedPane {
|
|
|
235
235
|
|
|
236
236
|
private async requestHeadersChanged(): Promise<void> {
|
|
237
237
|
this.maybeAppendCookiesPanel();
|
|
238
|
-
this.maybeAppendPayloadPanel();
|
|
238
|
+
void this.maybeAppendPayloadPanel();
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
private maybeAppendCookiesPanel(): void {
|
|
@@ -750,7 +750,7 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
750
750
|
}
|
|
751
751
|
const file = items[0].getAsFile();
|
|
752
752
|
if (file) {
|
|
753
|
-
this.onLoadFromFile(file);
|
|
753
|
+
void this.onLoadFromFile(file);
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
|
|
@@ -1585,13 +1585,13 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
1585
1585
|
patterns.push({enabled: true, url: url});
|
|
1586
1586
|
manager.setBlockedPatterns(patterns);
|
|
1587
1587
|
manager.setBlockingEnabled(true);
|
|
1588
|
-
UI.ViewManager.ViewManager.instance().showView('network.blocked-urls');
|
|
1588
|
+
void UI.ViewManager.ViewManager.instance().showView('network.blocked-urls');
|
|
1589
1589
|
}
|
|
1590
1590
|
|
|
1591
1591
|
function removeBlockedURL(url: string): void {
|
|
1592
1592
|
patterns = patterns.filter(pattern => pattern.url !== url);
|
|
1593
1593
|
manager.setBlockedPatterns(patterns);
|
|
1594
|
-
UI.ViewManager.ViewManager.instance().showView('network.blocked-urls');
|
|
1594
|
+
void UI.ViewManager.ViewManager.instance().showView('network.blocked-urls');
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
1597
1597
|
const urlWithoutScheme = request.parsedURL.urlWithoutScheme();
|
|
@@ -1684,7 +1684,7 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
1684
1684
|
this.progressBarContainer.appendChild(progressIndicator.element);
|
|
1685
1685
|
await HAR.Writer.Writer.write(stream, this.harRequests(), progressIndicator);
|
|
1686
1686
|
progressIndicator.done();
|
|
1687
|
-
stream.close();
|
|
1687
|
+
void stream.close();
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
private clearBrowserCache(): void {
|
|
@@ -256,7 +256,7 @@ export class NetworkPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
256
256
|
splitWidget.enableShowModeSaving();
|
|
257
257
|
splitWidget.show(this.element);
|
|
258
258
|
this.sidebarLocation = UI.ViewManager.ViewManager.instance().createTabbedLocation(async () => {
|
|
259
|
-
UI.ViewManager.ViewManager.instance().showView('network');
|
|
259
|
+
void UI.ViewManager.ViewManager.instance().showView('network');
|
|
260
260
|
splitWidget.showBoth();
|
|
261
261
|
}, 'network-sidebar', true);
|
|
262
262
|
const tabbedPane = this.sidebarLocation.tabbedPane();
|
|
@@ -404,7 +404,7 @@ export class NetworkPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
404
404
|
updateSidebarToggle();
|
|
405
405
|
splitWidget.addEventListener(UI.SplitWidget.Events.ShowModeChanged, updateSidebarToggle);
|
|
406
406
|
searchToggle.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, () => {
|
|
407
|
-
this.searchToggleClick();
|
|
407
|
+
void this.searchToggleClick();
|
|
408
408
|
});
|
|
409
409
|
this.panelToolbar.appendToolbarItem(searchToggle);
|
|
410
410
|
this.panelToolbar.appendSeparator();
|
|
@@ -430,7 +430,7 @@ export class NetworkPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
430
430
|
const networkConditionsButton =
|
|
431
431
|
new UI.Toolbar.ToolbarButton(i18nString(UIStrings.moreNetworkConditions), networkConditionsIcon);
|
|
432
432
|
networkConditionsButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, () => {
|
|
433
|
-
UI.ViewManager.ViewManager.instance().showView('network.config');
|
|
433
|
+
void UI.ViewManager.ViewManager.instance().showView('network.config');
|
|
434
434
|
}, this);
|
|
435
435
|
this.panelToolbar.appendToolbarItem(networkConditionsButton);
|
|
436
436
|
|
|
@@ -464,7 +464,7 @@ export class NetworkPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
464
464
|
this.panelToolbar.appendToolbarItem(importHarButton);
|
|
465
465
|
const exportHarButton = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.exportHar), 'largeicon-download');
|
|
466
466
|
exportHarButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
|
|
467
|
-
this.networkLogView.exportAll();
|
|
467
|
+
void this.networkLogView.exportAll();
|
|
468
468
|
}, this);
|
|
469
469
|
this.panelToolbar.appendToolbarItem(exportHarButton);
|
|
470
470
|
}
|
|
@@ -720,7 +720,7 @@ export class NetworkPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
720
720
|
appendApplicableItems(this: NetworkPanel, event: Event, contextMenu: UI.ContextMenu.ContextMenu, target: Object):
|
|
721
721
|
void {
|
|
722
722
|
function reveal(this: NetworkPanel, request: SDK.NetworkRequest.NetworkRequest): void {
|
|
723
|
-
UI.ViewManager.ViewManager.instance()
|
|
723
|
+
void UI.ViewManager.ViewManager.instance()
|
|
724
724
|
.showView('network')
|
|
725
725
|
.then(this.networkLogView.resetFilter.bind(this.networkLogView))
|
|
726
726
|
.then(this.revealAndHighlightRequest.bind(this, request));
|
|
@@ -942,7 +942,7 @@ export class FilmStripRecorder implements SDK.TracingManager.TracingManagerClien
|
|
|
942
942
|
this.tracingModel.dispose();
|
|
943
943
|
}
|
|
944
944
|
this.tracingModel = new SDK.TracingModel.TracingModel(new Bindings.TempFile.TempFileBackingStorage());
|
|
945
|
-
this.tracingManager.start(this, '-*,disabled-by-default-devtools.screenshot', '');
|
|
945
|
+
void this.tracingManager.start(this, '-*,disabled-by-default-devtools.screenshot', '');
|
|
946
946
|
|
|
947
947
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.FilmStripStartedRecording);
|
|
948
948
|
}
|
|
@@ -1004,7 +1004,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
|
1004
1004
|
if (selection.rangeCount) {
|
|
1005
1005
|
queryCandidate = selection.toString().replace(/\r?\n.*/, '');
|
|
1006
1006
|
}
|
|
1007
|
-
SearchNetworkView.openSearch(queryCandidate);
|
|
1007
|
+
void SearchNetworkView.openSearch(queryCandidate);
|
|
1008
1008
|
return true;
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
@@ -1063,7 +1063,7 @@ export class SearchNetworkView extends Search.SearchView.SearchView {
|
|
|
1063
1063
|
static async openSearch(query: string, searchImmediately?: boolean): Promise<Search.SearchView.SearchView> {
|
|
1064
1064
|
await UI.ViewManager.ViewManager.instance().showView('network.search-network-tab');
|
|
1065
1065
|
const searchView = SearchNetworkView.instance();
|
|
1066
|
-
searchView.toggle(query, Boolean(searchImmediately));
|
|
1066
|
+
void searchView.toggle(query, Boolean(searchImmediately));
|
|
1067
1067
|
return searchView;
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
@@ -209,7 +209,7 @@ export class NetworkTimeCalculator extends Common.ObjectWrapper.ObjectWrapper<Ev
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
boundaryChanged(): void {
|
|
212
|
-
this.boundryChangedEventThrottler.schedule(async () => {
|
|
212
|
+
void this.boundryChangedEventThrottler.schedule(async () => {
|
|
213
213
|
this.dispatchEventToListeners(Events.BoundariesChanged);
|
|
214
214
|
});
|
|
215
215
|
}
|
|
@@ -288,7 +288,7 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
|
288
288
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(decodedValue);
|
|
289
289
|
};
|
|
290
290
|
contextMenu.clipboardSection().appendItem(i18nString(UIStrings.copyValue), copyDecodedValueHandler);
|
|
291
|
-
contextMenu.show();
|
|
291
|
+
void contextMenu.show();
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
|
|
@@ -350,7 +350,8 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
|
350
350
|
link.classList.add('devtools-link');
|
|
351
351
|
link.onclick = (): void => {
|
|
352
352
|
Host.userMetrics.issuesPanelOpenedFrom(Host.UserMetrics.IssueOpener.LearnMoreLinkCOEP);
|
|
353
|
-
IssuesManager.RelatedIssue.reveal(
|
|
353
|
+
void IssuesManager.RelatedIssue.reveal(
|
|
354
|
+
this.request, IssuesManager.Issue.IssueCategory.CrossOriginEmbedderPolicy);
|
|
354
355
|
};
|
|
355
356
|
const text = document.createElement('span');
|
|
356
357
|
text.classList.add('devtools-link');
|
|
@@ -407,7 +408,7 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
|
407
408
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
408
409
|
const section = contextMenu.newSection();
|
|
409
410
|
section.appendItem(i18nString(UIStrings.showMore), showMore);
|
|
410
|
-
contextMenu.show();
|
|
411
|
+
void contextMenu.show();
|
|
411
412
|
}
|
|
412
413
|
sourceTreeElement.listItemElement.addEventListener('contextmenu', onContextMenuShowMore);
|
|
413
414
|
sourceTextElement.appendChild(showMoreButton);
|
|
@@ -149,7 +149,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
149
149
|
this.request.addEventListener(SDK.NetworkRequest.Events.RequestHeadersChanged, this.refreshFormData, this);
|
|
150
150
|
|
|
151
151
|
this.refreshQueryString();
|
|
152
|
-
this.refreshFormData();
|
|
152
|
+
void this.refreshFormData();
|
|
153
153
|
// this._root.select(/* omitFocus */ true, /* selectedByUser */ false);
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -167,7 +167,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
167
167
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(decodedValue);
|
|
168
168
|
};
|
|
169
169
|
contextMenu.clipboardSection().appendItem(i18nString(UIStrings.copyValue), copyDecodedValueHandler);
|
|
170
|
-
contextMenu.show();
|
|
170
|
+
void contextMenu.show();
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
|
|
@@ -268,7 +268,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
268
268
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
269
269
|
const section = contextMenu.newSection();
|
|
270
270
|
section.appendItem(i18nString(UIStrings.showMore), showMore);
|
|
271
|
-
contextMenu.show();
|
|
271
|
+
void contextMenu.show();
|
|
272
272
|
}
|
|
273
273
|
sourceTreeElement.listItemElement.addEventListener('contextmenu', onContextMenuShowMore);
|
|
274
274
|
sourceTextElement.appendChild(showMoreButton);
|
|
@@ -318,7 +318,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
318
318
|
}
|
|
319
319
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
320
320
|
contextMenu.newSection().appendItem(i18nString(UIStrings.viewParsed), viewParsed.bind(this, event));
|
|
321
|
-
contextMenu.show();
|
|
321
|
+
void contextMenu.show();
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
const viewParsedButton = this.createViewSourceToggle(/* viewSource */ true, viewParsed.bind(this));
|
|
@@ -373,7 +373,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
373
373
|
const viewURLEncodedText =
|
|
374
374
|
this.decodeRequestParameters ? i18nString(UIStrings.viewUrlEncoded) : i18nString(UIStrings.viewDecoded);
|
|
375
375
|
section.appendItem(viewURLEncodedText, toggleURLDecoding.bind(this, event));
|
|
376
|
-
contextMenu.show();
|
|
376
|
+
void contextMenu.show();
|
|
377
377
|
};
|
|
378
378
|
|
|
379
379
|
const viewSourceButton = this.createViewSourceToggle(/* viewSource */ false, viewSource.bind(this));
|
|
@@ -428,7 +428,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
428
428
|
}
|
|
429
429
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
430
430
|
contextMenu.newSection().appendItem(i18nString(UIStrings.viewParsed), viewParsed.bind(this, event));
|
|
431
|
-
contextMenu.show();
|
|
431
|
+
void contextMenu.show();
|
|
432
432
|
};
|
|
433
433
|
|
|
434
434
|
rootListItemElement.addEventListener('contextmenu', viewParsedContextMenu);
|
|
@@ -465,7 +465,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
465
465
|
}
|
|
466
466
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
467
467
|
contextMenu.newSection().appendItem(i18nString(UIStrings.viewSource), viewSource.bind(this, event));
|
|
468
|
-
contextMenu.show();
|
|
468
|
+
void contextMenu.show();
|
|
469
469
|
};
|
|
470
470
|
|
|
471
471
|
const viewSourceButton = this.createViewSourceToggle(/* viewSource */ false, viewSource.bind(this));
|
|
@@ -484,7 +484,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
484
484
|
private toggleURLDecoding(event: Event): void {
|
|
485
485
|
this.decodeRequestParameters = !this.decodeRequestParameters;
|
|
486
486
|
this.refreshQueryString();
|
|
487
|
-
this.refreshFormData();
|
|
487
|
+
void this.refreshFormData();
|
|
488
488
|
event.consume();
|
|
489
489
|
}
|
|
490
490
|
|
|
@@ -62,7 +62,7 @@ export class RequestPreviewView extends RequestResponseView {
|
|
|
62
62
|
return view;
|
|
63
63
|
}
|
|
64
64
|
const toolbar = new UI.Toolbar.Toolbar('network-item-preview-toolbar', this.element);
|
|
65
|
-
view.toolbarItems().then(items => {
|
|
65
|
+
void view.toolbarItems().then(items => {
|
|
66
66
|
items.map(item => toolbar.appendToolbarItem(item));
|
|
67
67
|
});
|
|
68
68
|
return view;
|
|
@@ -98,7 +98,7 @@ export class RequestResponseView extends UI.Widget.VBox {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
wasShown(): void {
|
|
101
|
-
this.doShowPreview();
|
|
101
|
+
void this.doShowPreview();
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
private doShowPreview(): Promise<UI.Widget.Widget> {
|
|
@@ -135,7 +135,7 @@ export class RequestResponseView extends UI.Widget.VBox {
|
|
|
135
135
|
async revealLine(line: number): Promise<void> {
|
|
136
136
|
const view = await this.doShowPreview();
|
|
137
137
|
if (view instanceof SourceFrame.ResourceSourceFrame.SearchableContainer) {
|
|
138
|
-
view.revealPosition(line);
|
|
138
|
+
void view.revealPosition(line);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -200,7 +200,7 @@ export class ResourceWebSocketFrameView extends UI.Widget.VBox {
|
|
|
200
200
|
|
|
201
201
|
this.dataGrid.setName('ResourceWebSocketFrameView');
|
|
202
202
|
this.dataGrid.addEventListener(DataGrid.DataGrid.Events.SelectedNode, event => {
|
|
203
|
-
this.onFrameSelected(event);
|
|
203
|
+
void this.onFrameSelected(event);
|
|
204
204
|
}, this);
|
|
205
205
|
this.dataGrid.addEventListener(DataGrid.DataGrid.Events.DeselectedNode, this.onFrameDeselected, this);
|
|
206
206
|
|
|
@@ -118,7 +118,7 @@ export class PerformanceMonitorImpl extends UI.Widget.HBox implements
|
|
|
118
118
|
this.controlPane.instantiateMetricData();
|
|
119
119
|
SDK.TargetManager.TargetManager.instance().addEventListener(
|
|
120
120
|
SDK.TargetManager.Events.SuspendStateChanged, this.suspendStateChanged, this);
|
|
121
|
-
this.model.enable();
|
|
121
|
+
void this.model.enable();
|
|
122
122
|
this.suspendStateChanged();
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -129,7 +129,7 @@ export class PerformanceMonitorImpl extends UI.Widget.HBox implements
|
|
|
129
129
|
SDK.TargetManager.TargetManager.instance().removeEventListener(
|
|
130
130
|
SDK.TargetManager.Events.SuspendStateChanged, this.suspendStateChanged, this);
|
|
131
131
|
this.stopPolling();
|
|
132
|
-
this.model.disable();
|
|
132
|
+
void this.model.disable();
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
modelAdded(model: SDK.PerformanceMetricsModel.PerformanceMetricsModel): void {
|
|
@@ -257,7 +257,8 @@ export class PerformanceMonitorImpl extends UI.Widget.HBox implements
|
|
|
257
257
|
color: metricInfo.color,
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
const backgroundColor =
|
|
260
|
+
const backgroundColor =
|
|
261
|
+
Common.Color.Color.parse(ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background'));
|
|
261
262
|
|
|
262
263
|
if (backgroundColor) {
|
|
263
264
|
for (const path of paths.reverse()) {
|
|
@@ -180,7 +180,7 @@ export class CPUProfileType extends ProfileType {
|
|
|
180
180
|
|
|
181
181
|
buttonClicked(): boolean {
|
|
182
182
|
if (this.recording) {
|
|
183
|
-
this.stopRecordingProfile();
|
|
183
|
+
void this.stopRecordingProfile();
|
|
184
184
|
return false;
|
|
185
185
|
}
|
|
186
186
|
this.startRecordingProfile();
|
|
@@ -208,11 +208,11 @@ export class CPUProfileType extends ProfileType {
|
|
|
208
208
|
}
|
|
209
209
|
const profile = new CPUProfileHeader(cpuProfilerModel, this);
|
|
210
210
|
this.setProfileBeingRecorded(profile as ProfileHeader);
|
|
211
|
-
SDK.TargetManager.TargetManager.instance().suspendAllTargets();
|
|
211
|
+
void SDK.TargetManager.TargetManager.instance().suspendAllTargets();
|
|
212
212
|
this.addProfile(profile as ProfileHeader);
|
|
213
213
|
profile.updateStatus(i18nString(UIStrings.recording));
|
|
214
214
|
this.recording = true;
|
|
215
|
-
cpuProfilerModel.startRecording();
|
|
215
|
+
void cpuProfilerModel.startRecording();
|
|
216
216
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.ProfilesCPUProfileTaken);
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -243,7 +243,7 @@ export class CPUProfileType extends ProfileType {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
profileBeingRecordedRemoved(): void {
|
|
246
|
-
this.stopRecordingProfile();
|
|
246
|
+
void this.stopRecordingProfile();
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -160,7 +160,7 @@ export class HeapProfileView extends ProfileView implements UI.SearchableView.Se
|
|
|
160
160
|
this.timelineOverview.start();
|
|
161
161
|
|
|
162
162
|
this.profileType.addEventListener(SamplingHeapProfileType.Events.StatsUpdate, this.onStatsUpdate, this);
|
|
163
|
-
this.profileType.once(ProfileEvents.ProfileComplete).then(() => {
|
|
163
|
+
void this.profileType.once(ProfileEvents.ProfileComplete).then(() => {
|
|
164
164
|
this.profileType.removeEventListener(SamplingHeapProfileType.Events.StatsUpdate, this.onStatsUpdate, this);
|
|
165
165
|
this.timelineOverview.stop();
|
|
166
166
|
this.timelineOverview.updateGrid();
|
|
@@ -272,7 +272,7 @@ export class SamplingHeapProfileTypeBase extends
|
|
|
272
272
|
|
|
273
273
|
buttonClicked(): boolean {
|
|
274
274
|
if (this.recording) {
|
|
275
|
-
this.stopRecordingProfile();
|
|
275
|
+
void this.stopRecordingProfile();
|
|
276
276
|
} else {
|
|
277
277
|
this.startRecordingProfile();
|
|
278
278
|
}
|
|
@@ -333,7 +333,7 @@ export class SamplingHeapProfileTypeBase extends
|
|
|
333
333
|
|
|
334
334
|
profileBeingRecordedRemoved(): void {
|
|
335
335
|
this.clearedDuringRecording = true;
|
|
336
|
-
this.stopRecordingProfile();
|
|
336
|
+
void this.stopRecordingProfile();
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
startSampling(): void {
|
|
@@ -388,10 +388,10 @@ export class SamplingHeapProfileType extends SamplingHeapProfileTypeBase {
|
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
heapProfilerModel.startSampling();
|
|
391
|
+
void heapProfilerModel.startSampling();
|
|
392
392
|
if (Root.Runtime.experiments.isEnabled('samplingHeapProfilerTimeline')) {
|
|
393
393
|
this.updateTimer = window.setTimeout(() => {
|
|
394
|
-
this.updateStats();
|
|
394
|
+
void this.updateStats();
|
|
395
395
|
}, this.updateIntervalMs);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
@@ -433,7 +433,7 @@ export class SamplingHeapProfileType extends SamplingHeapProfileTypeBase {
|
|
|
433
433
|
}
|
|
434
434
|
this.dispatchEventToListeners(SamplingHeapProfileType.Events.StatsUpdate, profile);
|
|
435
435
|
this.updateTimer = window.setTimeout(() => {
|
|
436
|
-
this.updateStats();
|
|
436
|
+
void this.updateStats();
|
|
437
437
|
}, this.updateIntervalMs);
|
|
438
438
|
}
|
|
439
439
|
|
|
@@ -63,7 +63,7 @@ export class HeapProfilerPanel extends ProfilesPanel implements UI.ContextMenu.P
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
function revealInView(this: ProfilesPanel, viewName: string): void {
|
|
66
|
-
heapProfilerModel.snapshotObjectIdForObjectId(objectId).then(result => {
|
|
66
|
+
void heapProfilerModel.snapshotObjectIdForObjectId(objectId).then(result => {
|
|
67
67
|
if (this.isShowing() && result) {
|
|
68
68
|
this.showObject(result, viewName);
|
|
69
69
|
}
|
|
@@ -103,7 +103,7 @@ export class HeapProfilerPanel extends ProfilesPanel implements UI.ContextMenu.P
|
|
|
103
103
|
if (profile.maxJSObjectId >= parseInt(snapshotObjectId, 10)) {
|
|
104
104
|
this.showProfile(profile);
|
|
105
105
|
const view = (this.viewForProfile(profile) as HeapSnapshotView);
|
|
106
|
-
view.selectLiveObject(perspectiveName, snapshotObjectId);
|
|
106
|
+
void view.selectLiveObject(perspectiveName, snapshotObjectId);
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -354,7 +354,7 @@ export class HeapSnapshotSortableDataGrid extends
|
|
|
354
354
|
const child = (children[i] as HeapSnapshotGridNode);
|
|
355
355
|
this.appendChildAfterSorting(child);
|
|
356
356
|
if (child.expanded) {
|
|
357
|
-
child.sort();
|
|
357
|
+
void child.sort();
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
this.recursiveSortingLeave();
|
|
@@ -675,7 +675,7 @@ export class HeapSnapshotContainmentDataGrid extends HeapSnapshotSortableDataGri
|
|
|
675
675
|
const node =
|
|
676
676
|
new HeapSnapshotModel.HeapSnapshotModel.Node(-1, 'root', 0, nodeIndex || snapshot.rootNodeIndex, 0, 0, '');
|
|
677
677
|
this.setRootNode(this.createRootNode(snapshot, node));
|
|
678
|
-
(this.rootNode() as HeapSnapshotGridNode).sort();
|
|
678
|
+
void (this.rootNode() as HeapSnapshotGridNode).sort();
|
|
679
679
|
}
|
|
680
680
|
|
|
681
681
|
createRootNode(snapshot: HeapSnapshotProxy, node: HeapSnapshotModel.HeapSnapshotModel.Node): HeapSnapshotObjectNode {
|
|
@@ -686,7 +686,7 @@ export class HeapSnapshotContainmentDataGrid extends HeapSnapshotSortableDataGri
|
|
|
686
686
|
sortingChanged(): void {
|
|
687
687
|
const rootNode = this.rootNode();
|
|
688
688
|
if (rootNode.hasChildren()) {
|
|
689
|
-
(rootNode as HeapSnapshotGridNode).sort();
|
|
689
|
+
void (rootNode as HeapSnapshotGridNode).sort();
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
}
|
|
@@ -829,24 +829,24 @@ export class HeapSnapshotConstructorsDataGrid extends HeapSnapshotViewportDataGr
|
|
|
829
829
|
async setDataSource(snapshot: HeapSnapshotProxy, _nodeIndex: number): Promise<void> {
|
|
830
830
|
this.snapshot = snapshot;
|
|
831
831
|
if (this.profileIndex === -1) {
|
|
832
|
-
this.populateChildren();
|
|
832
|
+
void this.populateChildren();
|
|
833
833
|
}
|
|
834
834
|
|
|
835
835
|
if (this.objectIdToSelect) {
|
|
836
|
-
this.revealObjectByHeapSnapshotId(this.objectIdToSelect);
|
|
836
|
+
void this.revealObjectByHeapSnapshotId(this.objectIdToSelect);
|
|
837
837
|
this.objectIdToSelect = null;
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
|
|
841
841
|
setSelectionRange(minNodeId: number, maxNodeId: number): void {
|
|
842
842
|
this.nodeFilterInternal = new HeapSnapshotModel.HeapSnapshotModel.NodeFilter(minNodeId, maxNodeId);
|
|
843
|
-
this.populateChildren(this.nodeFilterInternal);
|
|
843
|
+
void this.populateChildren(this.nodeFilterInternal);
|
|
844
844
|
}
|
|
845
845
|
|
|
846
846
|
setAllocationNodeId(allocationNodeId: number): void {
|
|
847
847
|
this.nodeFilterInternal = new HeapSnapshotModel.HeapSnapshotModel.NodeFilter();
|
|
848
848
|
this.nodeFilterInternal.allocationNodeId = allocationNodeId;
|
|
849
|
-
this.populateChildren(this.nodeFilterInternal);
|
|
849
|
+
void this.populateChildren(this.nodeFilterInternal);
|
|
850
850
|
}
|
|
851
851
|
|
|
852
852
|
aggregatesReceived(nodeFilter: HeapSnapshotModel.HeapSnapshotModel.NodeFilter, aggregates: {
|
|
@@ -854,7 +854,7 @@ export class HeapSnapshotConstructorsDataGrid extends HeapSnapshotViewportDataGr
|
|
|
854
854
|
}): void {
|
|
855
855
|
this.filterInProgress = null;
|
|
856
856
|
if (this.nextRequestedFilter && this.snapshot) {
|
|
857
|
-
this.snapshot.aggregatesWithFilter(this.nextRequestedFilter)
|
|
857
|
+
void this.snapshot.aggregatesWithFilter(this.nextRequestedFilter)
|
|
858
858
|
.then(this.aggregatesReceived.bind(this, this.nextRequestedFilter));
|
|
859
859
|
this.filterInProgress = this.nextRequestedFilter;
|
|
860
860
|
this.nextRequestedFilter = null;
|
|
@@ -897,7 +897,7 @@ export class HeapSnapshotConstructorsDataGrid extends HeapSnapshotViewportDataGr
|
|
|
897
897
|
this.nodeFilterInternal = new HeapSnapshotModel.HeapSnapshotModel.NodeFilter(minNodeId, maxNodeId);
|
|
898
898
|
}
|
|
899
899
|
|
|
900
|
-
this.populateChildren(this.nodeFilterInternal);
|
|
900
|
+
void this.populateChildren(this.nodeFilterInternal);
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
903
|
|
|
@@ -964,7 +964,7 @@ export class HeapSnapshotDiffDataGrid extends HeapSnapshotViewportDataGrid {
|
|
|
964
964
|
this.dispatchEventToListeners(HeapSnapshotSortableDataGridEvents.SortingComplete);
|
|
965
965
|
return;
|
|
966
966
|
}
|
|
967
|
-
this.populateChildren();
|
|
967
|
+
void this.populateChildren();
|
|
968
968
|
}
|
|
969
969
|
|
|
970
970
|
async populateChildren(): Promise<void> {
|
|
@@ -262,7 +262,7 @@ export class HeapSnapshotGridNode extends
|
|
|
262
262
|
return;
|
|
263
263
|
}
|
|
264
264
|
this.populated = true;
|
|
265
|
-
this.provider().sortAndRewind(this.comparator()).then(() => this.populateChildren());
|
|
265
|
+
void this.provider().sortAndRewind(this.comparator()).then(() => this.populateChildren());
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
expandWithoutPopulate(): Promise<void> {
|
|
@@ -292,7 +292,7 @@ export class HeapSnapshotGridNode extends
|
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
294
|
const end = Math.min(firstNotSerializedPosition + this.dataGridInternal.defaultPopulateCount(), toPosition);
|
|
295
|
-
this.provider()
|
|
295
|
+
void this.provider()
|
|
296
296
|
.serializeItemsRange(firstNotSerializedPosition, end)
|
|
297
297
|
.then(itemsRange => childrenRetrieved.call(this, itemsRange, toPosition));
|
|
298
298
|
firstNotSerializedPosition = end;
|
|
@@ -460,7 +460,7 @@ export class HeapSnapshotGridNode extends
|
|
|
460
460
|
|
|
461
461
|
for (const child of this.allChildren()) {
|
|
462
462
|
if (child.expanded) {
|
|
463
|
-
child.sort();
|
|
463
|
+
void child.sort();
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
this.dataGridInternal.recursiveSortingLeave();
|
|
@@ -599,7 +599,7 @@ export abstract class HeapSnapshotGenericObjectNode extends HeapSnapshotGridNode
|
|
|
599
599
|
div.appendChild(UI.Fragment.html`<span class="heap-object-tag" title="${
|
|
600
600
|
i18nString(UIStrings.detachedFromDomTree)}">✀</span>`);
|
|
601
601
|
}
|
|
602
|
-
this.appendSourceLocation(div);
|
|
602
|
+
void this.appendSourceLocation(div);
|
|
603
603
|
const cell = (fragment.element() as HTMLElement);
|
|
604
604
|
if (this.depth) {
|
|
605
605
|
cell.style.setProperty(
|
|
@@ -714,7 +714,7 @@ export class HeapSnapshotObjectNode extends HeapSnapshotGenericObjectNode {
|
|
|
714
714
|
this.parentObjectNode = parentObjectNode;
|
|
715
715
|
this.cycledWithAncestorGridNode = this.findAncestorWithSameSnapshotNodeId();
|
|
716
716
|
if (!this.cycledWithAncestorGridNode) {
|
|
717
|
-
this.updateHasChildren();
|
|
717
|
+
void this.updateHasChildren();
|
|
718
718
|
}
|
|
719
719
|
|
|
720
720
|
const data = this.data;
|
|
@@ -843,7 +843,8 @@ export class HeapSnapshotRetainingObjectNode extends HeapSnapshotObjectNode {
|
|
|
843
843
|
|
|
844
844
|
expandRetainersChain(maxExpandLevels: number): void {
|
|
845
845
|
if (!this.populated) {
|
|
846
|
-
this.once(HeapSnapshotGridNode.Events.PopulateComplete)
|
|
846
|
+
void this.once(HeapSnapshotGridNode.Events.PopulateComplete)
|
|
847
|
+
.then(() => this.expandRetainersChain(maxExpandLevels));
|
|
847
848
|
this.populate();
|
|
848
849
|
return;
|
|
849
850
|
}
|
|
@@ -868,7 +869,7 @@ export class HeapSnapshotInstanceNode extends HeapSnapshotGenericObjectNode {
|
|
|
868
869
|
super(dataGrid, node);
|
|
869
870
|
this.baseSnapshotOrSnapshot = snapshot;
|
|
870
871
|
this.isDeletedNode = isDeletedNode;
|
|
871
|
-
this.updateHasChildren();
|
|
872
|
+
void this.updateHasChildren();
|
|
872
873
|
|
|
873
874
|
const data = this.data;
|
|
874
875
|
data['count'] = '';
|
|
@@ -1246,7 +1247,7 @@ export class AllocationGridNode extends HeapSnapshotGridNode {
|
|
|
1246
1247
|
if (this.populated) {
|
|
1247
1248
|
return;
|
|
1248
1249
|
}
|
|
1249
|
-
this.doPopulate();
|
|
1250
|
+
void this.doPopulate();
|
|
1250
1251
|
}
|
|
1251
1252
|
|
|
1252
1253
|
async doPopulate(): Promise<void> {
|