chrome-devtools-frontend 1.0.954777 → 1.0.955630
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -0
- package/config/owner/COMMON_OWNERS +2 -2
- package/front_end/core/common/Console.ts +1 -1
- package/front_end/core/common/ResolverBase.ts +1 -1
- package/front_end/core/common/Throttler.ts +1 -1
- package/front_end/core/common/Worker.ts +4 -4
- package/front_end/core/host/InspectorFrontendHost.ts +1 -1
- package/front_end/core/host/ResourceLoader.ts +2 -2
- package/front_end/core/i18n/DevToolsLocale.ts +0 -2
- package/front_end/core/i18n/i18nImpl.ts +0 -2
- package/front_end/core/i18n/locales/en-US.json +3 -0
- package/front_end/core/i18n/locales/en-XL.json +3 -0
- package/front_end/core/sdk/AccessibilityModel.ts +1 -1
- package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
- package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
- package/front_end/core/sdk/CSSModel.ts +7 -7
- package/front_end/core/sdk/CSSProperty.ts +1 -1
- package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
- package/front_end/core/sdk/ChildTargetManager.ts +6 -6
- package/front_end/core/sdk/Connections.ts +2 -2
- package/front_end/core/sdk/ConsoleModel.ts +1 -1
- package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
- package/front_end/core/sdk/DOMModel.ts +17 -17
- package/front_end/core/sdk/DebuggerModel.ts +24 -24
- package/front_end/core/sdk/EmulationModel.ts +16 -16
- package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
- package/front_end/core/sdk/IsolateManager.ts +2 -2
- package/front_end/core/sdk/IssuesModel.ts +1 -1
- package/front_end/core/sdk/LogModel.ts +3 -3
- package/front_end/core/sdk/NetworkManager.ts +25 -25
- package/front_end/core/sdk/OverlayModel.ts +23 -23
- package/front_end/core/sdk/PageResourceLoader.ts +1 -1
- package/front_end/core/sdk/PaintProfiler.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +2 -2
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
- package/front_end/core/sdk/RuntimeModel.ts +11 -11
- package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
- package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
- package/front_end/core/sdk/SourceMapManager.ts +1 -1
- package/front_end/core/sdk/TargetManager.ts +2 -2
- package/front_end/core/sdk/TracingManager.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
- package/front_end/entrypoints/js_app/js_app.ts +2 -2
- package/front_end/entrypoints/main/MainImpl.ts +11 -11
- package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
- package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
- package/front_end/generated/ARIAProperties.js +1 -1
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/SupportedCSSProperties.js +15 -15
- package/front_end/generated/protocol.d.ts +12 -0
- package/front_end/models/bindings/BreakpointManager.ts +21 -23
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
- package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
- package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
- package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
- package/front_end/models/bindings/FileUtils.ts +5 -5
- package/front_end/models/bindings/IgnoreListManager.ts +4 -4
- package/front_end/models/bindings/LiveLocation.ts +9 -0
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
- package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
- package/front_end/models/bindings/TempFile.ts +1 -1
- package/front_end/models/emulation/DeviceModeModel.ts +5 -5
- package/front_end/models/emulation/EmulatedDevices.ts +1 -1
- package/front_end/models/extensions/ExtensionPanel.ts +1 -1
- package/front_end/models/extensions/ExtensionServer.ts +8 -8
- package/front_end/models/formatter/SourceFormatter.ts +2 -2
- package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
- package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
- package/front_end/models/persistence/Automapping.ts +3 -3
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
- package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
- package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
- package/front_end/models/persistence/PersistenceActions.ts +3 -3
- package/front_end/models/persistence/PersistenceImpl.ts +2 -2
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
- package/front_end/models/workspace/UISourceCode.ts +2 -2
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
- package/front_end/panels/animation/AnimationModel.ts +6 -6
- package/front_end/panels/animation/AnimationTimeline.ts +3 -3
- package/front_end/panels/animation/AnimationUI.ts +3 -3
- package/front_end/panels/application/AppManifestView.ts +4 -4
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
- package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
- package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
- package/front_end/panels/application/BackgroundServiceView.ts +3 -3
- package/front_end/panels/application/CookieItemsView.ts +5 -5
- package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
- package/front_end/panels/application/DOMStorageModel.ts +4 -4
- package/front_end/panels/application/DatabaseModel.ts +2 -2
- package/front_end/panels/application/DatabaseQueryView.ts +2 -2
- package/front_end/panels/application/DatabaseTableView.ts +1 -1
- package/front_end/panels/application/IndexedDBModel.ts +11 -11
- package/front_end/panels/application/IndexedDBViews.ts +5 -5
- package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
- package/front_end/panels/application/ReportingApiView.ts +1 -1
- package/front_end/panels/application/ResourcesPanel.ts +2 -2
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
- package/front_end/panels/application/ServiceWorkersView.ts +15 -15
- package/front_end/panels/application/StorageView.ts +5 -5
- package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
- package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
- package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
- package/front_end/panels/changes/ChangesView.ts +4 -4
- package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
- package/front_end/panels/console/ConsoleFilter.ts +17 -2
- package/front_end/panels/console/ConsoleFormat.ts +5 -4
- package/front_end/panels/console/ConsolePinPane.ts +4 -4
- package/front_end/panels/console/ConsolePrompt.ts +4 -4
- package/front_end/panels/console/ConsoleView.ts +96 -71
- package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
- package/front_end/panels/console/consoleView.css +36 -0
- package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
- package/front_end/panels/coverage/CoverageListView.ts +3 -3
- package/front_end/panels/coverage/CoverageModel.ts +3 -3
- package/front_end/panels/coverage/CoverageView.ts +6 -6
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
- package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
- package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
- package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
- package/front_end/panels/elements/DOMLinkifier.ts +2 -2
- package/front_end/panels/elements/ElementsPanel.ts +19 -19
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +21 -21
- package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
- package/front_end/panels/elements/InspectElementModeController.ts +3 -3
- package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
- package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
- package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
- package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
- package/front_end/panels/elements/elementsPanel.css +1 -0
- package/front_end/panels/elements/elementsTreeOutline.css +6 -1
- package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
- package/front_end/panels/emulation/DeviceModeView.ts +2 -2
- package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
- package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
- package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
- package/front_end/panels/input/InputModel.ts +2 -2
- package/front_end/panels/input/InputTimeline.ts +6 -6
- package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
- package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
- package/front_end/panels/issues/AffectedElementsView.ts +1 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
- package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
- package/front_end/panels/issues/IssueView.ts +1 -1
- package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
- package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
- package/front_end/panels/layers/LayerTreeModel.ts +4 -4
- package/front_end/panels/layers/LayersPanel.ts +4 -4
- package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
- package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
- package/front_end/panels/media/MediaModel.ts +1 -1
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
- package/front_end/panels/network/BinaryResourceView.ts +1 -1
- package/front_end/panels/network/BlockedURLsPane.ts +5 -5
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
- package/front_end/panels/network/NetworkItemView.ts +2 -2
- package/front_end/panels/network/NetworkLogView.ts +4 -4
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +8 -8
- package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
- package/front_end/panels/network/RequestHeadersView.ts +4 -3
- package/front_end/panels/network/RequestPayloadView.ts +8 -8
- package/front_end/panels/network/RequestPreviewView.ts +1 -1
- package/front_end/panels/network/RequestResponseView.ts +2 -2
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
- package/front_end/panels/profiler/CPUProfileView.ts +4 -4
- package/front_end/panels/profiler/HeapProfileView.ts +6 -6
- package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
- package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
- package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
- package/front_end/panels/profiler/ProfileView.ts +3 -3
- package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
- package/front_end/panels/screencast/InputModel.ts +3 -3
- package/front_end/panels/screencast/ScreencastView.ts +10 -10
- package/front_end/panels/search/SearchResultsPane.ts +1 -1
- package/front_end/panels/search/SearchView.ts +2 -2
- package/front_end/panels/security/SecurityModel.ts +1 -1
- package/front_end/panels/security/SecurityPanel.ts +2 -2
- package/front_end/panels/sensors/SensorsView.ts +3 -2
- package/front_end/panels/settings/SettingsScreen.ts +5 -5
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
- package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
- package/front_end/panels/sources/CoveragePlugin.ts +3 -3
- package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
- package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
- package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
- package/front_end/panels/sources/NavigatorView.ts +6 -6
- package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
- package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
- package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/SearchSourcesView.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +9 -9
- package/front_end/panels/sources/SourcesPanel.ts +27 -24
- package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
- package/front_end/panels/sources/SourcesView.ts +4 -4
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
- package/front_end/panels/timeline/TimelineController.ts +1 -1
- package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
- package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -5
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +4 -7
- package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
- package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
- package/front_end/panels/timeline/TimelineLoader.ts +2 -2
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
- package/front_end/panels/timeline/TimelinePanel.ts +10 -10
- package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
- package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
- package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
- package/front_end/panels/web_audio/WebAudioView.ts +1 -1
- package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
- package/front_end/ui/components/buttons/Button.ts +10 -10
- package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
- package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
- package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
- package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
- package/front_end/ui/components/icon_button/Icon.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
- package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/javascript.ts +2 -2
- package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
- package/front_end/ui/legacy/Context.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +2 -3
- package/front_end/ui/legacy/PopoverHelper.ts +1 -1
- package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
- package/front_end/ui/legacy/TabbedPane.ts +2 -2
- package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
- package/front_end/ui/legacy/Toolbar.ts +3 -3
- package/front_end/ui/legacy/Treeoutline.ts +20 -13
- package/front_end/ui/legacy/ViewManager.ts +9 -9
- package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -2
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
- package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
- package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
- package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -3
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
- package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
- package/front_end/ui/legacy/toolbar.css +1 -0
- package/front_end/ui/legacy/treeoutline.css +4 -0
- package/package.json +1 -1
- package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
|
@@ -2884,6 +2884,10 @@ declare namespace Protocol {
|
|
|
2884
2884
|
ScrollbarCorner = 'scrollbar-corner',
|
|
2885
2885
|
Resizer = 'resizer',
|
|
2886
2886
|
InputListButton = 'input-list-button',
|
|
2887
|
+
Transition = 'transition',
|
|
2888
|
+
TransitionContainer = 'transition-container',
|
|
2889
|
+
TransitionOldContent = 'transition-old-content',
|
|
2890
|
+
TransitionNewContent = 'transition-new-content',
|
|
2887
2891
|
}
|
|
2888
2892
|
|
|
2889
2893
|
/**
|
|
@@ -14068,6 +14072,12 @@ declare namespace Protocol {
|
|
|
14068
14072
|
* Defaults to false.
|
|
14069
14073
|
*/
|
|
14070
14074
|
hasCredBlob?: boolean;
|
|
14075
|
+
/**
|
|
14076
|
+
* If set to true, the authenticator will support the minPinLength extension.
|
|
14077
|
+
* https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension
|
|
14078
|
+
* Defaults to false.
|
|
14079
|
+
*/
|
|
14080
|
+
hasMinPinLength?: boolean;
|
|
14071
14081
|
/**
|
|
14072
14082
|
* If set to true, tests of user presence will succeed immediately.
|
|
14073
14083
|
* Otherwise, they will not be resolved. Defaults to true.
|
|
@@ -14356,6 +14366,8 @@ declare namespace Protocol {
|
|
|
14356
14366
|
location: Location;
|
|
14357
14367
|
/**
|
|
14358
14368
|
* JavaScript script name or url.
|
|
14369
|
+
* Deprecated in favor of using the `location.scriptId` to resolve the URL via a previously
|
|
14370
|
+
* sent `Debugger.scriptParsed` event.
|
|
14359
14371
|
*/
|
|
14360
14372
|
url: string;
|
|
14361
14373
|
/**
|
|
@@ -144,7 +144,7 @@ export class BreakpointManager extends Common.ObjectWrapper.ObjectWrapper<EventT
|
|
|
144
144
|
new Workspace.UISourceCode.UILocation(uiSourceCode, lineNumber, columnNumber);
|
|
145
145
|
const normalizedLocation = await this.debuggerWorkspaceBinding.normalizeUILocation(uiLocation);
|
|
146
146
|
if (normalizedLocation.id() !== uiLocation.id()) {
|
|
147
|
-
Common.Revealer.reveal(normalizedLocation);
|
|
147
|
+
void Common.Revealer.reveal(normalizedLocation);
|
|
148
148
|
uiLocation = normalizedLocation;
|
|
149
149
|
}
|
|
150
150
|
return this.innerSetBreakpoint(
|
|
@@ -479,7 +479,7 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
for (const modelBreakpoint of this.#modelBreakpoints.values()) {
|
|
482
|
-
modelBreakpoint.scheduleUpdateInDebugger();
|
|
482
|
+
void modelBreakpoint.scheduleUpdateInDebugger();
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
|
|
@@ -487,7 +487,7 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
|
|
|
487
487
|
this.isRemoved = true;
|
|
488
488
|
const removeFromStorage = !keepInStorage;
|
|
489
489
|
for (const modelBreakpoint of this.#modelBreakpoints.values()) {
|
|
490
|
-
modelBreakpoint.scheduleUpdateInDebugger();
|
|
490
|
+
void modelBreakpoint.scheduleUpdateInDebugger();
|
|
491
491
|
modelBreakpoint.removeEventListeners();
|
|
492
492
|
}
|
|
493
493
|
|
|
@@ -540,7 +540,7 @@ export class ModelBreakpoint {
|
|
|
540
540
|
readonly #liveLocations: LiveLocationPool;
|
|
541
541
|
readonly #uiLocations: Map<LiveLocation, Workspace.UISourceCode.UILocation>;
|
|
542
542
|
#hasPendingUpdate: boolean;
|
|
543
|
-
#
|
|
543
|
+
#updatePromise: Promise<void>|null;
|
|
544
544
|
#cancelCallback: boolean;
|
|
545
545
|
#currentState: Breakpoint.State|null;
|
|
546
546
|
#breakpointIds: Protocol.Debugger.BreakpointId[];
|
|
@@ -560,12 +560,12 @@ export class ModelBreakpoint {
|
|
|
560
560
|
this.#debuggerModel.addEventListener(
|
|
561
561
|
SDK.DebuggerModel.Events.DebuggerWasEnabled, this.scheduleUpdateInDebugger, this);
|
|
562
562
|
this.#hasPendingUpdate = false;
|
|
563
|
-
this.#
|
|
563
|
+
this.#updatePromise = null;
|
|
564
564
|
this.#cancelCallback = false;
|
|
565
565
|
this.#currentState = null;
|
|
566
566
|
this.#breakpointIds = [];
|
|
567
567
|
if (this.#debuggerModel.debuggerEnabled()) {
|
|
568
|
-
this.scheduleUpdateInDebugger();
|
|
568
|
+
void this.scheduleUpdateInDebugger();
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
|
|
@@ -578,20 +578,18 @@ export class ModelBreakpoint {
|
|
|
578
578
|
this.#liveLocations.disposeAll();
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
scheduleUpdateInDebugger(): void {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
581
|
+
scheduleUpdateInDebugger(): Promise<void> {
|
|
582
|
+
this.#hasPendingUpdate = true;
|
|
583
|
+
if (!this.#updatePromise) {
|
|
584
|
+
this.#updatePromise = (async(): Promise<void> => {
|
|
585
|
+
while (this.#hasPendingUpdate) {
|
|
586
|
+
this.#hasPendingUpdate = false;
|
|
587
|
+
await this.updateInDebugger();
|
|
588
|
+
}
|
|
589
|
+
this.#updatePromise = null;
|
|
590
|
+
})();
|
|
585
591
|
}
|
|
586
|
-
|
|
587
|
-
this.#isUpdating = true;
|
|
588
|
-
this.updateInDebugger().then(() => {
|
|
589
|
-
this.#isUpdating = false;
|
|
590
|
-
if (this.#hasPendingUpdate) {
|
|
591
|
-
this.#hasPendingUpdate = false;
|
|
592
|
-
this.scheduleUpdateInDebugger();
|
|
593
|
-
}
|
|
594
|
-
});
|
|
592
|
+
return this.#updatePromise;
|
|
595
593
|
}
|
|
596
594
|
|
|
597
595
|
private scriptDiverged(): boolean {
|
|
@@ -692,7 +690,7 @@ export class ModelBreakpoint {
|
|
|
692
690
|
// disappearing if the Debugger is actually not enabled
|
|
693
691
|
// yet. This quickfix should be removed as soon as we have a solution
|
|
694
692
|
// to correctly synchronize the front-end with the inspector back-end.
|
|
695
|
-
this.scheduleUpdateInDebugger();
|
|
693
|
+
void this.scheduleUpdateInDebugger();
|
|
696
694
|
return;
|
|
697
695
|
}
|
|
698
696
|
|
|
@@ -721,7 +719,7 @@ export class ModelBreakpoint {
|
|
|
721
719
|
await Promise.all(this.#breakpointIds.map(id => this.#debuggerModel.removeBreakpoint(id)));
|
|
722
720
|
this.didRemoveFromDebugger();
|
|
723
721
|
this.#currentState = null;
|
|
724
|
-
this.scheduleUpdateInDebugger();
|
|
722
|
+
void this.scheduleUpdateInDebugger();
|
|
725
723
|
}
|
|
726
724
|
|
|
727
725
|
private didRemoveFromDebugger(): void {
|
|
@@ -773,10 +771,10 @@ export class ModelBreakpoint {
|
|
|
773
771
|
}
|
|
774
772
|
|
|
775
773
|
cleanUpAfterDebuggerIsGone(): void {
|
|
776
|
-
if (this.#
|
|
774
|
+
if (this.#updatePromise) {
|
|
777
775
|
this.#cancelCallback = true;
|
|
778
776
|
}
|
|
779
|
-
|
|
777
|
+
this.#hasPendingUpdate = false;
|
|
780
778
|
this.resetLocations();
|
|
781
779
|
this.#currentState = null;
|
|
782
780
|
if (this.#breakpointIds.length) {
|
|
@@ -79,7 +79,7 @@ export class CSSWorkspaceBinding implements SDK.TargetManager.SDKModelObserver<S
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
private recordLiveLocationChange(promise: Promise<unknown>): void {
|
|
82
|
-
promise.then(() => {
|
|
82
|
+
void promise.then(() => {
|
|
83
83
|
this.#liveLocationPromises.delete(promise);
|
|
84
84
|
});
|
|
85
85
|
this.#liveLocationPromises.add(promise);
|
|
@@ -169,13 +169,13 @@ export class ModelInfo {
|
|
|
169
169
|
cssModel.addEventListener(
|
|
170
170
|
SDK.CSSModel.Events.StyleSheetAdded,
|
|
171
171
|
event => {
|
|
172
|
-
this.styleSheetAdded(event);
|
|
172
|
+
void this.styleSheetAdded(event);
|
|
173
173
|
},
|
|
174
174
|
this),
|
|
175
175
|
cssModel.addEventListener(
|
|
176
176
|
SDK.CSSModel.Events.StyleSheetRemoved,
|
|
177
177
|
event => {
|
|
178
|
-
this.styleSheetRemoved(event);
|
|
178
|
+
void this.styleSheetRemoved(event);
|
|
179
179
|
},
|
|
180
180
|
this),
|
|
181
181
|
];
|
|
@@ -99,7 +99,7 @@ export class CompilerScriptMapping implements DebuggerSourceMapping {
|
|
|
99
99
|
const uiSourceCode = event.data;
|
|
100
100
|
if (uiSourceCode.contentType().isDocument()) {
|
|
101
101
|
for (const script of this.#debuggerModel.scriptsForSourceURL(uiSourceCode.url())) {
|
|
102
|
-
this.#debuggerWorkspaceBinding.updateLocations(script);
|
|
102
|
+
void this.#debuggerWorkspaceBinding.updateLocations(script);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -199,7 +199,7 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
indexContent(progress: Common.Progress.Progress): void {
|
|
202
|
-
Promise.resolve().then(progress.done.bind(progress));
|
|
202
|
+
void Promise.resolve().then(progress.done.bind(progress));
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
addUISourceCodeWithProvider(
|
|
@@ -1110,13 +1110,13 @@ export class DebuggerLanguagePluginManager implements
|
|
|
1110
1110
|
// update the #project. It's important to check
|
|
1111
1111
|
// for the DebuggerModel again, which may disappear
|
|
1112
1112
|
// in the meantime...
|
|
1113
|
-
rawModuleHandle.addRawModulePromise.then(sourceFileURLs => {
|
|
1113
|
+
void rawModuleHandle.addRawModulePromise.then(sourceFileURLs => {
|
|
1114
1114
|
// The script might have disappeared meanwhile...
|
|
1115
1115
|
if (script.debuggerModel.scriptForId(script.scriptId) === script) {
|
|
1116
1116
|
const modelData = this.#debuggerModelToData.get(script.debuggerModel);
|
|
1117
1117
|
if (modelData) { // The DebuggerModel could have disappeared meanwhile...
|
|
1118
1118
|
modelData.addSourceFiles(script, sourceFileURLs);
|
|
1119
|
-
this.#debuggerWorkspaceBinding.updateLocations(script);
|
|
1119
|
+
void this.#debuggerWorkspaceBinding.updateLocations(script);
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
1122
|
});
|
|
@@ -154,7 +154,7 @@ export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObser
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
private recordLiveLocationChange(promise: Promise<void|Location|StackTraceTopFrameLocation|null>): void {
|
|
157
|
-
promise.then(() => {
|
|
157
|
+
void promise.then(() => {
|
|
158
158
|
this.#liveLocationPromises.delete(promise);
|
|
159
159
|
});
|
|
160
160
|
this.#liveLocationPromises.add(promise);
|
|
@@ -541,7 +541,7 @@ class StackTraceTopFrameLocation extends LiveLocationWithPool {
|
|
|
541
541
|
}
|
|
542
542
|
this.#updateScheduled = true;
|
|
543
543
|
queueMicrotask(() => {
|
|
544
|
-
this.updateLocation();
|
|
544
|
+
void this.updateLocation();
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
|
|
@@ -558,7 +558,7 @@ class StackTraceTopFrameLocation extends LiveLocationWithPool {
|
|
|
558
558
|
break;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
this.update();
|
|
561
|
+
void this.update();
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
|
|
@@ -103,7 +103,7 @@ export class DefaultScriptMapping implements DebuggerSourceMapping {
|
|
|
103
103
|
}
|
|
104
104
|
scriptToUISourceCodeMap.set(script, uiSourceCode);
|
|
105
105
|
this.#project.addUISourceCodeWithProvider(uiSourceCode, script, null, 'text/javascript');
|
|
106
|
-
this.#debuggerWorkspaceBinding.updateLocations(script);
|
|
106
|
+
void this.#debuggerWorkspaceBinding.updateLocations(script);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
private discardedScriptSource(event: Common.EventTarget.EventTargetEvent<SDK.Script.Script>): void {
|
|
@@ -91,7 +91,7 @@ export class ChunkedFileReader implements ChunkedReader {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
this.#output = output;
|
|
94
|
-
this.loadChunk();
|
|
94
|
+
void this.loadChunk();
|
|
95
95
|
|
|
96
96
|
return new Promise(resolve => {
|
|
97
97
|
this.#transferFinished = resolve;
|
|
@@ -145,7 +145,7 @@ export class ChunkedFileReader implements ChunkedReader {
|
|
|
145
145
|
const buffer = (this.#reader.result as ArrayBuffer);
|
|
146
146
|
this.#loadedSizeInternal += buffer.byteLength;
|
|
147
147
|
const endOfFile = this.#loadedSizeInternal === this.#fileSizeInternal;
|
|
148
|
-
this.decodeChunkBuffer(buffer, endOfFile);
|
|
148
|
+
void this.decodeChunkBuffer(buffer, endOfFile);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
private async decodeChunkBuffer(buffer: ArrayBuffer, endOfFile: boolean): Promise<void> {
|
|
@@ -165,7 +165,7 @@ export class ChunkedFileReader implements ChunkedReader {
|
|
|
165
165
|
this.finishRead();
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
|
-
this.loadChunk();
|
|
168
|
+
void this.loadChunk();
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
private finishRead(): void {
|
|
@@ -174,7 +174,7 @@ export class ChunkedFileReader implements ChunkedReader {
|
|
|
174
174
|
}
|
|
175
175
|
this.#file = null;
|
|
176
176
|
this.#reader = null;
|
|
177
|
-
this.#output.close();
|
|
177
|
+
void this.#output.close();
|
|
178
178
|
this.#transferFinished(!this.#errorInternal);
|
|
179
179
|
}
|
|
180
180
|
|
|
@@ -187,7 +187,7 @@ export class ChunkedFileReader implements ChunkedReader {
|
|
|
187
187
|
if (done || !value) {
|
|
188
188
|
return this.finishRead();
|
|
189
189
|
}
|
|
190
|
-
this.decodeChunkBuffer(value.buffer, false);
|
|
190
|
+
void this.decodeChunkBuffer(value.buffer, false);
|
|
191
191
|
}
|
|
192
192
|
if (this.#reader) {
|
|
193
193
|
const chunkStart = this.#loadedSizeInternal;
|
|
@@ -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
|
|
|
@@ -1053,7 +1053,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
1053
1053
|
return this.status.E_FAILED('Permission denied');
|
|
1054
1054
|
}
|
|
1055
1055
|
|
|
1056
|
-
context
|
|
1056
|
+
void context
|
|
1057
1057
|
.evaluate(
|
|
1058
1058
|
{
|
|
1059
1059
|
expression: expression,
|
|
@@ -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
|