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
|
@@ -139,7 +139,7 @@ export class ImageView extends UI.View.SimpleView {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
wasShown(): void {
|
|
142
|
-
this.updateContentIfNeeded();
|
|
142
|
+
void this.updateContentIfNeeded();
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
disposeView(): void {
|
|
@@ -150,7 +150,7 @@ export class ImageView extends UI.View.SimpleView {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
private workingCopyCommitted(): void {
|
|
153
|
-
this.updateContentIfNeeded();
|
|
153
|
+
void this.updateContentIfNeeded();
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
private async updateContentIfNeeded(): Promise<void> {
|
|
@@ -192,7 +192,7 @@ export class ImageView extends UI.View.SimpleView {
|
|
|
192
192
|
await this.saveImage();
|
|
193
193
|
});
|
|
194
194
|
|
|
195
|
-
contextMenu.show();
|
|
195
|
+
void contextMenu.show();
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
private copyImageAsDataURL(): void {
|
|
@@ -99,7 +99,7 @@ export class SearchableContainer extends UI.Widget.VBox {
|
|
|
99
99
|
searchableView.show(this.contentElement);
|
|
100
100
|
|
|
101
101
|
const toolbar = new UI.Toolbar.Toolbar('toolbar', this.contentElement);
|
|
102
|
-
sourceFrame.toolbarItems().then(items => {
|
|
102
|
+
void sourceFrame.toolbarItems().then(items => {
|
|
103
103
|
items.map(item => toolbar.appendToolbarItem(item));
|
|
104
104
|
});
|
|
105
105
|
}
|
|
@@ -150,7 +150,7 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
150
150
|
this.formattedMap = null;
|
|
151
151
|
this.prettyToggle = new UI.Toolbar.ToolbarToggle(i18nString(UIStrings.prettyPrint), 'largeicon-pretty-print');
|
|
152
152
|
this.prettyToggle.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, () => {
|
|
153
|
-
this.setPretty(!this.prettyToggle.toggled());
|
|
153
|
+
void this.setPretty(!this.prettyToggle.toggled());
|
|
154
154
|
});
|
|
155
155
|
this.shouldAutoPrettyPrint = false;
|
|
156
156
|
this.prettyToggle.setVisible(false);
|
|
@@ -394,7 +394,7 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
wasShown(): void {
|
|
397
|
-
this.ensureContentLoaded();
|
|
397
|
+
void this.ensureContentLoaded();
|
|
398
398
|
this.wasShownOrLoaded();
|
|
399
399
|
}
|
|
400
400
|
|
|
@@ -760,7 +760,7 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
760
760
|
this.doFindSearchMatches.bind(this, searchConfig, shouldJump, Boolean(jumpBackwards));
|
|
761
761
|
}
|
|
762
762
|
|
|
763
|
-
this.ensureContentLoaded();
|
|
763
|
+
void this.ensureContentLoaded();
|
|
764
764
|
}
|
|
765
765
|
|
|
766
766
|
private resetCurrentSearchResultIndex(): void {
|
|
@@ -945,7 +945,7 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
945
945
|
const pos = state.selection.main.from, line = state.doc.lineAt(pos);
|
|
946
946
|
this.populateTextAreaContextMenu(contextMenu, line.number - 1, pos - line.from);
|
|
947
947
|
contextMenu.appendApplicableItems(this);
|
|
948
|
-
contextMenu.show();
|
|
948
|
+
void contextMenu.show();
|
|
949
949
|
return true;
|
|
950
950
|
}
|
|
951
951
|
|
|
@@ -959,7 +959,7 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
959
959
|
const lineNumber = this.textEditor.state.doc.lineAt(position).number - 1;
|
|
960
960
|
this.populateLineGutterContextMenu(contextMenu, lineNumber);
|
|
961
961
|
contextMenu.appendApplicableItems(this);
|
|
962
|
-
contextMenu.show();
|
|
962
|
+
void contextMenu.show();
|
|
963
963
|
return true;
|
|
964
964
|
}
|
|
965
965
|
|
|
@@ -95,7 +95,7 @@ export class ImagePreview {
|
|
|
95
95
|
if (imageAltText) {
|
|
96
96
|
imageElement.alt = imageAltText;
|
|
97
97
|
}
|
|
98
|
-
imageResource.populateImageSource(imageElement);
|
|
98
|
+
void imageResource.populateImageSource(imageElement);
|
|
99
99
|
|
|
100
100
|
function buildContent(): void {
|
|
101
101
|
const shadowBoundary = document.createElement('div');
|
|
@@ -255,7 +255,7 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
255
255
|
const linkDisplayOptions = {showColumnNumber: linkifyURLOptions.showColumnNumber};
|
|
256
256
|
|
|
257
257
|
const currentOnLiveLocationUpdate = this.onLiveLocationUpdate;
|
|
258
|
-
Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance()
|
|
258
|
+
void Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance()
|
|
259
259
|
.createLiveLocation(rawLocation, this.updateAnchor.bind(this, link, linkDisplayOptions), pool)
|
|
260
260
|
.then(liveLocation => {
|
|
261
261
|
if (liveLocation) {
|
|
@@ -356,7 +356,7 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
356
356
|
const linkDisplayOptions = {showColumnNumber: false};
|
|
357
357
|
|
|
358
358
|
const currentOnLiveLocationUpdate = this.onLiveLocationUpdate;
|
|
359
|
-
Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance()
|
|
359
|
+
void Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance()
|
|
360
360
|
.createStackTraceTopFrameLiveLocation(
|
|
361
361
|
debuggerModel.createRawLocationsByStackTrace(stackTrace),
|
|
362
362
|
this.updateAnchor.bind(this, link, linkDisplayOptions), pool)
|
|
@@ -395,7 +395,7 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
395
395
|
const linkDisplayOptions = {showColumnNumber: false};
|
|
396
396
|
|
|
397
397
|
const currentOnLiveLocationUpdate = this.onLiveLocationUpdate;
|
|
398
|
-
Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance()
|
|
398
|
+
void Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance()
|
|
399
399
|
.createLiveLocation(rawLocation, this.updateAnchor.bind(this, link, linkDisplayOptions), pool)
|
|
400
400
|
.then(liveLocation => {
|
|
401
401
|
linkInfo.liveLocation = liveLocation;
|
|
@@ -437,7 +437,7 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
437
437
|
if (header && header.ownerNode) {
|
|
438
438
|
anchor.addEventListener('click', event => {
|
|
439
439
|
event.consume(true);
|
|
440
|
-
Common.Revealer.reveal(header.ownerNode || null);
|
|
440
|
+
void Common.Revealer.reveal(header.ownerNode || null);
|
|
441
441
|
}, false);
|
|
442
442
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
443
443
|
// This workaround is needed to make stylelint happy
|
|
@@ -700,7 +700,7 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
700
700
|
static invokeFirstAction(linkInfo: _LinkInfo): boolean {
|
|
701
701
|
const actions = Linkifier.linkActions(linkInfo);
|
|
702
702
|
if (actions.length) {
|
|
703
|
-
actions[0].handler.call(null);
|
|
703
|
+
void actions[0].handler.call(null);
|
|
704
704
|
return true;
|
|
705
705
|
}
|
|
706
706
|
return false;
|
|
@@ -21,7 +21,7 @@ export class TargetDetachedDialog extends SDK.SDKModel.SDKModel<void> implements
|
|
|
21
21
|
constructor(target: SDK.Target.Target) {
|
|
22
22
|
super(target);
|
|
23
23
|
target.registerInspectorDispatcher(this);
|
|
24
|
-
target.inspectorAgent().invoke_enable();
|
|
24
|
+
void target.inspectorAgent().invoke_enable();
|
|
25
25
|
// Hide all dialogs if a new top-level target is created.
|
|
26
26
|
if (target.parentTarget()?.type() === SDK.Target.Type.Browser && TargetDetachedDialog.hideCrashedDialog) {
|
|
27
27
|
TargetDetachedDialog.hideCrashedDialog.call(null);
|
|
@@ -71,7 +71,7 @@ export class TargetDetachedDialog extends SDK.SDKModel.SDKModel<void> implements
|
|
|
71
71
|
/** ;
|
|
72
72
|
*/
|
|
73
73
|
targetReloadedAfterCrash(): void {
|
|
74
|
-
this.target().runtimeAgent().invoke_runIfWaitingForDebugger();
|
|
74
|
+
void this.target().runtimeAgent().invoke_runIfWaitingForDebugger();
|
|
75
75
|
if (TargetDetachedDialog.hideCrashedDialog) {
|
|
76
76
|
TargetDetachedDialog.hideCrashedDialog.call(null);
|
|
77
77
|
TargetDetachedDialog.hideCrashedDialog = null;
|
package/package.json
CHANGED
|
@@ -9,6 +9,8 @@ const ruleTester = new (require('eslint').RuleTester)({
|
|
|
9
9
|
parser: require.resolve('@typescript-eslint/parser'),
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
+
const CURRENT_YEAR = new Date().getFullYear();
|
|
13
|
+
|
|
12
14
|
ruleTester.run('check_license_header', rule, {
|
|
13
15
|
valid: [
|
|
14
16
|
{
|
|
@@ -116,7 +118,7 @@ main()
|
|
|
116
118
|
code: 'import * as Action from \'./Action.js\';',
|
|
117
119
|
filename: 'front_end/ui/ui.js',
|
|
118
120
|
errors: [{message: 'Missing license header'}],
|
|
119
|
-
output: `// Copyright
|
|
121
|
+
output: `// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
|
|
120
122
|
// Use of this source code is governed by a BSD-style license that can be
|
|
121
123
|
// found in the LICENSE file.
|
|
122
124
|
|
|
@@ -131,7 +133,7 @@ import * as Action from './Action.js';
|
|
|
131
133
|
filename: 'front_end/ui/ui.js',
|
|
132
134
|
errors: [{message: 'Incorrect line license header'}],
|
|
133
135
|
output: `
|
|
134
|
-
// Copyright
|
|
136
|
+
// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
|
|
135
137
|
// Use of this source code is governed by a BSD-style license that can be
|
|
136
138
|
// found in the LICENSE file.
|
|
137
139
|
|
|
@@ -147,7 +149,7 @@ import * as Action from './Action.js';
|
|
|
147
149
|
(async function() {})();`,
|
|
148
150
|
filename: 'test/webtests/http/tests/devtools/a11y-axe-core/sources/call-stack-a11y-test.js',
|
|
149
151
|
errors: [{message: 'Incorrect line license header'}],
|
|
150
|
-
output: `// Copyright
|
|
152
|
+
output: `// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
|
|
151
153
|
// Use of this source code is governed by a BSD-style license that can be
|
|
152
154
|
// found in the LICENSE file.
|
|
153
155
|
|
|
@@ -168,7 +170,7 @@ import * as Action from './Action.js';
|
|
|
168
170
|
filename: 'front_end/ui/ui.js',
|
|
169
171
|
errors: [{message: 'Incorrect line license header'}],
|
|
170
172
|
output: `
|
|
171
|
-
// Copyright
|
|
173
|
+
// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
|
|
172
174
|
// Use of this source code is governed by a BSD-style license that can be
|
|
173
175
|
// found in the LICENSE file.
|
|
174
176
|
|
|
@@ -191,7 +193,7 @@ import * as Action from './Action.js';
|
|
|
191
193
|
filename: 'front_end/ui/ui.js',
|
|
192
194
|
errors: [{message: 'Incorrect block license header'}],
|
|
193
195
|
output: `
|
|
194
|
-
// Copyright
|
|
196
|
+
// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
|
|
195
197
|
// Use of this source code is governed by a BSD-style license that can be
|
|
196
198
|
// found in the LICENSE file.
|
|
197
199
|
|
|
@@ -225,7 +227,7 @@ interface String {
|
|
|
225
227
|
filename: 'front_end/legacy/legacy-defs.d.ts',
|
|
226
228
|
errors: [{message: 'Missing license header'}],
|
|
227
229
|
output: `
|
|
228
|
-
// Copyright
|
|
230
|
+
// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
|
|
229
231
|
// Use of this source code is governed by a BSD-style license that can be
|
|
230
232
|
// found in the LICENSE file.
|
|
231
233
|
|
|
@@ -258,7 +260,7 @@ main()
|
|
|
258
260
|
errors: [{message: 'Missing license header'}],
|
|
259
261
|
output: `#!/usr/bin/env node
|
|
260
262
|
|
|
261
|
-
// Copyright
|
|
263
|
+
// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
|
|
262
264
|
// Use of this source code is governed by a BSD-style license that can be
|
|
263
265
|
// found in the LICENSE file.
|
|
264
266
|
|
|
@@ -279,7 +281,7 @@ main()
|
|
|
279
281
|
errors: [{message: 'Incorrect line license header'}],
|
|
280
282
|
output: `#!/usr/bin/env node
|
|
281
283
|
|
|
282
|
-
// Copyright
|
|
284
|
+
// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
|
|
283
285
|
// Use of this source code is governed by a BSD-style license that can be
|
|
284
286
|
// found in the LICENSE file.
|
|
285
287
|
|