chrome-devtools-frontend 1.0.1689415 → 1.0.1690531
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/.gitmodules +4 -0
- package/eslint.config.mjs +8 -2
- package/front_end/core/common/Object.ts +10 -4
- package/front_end/core/i18n/collect-ui-strings.js +5 -5
- package/front_end/core/i18n/generate-locales-js.js +1 -1
- package/front_end/core/i18n/i18n.ts +6 -0
- package/front_end/core/root/Runtime.ts +1 -5
- package/front_end/core/sdk/CSSMetadata.ts +3 -5
- package/front_end/core/sdk/DOMModel.ts +46 -11
- package/front_end/core/sdk/EmulationModel.ts +18 -0
- package/front_end/core/sdk/NetworkRequest.ts +50 -4
- package/front_end/core/sdk/NetworkRequestAccess.ts +172 -0
- package/front_end/core/sdk/SDKSettings.ts +9 -0
- package/front_end/core/sdk/Script.ts +0 -1
- package/front_end/core/sdk/SecurityOrigin.ts +160 -25
- package/front_end/core/sdk/Target.ts +1 -5
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/generated/SupportedCSSProperties.ts +1 -1
- package/front_end/models/ai_assistance/AiAgent2.ts +4 -1
- package/front_end/models/ai_assistance/AiConversation.ts +29 -18
- package/front_end/models/ai_assistance/AiUtils.ts +0 -10
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +6 -10
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +0 -1
- package/front_end/models/ai_assistance/injected.ts +0 -2
- package/front_end/models/javascript_metadata/NativeFunctions.ts +1 -1
- package/front_end/models/trace/insights/CLSCulprits.ts +1 -2
- package/front_end/models/trace/insights/Cache.ts +1 -3
- package/front_end/models/trace/insights/CharacterSet.ts +1 -3
- package/front_end/models/trace/insights/DOMSize.ts +1 -3
- package/front_end/models/trace/insights/DocumentLatency.ts +1 -3
- package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -3
- package/front_end/models/trace/insights/FontDisplay.ts +1 -2
- package/front_end/models/trace/insights/ForcedReflow.ts +1 -2
- package/front_end/models/trace/insights/INPBreakdown.ts +1 -3
- package/front_end/models/trace/insights/ImageDelivery.ts +1 -3
- package/front_end/models/trace/insights/LCPBreakdown.ts +1 -3
- package/front_end/models/trace/insights/LCPDiscovery.ts +1 -3
- package/front_end/models/trace/insights/LegacyJavaScript.ts +1 -3
- package/front_end/models/trace/insights/ModernHTTP.ts +1 -2
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +1 -2
- package/front_end/models/trace/insights/RenderBlocking.ts +1 -3
- package/front_end/models/trace/insights/SlowCSSSelector.ts +1 -3
- package/front_end/models/trace/insights/ThirdParties.ts +1 -3
- package/front_end/models/trace/insights/Viewport.ts +1 -2
- package/front_end/panels/accessibility/ARIAAttributesView.ts +1 -1
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +3 -3
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
- package/front_end/panels/accessibility/AccessibilityStrings.ts +7 -3
- package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +2 -2
- package/front_end/panels/ai_assistance/components/AccessibilityAgentMarkdownRenderer.ts +1 -3
- package/front_end/panels/ai_assistance/components/chatMessage.css +3 -1
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/animation/AnimationUI.ts +1 -1
- package/front_end/panels/application/AppManifestView.ts +6 -2
- package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -4
- package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +1 -1
- package/front_end/panels/application/FrameDetailsView.ts +1 -1
- package/front_end/panels/application/IndexedDBViews.ts +3 -2
- package/front_end/panels/application/ReportingApiTreeElement.ts +1 -1
- package/front_end/panels/application/ReportingApiView.ts +2 -2
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -1
- package/front_end/panels/application/ServiceWorkersView.ts +1 -1
- package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
- package/front_end/panels/application/StorageItemsToolbar.ts +6 -2
- package/front_end/panels/application/StorageView.ts +9 -8
- package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
- package/front_end/panels/application/WebMCPView.ts +2 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +1 -1
- package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +1 -1
- package/front_end/panels/application/components/CrashReportContextGrid.ts +1 -1
- package/front_end/panels/application/components/EndpointsGrid.ts +3 -2
- package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -1
- package/front_end/panels/application/components/ReportsGrid.ts +1 -1
- package/front_end/panels/application/components/ServiceWorkerRouterView.ts +1 -1
- package/front_end/panels/application/components/TrustTokensView.ts +2 -2
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -1
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -2
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +1 -1
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -0
- package/front_end/panels/autofill/AutofillView.ts +2 -2
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -3
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/changes/ChangesSidebar.ts +56 -15
- package/front_end/panels/changes/ChangesView.ts +1 -1
- package/front_end/panels/common/CPUThrottlingOption.ts +12 -6
- package/front_end/panels/common/DOMLinkifier.ts +1 -1
- package/front_end/panels/common/ExtensionView.ts +2 -1
- package/front_end/panels/console/ConsolePinPane.ts +4 -2
- package/front_end/panels/console/ConsolePrompt.ts +6 -2
- package/front_end/panels/console/ConsoleSidebar.ts +12 -4
- package/front_end/panels/console/PromptBuilder.ts +1 -1
- package/front_end/panels/coverage/CoverageListView.ts +1 -1
- package/front_end/panels/coverage/CoverageModel.ts +6 -4
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +9 -9
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewStartView.ts +3 -3
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +16 -3
- package/front_end/panels/elements/ElementsTreeOutline.ts +402 -130
- package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
- package/front_end/panels/elements/PropertyNameCategories.ts +1 -1
- package/front_end/panels/elements/PropertyRenderer.ts +22 -15
- package/front_end/panels/elements/ShortcutTreeElement.ts +2 -1
- package/front_end/panels/elements/StandaloneStylesContainer.ts +7 -3
- package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +75 -26
- package/front_end/panels/elements/StylesSidebarPane.ts +9 -4
- package/front_end/panels/elements/components/StylePropertyEditor.ts +160 -148
- package/front_end/panels/elements/elementsTreeOutline.css +4 -0
- package/front_end/panels/emulation/DeviceModeView.ts +6 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +6 -2
- package/front_end/panels/emulation/MediaQueryInspector.ts +2 -1
- package/front_end/panels/issues/AffectedLazyLoadImagesView.ts +1 -1
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +6 -2
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +7 -2
- package/front_end/panels/layer_viewer/Layers3DView.ts +8 -1
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +6 -2
- package/front_end/panels/lighthouse/lighthousePanel.css +5 -5
- package/front_end/panels/lighthouse/lighthouseStartView.css +13 -13
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +6 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +6 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryInspector.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryNavigator.css +1 -1
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +5 -5
- package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +6 -6
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +6 -6
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +2 -2
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +6 -2
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +25 -54
- package/front_end/panels/network/NetworkDataGridNode.ts +11 -9
- package/front_end/panels/network/NetworkLogView.ts +12 -4
- package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
- package/front_end/panels/network/RequestHeadersView.ts +1 -1
- package/front_end/panels/network/RequestPayloadView.ts +1 -1
- package/front_end/panels/network/RequestResponseView.ts +1 -1
- package/front_end/panels/network/RequestTimingView.ts +1 -1
- package/front_end/panels/network/ShowMoreDetailsWidget.ts +1 -1
- package/front_end/panels/network/components/RequestHeadersView.css +5 -0
- package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
- package/front_end/panels/network/networkLogView.css +4 -0
- package/front_end/panels/network/requestInitiatorViewTree.css +2 -0
- package/front_end/panels/performance_monitor/performanceMonitor.css +3 -3
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +7 -2
- package/front_end/panels/profiler/HeapProfileView.ts +7 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +8 -4
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +8 -4
- package/front_end/panels/profiler/HeapSnapshotView.ts +15 -6
- package/front_end/panels/profiler/HeapTimelineOverview.ts +6 -2
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +12 -5
- package/front_end/panels/profiler/ProfileLauncherView.ts +6 -2
- package/front_end/panels/profiler/profilesPanel.css +8 -9
- package/front_end/panels/profiler/profilesSidebarTree.css +13 -13
- package/front_end/panels/protocol_monitor/JSONEditor.css +2 -2
- package/front_end/panels/protocol_monitor/JSONEditor.ts +6 -1
- package/front_end/panels/protocol_monitor/protocolMonitor.css +2 -2
- package/front_end/panels/sources/BreakpointEditDialog.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +1 -1
- package/front_end/panels/sources/DebuggerPausedMessage.ts +8 -6
- package/front_end/panels/sources/ProfilePlugin.ts +2 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +1 -1
- package/front_end/panels/sources/SourcesView.ts +7 -2
- package/front_end/panels/sources/TabbedEditorContainer.ts +6 -2
- package/front_end/panels/sources/UISourceCodeFrame.ts +10 -3
- package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/AnnotationHelpers.ts +9 -9
- package/front_end/panels/timeline/CountersGraph.ts +8 -8
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +3 -3
- package/front_end/panels/timeline/ExtensionTrackAppender.ts +1 -1
- package/front_end/panels/timeline/GPUTrackAppender.ts +1 -1
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/IsolateSelector.ts +3 -3
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +4 -4
- package/front_end/panels/timeline/NetworkTrackAppender.ts +2 -2
- package/front_end/panels/timeline/StatusDialog.ts +5 -6
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +4 -4
- package/front_end/panels/timeline/ThreadAppender.ts +12 -14
- package/front_end/panels/timeline/TimelineController.ts +5 -8
- package/front_end/panels/timeline/TimelineDetailsView.ts +13 -9
- package/front_end/panels/timeline/TimelineEventOverview.ts +4 -4
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +18 -18
- package/front_end/panels/timeline/TimelineFlameChartView.ts +8 -3
- package/front_end/panels/timeline/TimelineHistoryManager.ts +9 -9
- package/front_end/panels/timeline/TimelineLoader.ts +1 -1
- package/front_end/panels/timeline/TimelineMiniMap.ts +7 -2
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +7 -3
- package/front_end/panels/timeline/TimelinePanel.ts +60 -62
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +27 -27
- package/front_end/panels/timeline/TimelineTreeView.ts +47 -45
- package/front_end/panels/timeline/TimelineUIUtils.ts +146 -120
- package/front_end/panels/timeline/TimingsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/TrackConfigBanner.ts +4 -4
- package/front_end/panels/timeline/UIDevtoolsUtils.ts +15 -15
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +4 -3
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +25 -24
- package/front_end/panels/timeline/components/RelatedInsightChips.ts +4 -3
- package/front_end/panels/timeline/components/Sidebar.ts +1 -1
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +4 -3
- package/front_end/panels/timeline/components/insights/Table.ts +1 -1
- package/front_end/panels/timeline/enable-easter-egg.js +1 -1
- package/front_end/panels/timeline/timeline-meta.ts +30 -30
- package/front_end/panels/timeline/timelineFlameChartView.css +10 -10
- package/front_end/panels/timeline/timelineFlamechartPopover.css +5 -5
- package/front_end/panels/timeline/timelineHistoryManager.css +7 -7
- package/front_end/panels/timeline/timelinePaintProfiler.css +2 -2
- package/front_end/panels/timeline/utils/Helpers.ts +1 -1
- package/front_end/panels/timeline/utils/IgnoreList.ts +4 -4
- package/front_end/panels/timeline/utils/ImageCache.ts +5 -3
- package/front_end/panels/web_audio/WebAudioView.ts +3 -3
- package/front_end/panels/webauthn/WebauthnPane.ts +5 -11
- package/front_end/third_party/acorn/acorn.ts +3 -3
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/chromium/ahem/ahem.d.ts +1 -0
- package/front_end/third_party/csp_evaluator/package/csp.ts +4 -4
- package/front_end/third_party/csp_evaluator/package/parser.ts +3 -1
- package/front_end/third_party/csp_evaluator/package/utils.ts +1 -1
- package/front_end/third_party/diff/diff_match_patch.d.ts +10 -0
- package/front_end/third_party/json5/json5.ts +2 -2
- package/front_end/ui/comments/CommentAnchorResolver.ts +12 -3
- package/front_end/ui/comments/CommentOverlayManager.ts +9 -1
- package/front_end/ui/components/buttons/Button.docs.ts +1 -1
- package/front_end/ui/components/buttons/button.css +21 -0
- package/front_end/ui/components/buttons/floatingButton.css +25 -0
- package/front_end/ui/components/report_view/ReportView.docs.ts +1 -1
- package/front_end/ui/components/snackbars/Snackbars.docs.ts +1 -1
- package/front_end/ui/components/spinners/Spinner.ts +1 -1
- package/front_end/ui/components/spinners/Spinners.docs.ts +1 -1
- package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +1 -1
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +46 -27
- package/front_end/ui/components/switch/Switch.docs.ts +1 -1
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +10 -8
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +2 -1
- package/front_end/ui/components/text_editor/ExecutionPositionHighlighter.ts +2 -2
- package/front_end/ui/components/text_editor/TextEditor.ts +19 -0
- package/front_end/ui/components/text_editor/config.ts +109 -96
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/theme.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.docs.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
- package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +4 -1
- package/front_end/ui/kit/cards/Card.ts +1 -1
- package/front_end/ui/kit/icons/Icon.ts +1 -1
- package/front_end/ui/kit/link/Link.docs.ts +1 -1
- package/front_end/ui/kit/link/Link.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.docs.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +2 -2
- package/front_end/ui/legacy/Dialog.ts +10 -2
- package/front_end/ui/legacy/DropTarget.ts +6 -1
- package/front_end/ui/legacy/EmptyWidget.ts +1 -1
- package/front_end/ui/legacy/FilterBar.ts +6 -1
- package/front_end/ui/legacy/GlassPane.ts +1 -1
- package/front_end/ui/legacy/RadioButton.docs.ts +1 -1
- package/front_end/ui/legacy/SelectMenu.docs.ts +1 -1
- package/front_end/ui/legacy/ShortcutRegistry.ts +2 -2
- package/front_end/ui/legacy/Slider.docs.ts +1 -1
- package/front_end/ui/legacy/SplitWidget.ts +7 -2
- package/front_end/ui/legacy/StackedPane.ts +1 -1
- package/front_end/ui/legacy/TabbedPane.ts +5 -1
- package/front_end/ui/legacy/TargetCrashedScreen.ts +1 -1
- package/front_end/ui/legacy/TextPrompt.ts +2 -1
- package/front_end/ui/legacy/Toolbar.ts +1 -1
- package/front_end/ui/legacy/Treeoutline.ts +13 -37
- package/front_end/ui/legacy/UIUtils.ts +6 -3
- package/front_end/ui/legacy/ViewManager.ts +1 -1
- package/front_end/ui/legacy/Widget.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +13 -2
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +3 -2
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +6 -2
- package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +54 -45
- package/front_end/ui/legacy/components/inline_editor/CSSAngleUtils.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +6 -2
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +141 -106
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +10 -10
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -0
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +6 -2
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +8 -4
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +7 -5
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +8 -3
- package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +6 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +15 -7
- 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/inspectorCommon.css +11 -0
- package/front_end/ui/visual_logging/Debugging.ts +2 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -1
- package/front_end/ui/visual_logging/LoggingDriver.ts +3 -3
- package/front_end/ui/visual_logging/LoggingEvents.ts +5 -5
- package/front_end/ui/visual_logging/LoggingState.ts +1 -1
- package/front_end/ui/visual_logging/visual_logging.ts +67 -56
- package/package.json +3 -2
- package/front_end/third_party/acorn/acorn-tsconfig.json +0 -12
- package/front_end/third_party/acorn/estree-tsconfig.json +0 -8
- package/front_end/third_party/chromium/client-variations/client-variations-tsconfig.json +0 -8
- package/front_end/third_party/codemirror/codemirror-legacy-types-tsconfig.json +0 -8
- package/front_end/third_party/codemirror/codemirror-tsconfig.json +0 -15
- package/front_end/third_party/codemirror.next/bundle-tsconfig.json +0 -24
- package/front_end/third_party/intl-messageformat/intl-messageformat-tsconfig.json +0 -16
- package/front_end/third_party/json5/json5-tsconfig.json +0 -8
- package/front_end/third_party/legacy-javascript/legacy-javascript-tsconfig.json +0 -8
- package/front_end/third_party/lighthouse/lighthouse-tsconfig.json +0 -11
- package/front_end/third_party/lighthouse/report/bundle-tsconfig.json +0 -8
- package/front_end/third_party/lit/lit-tsconfig.json +0 -15
- package/front_end/third_party/marked/marked-tsconfig.json +0 -8
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +0 -191
- package/front_end/third_party/third-party-web/third-party-web-tsconfig.json +0 -8
- package/front_end/third_party/wasmparser/wasmparser-tsconfig.json +0 -9
- package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +0 -47
|
@@ -29,61 +29,59 @@ import * as Utils from './utils/utils.js';
|
|
|
29
29
|
|
|
30
30
|
const UIStrings = {
|
|
31
31
|
/**
|
|
32
|
-
* @description Text shown for an entry in the flame chart that
|
|
33
|
-
* a predefined ignore list.
|
|
32
|
+
* @description Text shown for an entry in the flame chart that matches an ignore list rule.
|
|
34
33
|
* @example {/analytics\.js$} rule
|
|
35
34
|
*/
|
|
36
35
|
onIgnoreList: 'On ignore list ({rule})',
|
|
37
36
|
/**
|
|
38
|
-
* @description
|
|
37
|
+
* @description Header for the main thread track of a top-level frame in the timeline flame chart.
|
|
39
38
|
* @example {example.com} PH1
|
|
40
39
|
*/
|
|
41
40
|
mainS: 'Main — {PH1}',
|
|
42
41
|
/**
|
|
43
|
-
* @description
|
|
42
|
+
* @description Header for the main thread track in the timeline flame chart.
|
|
44
43
|
*/
|
|
45
44
|
main: 'Main',
|
|
46
45
|
/**
|
|
47
|
-
* @description
|
|
46
|
+
* @description Header for a frame thread track in the timeline flame chart.
|
|
48
47
|
* @example {https://example.com} PH1
|
|
49
48
|
*/
|
|
50
49
|
frameS: 'Frame — {PH1}',
|
|
51
50
|
/**
|
|
52
|
-
* @description
|
|
51
|
+
* @description Header for a dedicated worker thread track in the timeline flame chart.
|
|
53
52
|
* @example {https://google.com} PH1
|
|
54
53
|
*/
|
|
55
54
|
workerS: '`Worker` — {PH1}',
|
|
56
55
|
/**
|
|
57
|
-
* @description
|
|
56
|
+
* @description Header for a named dedicated worker thread track in the timeline flame chart.
|
|
58
57
|
* @example {FormatterWorker} PH1
|
|
59
58
|
* @example {https://google.com} PH2
|
|
60
59
|
*/
|
|
61
60
|
workerSS: '`Worker`: {PH1} — {PH2}',
|
|
62
61
|
/**
|
|
63
|
-
* @description
|
|
62
|
+
* @description Header for an unnamed dedicated worker thread track in the timeline flame chart.
|
|
64
63
|
*/
|
|
65
64
|
dedicatedWorker: 'Dedicated `Worker`',
|
|
66
65
|
/**
|
|
67
|
-
* @description
|
|
68
|
-
* The placeholder is an enumeration given to the thread.
|
|
66
|
+
* @description Generic header for a thread track in the timeline flame chart.
|
|
69
67
|
* @example {1} PH1
|
|
70
68
|
*/
|
|
71
69
|
threadS: 'Thread {PH1}',
|
|
72
70
|
/**
|
|
73
|
-
* @description
|
|
71
|
+
* @description Header for the rasterizer thread track in the timeline flame chart.
|
|
74
72
|
*/
|
|
75
73
|
raster: 'Raster',
|
|
76
74
|
/**
|
|
77
|
-
* @description
|
|
75
|
+
* @description Header for the thread pool track in the timeline flame chart.
|
|
78
76
|
*/
|
|
79
77
|
threadPool: 'Thread pool',
|
|
80
78
|
/**
|
|
81
|
-
* @description
|
|
79
|
+
* @description Header for an indexed rasterizer thread track in the timeline flame chart.
|
|
82
80
|
* @example {2} PH1
|
|
83
81
|
*/
|
|
84
82
|
rasterizerThreadS: 'Rasterizer thread {PH1}',
|
|
85
83
|
/**
|
|
86
|
-
* @description
|
|
84
|
+
* @description Header for an indexed thread pool worker track in the timeline flame chart.
|
|
87
85
|
* @example {2} PH1
|
|
88
86
|
*/
|
|
89
87
|
threadPoolThreadS: 'Thread pool worker {PH1}',
|
|
@@ -18,26 +18,23 @@ import * as RecordingMetadata from './RecordingMetadata.js';
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Status text shown in the Performance panel when tracing is being initialized.
|
|
22
22
|
*/
|
|
23
23
|
initializingTracing: 'Initializing tracing…',
|
|
24
24
|
/**
|
|
25
|
-
* @description
|
|
26
|
-
* creating a performance trace.
|
|
25
|
+
* @description Status text shown in the Performance panel while recording a trace.
|
|
27
26
|
*/
|
|
28
27
|
tracing: 'Tracing…',
|
|
29
28
|
/**
|
|
30
|
-
* @description
|
|
31
|
-
* record a performance trace because the type of target (where possible types are page, service worker and shared
|
|
32
|
-
* worker) doesn't support it.
|
|
29
|
+
* @description Error message shown when performance trace recording is not supported for the selected target type in the Performance panel.
|
|
33
30
|
*/
|
|
34
31
|
tracingNotSupported: 'Performance trace recording not supported for this type of target',
|
|
35
32
|
/**
|
|
36
|
-
* @description
|
|
33
|
+
* @description Status text shown in the status dialog while waiting for the page load event.
|
|
37
34
|
*/
|
|
38
35
|
waitingForLoadEvent: 'Waiting for load event…',
|
|
39
36
|
/**
|
|
40
|
-
* @description
|
|
37
|
+
* @description Status text shown in the status dialog while waiting for the page load event and five additional seconds.
|
|
41
38
|
*/
|
|
42
39
|
waitingForLoadEventPlus5Seconds: 'Waiting for load event (+5s)…',
|
|
43
40
|
} as const;
|
|
@@ -42,31 +42,31 @@ import {TracingFrameLayerTree} from './TracingLayerTree.js';
|
|
|
42
42
|
|
|
43
43
|
const UIStrings = {
|
|
44
44
|
/**
|
|
45
|
-
* @description
|
|
45
|
+
* @description Title for the summary tab in the details view of the Performance panel.
|
|
46
46
|
*/
|
|
47
47
|
summary: 'Summary',
|
|
48
48
|
/**
|
|
49
|
-
* @description
|
|
49
|
+
* @description Title for the bottom-up tab in the details view of the Performance panel.
|
|
50
50
|
*/
|
|
51
51
|
bottomup: 'Bottom-up',
|
|
52
52
|
/**
|
|
53
|
-
* @description
|
|
53
|
+
* @description Title for the call tree tab in the details view of the Performance panel.
|
|
54
54
|
*/
|
|
55
55
|
callTree: 'Call tree',
|
|
56
56
|
/**
|
|
57
|
-
* @description
|
|
57
|
+
* @description Title for the event log tab in the details view of the Performance panel.
|
|
58
58
|
*/
|
|
59
59
|
eventLog: 'Event log',
|
|
60
60
|
/**
|
|
61
|
-
* @description Title
|
|
61
|
+
* @description Title for the paint profiler tab in the details view of the Performance panel.
|
|
62
62
|
*/
|
|
63
63
|
paintProfiler: 'Paint profiler',
|
|
64
64
|
/**
|
|
65
|
-
* @description Title of the
|
|
65
|
+
* @description Title for the layers tab in the details view of the Performance panel.
|
|
66
66
|
*/
|
|
67
67
|
layers: 'Layers',
|
|
68
68
|
/**
|
|
69
|
-
* @description Title
|
|
69
|
+
* @description Title for the selector stats tab in the details view of the Performance panel.
|
|
70
70
|
*/
|
|
71
71
|
selectorStats: 'Selector stats',
|
|
72
72
|
} as const;
|
|
@@ -74,8 +74,12 @@ const str_ = i18n.i18n.registerUIStrings('panels/timeline/TimelineDetailsView.ts
|
|
|
74
74
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
75
75
|
const {widget} = UI.Widget;
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
Common.ObjectWrapper.eventMixin
|
|
77
|
+
const TimelineDetailsPaneBase: Common.ObjectWrapper.EventMixin<TimelineTreeView.EventTypes, typeof UI.Widget.VBox> =
|
|
78
|
+
Common.ObjectWrapper.eventMixin(
|
|
79
|
+
UI.Widget.VBox,
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
export class TimelineDetailsPane extends TimelineDetailsPaneBase {
|
|
79
83
|
private readonly detailsLinkifier: Components.Linkifier.Linkifier;
|
|
80
84
|
private tabbedPane: UI.TabbedPane.TabbedPane;
|
|
81
85
|
private readonly defaultDetailsWidget: UI.Widget.VBox;
|
|
@@ -14,19 +14,19 @@ import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
|
14
14
|
|
|
15
15
|
const UIStrings = {
|
|
16
16
|
/**
|
|
17
|
-
* @description
|
|
17
|
+
* @description Label for the network overview strip in the Performance panel.
|
|
18
18
|
*/
|
|
19
19
|
net: 'NET',
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Label for the CPU overview strip in the Performance panel.
|
|
22
22
|
*/
|
|
23
23
|
cpu: 'CPU',
|
|
24
24
|
/**
|
|
25
|
-
* @description
|
|
25
|
+
* @description Label for the heap memory overview strip in the Performance panel.
|
|
26
26
|
*/
|
|
27
27
|
heap: 'HEAP',
|
|
28
28
|
/**
|
|
29
|
-
* @description
|
|
29
|
+
* @description Range label for minimum and maximum heap size in the heap memory overview strip of the Performance panel.
|
|
30
30
|
* @example {10 MB} PH1
|
|
31
31
|
* @example {30 MB} PH2
|
|
32
32
|
*/
|
|
@@ -31,71 +31,71 @@ import * as Utils from './utils/utils.js';
|
|
|
31
31
|
|
|
32
32
|
const UIStrings = {
|
|
33
33
|
/**
|
|
34
|
-
* @description
|
|
34
|
+
* @description Header for the frames track in the timeline flame chart.
|
|
35
35
|
*/
|
|
36
36
|
frames: 'Frames',
|
|
37
37
|
/**
|
|
38
|
-
* @description
|
|
38
|
+
* @description Label for an idle frame in the frames track.
|
|
39
39
|
*/
|
|
40
40
|
idleFrame: 'Idle frame',
|
|
41
41
|
/**
|
|
42
|
-
* @description
|
|
42
|
+
* @description Label for a dropped frame in the frames track.
|
|
43
43
|
*/
|
|
44
44
|
droppedFrame: 'Dropped frame',
|
|
45
45
|
/**
|
|
46
|
-
* @description
|
|
46
|
+
* @description Label for a partially-presented frame in the frames track.
|
|
47
47
|
*/
|
|
48
48
|
partiallyPresentedFrame: 'Partially-presented frame',
|
|
49
49
|
/**
|
|
50
|
-
* @description
|
|
50
|
+
* @description Label for a presented frame in the frames track.
|
|
51
51
|
*/
|
|
52
52
|
frame: 'Frame',
|
|
53
53
|
/**
|
|
54
|
-
* @description
|
|
54
|
+
* @description Context menu item to hide a function in the timeline flame chart.
|
|
55
55
|
*/
|
|
56
56
|
hideFunction: 'Hide function',
|
|
57
57
|
/**
|
|
58
|
-
* @description
|
|
58
|
+
* @description Context menu item to hide child entries of a function in the timeline flame chart.
|
|
59
59
|
*/
|
|
60
60
|
hideChildren: 'Hide children',
|
|
61
61
|
/**
|
|
62
|
-
* @description
|
|
62
|
+
* @description Context menu item to hide identical repeating child entries in the timeline flame chart.
|
|
63
63
|
*/
|
|
64
64
|
hideRepeatingChildren: 'Hide repeating children',
|
|
65
65
|
/**
|
|
66
|
-
* @description
|
|
66
|
+
* @description Context menu item to remove a script from the ignore list in the timeline flame chart.
|
|
67
67
|
*/
|
|
68
68
|
removeScriptFromIgnoreList: 'Remove script from ignore list',
|
|
69
69
|
/**
|
|
70
|
-
* @description
|
|
70
|
+
* @description Context menu item to add a script to the ignore list in the timeline flame chart.
|
|
71
71
|
*/
|
|
72
72
|
addScriptToIgnoreList: 'Add script to ignore list',
|
|
73
73
|
/**
|
|
74
|
-
* @description
|
|
74
|
+
* @description Context menu item to restore hidden child entries of an entry in the timeline flame chart.
|
|
75
75
|
*/
|
|
76
76
|
resetChildren: 'Reset children',
|
|
77
77
|
/**
|
|
78
|
-
* @description
|
|
78
|
+
* @description Context menu item to restore all hidden entries in the timeline flame chart.
|
|
79
79
|
*/
|
|
80
80
|
resetTrace: 'Reset trace',
|
|
81
81
|
/**
|
|
82
|
-
* @description
|
|
82
|
+
* @description Context menu item to start a chat in the AI assistance panel.
|
|
83
83
|
*/
|
|
84
84
|
startAChat: 'Start a chat',
|
|
85
85
|
/**
|
|
86
|
-
* @description Context menu item
|
|
86
|
+
* @description Context menu item to add a label annotation to an entry in the Performance panel.
|
|
87
87
|
*/
|
|
88
88
|
labelEntry: 'Label entry',
|
|
89
89
|
/**
|
|
90
|
-
* @description Context menu item
|
|
90
|
+
* @description Context menu item to assess the purpose of an entry using AI assistance in the Performance panel.
|
|
91
91
|
*/
|
|
92
92
|
assessThePurpose: 'Assess the purpose',
|
|
93
93
|
/**
|
|
94
|
-
* @description Context menu item
|
|
94
|
+
* @description Context menu item to identify time spent in a call tree using AI assistance in the Performance panel.
|
|
95
95
|
*/
|
|
96
96
|
identifyTimeSpent: 'Identify time spent',
|
|
97
97
|
/**
|
|
98
|
-
* @description Context menu item
|
|
98
|
+
* @description Context menu item to find performance improvements for a call tree using AI assistance in the Performance panel.
|
|
99
99
|
*/
|
|
100
100
|
findImprovements: 'Find improvements',
|
|
101
101
|
} as const;
|
|
@@ -1404,7 +1404,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
1406
|
|
|
1407
|
-
export const InstantEventVisibleDurationMs = Trace.Types.Timing.Milli(0.001);
|
|
1407
|
+
export const InstantEventVisibleDurationMs: Trace.Types.Timing.Milli = Trace.Types.Timing.Milli(0.001);
|
|
1408
1408
|
|
|
1409
1409
|
export const enum Events {
|
|
1410
1410
|
DATA_CHANGED = 'DataChanged',
|
|
@@ -49,7 +49,7 @@ import * as Utils from './utils/utils.js';
|
|
|
49
49
|
|
|
50
50
|
const UIStrings = {
|
|
51
51
|
/**
|
|
52
|
-
* @description
|
|
52
|
+
* @description Accessible title for a timeline marker at a given timestamp in the Performance panel.
|
|
53
53
|
* @example {Frame} PH1
|
|
54
54
|
* @example {10ms} PH2
|
|
55
55
|
*/
|
|
@@ -89,8 +89,13 @@ interface FlameChartDimmer {
|
|
|
89
89
|
outline: boolean|{main: number[] | boolean, network: number[]|boolean};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
const TimelineFlameChartViewBase: Common.ObjectWrapper.EventMixin<EventTypes, typeof UI.Widget.VBox> =
|
|
93
|
+
Common.ObjectWrapper.eventMixin(
|
|
94
|
+
UI.Widget.VBox,
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
export class TimelineFlameChartView extends TimelineFlameChartViewBase implements PerfUI.FlameChart.FlameChartDelegate,
|
|
98
|
+
UI.SearchableView.Searchable {
|
|
94
99
|
private readonly delegate: TimelineModeViewDelegate;
|
|
95
100
|
/**
|
|
96
101
|
* Tracks the indexes of matched entries when the user searches the panel.
|
|
@@ -26,46 +26,46 @@ import type {TimelineMiniMap} from './TimelineMiniMap.js';
|
|
|
26
26
|
* represent that as Infinity so we never accidentally collide with an actual
|
|
27
27
|
* trace (in reality a large number like 99 would probably suffice...)
|
|
28
28
|
*/
|
|
29
|
-
export const LANDING_PAGE_INDEX_DROPDOWN_CHOICE = Infinity;
|
|
29
|
+
export const LANDING_PAGE_INDEX_DROPDOWN_CHOICE: number = Infinity;
|
|
30
30
|
|
|
31
31
|
const UIStrings = {
|
|
32
32
|
/**
|
|
33
|
-
* @description Screen reader
|
|
33
|
+
* @description Screen reader announcement for the current session in the timeline history dropdown button.
|
|
34
34
|
* @example {example.com #3} PH1
|
|
35
35
|
* @example {Show recent timeline sessions} PH2
|
|
36
36
|
*/
|
|
37
37
|
currentSessionSS: 'Current session: {PH1}. {PH2}',
|
|
38
38
|
/**
|
|
39
|
-
* @description
|
|
39
|
+
* @description Title shown when viewing the live metrics landing page in the Performance panel.
|
|
40
40
|
*/
|
|
41
41
|
landingPageTitle: 'Live metrics',
|
|
42
42
|
/**
|
|
43
|
-
* @description
|
|
43
|
+
* @description Title shown when viewing the new recording landing page for Node.js in the Performance panel.
|
|
44
44
|
*/
|
|
45
45
|
nodeLandingPageTitle: 'New recording',
|
|
46
46
|
/**
|
|
47
|
-
* @description
|
|
47
|
+
* @description Format for a trace title with domain and sequence number in the timeline history dropdown.
|
|
48
48
|
* @example {example.com} PH1
|
|
49
49
|
* @example {2} PH2
|
|
50
50
|
*/
|
|
51
51
|
sD: '{PH1} #{PH2}',
|
|
52
52
|
/**
|
|
53
|
-
* @description
|
|
53
|
+
* @description Format for a custom trace title with sequence number in the timeline history dropdown.
|
|
54
54
|
* @example {Custom Profile} PH1
|
|
55
55
|
* @example {example.com #2} PH2
|
|
56
56
|
*/
|
|
57
57
|
customTitleWithSequence: '{PH1} ({PH2})',
|
|
58
58
|
/**
|
|
59
|
-
* @description Accessible label for the timeline session selection
|
|
59
|
+
* @description Accessible label for the timeline session selection dropdown in the Performance panel.
|
|
60
60
|
*/
|
|
61
61
|
selectTimelineSession: 'Select timeline session',
|
|
62
62
|
/**
|
|
63
|
-
* @description
|
|
63
|
+
* @description Label indicating a CPU slowdown multiplier applied to a recording in the timeline history dropdown.
|
|
64
64
|
* @example {2} PH1
|
|
65
65
|
*/
|
|
66
66
|
dSlowdown: '{PH1}× slowdown',
|
|
67
67
|
/**
|
|
68
|
-
* @description Tooltip
|
|
68
|
+
* @description Tooltip for the back button in the timeline session selection dropdown in the Performance panel.
|
|
69
69
|
*/
|
|
70
70
|
backButtonTooltip: 'View live metrics page',
|
|
71
71
|
} as const;
|
|
@@ -15,7 +15,7 @@ import type {Client} from './TimelineController.js';
|
|
|
15
15
|
|
|
16
16
|
const UIStrings = {
|
|
17
17
|
/**
|
|
18
|
-
* @description
|
|
18
|
+
* @description Error message displayed when timeline trace data cannot be parsed in the Performance panel.
|
|
19
19
|
* @example {Unknown JSON format} PH1
|
|
20
20
|
*/
|
|
21
21
|
malformedTimelineDataS: 'Malformed timeline data: {PH1}',
|
|
@@ -40,8 +40,13 @@ export interface OverviewData {
|
|
|
40
40
|
* update the visible trace window, and when this happens it will update the
|
|
41
41
|
* TraceBounds service with the new values.
|
|
42
42
|
*/
|
|
43
|
-
|
|
44
|
-
Common.ObjectWrapper.
|
|
43
|
+
const TimelineMiniMapBase:
|
|
44
|
+
Common.ObjectWrapper.EventMixin<PerfUI.TimelineOverviewPane.EventTypes, typeof UI.Widget.VBox> =
|
|
45
|
+
Common.ObjectWrapper.eventMixin(
|
|
46
|
+
UI.Widget.VBox,
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export class TimelineMiniMap extends TimelineMiniMapBase {
|
|
45
50
|
#overviewComponent = new PerfUI.TimelineOverviewPane.TimelineOverviewPane('timeline');
|
|
46
51
|
#controls: TimelineEventOverview[] = [];
|
|
47
52
|
breadcrumbs: TimelineComponents.Breadcrumbs.Breadcrumbs|null = null;
|
|
@@ -221,7 +221,11 @@ export interface TimelinePaintImageViewInput {
|
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
export
|
|
224
|
+
export type View = (input: TimelinePaintImageViewInput, output: undefined, target: HTMLElement) => {
|
|
225
|
+
imageElementNaturalHeight: number, imageElementNaturalWidth: number,
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
export const DEFAULT_VIEW: View = (input: TimelinePaintImageViewInput, _output: undefined, target: HTMLElement): {
|
|
225
229
|
imageElementNaturalHeight: number,
|
|
226
230
|
imageElementNaturalWidth: number,
|
|
227
231
|
} => {
|
|
@@ -262,13 +266,13 @@ export class TimelinePaintImageView extends UI.Widget.Widget {
|
|
|
262
266
|
maskElementStyle: {},
|
|
263
267
|
};
|
|
264
268
|
|
|
265
|
-
#view:
|
|
269
|
+
#view: View;
|
|
266
270
|
#imageElementDimensions?: {
|
|
267
271
|
naturalHeight: number,
|
|
268
272
|
naturalWidth: number,
|
|
269
273
|
};
|
|
270
274
|
|
|
271
|
-
constructor(view = DEFAULT_VIEW) {
|
|
275
|
+
constructor(view: View = DEFAULT_VIEW) {
|
|
272
276
|
super();
|
|
273
277
|
this.registerRequiredCSS(timelinePaintProfilerStyles);
|
|
274
278
|
this.#view = view;
|