chrome-devtools-frontend 1.0.954826 → 1.0.956060
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -0
- package/AUTHORS +1 -0
- package/config/owner/COMMON_OWNERS +2 -2
- package/front_end/.eslintrc.js +1 -11
- package/front_end/core/common/Console.ts +1 -1
- package/front_end/core/common/ResolverBase.ts +1 -1
- package/front_end/core/common/Throttler.ts +1 -1
- package/front_end/core/common/Worker.ts +4 -4
- package/front_end/core/host/InspectorFrontendHost.ts +1 -1
- package/front_end/core/host/ResourceLoader.ts +2 -2
- package/front_end/core/i18n/DevToolsLocale.ts +0 -2
- package/front_end/core/i18n/i18nImpl.ts +0 -2
- package/front_end/core/i18n/locales/en-US.json +3 -0
- package/front_end/core/i18n/locales/en-XL.json +3 -0
- package/front_end/core/sdk/AccessibilityModel.ts +1 -1
- package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
- package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
- package/front_end/core/sdk/CSSModel.ts +7 -7
- package/front_end/core/sdk/CSSProperty.ts +1 -1
- package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
- package/front_end/core/sdk/ChildTargetManager.ts +6 -6
- package/front_end/core/sdk/Connections.ts +2 -2
- package/front_end/core/sdk/ConsoleModel.ts +1 -1
- package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
- package/front_end/core/sdk/DOMModel.ts +17 -17
- package/front_end/core/sdk/DebuggerModel.ts +24 -24
- package/front_end/core/sdk/EmulationModel.ts +16 -16
- package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
- package/front_end/core/sdk/IsolateManager.ts +2 -2
- package/front_end/core/sdk/IssuesModel.ts +1 -1
- package/front_end/core/sdk/LogModel.ts +3 -3
- package/front_end/core/sdk/NetworkManager.ts +25 -25
- package/front_end/core/sdk/OverlayModel.ts +23 -23
- package/front_end/core/sdk/PageResourceLoader.ts +1 -1
- package/front_end/core/sdk/PaintProfiler.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +2 -2
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
- package/front_end/core/sdk/RuntimeModel.ts +11 -11
- package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
- package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
- package/front_end/core/sdk/SourceMapManager.ts +1 -1
- package/front_end/core/sdk/TargetManager.ts +2 -2
- package/front_end/core/sdk/TracingManager.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
- package/front_end/entrypoints/js_app/js_app.ts +2 -2
- package/front_end/entrypoints/main/MainImpl.ts +11 -11
- package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
- package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
- package/front_end/generated/ARIAProperties.js +1 -1
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/SupportedCSSProperties.js +15 -15
- package/front_end/generated/protocol.d.ts +13 -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 +8 -8
- package/front_end/models/formatter/SourceFormatter.ts +2 -2
- package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
- package/front_end/models/issues_manager/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/ConsoleFilter.ts +17 -2
- package/front_end/panels/console/ConsoleFormat.ts +5 -4
- package/front_end/panels/console/ConsolePinPane.ts +4 -4
- package/front_end/panels/console/ConsolePrompt.ts +4 -4
- package/front_end/panels/console/ConsoleView.ts +96 -71
- package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
- package/front_end/panels/console/consoleView.css +36 -0
- package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
- package/front_end/panels/coverage/CoverageListView.ts +3 -3
- package/front_end/panels/coverage/CoverageModel.ts +3 -3
- package/front_end/panels/coverage/CoverageView.ts +6 -6
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
- package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
- package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
- package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
- package/front_end/panels/elements/DOMLinkifier.ts +2 -2
- package/front_end/panels/elements/ElementsPanel.ts +19 -19
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +26 -25
- package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
- package/front_end/panels/elements/InspectElementModeController.ts +3 -3
- package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
- package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
- package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
- package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
- package/front_end/panels/elements/elementsPanel.css +1 -0
- package/front_end/panels/elements/elementsTreeOutline.css +6 -1
- package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
- package/front_end/panels/emulation/DeviceModeView.ts +2 -2
- package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
- package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
- package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
- package/front_end/panels/input/InputModel.ts +2 -2
- package/front_end/panels/input/InputTimeline.ts +6 -6
- package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
- package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
- package/front_end/panels/issues/AffectedElementsView.ts +1 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
- package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
- package/front_end/panels/issues/IssueView.ts +1 -1
- package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
- package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
- package/front_end/panels/layers/LayerTreeModel.ts +4 -4
- package/front_end/panels/layers/LayersPanel.ts +4 -4
- package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
- package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
- package/front_end/panels/media/MediaModel.ts +1 -1
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
- package/front_end/panels/network/BinaryResourceView.ts +1 -1
- package/front_end/panels/network/BlockedURLsPane.ts +5 -5
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
- package/front_end/panels/network/NetworkItemView.ts +2 -2
- package/front_end/panels/network/NetworkLogView.ts +4 -4
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +8 -8
- package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
- package/front_end/panels/network/RequestHeadersView.ts +4 -3
- package/front_end/panels/network/RequestPayloadView.ts +8 -8
- package/front_end/panels/network/RequestPreviewView.ts +1 -1
- package/front_end/panels/network/RequestResponseView.ts +2 -2
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
- package/front_end/panels/profiler/CPUProfileView.ts +4 -4
- package/front_end/panels/profiler/HeapProfileView.ts +6 -6
- package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
- package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
- package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
- package/front_end/panels/profiler/ProfileView.ts +3 -3
- package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
- package/front_end/panels/screencast/InputModel.ts +3 -3
- package/front_end/panels/screencast/ScreencastView.ts +10 -10
- package/front_end/panels/search/SearchResultsPane.ts +1 -1
- package/front_end/panels/search/SearchView.ts +2 -2
- package/front_end/panels/security/SecurityModel.ts +1 -1
- package/front_end/panels/security/SecurityPanel.ts +2 -2
- package/front_end/panels/sensors/SensorsView.ts +3 -2
- package/front_end/panels/settings/SettingsScreen.ts +5 -5
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
- package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
- package/front_end/panels/sources/CoveragePlugin.ts +3 -3
- package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
- package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
- package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
- package/front_end/panels/sources/NavigatorView.ts +6 -6
- package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
- package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
- package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/SearchSourcesView.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +9 -9
- package/front_end/panels/sources/SourcesPanel.ts +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 +3 -5
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +4 -7
- package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
- package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
- package/front_end/panels/timeline/TimelineLoader.ts +2 -2
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
- package/front_end/panels/timeline/TimelinePanel.ts +10 -10
- package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
- package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
- package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
- package/front_end/panels/web_audio/WebAudioView.ts +1 -1
- package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
- package/front_end/ui/components/buttons/Button.ts +10 -10
- package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
- package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
- package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
- package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
- package/front_end/ui/components/icon_button/Icon.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
- package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/javascript.ts +2 -2
- package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
- package/front_end/ui/legacy/Context.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +1 -1
- package/front_end/ui/legacy/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/ShortcutRegistry.ts +1 -1
- package/front_end/ui/legacy/TabbedPane.ts +2 -2
- package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
- package/front_end/ui/legacy/Toolbar.ts +3 -3
- package/front_end/ui/legacy/Treeoutline.ts +6 -6
- package/front_end/ui/legacy/UIUtils.ts +16 -16
- package/front_end/ui/legacy/ViewManager.ts +9 -9
- package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +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 +2 -2
- package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
- package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +10 -19
- package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
- package/front_end/ui/legacy/components/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/tabbedPane.css +1 -0
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +3 -210
- package/front_end/ui/legacy/toolbar.css +1 -0
- package/package.json +1 -1
- package/scripts/component_server/server.js +2 -2
- package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
- package/front_end/global_typings/intl_display_names.d.ts +0 -111
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import type * as SDK from '../../core/sdk/sdk.js';
|
|
6
|
-
import
|
|
6
|
+
import * as Protocol from '../../generated/protocol.js';
|
|
7
7
|
|
|
8
8
|
import {Issue, IssueCategory, IssueKind} from './Issue.js';
|
|
9
9
|
import type {MarkdownIssueDescription} from './MarkdownIssueDescription.js';
|
|
10
10
|
|
|
11
|
-
export
|
|
12
|
-
DeprecationIssue = 'DeprecationIssue',
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export class DeprecationIssue extends Issue<IssueCode> {
|
|
11
|
+
export class DeprecationIssue extends Issue {
|
|
16
12
|
#issueDetails: Protocol.Audits.DeprecationIssueDetails;
|
|
17
13
|
|
|
18
14
|
constructor(issueDetails: Protocol.Audits.DeprecationIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel) {
|
|
19
|
-
|
|
15
|
+
const issueCode = [
|
|
16
|
+
Protocol.Audits.InspectorIssueCode.DeprecationIssue,
|
|
17
|
+
issueDetails.deprecationType,
|
|
18
|
+
].join('::');
|
|
19
|
+
super({code: issueCode, umaCode: 'DeprecationIssue'}, issuesModel);
|
|
20
20
|
this.#issueDetails = issueDetails;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -43,7 +43,7 @@ export class SourceFrameIssuesManager {
|
|
|
43
43
|
const rawLocation =
|
|
44
44
|
debuggerModel.createRawLocationByURL(srcLocation.url, srcLocation.lineNumber, srcLocation.columnNumber);
|
|
45
45
|
if (rawLocation) {
|
|
46
|
-
this.#addIssueMessageToScript(issue, rawLocation);
|
|
46
|
+
void this.#addIssueMessageToScript(issue, rawLocation);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -62,7 +62,7 @@ export class SourceFrameIssuesManager {
|
|
|
62
62
|
const title = await getIssueTitleFromMarkdownDescription(description);
|
|
63
63
|
if (title) {
|
|
64
64
|
const clickHandler = (): void => {
|
|
65
|
-
Common.Revealer.reveal(issue);
|
|
65
|
+
void Common.Revealer.reveal(issue);
|
|
66
66
|
};
|
|
67
67
|
this.#issueMessages.push(
|
|
68
68
|
new IssueMessage(title, issue.getKind(), rawLocation, this.#locationPool, clickHandler));
|
|
@@ -93,7 +93,7 @@ export class IssueMessage extends Workspace.UISourceCode.Message {
|
|
|
93
93
|
locationPool: Bindings.LiveLocation.LiveLocationPool, clickHandler: () => void) {
|
|
94
94
|
super(Workspace.UISourceCode.Message.Level.Issue, title, clickHandler);
|
|
95
95
|
this.#kind = kind;
|
|
96
|
-
Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance().createLiveLocation(
|
|
96
|
+
void Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance().createLiveLocation(
|
|
97
97
|
rawLocation, this.#updateLocation.bind(this), locationPool);
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -92,7 +92,7 @@ export class Automapping {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
private scheduleSweep(): void {
|
|
95
|
-
this.sweepThrottler.schedule(sweepUnmapped.bind(this));
|
|
95
|
+
void this.sweepThrottler.schedule(sweepUnmapped.bind(this));
|
|
96
96
|
|
|
97
97
|
function sweepUnmapped(this: Automapping): Promise<void> {
|
|
98
98
|
const networkProjects = this.workspace.projectsForType(Workspace.Workspace.projectTypes.Network);
|
|
@@ -287,7 +287,7 @@ export class Automapping {
|
|
|
287
287
|
this.scheduleSweep();
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
this.onStatusAdded.call(null, status);
|
|
290
|
+
void this.onStatusAdded.call(null, status);
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
|
|
@@ -316,7 +316,7 @@ export class Automapping {
|
|
|
316
316
|
this.activeFoldersIndex.removeFolder(projectFolder);
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
this.onStatusRemoved.call(null, status);
|
|
319
|
+
void this.onStatusRemoved.call(null, status);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
private createBinding(networkSourceCode: Workspace.UISourceCode.UISourceCode): Promise<AutomappingStatus|null> {
|
|
@@ -52,7 +52,7 @@ export class FileSystemWorkspaceBinding {
|
|
|
52
52
|
this.isolatedFileSystemManager.addEventListener(Events.FileSystemFilesChanged, this.fileSystemFilesChanged, this),
|
|
53
53
|
];
|
|
54
54
|
this.boundFileSystems = new Map();
|
|
55
|
-
this.isolatedFileSystemManager.waitForFileSystems().then(this.onFileSystemsLoaded.bind(this));
|
|
55
|
+
void this.isolatedFileSystemManager.waitForFileSystems().then(this.onFileSystemsLoaded.bind(this));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
static projectId(fileSystemPath: string): string {
|
|
@@ -379,7 +379,7 @@ export class FileSystem extends Workspace.Workspace.ProjectStore implements Work
|
|
|
379
379
|
|
|
380
380
|
deleteFile(uiSourceCode: Workspace.UISourceCode.UISourceCode): void {
|
|
381
381
|
const relativePath = this.filePathForUISourceCode(uiSourceCode);
|
|
382
|
-
this.fileSystemInternal.deleteFile(relativePath).then(success => {
|
|
382
|
+
void this.fileSystemInternal.deleteFile(relativePath).then(success => {
|
|
383
383
|
if (success) {
|
|
384
384
|
this.removeUISourceCode(uiSourceCode.url());
|
|
385
385
|
}
|
|
@@ -409,7 +409,7 @@ export class FileSystem extends Workspace.Workspace.ProjectStore implements Work
|
|
|
409
409
|
return;
|
|
410
410
|
}
|
|
411
411
|
sourceCodeToMetadataMap.delete(uiSourceCode);
|
|
412
|
-
uiSourceCode.checkContentUpdated();
|
|
412
|
+
void uiSourceCode.checkContentUpdated();
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
tooltipForURL(url: string): string {
|
|
@@ -351,7 +351,7 @@ export class IsolatedFileSystem extends PlatformFileSystem {
|
|
|
351
351
|
return promise;
|
|
352
352
|
};
|
|
353
353
|
|
|
354
|
-
this.serializedFileOperation(path, innerSetFileContent);
|
|
354
|
+
void this.serializedFileOperation(path, innerSetFileContent);
|
|
355
355
|
|
|
356
356
|
function fileEntryLoaded(this: IsolatedFileSystem, entry: FileEntry): void {
|
|
357
357
|
entry.createWriter(fileWriterCreated.bind(this), errorHandler.bind(this));
|
|
@@ -147,7 +147,7 @@ export class IsolatedFileSystemManager extends Common.ObjectWrapper.ObjectWrappe
|
|
|
147
147
|
for (let i = 0; i < fileSystems.length; ++i) {
|
|
148
148
|
promises.push(this.innerAddFileSystem(fileSystems[i], false));
|
|
149
149
|
}
|
|
150
|
-
Promise.all(promises).then(onFileSystemsAdded);
|
|
150
|
+
void Promise.all(promises).then(onFileSystemsAdded);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
function onFileSystemsAdded(fileSystems: (IsolatedFileSystem|null)[]): void {
|
|
@@ -209,7 +209,7 @@ export class IsolatedFileSystemManager extends Common.ObjectWrapper.ObjectWrappe
|
|
|
209
209
|
this.fileSystemRequestResolve.call(null, null);
|
|
210
210
|
this.fileSystemRequestResolve = null;
|
|
211
211
|
} else if (fileSystem) {
|
|
212
|
-
this.innerAddFileSystem(fileSystem, true).then(fileSystem => {
|
|
212
|
+
void this.innerAddFileSystem(fileSystem, true).then(fileSystem => {
|
|
213
213
|
if (this.fileSystemRequestResolve) {
|
|
214
214
|
this.fileSystemRequestResolve.call(null, fileSystem);
|
|
215
215
|
this.fileSystemRequestResolve = null;
|
|
@@ -55,25 +55,25 @@ export class NetworkPersistenceManager extends Common.ObjectWrapper.ObjectWrappe
|
|
|
55
55
|
this.enabled = false;
|
|
56
56
|
|
|
57
57
|
this.workspace.addEventListener(Workspace.Workspace.Events.ProjectAdded, event => {
|
|
58
|
-
this.onProjectAdded(event.data);
|
|
58
|
+
void this.onProjectAdded(event.data);
|
|
59
59
|
});
|
|
60
60
|
this.workspace.addEventListener(Workspace.Workspace.Events.ProjectRemoved, event => {
|
|
61
|
-
this.onProjectRemoved(event.data);
|
|
61
|
+
void this.onProjectRemoved(event.data);
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
PersistenceImpl.instance().addNetworkInterceptor(this.canHandleNetworkUISourceCode.bind(this));
|
|
65
65
|
|
|
66
66
|
this.eventDescriptors = [];
|
|
67
|
-
this.enabledChanged();
|
|
67
|
+
void this.enabledChanged();
|
|
68
68
|
|
|
69
69
|
SDK.TargetManager.TargetManager.instance().observeTargets(this);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
targetAdded(): void {
|
|
73
|
-
this.updateActiveProject();
|
|
73
|
+
void this.updateActiveProject();
|
|
74
74
|
}
|
|
75
75
|
targetRemoved(): void {
|
|
76
|
-
this.updateActiveProject();
|
|
76
|
+
void this.updateActiveProject();
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
static instance(opts: {
|
|
@@ -118,17 +118,17 @@ export class NetworkPersistenceManager extends Common.ObjectWrapper.ObjectWrappe
|
|
|
118
118
|
Workspace.Workspace.WorkspaceImpl.instance().addEventListener(
|
|
119
119
|
Workspace.Workspace.Events.UISourceCodeRenamed,
|
|
120
120
|
event => {
|
|
121
|
-
this.uiSourceCodeRenamedListener(event);
|
|
121
|
+
void this.uiSourceCodeRenamedListener(event);
|
|
122
122
|
}),
|
|
123
123
|
Workspace.Workspace.WorkspaceImpl.instance().addEventListener(
|
|
124
124
|
Workspace.Workspace.Events.UISourceCodeAdded,
|
|
125
125
|
event => {
|
|
126
|
-
this.uiSourceCodeAdded(event);
|
|
126
|
+
void this.uiSourceCodeAdded(event);
|
|
127
127
|
}),
|
|
128
128
|
Workspace.Workspace.WorkspaceImpl.instance().addEventListener(
|
|
129
129
|
Workspace.Workspace.Events.UISourceCodeRemoved,
|
|
130
130
|
event => {
|
|
131
|
-
this.uiSourceCodeRemovedListener(event);
|
|
131
|
+
void this.uiSourceCodeRemovedListener(event);
|
|
132
132
|
}),
|
|
133
133
|
Workspace.Workspace.WorkspaceImpl.instance().addEventListener(
|
|
134
134
|
Workspace.Workspace.Events.WorkingCopyCommitted,
|
|
@@ -285,7 +285,7 @@ export class NetworkPersistenceManager extends Common.ObjectWrapper.ObjectWrappe
|
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
private onUISourceCodeWorkingCopyCommitted(uiSourceCode: Workspace.UISourceCode.UISourceCode): void {
|
|
288
|
-
this.saveUISourceCodeForOverrides(uiSourceCode);
|
|
288
|
+
void this.saveUISourceCodeForOverrides(uiSourceCode);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
canSaveUISourceCodeForOverrides(uiSourceCode: Workspace.UISourceCode.UISourceCode): boolean {
|
|
@@ -364,7 +364,7 @@ export class NetworkPersistenceManager extends Common.ObjectWrapper.ObjectWrappe
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
private updateInterceptionPatterns(): void {
|
|
367
|
-
this.updateInterceptionThrottler.schedule(innerUpdateInterceptionPatterns.bind(this));
|
|
367
|
+
void this.updateInterceptionThrottler.schedule(innerUpdateInterceptionPatterns.bind(this));
|
|
368
368
|
|
|
369
369
|
function innerUpdateInterceptionPatterns(this: NetworkPersistenceManager): Promise<void> {
|
|
370
370
|
if (!this.activeInternal || !this.projectInternal) {
|
|
@@ -499,7 +499,7 @@ export class NetworkPersistenceManager extends Common.ObjectWrapper.ObjectWrappe
|
|
|
499
499
|
|
|
500
500
|
const blob = await project.requestFileBlob(fileSystemUISourceCode);
|
|
501
501
|
if (blob) {
|
|
502
|
-
interceptedRequest.continueRequestWithContent(new Blob([blob], {type: mimeType}));
|
|
502
|
+
void interceptedRequest.continueRequestWithContent(new Blob([blob], {type: mimeType}));
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
}
|
|
@@ -60,7 +60,7 @@ export class ContextMenuProvider implements UI.ContextMenu.Provider {
|
|
|
60
60
|
content = window.atob(content);
|
|
61
61
|
}
|
|
62
62
|
const url = contentProvider.contentURL();
|
|
63
|
-
Workspace.FileManager.FileManager.instance().save(url, content as string, true);
|
|
63
|
+
void Workspace.FileManager.FileManager.instance().save(url, content as string, true);
|
|
64
64
|
Workspace.FileManager.FileManager.instance().close(url);
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -84,9 +84,9 @@ export class ContextMenuProvider implements UI.ContextMenu.Provider {
|
|
|
84
84
|
if (uiSourceCode && NetworkPersistenceManager.instance().canSaveUISourceCodeForOverrides(uiSourceCode)) {
|
|
85
85
|
contextMenu.saveSection().appendItem(i18nString(UIStrings.saveForOverrides), () => {
|
|
86
86
|
uiSourceCode.commitWorkingCopy();
|
|
87
|
-
NetworkPersistenceManager.instance().saveUISourceCodeForOverrides(
|
|
87
|
+
void NetworkPersistenceManager.instance().saveUISourceCodeForOverrides(
|
|
88
88
|
uiSourceCode as Workspace.UISourceCode.UISourceCode);
|
|
89
|
-
Common.Revealer.reveal(uiSourceCode);
|
|
89
|
+
void Common.Revealer.reveal(uiSourceCode);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -172,7 +172,7 @@ export class PersistenceImpl extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
172
172
|
const target = Bindings.NetworkProject.NetworkProject.targetForUISourceCode(binding.network);
|
|
173
173
|
if (target && target.type() === SDK.Target.Type.Node) {
|
|
174
174
|
const newContent = uiSourceCode.workingCopy();
|
|
175
|
-
other.requestContent().then(() => {
|
|
175
|
+
void other.requestContent().then(() => {
|
|
176
176
|
const nodeJSContent = PersistenceImpl.rewrapNodeJSContent(other, other.workingCopy(), newContent);
|
|
177
177
|
setWorkingCopy.call(this, () => nodeJSContent);
|
|
178
178
|
});
|
|
@@ -208,7 +208,7 @@ export class PersistenceImpl extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
208
208
|
const other = binding.network === uiSourceCode ? binding.fileSystem : binding.network;
|
|
209
209
|
const target = Bindings.NetworkProject.NetworkProject.targetForUISourceCode(binding.network);
|
|
210
210
|
if (target && target.type() === SDK.Target.Type.Node) {
|
|
211
|
-
other.requestContent().then(currentContent => {
|
|
211
|
+
void other.requestContent().then(currentContent => {
|
|
212
212
|
const nodeJSContent = PersistenceImpl.rewrapNodeJSContent(other, currentContent.content || '', newContent);
|
|
213
213
|
setContent.call(this, nodeJSContent);
|
|
214
214
|
});
|
|
@@ -177,7 +177,7 @@ export class WorkspaceSettingsTab extends UI.Widget.VBox {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
private addFileSystemClicked(): void {
|
|
180
|
-
IsolatedFileSystemManager.instance().addFileSystem();
|
|
180
|
+
void IsolatedFileSystemManager.instance().addFileSystem();
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
private fileSystemAdded(fileSystem: PlatformFileSystem): void {
|
|
@@ -293,7 +293,7 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
|
293
293
|
|
|
294
294
|
private commitContent(content: string): void {
|
|
295
295
|
if (this.projectInternal.canSetFileContent()) {
|
|
296
|
-
this.projectInternal.setFileContent(this, content, false);
|
|
296
|
+
void this.projectInternal.setFileContent(this, content, false);
|
|
297
297
|
}
|
|
298
298
|
this.contentCommitted(content, true);
|
|
299
299
|
}
|
|
@@ -353,7 +353,7 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
|
353
353
|
setContent(content: string, isBase64: boolean): void {
|
|
354
354
|
this.contentEncodedInternal = isBase64;
|
|
355
355
|
if (this.projectInternal.canSetFileContent()) {
|
|
356
|
-
this.projectInternal.setFileContent(this, content, isBase64);
|
|
356
|
+
void this.projectInternal.setFileContent(this, content, isBase64);
|
|
357
357
|
}
|
|
358
358
|
this.contentCommitted(content, true);
|
|
359
359
|
}
|
|
@@ -69,12 +69,12 @@ export class WorkspaceDiffImpl extends Common.ObjectWrapper.ObjectWrapper<EventT
|
|
|
69
69
|
private uiSourceCodeChanged(
|
|
70
70
|
event: Common.EventTarget.EventTargetEvent<{uiSourceCode: Workspace.UISourceCode.UISourceCode}>): void {
|
|
71
71
|
const uiSourceCode = event.data.uiSourceCode;
|
|
72
|
-
this.updateModifiedState(uiSourceCode);
|
|
72
|
+
void this.updateModifiedState(uiSourceCode);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
private uiSourceCodeAdded(event: Common.EventTarget.EventTargetEvent<Workspace.UISourceCode.UISourceCode>): void {
|
|
76
76
|
const uiSourceCode = event.data;
|
|
77
|
-
this.updateModifiedState(uiSourceCode);
|
|
77
|
+
void this.updateModifiedState(uiSourceCode);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
private uiSourceCodeRemoved(event: Common.EventTarget.EventTargetEvent<Workspace.UISourceCode.UISourceCode>): void {
|
|
@@ -374,7 +374,7 @@ export class AXBreadcrumbsPane extends AccessibilitySubPane {
|
|
|
374
374
|
if (deferredNode) {
|
|
375
375
|
deferredNode.resolve(domNode => {
|
|
376
376
|
this.axSidebarView.setNode(domNode, true /* fromAXTree */);
|
|
377
|
-
Common.Revealer.reveal(domNode, true /* omitFocus */);
|
|
377
|
+
void Common.Revealer.reveal(domNode, true /* omitFocus */);
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
|
|
@@ -407,11 +407,11 @@ export class AXBreadcrumbsPane extends AccessibilitySubPane {
|
|
|
407
407
|
if (!deferredNode) {
|
|
408
408
|
return;
|
|
409
409
|
}
|
|
410
|
-
deferredNode.resolvePromise().then(domNode => {
|
|
410
|
+
void deferredNode.resolvePromise().then(domNode => {
|
|
411
411
|
if (!domNode) {
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
|
-
domNode.scrollIntoView();
|
|
414
|
+
void domNode.scrollIntoView();
|
|
415
415
|
});
|
|
416
416
|
});
|
|
417
417
|
|
|
@@ -419,7 +419,7 @@ export class AXBreadcrumbsPane extends AccessibilitySubPane {
|
|
|
419
419
|
if (deferredNode) {
|
|
420
420
|
contextMenu.appendApplicableItems(deferredNode);
|
|
421
421
|
}
|
|
422
|
-
contextMenu.show();
|
|
422
|
+
void contextMenu.show();
|
|
423
423
|
}
|
|
424
424
|
wasShown(): void {
|
|
425
425
|
super.wasShown();
|
|
@@ -586,8 +586,8 @@ export class AXRelatedNodeElement {
|
|
|
586
586
|
if (this.deferredNode) {
|
|
587
587
|
const valueElement = document.createElement('span');
|
|
588
588
|
element.appendChild(valueElement);
|
|
589
|
-
this.deferredNode.resolvePromise().then(node => {
|
|
590
|
-
Common.Linkifier.Linkifier.linkify(node, {tooltip: undefined, preventKeyboardFocus: true})
|
|
589
|
+
void this.deferredNode.resolvePromise().then(node => {
|
|
590
|
+
void Common.Linkifier.Linkifier.linkify(node, {tooltip: undefined, preventKeyboardFocus: true})
|
|
591
591
|
.then(linkfied => valueElement.appendChild(linkfied));
|
|
592
592
|
});
|
|
593
593
|
} else if (this.idref) {
|
|
@@ -605,7 +605,7 @@ export class AXRelatedNodeElement {
|
|
|
605
605
|
*/
|
|
606
606
|
revealNode(): void {
|
|
607
607
|
if (this.deferredNode) {
|
|
608
|
-
this.deferredNode.resolvePromise().then(node => Common.Revealer.reveal(node));
|
|
608
|
+
void this.deferredNode.resolvePromise().then(node => Common.Revealer.reveal(node));
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
}
|
|
@@ -32,14 +32,14 @@ export class AccessibilitySidebarView extends UI.ThrottledWidget.ThrottledWidget
|
|
|
32
32
|
this.skipNextPullNode = false;
|
|
33
33
|
this.sidebarPaneStack = UI.ViewManager.ViewManager.instance().createStackLocation();
|
|
34
34
|
this.breadcrumbsSubPane = new AXBreadcrumbsPane(this);
|
|
35
|
-
this.sidebarPaneStack.showView(this.breadcrumbsSubPane);
|
|
35
|
+
void this.sidebarPaneStack.showView(this.breadcrumbsSubPane);
|
|
36
36
|
this.ariaSubPane = new ARIAAttributesPane();
|
|
37
|
-
this.sidebarPaneStack.showView(this.ariaSubPane);
|
|
37
|
+
void this.sidebarPaneStack.showView(this.ariaSubPane);
|
|
38
38
|
this.axNodeSubPane = new AXNodeSubPane();
|
|
39
|
-
this.sidebarPaneStack.showView(this.axNodeSubPane);
|
|
39
|
+
void this.sidebarPaneStack.showView(this.axNodeSubPane);
|
|
40
40
|
if (this.sourceOrderViewerExperimentEnabled) {
|
|
41
41
|
this.sourceOrderSubPane = new SourceOrderPane();
|
|
42
|
-
this.sidebarPaneStack.showView(this.sourceOrderSubPane);
|
|
42
|
+
void this.sidebarPaneStack.showView(this.sourceOrderSubPane);
|
|
43
43
|
}
|
|
44
44
|
this.sidebarPaneStack.widget().show(this.element);
|
|
45
45
|
UI.Context.Context.instance().addFlavorChangeListener(SDK.DOMModel.DOMNode, this.pullNode, this);
|
|
@@ -75,7 +75,7 @@ export class AccessibilitySidebarView extends UI.ThrottledWidget.ThrottledWidget
|
|
|
75
75
|
this.axNodeInternal = axNode;
|
|
76
76
|
|
|
77
77
|
if (axNode.isDOMNode()) {
|
|
78
|
-
this.sidebarPaneStack.showView(this.ariaSubPane, this.axNodeSubPane);
|
|
78
|
+
void this.sidebarPaneStack.showView(this.ariaSubPane, this.axNodeSubPane);
|
|
79
79
|
} else {
|
|
80
80
|
this.sidebarPaneStack.removeView(this.ariaSubPane);
|
|
81
81
|
}
|
|
@@ -96,7 +96,7 @@ export class AccessibilitySidebarView extends UI.ThrottledWidget.ThrottledWidget
|
|
|
96
96
|
this.breadcrumbsSubPane.setNode(node);
|
|
97
97
|
}
|
|
98
98
|
if (this.sourceOrderViewerExperimentEnabled && this.sourceOrderSubPane) {
|
|
99
|
-
this.sourceOrderSubPane.setNodeAsync(node);
|
|
99
|
+
void this.sourceOrderSubPane.setNodeAsync(node);
|
|
100
100
|
}
|
|
101
101
|
if (!node) {
|
|
102
102
|
return;
|
|
@@ -116,7 +116,7 @@ export class AccessibilitySidebarView extends UI.ThrottledWidget.ThrottledWidget
|
|
|
116
116
|
super.wasShown();
|
|
117
117
|
|
|
118
118
|
// Pull down the latest date for this node.
|
|
119
|
-
this.doUpdate();
|
|
119
|
+
void this.doUpdate();
|
|
120
120
|
|
|
121
121
|
SDK.TargetManager.TargetManager.instance().addModelListener(
|
|
122
122
|
SDK.DOMModel.DOMModel, SDK.DOMModel.Events.AttrModified, this.onAttrChange, this);
|
|
@@ -132,11 +132,11 @@ export class AnimationModel extends SDK.SDKModel.SDKModel<EventTypes> {
|
|
|
132
132
|
|
|
133
133
|
setPlaybackRate(playbackRate: number): void {
|
|
134
134
|
this.playbackRate = playbackRate;
|
|
135
|
-
this.agent.invoke_setPlaybackRate({playbackRate});
|
|
135
|
+
void this.agent.invoke_setPlaybackRate({playbackRate});
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
releaseAnimations(animations: string[]): void {
|
|
139
|
-
this.agent.invoke_releaseAnimations({animations});
|
|
139
|
+
void this.agent.invoke_releaseAnimations({animations});
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
async suspendModel(): Promise<void> {
|
|
@@ -257,7 +257,7 @@ export class AnimationImpl {
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
setTiming(duration: number, delay: number): void {
|
|
260
|
-
this.#sourceInternal.node().then(node => {
|
|
260
|
+
void this.#sourceInternal.node().then(node => {
|
|
261
261
|
if (!node) {
|
|
262
262
|
throw new Error('Unable to find node');
|
|
263
263
|
}
|
|
@@ -265,7 +265,7 @@ export class AnimationImpl {
|
|
|
265
265
|
});
|
|
266
266
|
this.#sourceInternal.durationInternal = duration;
|
|
267
267
|
this.#sourceInternal.delayInternal = delay;
|
|
268
|
-
this.#animationModel.agent.invoke_setTiming({animationId: this.id(), duration, delay});
|
|
268
|
+
void this.#animationModel.agent.invoke_setTiming({animationId: this.id(), duration, delay});
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
private updateNodeStyle(duration: number, delay: number, node: SDK.DOMModel.DOMNode): void {
|
|
@@ -476,7 +476,7 @@ export class AnimationGroup {
|
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
seekTo(currentTime: number): void {
|
|
479
|
-
this.#animationModel.agent.invoke_seekAnimations({animations: this.animationIds(), currentTime});
|
|
479
|
+
void this.#animationModel.agent.invoke_seekAnimations({animations: this.animationIds(), currentTime});
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
paused(): boolean {
|
|
@@ -488,7 +488,7 @@ export class AnimationGroup {
|
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
490
|
this.#pausedInternal = paused;
|
|
491
|
-
this.#animationModel.agent.invoke_setPaused({animations: this.animationIds(), paused});
|
|
491
|
+
void this.#animationModel.agent.invoke_setPaused({animations: this.animationIds(), paused});
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
currentTimePromise(): Promise<number> {
|
|
@@ -196,7 +196,7 @@ export class AnimationTimeline extends UI.Widget.VBox implements SDK.TargetManag
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
private addEventListeners(animationModel: AnimationModel): void {
|
|
199
|
-
animationModel.ensureEnabled();
|
|
199
|
+
void animationModel.ensureEnabled();
|
|
200
200
|
animationModel.addEventListener(Events.AnimationGroupStarted, this.animationGroupStarted, this);
|
|
201
201
|
animationModel.addEventListener(Events.ModelReset, this.reset, this);
|
|
202
202
|
}
|
|
@@ -770,7 +770,7 @@ export class AnimationTimeline extends UI.Widget.VBox implements SDK.TargetManag
|
|
|
770
770
|
if (!this.#selectedGroup) {
|
|
771
771
|
return;
|
|
772
772
|
}
|
|
773
|
-
this.#selectedGroup.currentTimePromise()
|
|
773
|
+
void this.#selectedGroup.currentTimePromise()
|
|
774
774
|
.then(this.animateTime.bind(this))
|
|
775
775
|
.then(this.updateControlButton.bind(this));
|
|
776
776
|
}
|
|
@@ -897,7 +897,7 @@ export class NodeUI {
|
|
|
897
897
|
}
|
|
898
898
|
this.#node = node;
|
|
899
899
|
this.nodeChanged();
|
|
900
|
-
Common.Linkifier.Linkifier.linkify(node).then(link => this.#description.appendChild(link));
|
|
900
|
+
void Common.Linkifier.Linkifier.linkify(node).then(link => this.#description.appendChild(link));
|
|
901
901
|
if (!node.ownerDocument) {
|
|
902
902
|
this.nodeRemoved();
|
|
903
903
|
}
|
|
@@ -385,7 +385,7 @@ export class AnimationUI {
|
|
|
385
385
|
this.#downMouseX = mouseEvent.clientX;
|
|
386
386
|
event.consume(true);
|
|
387
387
|
if (this.#node) {
|
|
388
|
-
Common.Revealer.reveal(this.#node);
|
|
388
|
+
void Common.Revealer.reveal(this.#node);
|
|
389
389
|
}
|
|
390
390
|
return true;
|
|
391
391
|
}
|
|
@@ -462,10 +462,10 @@ export class AnimationUI {
|
|
|
462
462
|
}
|
|
463
463
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
464
464
|
contextMenu.appendApplicableItems(remoteObject);
|
|
465
|
-
contextMenu.show();
|
|
465
|
+
void contextMenu.show();
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
this.#animationInternal.remoteObjectPromise().then(showContextMenu);
|
|
468
|
+
void this.#animationInternal.remoteObjectPromise().then(showContextMenu);
|
|
469
469
|
event.consume(true);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
@@ -477,18 +477,18 @@ export class AppManifestView extends UI.Widget.VBox implements SDK.TargetManager
|
|
|
477
477
|
return;
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
this.updateManifest(true);
|
|
480
|
+
void this.updateManifest(true);
|
|
481
481
|
|
|
482
482
|
this.registeredListeners = [
|
|
483
483
|
this.resourceTreeModel.addEventListener(
|
|
484
484
|
SDK.ResourceTreeModel.Events.DOMContentLoaded,
|
|
485
485
|
() => {
|
|
486
|
-
this.updateManifest(true);
|
|
486
|
+
void this.updateManifest(true);
|
|
487
487
|
}),
|
|
488
488
|
this.serviceWorkerManager.addEventListener(
|
|
489
489
|
SDK.ServiceWorkerManager.Events.RegistrationUpdated,
|
|
490
490
|
() => {
|
|
491
|
-
this.updateManifest(false);
|
|
491
|
+
void this.updateManifest(false);
|
|
492
492
|
}),
|
|
493
493
|
];
|
|
494
494
|
}
|
|
@@ -516,7 +516,7 @@ export class AppManifestView extends UI.Widget.VBox implements SDK.TargetManager
|
|
|
516
516
|
this.resourceTreeModel.getAppId(),
|
|
517
517
|
]);
|
|
518
518
|
|
|
519
|
-
this.throttler.schedule(
|
|
519
|
+
void this.throttler.schedule(
|
|
520
520
|
() => this.renderManifest(url, data, errors, installabilityErrors, manifestIcons, appId), immediately);
|
|
521
521
|
}
|
|
522
522
|
|
|
@@ -69,7 +69,7 @@ export class ServiceWorkerCacheTreeElement extends ExpandableApplicationPanelTre
|
|
|
69
69
|
private handleContextMenuEvent(event: MouseEvent): void {
|
|
70
70
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
71
71
|
contextMenu.defaultSection().appendItem(i18nString(UIStrings.refreshCaches), this.refreshCaches.bind(this));
|
|
72
|
-
contextMenu.show();
|
|
72
|
+
void contextMenu.show();
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
private refreshCaches(): void {
|
|
@@ -143,11 +143,11 @@ export class SWCacheTreeElement extends ApplicationPanelTreeElement {
|
|
|
143
143
|
private handleContextMenuEvent(event: MouseEvent): void {
|
|
144
144
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
145
145
|
contextMenu.defaultSection().appendItem(i18nString(UIStrings.delete), this.clearCache.bind(this));
|
|
146
|
-
contextMenu.show();
|
|
146
|
+
void contextMenu.show();
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
private clearCache(): void {
|
|
150
|
-
this.model.deleteCache(this.cache);
|
|
150
|
+
void this.model.deleteCache(this.cache);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
update(cache: SDK.ServiceWorkerCacheModel.Cache): void {
|