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
|
@@ -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();
|
|
@@ -243,6 +243,25 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
|
243
243
|
this.interactionsHeaderLevel2 = this.buildGroupStyle({padding: 2, nestingLevel: 1});
|
|
244
244
|
this.experienceHeader = this.buildGroupStyle({collapsible: false});
|
|
245
245
|
|
|
246
|
+
ThemeSupport.ThemeSupport.instance().addEventListener(ThemeSupport.ThemeChangeEvent.eventName, () => {
|
|
247
|
+
const headers = [
|
|
248
|
+
this.headerLevel1,
|
|
249
|
+
this.headerLevel2,
|
|
250
|
+
this.staticHeader,
|
|
251
|
+
this.framesHeader,
|
|
252
|
+
this.collapsibleTimingsHeader,
|
|
253
|
+
this.timingsHeader,
|
|
254
|
+
this.screenshotsHeader,
|
|
255
|
+
this.interactionsHeaderLevel1,
|
|
256
|
+
this.interactionsHeaderLevel2,
|
|
257
|
+
this.experienceHeader,
|
|
258
|
+
];
|
|
259
|
+
for (const header of headers) {
|
|
260
|
+
header.color = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary');
|
|
261
|
+
header.backgroundColor = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background');
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
|
|
246
265
|
this.flowEventIndexById = new Map();
|
|
247
266
|
}
|
|
248
267
|
|
|
@@ -251,10 +270,8 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
|
251
270
|
padding: 4,
|
|
252
271
|
height: 17,
|
|
253
272
|
collapsible: true,
|
|
254
|
-
color:
|
|
255
|
-
|
|
256
|
-
backgroundColor:
|
|
257
|
-
ThemeSupport.ThemeSupport.instance().patchColorText('white', ThemeSupport.ThemeSupport.ColorUsage.Background),
|
|
273
|
+
color: ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary'),
|
|
274
|
+
backgroundColor: ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background'),
|
|
258
275
|
font: this.font,
|
|
259
276
|
nestingLevel: 0,
|
|
260
277
|
shareHeaderLine: true,
|
|
@@ -1140,7 +1157,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
|
1140
1157
|
}
|
|
1141
1158
|
|
|
1142
1159
|
if (type === entryTypes.Screenshot) {
|
|
1143
|
-
this.drawScreenshot(entryIndex, context, barX, barY, barWidth, barHeight);
|
|
1160
|
+
void this.drawScreenshot(entryIndex, context, barX, barY, barWidth, barHeight);
|
|
1144
1161
|
return true;
|
|
1145
1162
|
}
|
|
1146
1163
|
|
|
@@ -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,
|
|
@@ -81,6 +79,12 @@ export class TimelineFlameChartNetworkDataProvider implements PerfUI.FlameChart.
|
|
|
81
79
|
this.timeSpan = 0;
|
|
82
80
|
this.requests = [];
|
|
83
81
|
this.maxLevel = 0;
|
|
82
|
+
|
|
83
|
+
// In the event of a theme change, these colors must be recalculated.
|
|
84
|
+
ThemeSupport.ThemeSupport.instance().addEventListener(ThemeSupport.ThemeChangeEvent.eventName, () => {
|
|
85
|
+
this.style.color = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary');
|
|
86
|
+
this.style.backgroundColor = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background');
|
|
87
|
+
});
|
|
84
88
|
}
|
|
85
89
|
|
|
86
90
|
setModel(performanceModel: PerformanceModel|null): void {
|
|
@@ -199,8 +203,7 @@ export class TimelineFlameChartNetworkDataProvider implements PerfUI.FlameChart.
|
|
|
199
203
|
context.fillStyle = 'hsla(0, 100%, 100%, 0.8)';
|
|
200
204
|
context.fillRect(sendStart + 0.5, barY + 0.5, headersEnd - sendStart - 0.5, barHeight - 2);
|
|
201
205
|
// Clear portions of initial rect to prepare for the ticks.
|
|
202
|
-
context.fillStyle =
|
|
203
|
-
ThemeSupport.ThemeSupport.instance().patchColorText('white', ThemeSupport.ThemeSupport.ColorUsage.Background);
|
|
206
|
+
context.fillStyle = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background');
|
|
204
207
|
context.fillRect(barX, barY - 0.5, sendStart - barX, barHeight);
|
|
205
208
|
context.fillRect(finish, barY - 0.5, barX + barWidth - finish, barHeight);
|
|
206
209
|
|
|
@@ -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);
|
|
@@ -296,7 +296,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
const authenticatorId = await this.#model.addAuthenticator(options);
|
|
299
|
-
this.#addAuthenticatorSection(authenticatorId, options);
|
|
299
|
+
void this.#addAuthenticatorSection(authenticatorId, options);
|
|
300
300
|
// Update the authenticatorIds in the options.
|
|
301
301
|
options.authenticatorId = authenticatorId;
|
|
302
302
|
if (options.active) {
|
|
@@ -307,7 +307,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
307
307
|
// Update the settings to reflect the new authenticatorIds.
|
|
308
308
|
this.#availableAuthenticatorSetting.set(availableAuthenticators);
|
|
309
309
|
if (activeAuthenticatorId) {
|
|
310
|
-
this.#setActiveAuthenticator(activeAuthenticatorId);
|
|
310
|
+
void this.#setActiveAuthenticator(activeAuthenticatorId);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
|
|
@@ -382,7 +382,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
382
382
|
#handleRemoveCredential(authenticatorId: Protocol.WebAuthn.AuthenticatorId, {
|
|
383
383
|
data: credential,
|
|
384
384
|
}: Common.EventTarget.EventTargetEvent<Protocol.WebAuthn.Credential>): void {
|
|
385
|
-
this.#removeCredential(authenticatorId, credential.credentialId);
|
|
385
|
+
void this.#removeCredential(authenticatorId, credential.credentialId);
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
async #updateCredentials(authenticatorId: Protocol.WebAuthn.AuthenticatorId): Promise<void> {
|
|
@@ -450,7 +450,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
#handleCheckboxToggle(e: MouseEvent): void {
|
|
453
|
-
this.#setVirtualAuthEnvEnabled((e.target as HTMLInputElement).checked);
|
|
453
|
+
void this.#setVirtualAuthEnvEnabled((e.target as HTMLInputElement).checked);
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
#updateEnabledTransportOptions(enabledOptions: Protocol.WebAuthn.AuthenticatorTransport[]): void {
|
|
@@ -656,7 +656,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
656
656
|
const dataGrid = this.#createCredentialsDataGrid(authenticatorId);
|
|
657
657
|
dataGrid.asWidget().show(section);
|
|
658
658
|
|
|
659
|
-
this.#updateCredentials(authenticatorId);
|
|
659
|
+
void this.#updateCredentials(authenticatorId);
|
|
660
660
|
|
|
661
661
|
return section;
|
|
662
662
|
}
|
|
@@ -759,7 +759,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
759
759
|
this.#dataGrids.delete(authenticatorId);
|
|
760
760
|
|
|
761
761
|
if (this.#model) {
|
|
762
|
-
this.#model.removeAuthenticator(authenticatorId);
|
|
762
|
+
void this.#model.removeAuthenticator(authenticatorId);
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
// Update available authenticator setting.
|
|
@@ -770,7 +770,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
770
770
|
if (this.#activeAuthId === authenticatorId) {
|
|
771
771
|
const availableAuthenticatorIds = Array.from(this.#dataGrids.keys());
|
|
772
772
|
if (availableAuthenticatorIds.length) {
|
|
773
|
-
this.#setActiveAuthenticator(availableAuthenticatorIds[0]);
|
|
773
|
+
void this.#setActiveAuthenticator(availableAuthenticatorIds[0]);
|
|
774
774
|
} else {
|
|
775
775
|
this.#activeAuthId = null;
|
|
776
776
|
}
|
|
@@ -7,7 +7,7 @@ import * as acorn from './package/dist/acorn.mjs';
|
|
|
7
7
|
import type * as ESTree from './estree-legacy';
|
|
8
8
|
export {ESTree};
|
|
9
9
|
|
|
10
|
-
export { Comment, defaultOptions, getLineInfo, isNewLine, lineBreak, lineBreakG, Node, SourceLocation, Token, tokTypes, tokContexts} from './package/dist/acorn.mjs';
|
|
10
|
+
export { type Comment, defaultOptions, getLineInfo, isNewLine, lineBreak, lineBreakG, Node, SourceLocation, Token, tokTypes, tokContexts} from './package/dist/acorn.mjs';
|
|
11
11
|
|
|
12
12
|
export const Parser = acorn.Parser;
|
|
13
13
|
export const tokenizer = acorn.Parser.tokenizer.bind(acorn.Parser);
|
|
@@ -101,42 +101,42 @@ export class Button extends HTMLElement {
|
|
|
101
101
|
this.#props.spinner = Boolean(data.spinner);
|
|
102
102
|
this.#props.type = data.type || 'button';
|
|
103
103
|
this.#setDisabledProperty(data.disabled || false);
|
|
104
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
104
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
set iconUrl(iconUrl: string|undefined) {
|
|
108
108
|
this.#props.iconUrl = iconUrl;
|
|
109
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
109
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
set variant(variant: Variant) {
|
|
113
113
|
this.#props.variant = variant;
|
|
114
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
114
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
set size(size: Size) {
|
|
118
118
|
this.#props.size = size;
|
|
119
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
119
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
set type(type: ButtonType) {
|
|
123
123
|
this.#props.type = type;
|
|
124
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
124
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
set disabled(disabled: boolean) {
|
|
128
128
|
this.#setDisabledProperty(disabled);
|
|
129
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
129
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
set active(active: boolean) {
|
|
133
133
|
this.#props.active = active;
|
|
134
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
134
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
set spinner(spinner: boolean) {
|
|
138
138
|
this.#props.spinner = spinner;
|
|
139
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
139
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
#setDisabledProperty(disabled: boolean): void {
|
|
@@ -150,7 +150,7 @@ export class Button extends HTMLElement {
|
|
|
150
150
|
|
|
151
151
|
connectedCallback(): void {
|
|
152
152
|
this.#shadow.adoptedStyleSheets = [buttonStyles];
|
|
153
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
153
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
#onClick(event: Event): void {
|
|
@@ -175,7 +175,7 @@ export class Button extends HTMLElement {
|
|
|
175
175
|
const slot = event.target as HTMLSlotElement | undefined;
|
|
176
176
|
const nodes = slot?.assignedNodes();
|
|
177
177
|
this.#isEmpty = !nodes || !Boolean(nodes.length);
|
|
178
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
178
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
#render(): void {
|
|
@@ -85,7 +85,7 @@ export class DataGrid extends HTMLElement {
|
|
|
85
85
|
// lookup constant.
|
|
86
86
|
readonly #rowIndexMap = new WeakMap<Row, number>();
|
|
87
87
|
readonly #resizeObserver = new ResizeObserver(() => {
|
|
88
|
-
this.#alignScrollHandlers();
|
|
88
|
+
void this.#alignScrollHandlers();
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
// These have to be bound as they are put onto the global document, not onto
|
|
@@ -173,7 +173,7 @@ export class DataGrid extends HTMLElement {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
this.#render();
|
|
176
|
+
void this.#render();
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
#shouldAutoScrollToBottom(): boolean {
|
|
@@ -206,13 +206,13 @@ export class DataGrid extends HTMLElement {
|
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
coordinator.read(() => {
|
|
209
|
+
void coordinator.read(() => {
|
|
210
210
|
const wrapper = this.#shadow.querySelector('.wrapping-container');
|
|
211
211
|
if (!wrapper) {
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
214
|
const scrollHeight = wrapper.scrollHeight;
|
|
215
|
-
coordinator.scroll(() => {
|
|
215
|
+
void coordinator.scroll(() => {
|
|
216
216
|
wrapper.scrollTo(0, scrollHeight);
|
|
217
217
|
});
|
|
218
218
|
});
|
|
@@ -254,7 +254,7 @@ export class DataGrid extends HTMLElement {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
this.#cellUserHasFocused = [newColumnIndex, newRowIndex];
|
|
257
|
-
this.#render();
|
|
257
|
+
void this.#render();
|
|
258
258
|
const tableCell = this.#getTableElementForCellUserHasFocused();
|
|
259
259
|
if (!tableCell) {
|
|
260
260
|
// Return in case the cell is out of bounds and we do nothing
|
|
@@ -264,7 +264,7 @@ export class DataGrid extends HTMLElement {
|
|
|
264
264
|
* add arrow key support, so in the case where we're programatically moving the
|
|
265
265
|
* focus, ensure we actually focus the cell.
|
|
266
266
|
*/
|
|
267
|
-
this.#focusTableCellInDOM(tableCell);
|
|
267
|
+
void this.#focusTableCellInDOM(tableCell);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
#onTableKeyDown(event: KeyboardEvent): void {
|
|
@@ -344,7 +344,7 @@ export class DataGrid extends HTMLElement {
|
|
|
344
344
|
this.#currentResize.documentForCursorChange.body.style.cursor = this.#currentResize.cursorToRestore;
|
|
345
345
|
this.#currentResize = null;
|
|
346
346
|
// Realign the scroll handlers now the table columns have been resized.
|
|
347
|
-
this.#alignScrollHandlers();
|
|
347
|
+
void this.#alignScrollHandlers();
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
#onResizePointerDown(event: PointerEvent): void {
|
|
@@ -528,7 +528,7 @@ export class DataGrid extends HTMLElement {
|
|
|
528
528
|
// Let the user append things to the menu
|
|
529
529
|
this.#contextMenus.headerRow(menu, this.#columns);
|
|
530
530
|
}
|
|
531
|
-
menu.show();
|
|
531
|
+
void menu.show();
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
#onBodyRowContextMenu(event: MouseEvent): void {
|
|
@@ -566,7 +566,7 @@ export class DataGrid extends HTMLElement {
|
|
|
566
566
|
if (this.#contextMenus && this.#contextMenus.bodyRow) {
|
|
567
567
|
this.#contextMenus.bodyRow(menu, this.#columns, rowThatWasClicked);
|
|
568
568
|
}
|
|
569
|
-
menu.show();
|
|
569
|
+
void menu.show();
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
#onScroll(event: Event): void {
|
|
@@ -581,7 +581,7 @@ export class DataGrid extends HTMLElement {
|
|
|
581
581
|
this.#userScrollState =
|
|
582
582
|
userIsAtBottom ? UserScrollState.SCROLLED_TO_BOTTOM : UserScrollState.MANUAL_SCROLL_NOT_BOTTOM;
|
|
583
583
|
|
|
584
|
-
this.#render();
|
|
584
|
+
void this.#render();
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
#alignScrollHandlers(): Promise<void> {
|
|
@@ -598,7 +598,7 @@ export class DataGrid extends HTMLElement {
|
|
|
598
598
|
const columnLeftOffset = header.offsetLeft;
|
|
599
599
|
if (handlers[index]) {
|
|
600
600
|
const handlerWidth = handlers[index].clientWidth;
|
|
601
|
-
coordinator.write(() => {
|
|
601
|
+
void coordinator.write(() => {
|
|
602
602
|
/**
|
|
603
603
|
* Render the resizer at the far right of the column; we subtract
|
|
604
604
|
* its width so it sits on the inner edge of the column.
|
|
@@ -828,7 +828,7 @@ export class DataGrid extends HTMLElement {
|
|
|
828
828
|
const currentlyFocusedRowIndex = tabbableCell[1];
|
|
829
829
|
const tabbableCellElement = this.#getTableElementForCellUserHasFocused();
|
|
830
830
|
if (this.#userHasFocusInDataGrid && currentlyFocusedRowIndex > 0 && tabbableCellElement) {
|
|
831
|
-
this.#focusTableCellInDOM(tabbableCellElement);
|
|
831
|
+
void this.#focusTableCellInDOM(tabbableCellElement);
|
|
832
832
|
}
|
|
833
833
|
this.#scrollToBottomIfRequired();
|
|
834
834
|
this.#engageResizeObserver();
|
|
@@ -838,7 +838,7 @@ export class DataGrid extends HTMLElement {
|
|
|
838
838
|
// re-positioned correctly if so.
|
|
839
839
|
|
|
840
840
|
// We don't have to do this on first render as it will fire when the resize observer is engaged.
|
|
841
|
-
this.#alignScrollHandlers();
|
|
841
|
+
void this.#alignScrollHandlers();
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
this.#isRendering = false;
|
|
@@ -848,7 +848,7 @@ export class DataGrid extends HTMLElement {
|
|
|
848
848
|
// the end with the most recent data.
|
|
849
849
|
if (this.#scheduleRender) {
|
|
850
850
|
this.#scheduleRender = false;
|
|
851
|
-
this.#render();
|
|
851
|
+
void this.#render();
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
}
|