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
|
@@ -63,7 +63,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
modelAdded(debuggerModel: SDK.DebuggerModel.DebuggerModel): void {
|
|
66
|
-
this.setIgnoreListPatterns(debuggerModel);
|
|
66
|
+
void this.setIgnoreListPatterns(debuggerModel);
|
|
67
67
|
const sourceMapManager = debuggerModel.sourceMapManager();
|
|
68
68
|
sourceMapManager.addEventListener(SDK.SourceMapManager.Events.SourceMapAttached, this.sourceMapAttached, this);
|
|
69
69
|
sourceMapManager.addEventListener(SDK.SourceMapManager.Events.SourceMapDetached, this.sourceMapDetached, this);
|
|
@@ -125,14 +125,14 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
|
|
|
125
125
|
void {
|
|
126
126
|
const script = event.data.client;
|
|
127
127
|
const sourceMap = event.data.sourceMap;
|
|
128
|
-
this.updateScriptRanges(script, sourceMap);
|
|
128
|
+
void this.updateScriptRanges(script, sourceMap);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
private sourceMapDetached(
|
|
132
132
|
event: Common.EventTarget.EventTargetEvent<{client: SDK.Script.Script, sourceMap: SDK.SourceMap.SourceMap}>):
|
|
133
133
|
void {
|
|
134
134
|
const script = event.data.client;
|
|
135
|
-
this.updateScriptRanges(script, null);
|
|
135
|
+
void this.updateScriptRanges(script, null);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
private async updateScriptRanges(script: SDK.Script.Script, sourceMap: SDK.SourceMap.SourceMap|null): Promise<void> {
|
|
@@ -172,7 +172,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
|
|
|
172
172
|
if (!isEqual(oldRanges, newRanges) && await script.setBlackboxedRanges(newRanges)) {
|
|
173
173
|
scriptToRange.set(script, newRanges);
|
|
174
174
|
}
|
|
175
|
-
this.#debuggerWorkspaceBinding.updateLocations(script);
|
|
175
|
+
void this.#debuggerWorkspaceBinding.updateLocations(script);
|
|
176
176
|
|
|
177
177
|
function isEqual(rangesA: SourceRange[], rangesB: SourceRange[]): boolean {
|
|
178
178
|
if (rangesA.length !== rangesB.length) {
|
|
@@ -8,6 +8,7 @@ export interface LiveLocation {
|
|
|
8
8
|
update(): Promise<void>;
|
|
9
9
|
uiLocation(): Promise<Workspace.UISourceCode.UILocation|null>;
|
|
10
10
|
dispose(): void;
|
|
11
|
+
isDisposed(): boolean;
|
|
11
12
|
isIgnoreListed(): Promise<boolean>;
|
|
12
13
|
}
|
|
13
14
|
|
|
@@ -49,6 +50,10 @@ export class LiveLocationWithPool implements LiveLocation {
|
|
|
49
50
|
this.#updateDelegate = null;
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
isDisposed(): boolean {
|
|
54
|
+
return !this.#locationPool.has(this);
|
|
55
|
+
}
|
|
56
|
+
|
|
52
57
|
async isIgnoreListed(): Promise<boolean> {
|
|
53
58
|
throw 'Not implemented';
|
|
54
59
|
}
|
|
@@ -69,6 +74,10 @@ export class LiveLocationPool {
|
|
|
69
74
|
this.#locations.delete(location);
|
|
70
75
|
}
|
|
71
76
|
|
|
77
|
+
has(location: LiveLocation): boolean {
|
|
78
|
+
return this.#locations.has(location);
|
|
79
|
+
}
|
|
80
|
+
|
|
72
81
|
disposeAll(): void {
|
|
73
82
|
for (const location of this.#locations) {
|
|
74
83
|
location.dispose();
|
|
@@ -199,7 +199,8 @@ export class PresentationConsoleMessage extends Workspace.UISourceCode.Message {
|
|
|
199
199
|
const level = message.level === Protocol.Log.LogEntryLevel.Error ? Workspace.UISourceCode.Message.Level.Error :
|
|
200
200
|
Workspace.UISourceCode.Message.Level.Warning;
|
|
201
201
|
super(level, message.messageText);
|
|
202
|
-
DebuggerWorkspaceBinding.instance().createLiveLocation(
|
|
202
|
+
void DebuggerWorkspaceBinding.instance().createLiveLocation(
|
|
203
|
+
rawLocation, this.updateLocation.bind(this), locationPool);
|
|
203
204
|
}
|
|
204
205
|
|
|
205
206
|
private async updateLocation(liveLocation: LiveLocation): Promise<void> {
|
|
@@ -83,7 +83,7 @@ export class ResourceScriptMapping implements DebuggerSourceMapping {
|
|
|
83
83
|
this.debuggerModel.addEventListener(
|
|
84
84
|
SDK.DebuggerModel.Events.ParsedScriptSource,
|
|
85
85
|
event => {
|
|
86
|
-
this.parsedScriptSource(event);
|
|
86
|
+
void this.parsedScriptSource(event);
|
|
87
87
|
},
|
|
88
88
|
this),
|
|
89
89
|
this.debuggerModel.addEventListener(SDK.DebuggerModel.Events.GlobalObjectCleared, this.globalObjectCleared, this),
|
|
@@ -219,21 +219,21 @@ export class ResourceScriptMapping implements DebuggerSourceMapping {
|
|
|
219
219
|
const executionContext = event.data;
|
|
220
220
|
const scripts = this.debuggerModel.scriptsForExecutionContext(executionContext);
|
|
221
221
|
for (const script of scripts) {
|
|
222
|
-
this.removeScript(script);
|
|
222
|
+
void this.removeScript(script);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
private globalObjectCleared(): void {
|
|
227
227
|
const scripts = Array.from(this.#acceptedScripts);
|
|
228
228
|
for (const script of scripts) {
|
|
229
|
-
this.removeScript(script);
|
|
229
|
+
void this.removeScript(script);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
resetForTest(): void {
|
|
234
234
|
const scripts = Array.from(this.#acceptedScripts);
|
|
235
235
|
for (const script of scripts) {
|
|
236
|
-
this.removeScript(script);
|
|
236
|
+
void this.removeScript(script);
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
@@ -241,7 +241,7 @@ export class ResourceScriptMapping implements DebuggerSourceMapping {
|
|
|
241
241
|
Common.EventTarget.removeEventListeners(this.#eventListeners);
|
|
242
242
|
const scripts = Array.from(this.#acceptedScripts);
|
|
243
243
|
for (const script of scripts) {
|
|
244
|
-
this.removeScript(script);
|
|
244
|
+
void this.removeScript(script);
|
|
245
245
|
}
|
|
246
246
|
for (const project of this.#projects.values()) {
|
|
247
247
|
project.removeProject();
|
|
@@ -305,7 +305,7 @@ export class ResourceScriptFile extends Common.ObjectWrapper.ObjectWrapper<Resou
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
private workingCopyChanged(): void {
|
|
308
|
-
this.update();
|
|
308
|
+
void this.update();
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
private workingCopyCommitted(): void {
|
|
@@ -321,7 +321,7 @@ export class ResourceScriptFile extends Common.ObjectWrapper.ObjectWrapper<Resou
|
|
|
321
321
|
.map(breakpointLocation => breakpointLocation.breakpoint);
|
|
322
322
|
const source = this.#uiSourceCodeInternal.workingCopy();
|
|
323
323
|
debuggerModel.setScriptSource(this.scriptInternal.scriptId, source, (error, exceptionDetails) => {
|
|
324
|
-
this.scriptSourceWasSet(source, breakpoints, error, exceptionDetails);
|
|
324
|
+
void this.scriptSourceWasSet(source, breakpoints, error, exceptionDetails);
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
|
|
@@ -395,9 +395,9 @@ export class ResourceScriptFile extends Common.ObjectWrapper.ObjectWrapper<Resou
|
|
|
395
395
|
this.mappingCheckedForTest();
|
|
396
396
|
return;
|
|
397
397
|
}
|
|
398
|
-
this.scriptInternal.requestContent().then(deferredContent => {
|
|
398
|
+
void this.scriptInternal.requestContent().then(deferredContent => {
|
|
399
399
|
this.#scriptSource = deferredContent.content;
|
|
400
|
-
this.update().then(() => this.mappingCheckedForTest());
|
|
400
|
+
void this.update().then(() => this.mappingCheckedForTest());
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
|
|
@@ -226,7 +226,7 @@ export class StyleFile implements TextUtils.ContentProvider.ContentProvider {
|
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
228
|
const mirrorContentBound = this.mirrorContent.bind(this, header, true /* majorChange */);
|
|
229
|
-
this.#throttler.schedule(mirrorContentBound, false /* asSoonAsPossible */);
|
|
229
|
+
void this.#throttler.schedule(mirrorContentBound, false /* asSoonAsPossible */);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
private workingCopyCommitted(): void {
|
|
@@ -234,7 +234,7 @@ export class StyleFile implements TextUtils.ContentProvider.ContentProvider {
|
|
|
234
234
|
return;
|
|
235
235
|
}
|
|
236
236
|
const mirrorContentBound = this.mirrorContent.bind(this, this.uiSourceCode, true /* majorChange */);
|
|
237
|
-
this.#throttler.schedule(mirrorContentBound, true /* asSoonAsPossible */);
|
|
237
|
+
void this.#throttler.schedule(mirrorContentBound, true /* asSoonAsPossible */);
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
private workingCopyChanged(): void {
|
|
@@ -242,7 +242,7 @@ export class StyleFile implements TextUtils.ContentProvider.ContentProvider {
|
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
244
|
const mirrorContentBound = this.mirrorContent.bind(this, this.uiSourceCode, false /* majorChange */);
|
|
245
|
-
this.#throttler.schedule(mirrorContentBound, false /* asSoonAsPossible */);
|
|
245
|
+
void this.#throttler.schedule(mirrorContentBound, false /* asSoonAsPossible */);
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
private async mirrorContent(fromProvider: TextUtils.ContentProvider.ContentProvider, majorChange: boolean):
|
|
@@ -83,7 +83,7 @@ export class TempFile {
|
|
|
83
83
|
outputStream: Common.StringOutputStream.OutputStream,
|
|
84
84
|
progress?: ((arg0: ChunkedReader) => void)): Promise<DOMError|null> {
|
|
85
85
|
if (!this.#lastBlob) {
|
|
86
|
-
outputStream.close();
|
|
86
|
+
void outputStream.close();
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
89
89
|
const reader = new ChunkedFileReader((this.#lastBlob as File), 10 * 1000 * 1000, progress);
|
|
@@ -422,7 +422,7 @@ export class DeviceModeModel extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
422
422
|
resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.FrameNavigated, this.onFrameChange, this);
|
|
423
423
|
}
|
|
424
424
|
} else {
|
|
425
|
-
emulationModel.emulateTouch(this.#touchEnabled, this.#touchMobile);
|
|
425
|
+
void emulationModel.emulateTouch(this.#touchEnabled, this.#touchMobile);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
|
|
@@ -663,7 +663,7 @@ export class DeviceModeModel extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
if (resetPageScaleFactor) {
|
|
666
|
-
this.#emulationModel.resetPageScaleFactor();
|
|
666
|
+
void this.#emulationModel.resetPageScaleFactor();
|
|
667
667
|
}
|
|
668
668
|
if (pageWidth || pageHeight || mobile || deviceScaleFactor || scale !== 1 || screenOrientation ||
|
|
669
669
|
forceMetricsOverride) {
|
|
@@ -688,9 +688,9 @@ export class DeviceModeModel extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
688
688
|
if (screenOrientation) {
|
|
689
689
|
metrics.screenOrientation = {type: screenOrientation, angle: screenOrientationAngle};
|
|
690
690
|
}
|
|
691
|
-
this.#emulationModel.emulateDevice(metrics);
|
|
691
|
+
void this.#emulationModel.emulateDevice(metrics);
|
|
692
692
|
} else {
|
|
693
|
-
this.#emulationModel.emulateDevice(null);
|
|
693
|
+
void this.#emulationModel.emulateDevice(null);
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
|
|
@@ -767,7 +767,7 @@ export class DeviceModeModel extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
767
767
|
this.#touchEnabled = touchEnabled;
|
|
768
768
|
this.#touchMobile = mobile;
|
|
769
769
|
for (const emulationModel of SDK.TargetManager.TargetManager.instance().models(SDK.EmulationModel.EmulationModel)) {
|
|
770
|
-
emulationModel.emulateTouch(touchEnabled, mobile);
|
|
770
|
+
void emulationModel.emulateTouch(touchEnabled, mobile);
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
|
|
@@ -563,7 +563,7 @@ export class EmulatedDevicesList extends Common.ObjectWrapper.ObjectWrapper<Even
|
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
revealCustomSetting(): void {
|
|
566
|
-
Common.Revealer.reveal(this.#customSetting);
|
|
566
|
+
void Common.Revealer.reveal(this.#customSetting);
|
|
567
567
|
}
|
|
568
568
|
|
|
569
569
|
addCustomDevice(device: EmulatedDevice): void {
|
|
@@ -211,7 +211,7 @@ export class ExtensionSidebarPane extends UI.View.SimpleView {
|
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
213
|
objectPropertiesView.element.removeChildren();
|
|
214
|
-
UI.UIUtils.Renderer.render(object, {title, editable: false}).then(result => {
|
|
214
|
+
void UI.UIUtils.Renderer.render(object, {title, editable: false}).then(result => {
|
|
215
215
|
if (!result) {
|
|
216
216
|
callback();
|
|
217
217
|
return;
|
|
@@ -371,7 +371,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
371
371
|
if (panelView && panelView instanceof ExtensionServerPanelView) {
|
|
372
372
|
panelViewId = panelView.viewId();
|
|
373
373
|
}
|
|
374
|
-
UI.InspectorView.InspectorView.instance().showPanel(panelViewId);
|
|
374
|
+
void UI.InspectorView.InspectorView.instance().showPanel(panelViewId);
|
|
375
375
|
return undefined;
|
|
376
376
|
}
|
|
377
377
|
|
|
@@ -388,7 +388,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
388
388
|
message.disabled);
|
|
389
389
|
this.clientObjects.set(message.id, button);
|
|
390
390
|
|
|
391
|
-
panelView.widget().then(appendButton);
|
|
391
|
+
void panelView.widget().then(appendButton);
|
|
392
392
|
|
|
393
393
|
function appendButton(panel: UI.Widget.Widget): void {
|
|
394
394
|
(panel as ExtensionPanel).addToolbarItem(button.toolbarButton());
|
|
@@ -493,19 +493,19 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
493
493
|
}
|
|
494
494
|
const uiSourceCode = Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(message.url);
|
|
495
495
|
if (uiSourceCode) {
|
|
496
|
-
Common.Revealer.reveal(uiSourceCode.uiLocation(message.lineNumber, message.columnNumber));
|
|
496
|
+
void Common.Revealer.reveal(uiSourceCode.uiLocation(message.lineNumber, message.columnNumber));
|
|
497
497
|
return this.status.OK();
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
const resource = Bindings.ResourceUtils.resourceForURL(message.url);
|
|
501
501
|
if (resource) {
|
|
502
|
-
Common.Revealer.reveal(resource);
|
|
502
|
+
void Common.Revealer.reveal(resource);
|
|
503
503
|
return this.status.OK();
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
const request = Logs.NetworkLog.NetworkLog.instance().requestForURL(message.url);
|
|
507
507
|
if (request) {
|
|
508
|
-
Common.Revealer.reveal(request);
|
|
508
|
+
void Common.Revealer.reveal(request);
|
|
509
509
|
return this.status.OK();
|
|
510
510
|
}
|
|
511
511
|
|
|
@@ -638,7 +638,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
638
638
|
if (!request) {
|
|
639
639
|
return this.status.E_NOTFOUND(message.id);
|
|
640
640
|
}
|
|
641
|
-
this.getResourceContent(request, message, port);
|
|
641
|
+
void this.getResourceContent(request, message, port);
|
|
642
642
|
return undefined;
|
|
643
643
|
}
|
|
644
644
|
|
|
@@ -652,7 +652,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
652
652
|
if (!contentProvider) {
|
|
653
653
|
return this.status.E_NOTFOUND(url);
|
|
654
654
|
}
|
|
655
|
-
this.getResourceContent(contentProvider, message, port);
|
|
655
|
+
void this.getResourceContent(contentProvider, message, port);
|
|
656
656
|
return undefined;
|
|
657
657
|
}
|
|
658
658
|
|
|
@@ -952,28 +952,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
952
952
|
}
|
|
953
953
|
|
|
954
954
|
private expandResourcePath(extensionPath: string, resourcePath: string): string {
|
|
955
|
-
return extensionPath +
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
private normalizePath(path: string): string {
|
|
959
|
-
const source = path.split('/');
|
|
960
|
-
const result = [];
|
|
961
|
-
|
|
962
|
-
for (let i = 0; i < source.length; ++i) {
|
|
963
|
-
if (source[i] === '.') {
|
|
964
|
-
continue;
|
|
965
|
-
}
|
|
966
|
-
// Ignore empty path components resulting from //, as well as a leading and traling slashes.
|
|
967
|
-
if (source[i] === '') {
|
|
968
|
-
continue;
|
|
969
|
-
}
|
|
970
|
-
if (source[i] === '..') {
|
|
971
|
-
result.pop();
|
|
972
|
-
} else {
|
|
973
|
-
result.push(source[i]);
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
return '/' + result.join('/');
|
|
955
|
+
return extensionPath + '/' + Common.ParsedURL.normalizePath(resourcePath);
|
|
977
956
|
}
|
|
978
957
|
|
|
979
958
|
evaluate(
|
|
@@ -1053,7 +1032,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
1053
1032
|
return this.status.E_FAILED('Permission denied');
|
|
1054
1033
|
}
|
|
1055
1034
|
|
|
1056
|
-
context
|
|
1035
|
+
void context
|
|
1057
1036
|
.evaluate(
|
|
1058
1037
|
{
|
|
1059
1038
|
expression: expression,
|
|
@@ -119,9 +119,9 @@ export class FormatterWorkerPool {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
format(mimeType: string, content: string, indentString: string): Promise<FormatResult> {
|
|
122
|
+
format(mimeType: string, content: string, indentString: string): Promise<FormatterActions.FormatResult> {
|
|
123
123
|
const parameters = {mimeType: mimeType, content: content, indentString: indentString};
|
|
124
|
-
return this.runTask(FormatterActions.FormatterActions.FORMAT, parameters) as Promise<FormatResult>;
|
|
124
|
+
return this.runTask(FormatterActions.FormatterActions.FORMAT, parameters) as Promise<FormatterActions.FormatResult>;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
javaScriptIdentifiers(content: string): Promise<{
|
|
@@ -195,11 +195,6 @@ class Task {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
export interface FormatResult {
|
|
199
|
-
content: string;
|
|
200
|
-
mapping: FormatMapping;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
198
|
interface CSSProperty {
|
|
204
199
|
name: string;
|
|
205
200
|
nameRange: TextRange;
|
|
@@ -220,11 +215,6 @@ export interface OutlineItem {
|
|
|
220
215
|
subtitle?: string;
|
|
221
216
|
}
|
|
222
217
|
|
|
223
|
-
export interface FormatMapping {
|
|
224
|
-
original: number[];
|
|
225
|
-
formatted: number[];
|
|
226
|
-
}
|
|
227
|
-
|
|
228
218
|
export interface CSSStyleRule {
|
|
229
219
|
selectorText: string;
|
|
230
220
|
styleRange: TextRange;
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
|
|
31
31
|
import * as Common from '../../core/common/common.js';
|
|
32
32
|
import * as Platform from '../../core/platform/platform.js';
|
|
33
|
+
import type * as FormatterActions from '../../entrypoints/formatter_worker/FormatterActions.js'; // eslint-disable-line rulesdir/es_modules_import
|
|
33
34
|
|
|
34
|
-
import type {FormatMapping} from './FormatterWorkerPool.js';
|
|
35
35
|
import {formatterWorkerPool} from './FormatterWorkerPool.js';
|
|
36
36
|
|
|
37
37
|
function locationToPosition(lineEndings: number[], lineNumber: number, columnNumber: number): number {
|
|
@@ -102,9 +102,9 @@ class IdentityFormatterSourceMapping implements FormatterSourceMapping {
|
|
|
102
102
|
class FormatterSourceMappingImpl implements FormatterSourceMapping {
|
|
103
103
|
private readonly originalLineEndings: number[];
|
|
104
104
|
private readonly formattedLineEndings: number[];
|
|
105
|
-
private readonly mapping: FormatMapping;
|
|
105
|
+
private readonly mapping: FormatterActions.FormatMapping;
|
|
106
106
|
|
|
107
|
-
constructor(originalLineEndings: number[], formattedLineEndings: number[], mapping: FormatMapping) {
|
|
107
|
+
constructor(originalLineEndings: number[], formattedLineEndings: number[], mapping: FormatterActions.FormatMapping) {
|
|
108
108
|
this.originalLineEndings = originalLineEndings;
|
|
109
109
|
this.formattedLineEndings = formattedLineEndings;
|
|
110
110
|
this.mapping = mapping;
|
|
@@ -58,7 +58,7 @@ export class SourceFormatter {
|
|
|
58
58
|
this.styleMapping = new StyleMapping();
|
|
59
59
|
Workspace.Workspace.WorkspaceImpl.instance().addEventListener(
|
|
60
60
|
Workspace.Workspace.Events.UISourceCodeRemoved, event => {
|
|
61
|
-
this.onUISourceCodeRemoved(event);
|
|
61
|
+
void this.onUISourceCodeRemoved(event);
|
|
62
62
|
}, this);
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -93,7 +93,7 @@ export class SourceFormatter {
|
|
|
93
93
|
private async discardFormatData(formatData: SourceFormatData): Promise<void> {
|
|
94
94
|
objectToFormattingResult.delete(formatData.formattedSourceCode);
|
|
95
95
|
await this.scriptMapping.setSourceMappingEnabled(formatData, false);
|
|
96
|
-
this.styleMapping.setSourceMappingEnabled(formatData, false);
|
|
96
|
+
void this.styleMapping.setSourceMappingEnabled(formatData, false);
|
|
97
97
|
this.project.removeFile(formatData.formattedSourceCode.url());
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -50,7 +50,7 @@ export class ContrastCheckTrigger {
|
|
|
50
50
|
if (!Root.Runtime.experiments.isEnabled('contrastIssues')) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
resourceTreeModel.target().auditsAgent().invoke_checkContrast({});
|
|
53
|
+
void resourceTreeModel.target().auditsAgent().invoke_checkContrast({});
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
#pageLoaded(event: Common.EventTarget
|
|
@@ -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
|
}
|