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
|
@@ -119,7 +119,7 @@ export class LayersPanel extends UI.Panel.PanelWithSidebar implements SDK.Target
|
|
|
119
119
|
|
|
120
120
|
willHide(): void {
|
|
121
121
|
if (this.model) {
|
|
122
|
-
this.model.disable();
|
|
122
|
+
void this.model.disable();
|
|
123
123
|
}
|
|
124
124
|
super.willHide();
|
|
125
125
|
}
|
|
@@ -145,12 +145,12 @@ export class LayersPanel extends UI.Panel.PanelWithSidebar implements SDK.Target
|
|
|
145
145
|
}
|
|
146
146
|
this.model.removeEventListener(Events.LayerTreeChanged, this.onLayerTreeUpdated, this);
|
|
147
147
|
this.model.removeEventListener(Events.LayerPainted, this.onLayerPainted, this);
|
|
148
|
-
this.model.disable();
|
|
148
|
+
void this.model.disable();
|
|
149
149
|
this.model = null;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
private onLayerTreeUpdated(): void {
|
|
153
|
-
this.updateThrottler.schedule(this.update.bind(this));
|
|
153
|
+
void this.updateThrottler.schedule(this.update.bind(this));
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
private update(): Promise<void> {
|
|
@@ -182,7 +182,7 @@ export class LayersPanel extends UI.Panel.PanelWithSidebar implements SDK.Target
|
|
|
182
182
|
|
|
183
183
|
private onPaintProfileRequested({data: selection}:
|
|
184
184
|
Common.EventTarget.EventTargetEvent<LayerViewer.LayerViewHost.Selection>): void {
|
|
185
|
-
this.layers3DView.snapshotForSelection(selection).then(snapshotWithRect => {
|
|
185
|
+
void this.layers3DView.snapshotForSelection(selection).then(snapshotWithRect => {
|
|
186
186
|
if (!snapshotWithRect) {
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
@@ -324,7 +324,7 @@ export class LighthouseController extends Common.ObjectWrapper.ObjectWrapper<Eve
|
|
|
324
324
|
|
|
325
325
|
this.dispatchEventToListeners(Events.PageAuditabilityChanged, {helpText});
|
|
326
326
|
|
|
327
|
-
this.hasImportantResourcesNotCleared().then(warning => {
|
|
327
|
+
void this.hasImportantResourcesNotCleared().then(warning => {
|
|
328
328
|
this.dispatchEventToListeners(Events.PageWarningsChanged, {warning});
|
|
329
329
|
});
|
|
330
330
|
}
|
|
@@ -100,10 +100,10 @@ export class LighthousePanel extends UI.Panel.Panel {
|
|
|
100
100
|
this.controller.addEventListener(Events.PageWarningsChanged, this.refreshWarningsUI.bind(this));
|
|
101
101
|
this.controller.addEventListener(Events.AuditProgressChanged, this.refreshStatusUI.bind(this));
|
|
102
102
|
this.controller.addEventListener(Events.RequestLighthouseStart, _event => {
|
|
103
|
-
this.startLighthouse();
|
|
103
|
+
void this.startLighthouse();
|
|
104
104
|
});
|
|
105
105
|
this.controller.addEventListener(Events.RequestLighthouseCancel, _event => {
|
|
106
|
-
this.cancelLighthouse();
|
|
106
|
+
void this.cancelLighthouse();
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
this.renderToolbar();
|
|
@@ -268,9 +268,9 @@ export class LighthousePanel extends UI.Panel.Panel {
|
|
|
268
268
|
// Linkifying requires the target be loaded. Do not block the report
|
|
269
269
|
// from rendering, as this is just an embellishment and the main target
|
|
270
270
|
// could take awhile to load.
|
|
271
|
-
this.waitForMainTargetLoad().then(() => {
|
|
272
|
-
LighthouseReportRenderer.linkifyNodeDetails(el);
|
|
273
|
-
LighthouseReportRenderer.linkifySourceLocationDetails(el);
|
|
271
|
+
void this.waitForMainTargetLoad().then(() => {
|
|
272
|
+
void LighthouseReportRenderer.linkifyNodeDetails(el);
|
|
273
|
+
void LighthouseReportRenderer.linkifySourceLocationDetails(el);
|
|
274
274
|
});
|
|
275
275
|
LighthouseReportRenderer.handleDarkMode(el);
|
|
276
276
|
|
|
@@ -80,7 +80,7 @@ export class ProtocolService {
|
|
|
80
80
|
method?: string,
|
|
81
81
|
};
|
|
82
82
|
if (protocolMessage.sessionId || (protocolMessage.method && protocolMessage.method.startsWith('Target'))) {
|
|
83
|
-
this.sendWithoutResponse('dispatchProtocolMessage', {message: JSON.stringify(message)});
|
|
83
|
+
void this.sendWithoutResponse('dispatchProtocolMessage', {message: JSON.stringify(message)});
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -188,7 +188,7 @@ export class LighthouseReportUIFeatures extends LighthouseReport.ReportUIFeature
|
|
|
188
188
|
const ext = blob.type.match('json') ? '.json' : '.html';
|
|
189
189
|
const basename = `${sanitizedDomain}-${timestamp}${ext}`;
|
|
190
190
|
const text = await blob.text();
|
|
191
|
-
Workspace.FileManager.FileManager.instance().save(basename, text, true /* forceSaveAs */);
|
|
191
|
+
void Workspace.FileManager.FileManager.instance().save(basename, text, true /* forceSaveAs */);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
// This implements the interface ReportUIFeatures from lighthouse
|
|
@@ -101,7 +101,7 @@ export class PlayerListView extends UI.Widget.VBox implements TriggerDispatcher
|
|
|
101
101
|
this.mainContainer.markOtherPlayersForDeletion.bind(this.mainContainer, playerID));
|
|
102
102
|
contextMenu.headerSection().appendItem(
|
|
103
103
|
i18nString(UIStrings.savePlayerInfo), this.mainContainer.exportPlayerData.bind(this.mainContainer, playerID));
|
|
104
|
-
contextMenu.show();
|
|
104
|
+
void contextMenu.show();
|
|
105
105
|
return true;
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -103,7 +103,7 @@ export class BinaryResourceView extends UI.Widget.VBox {
|
|
|
103
103
|
|
|
104
104
|
const copyButton = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.copyToClipboard), 'largeicon-copy');
|
|
105
105
|
copyButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
|
|
106
|
-
this.copySelectedViewToClipboard();
|
|
106
|
+
void this.copySelectedViewToClipboard();
|
|
107
107
|
}, this);
|
|
108
108
|
this.toolbar.appendToolbarItem(copyButton);
|
|
109
109
|
|
|
@@ -72,7 +72,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
72
72
|
|
|
73
73
|
this.manager = SDK.NetworkManager.MultitargetNetworkManager.instance();
|
|
74
74
|
this.manager.addEventListener(SDK.NetworkManager.MultitargetNetworkManager.Events.BlockedPatternsChanged, () => {
|
|
75
|
-
this.update();
|
|
75
|
+
void this.update();
|
|
76
76
|
}, this);
|
|
77
77
|
|
|
78
78
|
this.toolbar = new UI.Toolbar.Toolbar('', this.contentElement);
|
|
@@ -101,7 +101,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
101
101
|
|
|
102
102
|
this.updateThrottler = new Common.Throttler.Throttler(200);
|
|
103
103
|
|
|
104
|
-
this.update();
|
|
104
|
+
void this.update();
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
static instance(opts: {
|
|
@@ -161,7 +161,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
161
161
|
|
|
162
162
|
private toggleEnabled(): void {
|
|
163
163
|
this.manager.setBlockingEnabled(!this.manager.blockingEnabled());
|
|
164
|
-
this.update();
|
|
164
|
+
void this.update();
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
removeItemRequested(pattern: SDK.NetworkManager.BlockedPattern, index: number): void {
|
|
@@ -270,7 +270,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
270
270
|
|
|
271
271
|
reset(): void {
|
|
272
272
|
this.blockedCountForUrl.clear();
|
|
273
|
-
this.updateThrottler.schedule(this.update.bind(this));
|
|
273
|
+
void this.updateThrottler.schedule(this.update.bind(this));
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
private onRequestFinished(event: Common.EventTarget.EventTargetEvent<SDK.NetworkRequest.NetworkRequest>): void {
|
|
@@ -278,7 +278,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
278
278
|
if (request.wasBlocked()) {
|
|
279
279
|
const count = this.blockedCountForUrl.get(request.url()) || 0;
|
|
280
280
|
this.blockedCountForUrl.set(request.url(), count + 1);
|
|
281
|
-
this.updateThrottler.schedule(this.update.bind(this));
|
|
281
|
+
void this.updateThrottler.schedule(this.update.bind(this));
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
wasShown(): void {
|
|
@@ -1019,7 +1019,7 @@ export class NetworkRequestNode extends NetworkNode {
|
|
|
1019
1019
|
const previewImage = document.createElement('img');
|
|
1020
1020
|
previewImage.classList.add('image-network-icon-preview');
|
|
1021
1021
|
previewImage.alt = this.requestInternal.resourceType().title();
|
|
1022
|
-
this.requestInternal.populateImageSource((previewImage as HTMLImageElement));
|
|
1022
|
+
void this.requestInternal.populateImageSource((previewImage as HTMLImageElement));
|
|
1023
1023
|
|
|
1024
1024
|
iconElement = document.createElement('div');
|
|
1025
1025
|
iconElement.classList.add('image');
|
|
@@ -151,7 +151,7 @@ export class NetworkItemView extends UI.TabbedPane.TabbedPane {
|
|
|
151
151
|
i18nString(UIStrings.headers));
|
|
152
152
|
|
|
153
153
|
this.payloadView = null;
|
|
154
|
-
this.maybeAppendPayloadPanel();
|
|
154
|
+
void this.maybeAppendPayloadPanel();
|
|
155
155
|
|
|
156
156
|
this.addEventListener(UI.TabbedPane.Events.TabSelected, this.tabSelected, this);
|
|
157
157
|
|
|
@@ -235,7 +235,7 @@ export class NetworkItemView extends UI.TabbedPane.TabbedPane {
|
|
|
235
235
|
|
|
236
236
|
private async requestHeadersChanged(): Promise<void> {
|
|
237
237
|
this.maybeAppendCookiesPanel();
|
|
238
|
-
this.maybeAppendPayloadPanel();
|
|
238
|
+
void this.maybeAppendPayloadPanel();
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
private maybeAppendCookiesPanel(): void {
|
|
@@ -750,7 +750,7 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
750
750
|
}
|
|
751
751
|
const file = items[0].getAsFile();
|
|
752
752
|
if (file) {
|
|
753
|
-
this.onLoadFromFile(file);
|
|
753
|
+
void this.onLoadFromFile(file);
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
|
|
@@ -1585,13 +1585,13 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
1585
1585
|
patterns.push({enabled: true, url: url});
|
|
1586
1586
|
manager.setBlockedPatterns(patterns);
|
|
1587
1587
|
manager.setBlockingEnabled(true);
|
|
1588
|
-
UI.ViewManager.ViewManager.instance().showView('network.blocked-urls');
|
|
1588
|
+
void UI.ViewManager.ViewManager.instance().showView('network.blocked-urls');
|
|
1589
1589
|
}
|
|
1590
1590
|
|
|
1591
1591
|
function removeBlockedURL(url: string): void {
|
|
1592
1592
|
patterns = patterns.filter(pattern => pattern.url !== url);
|
|
1593
1593
|
manager.setBlockedPatterns(patterns);
|
|
1594
|
-
UI.ViewManager.ViewManager.instance().showView('network.blocked-urls');
|
|
1594
|
+
void UI.ViewManager.ViewManager.instance().showView('network.blocked-urls');
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
1597
1597
|
const urlWithoutScheme = request.parsedURL.urlWithoutScheme();
|
|
@@ -1684,7 +1684,7 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
1684
1684
|
this.progressBarContainer.appendChild(progressIndicator.element);
|
|
1685
1685
|
await HAR.Writer.Writer.write(stream, this.harRequests(), progressIndicator);
|
|
1686
1686
|
progressIndicator.done();
|
|
1687
|
-
stream.close();
|
|
1687
|
+
void stream.close();
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
private clearBrowserCache(): void {
|
|
@@ -256,7 +256,7 @@ export class NetworkPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
256
256
|
splitWidget.enableShowModeSaving();
|
|
257
257
|
splitWidget.show(this.element);
|
|
258
258
|
this.sidebarLocation = UI.ViewManager.ViewManager.instance().createTabbedLocation(async () => {
|
|
259
|
-
UI.ViewManager.ViewManager.instance().showView('network');
|
|
259
|
+
void UI.ViewManager.ViewManager.instance().showView('network');
|
|
260
260
|
splitWidget.showBoth();
|
|
261
261
|
}, 'network-sidebar', true);
|
|
262
262
|
const tabbedPane = this.sidebarLocation.tabbedPane();
|
|
@@ -404,7 +404,7 @@ export class NetworkPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
404
404
|
updateSidebarToggle();
|
|
405
405
|
splitWidget.addEventListener(UI.SplitWidget.Events.ShowModeChanged, updateSidebarToggle);
|
|
406
406
|
searchToggle.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, () => {
|
|
407
|
-
this.searchToggleClick();
|
|
407
|
+
void this.searchToggleClick();
|
|
408
408
|
});
|
|
409
409
|
this.panelToolbar.appendToolbarItem(searchToggle);
|
|
410
410
|
this.panelToolbar.appendSeparator();
|
|
@@ -430,7 +430,7 @@ export class NetworkPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
430
430
|
const networkConditionsButton =
|
|
431
431
|
new UI.Toolbar.ToolbarButton(i18nString(UIStrings.moreNetworkConditions), networkConditionsIcon);
|
|
432
432
|
networkConditionsButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, () => {
|
|
433
|
-
UI.ViewManager.ViewManager.instance().showView('network.config');
|
|
433
|
+
void UI.ViewManager.ViewManager.instance().showView('network.config');
|
|
434
434
|
}, this);
|
|
435
435
|
this.panelToolbar.appendToolbarItem(networkConditionsButton);
|
|
436
436
|
|
|
@@ -464,7 +464,7 @@ export class NetworkPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
464
464
|
this.panelToolbar.appendToolbarItem(importHarButton);
|
|
465
465
|
const exportHarButton = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.exportHar), 'largeicon-download');
|
|
466
466
|
exportHarButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
|
|
467
|
-
this.networkLogView.exportAll();
|
|
467
|
+
void this.networkLogView.exportAll();
|
|
468
468
|
}, this);
|
|
469
469
|
this.panelToolbar.appendToolbarItem(exportHarButton);
|
|
470
470
|
}
|
|
@@ -720,7 +720,7 @@ export class NetworkPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
720
720
|
appendApplicableItems(this: NetworkPanel, event: Event, contextMenu: UI.ContextMenu.ContextMenu, target: Object):
|
|
721
721
|
void {
|
|
722
722
|
function reveal(this: NetworkPanel, request: SDK.NetworkRequest.NetworkRequest): void {
|
|
723
|
-
UI.ViewManager.ViewManager.instance()
|
|
723
|
+
void UI.ViewManager.ViewManager.instance()
|
|
724
724
|
.showView('network')
|
|
725
725
|
.then(this.networkLogView.resetFilter.bind(this.networkLogView))
|
|
726
726
|
.then(this.revealAndHighlightRequest.bind(this, request));
|
|
@@ -942,7 +942,7 @@ export class FilmStripRecorder implements SDK.TracingManager.TracingManagerClien
|
|
|
942
942
|
this.tracingModel.dispose();
|
|
943
943
|
}
|
|
944
944
|
this.tracingModel = new SDK.TracingModel.TracingModel(new Bindings.TempFile.TempFileBackingStorage());
|
|
945
|
-
this.tracingManager.start(this, '-*,disabled-by-default-devtools.screenshot', '');
|
|
945
|
+
void this.tracingManager.start(this, '-*,disabled-by-default-devtools.screenshot', '');
|
|
946
946
|
|
|
947
947
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.FilmStripStartedRecording);
|
|
948
948
|
}
|
|
@@ -1004,7 +1004,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
|
1004
1004
|
if (selection.rangeCount) {
|
|
1005
1005
|
queryCandidate = selection.toString().replace(/\r?\n.*/, '');
|
|
1006
1006
|
}
|
|
1007
|
-
SearchNetworkView.openSearch(queryCandidate);
|
|
1007
|
+
void SearchNetworkView.openSearch(queryCandidate);
|
|
1008
1008
|
return true;
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
@@ -1063,7 +1063,7 @@ export class SearchNetworkView extends Search.SearchView.SearchView {
|
|
|
1063
1063
|
static async openSearch(query: string, searchImmediately?: boolean): Promise<Search.SearchView.SearchView> {
|
|
1064
1064
|
await UI.ViewManager.ViewManager.instance().showView('network.search-network-tab');
|
|
1065
1065
|
const searchView = SearchNetworkView.instance();
|
|
1066
|
-
searchView.toggle(query, Boolean(searchImmediately));
|
|
1066
|
+
void searchView.toggle(query, Boolean(searchImmediately));
|
|
1067
1067
|
return searchView;
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
@@ -209,7 +209,7 @@ export class NetworkTimeCalculator extends Common.ObjectWrapper.ObjectWrapper<Ev
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
boundaryChanged(): void {
|
|
212
|
-
this.boundryChangedEventThrottler.schedule(async () => {
|
|
212
|
+
void this.boundryChangedEventThrottler.schedule(async () => {
|
|
213
213
|
this.dispatchEventToListeners(Events.BoundariesChanged);
|
|
214
214
|
});
|
|
215
215
|
}
|
|
@@ -288,7 +288,7 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
|
288
288
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(decodedValue);
|
|
289
289
|
};
|
|
290
290
|
contextMenu.clipboardSection().appendItem(i18nString(UIStrings.copyValue), copyDecodedValueHandler);
|
|
291
|
-
contextMenu.show();
|
|
291
|
+
void contextMenu.show();
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
|
|
@@ -350,7 +350,8 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
|
350
350
|
link.classList.add('devtools-link');
|
|
351
351
|
link.onclick = (): void => {
|
|
352
352
|
Host.userMetrics.issuesPanelOpenedFrom(Host.UserMetrics.IssueOpener.LearnMoreLinkCOEP);
|
|
353
|
-
IssuesManager.RelatedIssue.reveal(
|
|
353
|
+
void IssuesManager.RelatedIssue.reveal(
|
|
354
|
+
this.request, IssuesManager.Issue.IssueCategory.CrossOriginEmbedderPolicy);
|
|
354
355
|
};
|
|
355
356
|
const text = document.createElement('span');
|
|
356
357
|
text.classList.add('devtools-link');
|
|
@@ -407,7 +408,7 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
|
407
408
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
408
409
|
const section = contextMenu.newSection();
|
|
409
410
|
section.appendItem(i18nString(UIStrings.showMore), showMore);
|
|
410
|
-
contextMenu.show();
|
|
411
|
+
void contextMenu.show();
|
|
411
412
|
}
|
|
412
413
|
sourceTreeElement.listItemElement.addEventListener('contextmenu', onContextMenuShowMore);
|
|
413
414
|
sourceTextElement.appendChild(showMoreButton);
|
|
@@ -149,7 +149,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
149
149
|
this.request.addEventListener(SDK.NetworkRequest.Events.RequestHeadersChanged, this.refreshFormData, this);
|
|
150
150
|
|
|
151
151
|
this.refreshQueryString();
|
|
152
|
-
this.refreshFormData();
|
|
152
|
+
void this.refreshFormData();
|
|
153
153
|
// this._root.select(/* omitFocus */ true, /* selectedByUser */ false);
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -167,7 +167,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
167
167
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(decodedValue);
|
|
168
168
|
};
|
|
169
169
|
contextMenu.clipboardSection().appendItem(i18nString(UIStrings.copyValue), copyDecodedValueHandler);
|
|
170
|
-
contextMenu.show();
|
|
170
|
+
void contextMenu.show();
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
|
|
@@ -268,7 +268,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
268
268
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
269
269
|
const section = contextMenu.newSection();
|
|
270
270
|
section.appendItem(i18nString(UIStrings.showMore), showMore);
|
|
271
|
-
contextMenu.show();
|
|
271
|
+
void contextMenu.show();
|
|
272
272
|
}
|
|
273
273
|
sourceTreeElement.listItemElement.addEventListener('contextmenu', onContextMenuShowMore);
|
|
274
274
|
sourceTextElement.appendChild(showMoreButton);
|
|
@@ -318,7 +318,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
318
318
|
}
|
|
319
319
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
320
320
|
contextMenu.newSection().appendItem(i18nString(UIStrings.viewParsed), viewParsed.bind(this, event));
|
|
321
|
-
contextMenu.show();
|
|
321
|
+
void contextMenu.show();
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
const viewParsedButton = this.createViewSourceToggle(/* viewSource */ true, viewParsed.bind(this));
|
|
@@ -373,7 +373,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
373
373
|
const viewURLEncodedText =
|
|
374
374
|
this.decodeRequestParameters ? i18nString(UIStrings.viewUrlEncoded) : i18nString(UIStrings.viewDecoded);
|
|
375
375
|
section.appendItem(viewURLEncodedText, toggleURLDecoding.bind(this, event));
|
|
376
|
-
contextMenu.show();
|
|
376
|
+
void contextMenu.show();
|
|
377
377
|
};
|
|
378
378
|
|
|
379
379
|
const viewSourceButton = this.createViewSourceToggle(/* viewSource */ false, viewSource.bind(this));
|
|
@@ -428,7 +428,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
428
428
|
}
|
|
429
429
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
430
430
|
contextMenu.newSection().appendItem(i18nString(UIStrings.viewParsed), viewParsed.bind(this, event));
|
|
431
|
-
contextMenu.show();
|
|
431
|
+
void contextMenu.show();
|
|
432
432
|
};
|
|
433
433
|
|
|
434
434
|
rootListItemElement.addEventListener('contextmenu', viewParsedContextMenu);
|
|
@@ -465,7 +465,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
465
465
|
}
|
|
466
466
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
467
467
|
contextMenu.newSection().appendItem(i18nString(UIStrings.viewSource), viewSource.bind(this, event));
|
|
468
|
-
contextMenu.show();
|
|
468
|
+
void contextMenu.show();
|
|
469
469
|
};
|
|
470
470
|
|
|
471
471
|
const viewSourceButton = this.createViewSourceToggle(/* viewSource */ false, viewSource.bind(this));
|
|
@@ -484,7 +484,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
484
484
|
private toggleURLDecoding(event: Event): void {
|
|
485
485
|
this.decodeRequestParameters = !this.decodeRequestParameters;
|
|
486
486
|
this.refreshQueryString();
|
|
487
|
-
this.refreshFormData();
|
|
487
|
+
void this.refreshFormData();
|
|
488
488
|
event.consume();
|
|
489
489
|
}
|
|
490
490
|
|
|
@@ -62,7 +62,7 @@ export class RequestPreviewView extends RequestResponseView {
|
|
|
62
62
|
return view;
|
|
63
63
|
}
|
|
64
64
|
const toolbar = new UI.Toolbar.Toolbar('network-item-preview-toolbar', this.element);
|
|
65
|
-
view.toolbarItems().then(items => {
|
|
65
|
+
void view.toolbarItems().then(items => {
|
|
66
66
|
items.map(item => toolbar.appendToolbarItem(item));
|
|
67
67
|
});
|
|
68
68
|
return view;
|
|
@@ -98,7 +98,7 @@ export class RequestResponseView extends UI.Widget.VBox {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
wasShown(): void {
|
|
101
|
-
this.doShowPreview();
|
|
101
|
+
void this.doShowPreview();
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
private doShowPreview(): Promise<UI.Widget.Widget> {
|
|
@@ -135,7 +135,7 @@ export class RequestResponseView extends UI.Widget.VBox {
|
|
|
135
135
|
async revealLine(line: number): Promise<void> {
|
|
136
136
|
const view = await this.doShowPreview();
|
|
137
137
|
if (view instanceof SourceFrame.ResourceSourceFrame.SearchableContainer) {
|
|
138
|
-
view.revealPosition(line);
|
|
138
|
+
void view.revealPosition(line);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -200,7 +200,7 @@ export class ResourceWebSocketFrameView extends UI.Widget.VBox {
|
|
|
200
200
|
|
|
201
201
|
this.dataGrid.setName('ResourceWebSocketFrameView');
|
|
202
202
|
this.dataGrid.addEventListener(DataGrid.DataGrid.Events.SelectedNode, event => {
|
|
203
|
-
this.onFrameSelected(event);
|
|
203
|
+
void this.onFrameSelected(event);
|
|
204
204
|
}, this);
|
|
205
205
|
this.dataGrid.addEventListener(DataGrid.DataGrid.Events.DeselectedNode, this.onFrameDeselected, this);
|
|
206
206
|
|
|
@@ -118,7 +118,7 @@ export class PerformanceMonitorImpl extends UI.Widget.HBox implements
|
|
|
118
118
|
this.controlPane.instantiateMetricData();
|
|
119
119
|
SDK.TargetManager.TargetManager.instance().addEventListener(
|
|
120
120
|
SDK.TargetManager.Events.SuspendStateChanged, this.suspendStateChanged, this);
|
|
121
|
-
this.model.enable();
|
|
121
|
+
void this.model.enable();
|
|
122
122
|
this.suspendStateChanged();
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -129,7 +129,7 @@ export class PerformanceMonitorImpl extends UI.Widget.HBox implements
|
|
|
129
129
|
SDK.TargetManager.TargetManager.instance().removeEventListener(
|
|
130
130
|
SDK.TargetManager.Events.SuspendStateChanged, this.suspendStateChanged, this);
|
|
131
131
|
this.stopPolling();
|
|
132
|
-
this.model.disable();
|
|
132
|
+
void this.model.disable();
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
modelAdded(model: SDK.PerformanceMetricsModel.PerformanceMetricsModel): void {
|
|
@@ -180,7 +180,7 @@ export class CPUProfileType extends ProfileType {
|
|
|
180
180
|
|
|
181
181
|
buttonClicked(): boolean {
|
|
182
182
|
if (this.recording) {
|
|
183
|
-
this.stopRecordingProfile();
|
|
183
|
+
void this.stopRecordingProfile();
|
|
184
184
|
return false;
|
|
185
185
|
}
|
|
186
186
|
this.startRecordingProfile();
|
|
@@ -208,11 +208,11 @@ export class CPUProfileType extends ProfileType {
|
|
|
208
208
|
}
|
|
209
209
|
const profile = new CPUProfileHeader(cpuProfilerModel, this);
|
|
210
210
|
this.setProfileBeingRecorded(profile as ProfileHeader);
|
|
211
|
-
SDK.TargetManager.TargetManager.instance().suspendAllTargets();
|
|
211
|
+
void SDK.TargetManager.TargetManager.instance().suspendAllTargets();
|
|
212
212
|
this.addProfile(profile as ProfileHeader);
|
|
213
213
|
profile.updateStatus(i18nString(UIStrings.recording));
|
|
214
214
|
this.recording = true;
|
|
215
|
-
cpuProfilerModel.startRecording();
|
|
215
|
+
void cpuProfilerModel.startRecording();
|
|
216
216
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.ProfilesCPUProfileTaken);
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -243,7 +243,7 @@ export class CPUProfileType extends ProfileType {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
profileBeingRecordedRemoved(): void {
|
|
246
|
-
this.stopRecordingProfile();
|
|
246
|
+
void this.stopRecordingProfile();
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -160,7 +160,7 @@ export class HeapProfileView extends ProfileView implements UI.SearchableView.Se
|
|
|
160
160
|
this.timelineOverview.start();
|
|
161
161
|
|
|
162
162
|
this.profileType.addEventListener(SamplingHeapProfileType.Events.StatsUpdate, this.onStatsUpdate, this);
|
|
163
|
-
this.profileType.once(ProfileEvents.ProfileComplete).then(() => {
|
|
163
|
+
void this.profileType.once(ProfileEvents.ProfileComplete).then(() => {
|
|
164
164
|
this.profileType.removeEventListener(SamplingHeapProfileType.Events.StatsUpdate, this.onStatsUpdate, this);
|
|
165
165
|
this.timelineOverview.stop();
|
|
166
166
|
this.timelineOverview.updateGrid();
|
|
@@ -272,7 +272,7 @@ export class SamplingHeapProfileTypeBase extends
|
|
|
272
272
|
|
|
273
273
|
buttonClicked(): boolean {
|
|
274
274
|
if (this.recording) {
|
|
275
|
-
this.stopRecordingProfile();
|
|
275
|
+
void this.stopRecordingProfile();
|
|
276
276
|
} else {
|
|
277
277
|
this.startRecordingProfile();
|
|
278
278
|
}
|
|
@@ -333,7 +333,7 @@ export class SamplingHeapProfileTypeBase extends
|
|
|
333
333
|
|
|
334
334
|
profileBeingRecordedRemoved(): void {
|
|
335
335
|
this.clearedDuringRecording = true;
|
|
336
|
-
this.stopRecordingProfile();
|
|
336
|
+
void this.stopRecordingProfile();
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
startSampling(): void {
|
|
@@ -388,10 +388,10 @@ export class SamplingHeapProfileType extends SamplingHeapProfileTypeBase {
|
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
heapProfilerModel.startSampling();
|
|
391
|
+
void heapProfilerModel.startSampling();
|
|
392
392
|
if (Root.Runtime.experiments.isEnabled('samplingHeapProfilerTimeline')) {
|
|
393
393
|
this.updateTimer = window.setTimeout(() => {
|
|
394
|
-
this.updateStats();
|
|
394
|
+
void this.updateStats();
|
|
395
395
|
}, this.updateIntervalMs);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
@@ -433,7 +433,7 @@ export class SamplingHeapProfileType extends SamplingHeapProfileTypeBase {
|
|
|
433
433
|
}
|
|
434
434
|
this.dispatchEventToListeners(SamplingHeapProfileType.Events.StatsUpdate, profile);
|
|
435
435
|
this.updateTimer = window.setTimeout(() => {
|
|
436
|
-
this.updateStats();
|
|
436
|
+
void this.updateStats();
|
|
437
437
|
}, this.updateIntervalMs);
|
|
438
438
|
}
|
|
439
439
|
|
|
@@ -63,7 +63,7 @@ export class HeapProfilerPanel extends ProfilesPanel implements UI.ContextMenu.P
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
function revealInView(this: ProfilesPanel, viewName: string): void {
|
|
66
|
-
heapProfilerModel.snapshotObjectIdForObjectId(objectId).then(result => {
|
|
66
|
+
void heapProfilerModel.snapshotObjectIdForObjectId(objectId).then(result => {
|
|
67
67
|
if (this.isShowing() && result) {
|
|
68
68
|
this.showObject(result, viewName);
|
|
69
69
|
}
|
|
@@ -103,7 +103,7 @@ export class HeapProfilerPanel extends ProfilesPanel implements UI.ContextMenu.P
|
|
|
103
103
|
if (profile.maxJSObjectId >= parseInt(snapshotObjectId, 10)) {
|
|
104
104
|
this.showProfile(profile);
|
|
105
105
|
const view = (this.viewForProfile(profile) as HeapSnapshotView);
|
|
106
|
-
view.selectLiveObject(perspectiveName, snapshotObjectId);
|
|
106
|
+
void view.selectLiveObject(perspectiveName, snapshotObjectId);
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
}
|