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
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
27
27
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
28
|
*/
|
|
29
|
-
/* Profiler Style */
|
|
30
29
|
|
|
31
30
|
#profile-views {
|
|
32
31
|
flex: auto;
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
|
|
62
61
|
.profiles-toolbar {
|
|
63
62
|
background-color: var(--sys-color-cdt-base-container);
|
|
64
|
-
border-bottom:
|
|
63
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
65
64
|
flex-shrink: 0;
|
|
66
65
|
}
|
|
67
66
|
|
|
@@ -95,8 +94,8 @@
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
.profile-warn-marker {
|
|
98
|
-
vertical-align: -
|
|
99
|
-
margin-right:
|
|
97
|
+
vertical-align: calc(-1 * var(--sys-size-1));
|
|
98
|
+
margin-right: var(--sys-size-2);
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
.cpu-profile-flame-chart-overview-container {
|
|
@@ -104,17 +103,17 @@
|
|
|
104
103
|
position: absolute;
|
|
105
104
|
top: 0;
|
|
106
105
|
width: 100%;
|
|
107
|
-
height:
|
|
106
|
+
height: var(--sys-size-19);
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
#cpu-profile-flame-chart-overview-container {
|
|
111
|
-
border-bottom:
|
|
110
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
112
111
|
overflow: hidden;
|
|
113
112
|
}
|
|
114
113
|
|
|
115
114
|
.cpu-profile-flame-chart-overview-canvas {
|
|
116
115
|
position: absolute;
|
|
117
|
-
inset:
|
|
116
|
+
inset: var(--sys-size-9) 0 0;
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
#cpu-profile-flame-chart-overview-grid .resources-dividers-label-bar {
|
|
@@ -122,7 +121,7 @@
|
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
.cpu-profile-flame-chart-overview-pane {
|
|
125
|
-
flex: 0 0
|
|
124
|
+
flex: 0 0 var(--sys-size-19) !important; /* stylelint-disable-line declaration-no-important */
|
|
126
125
|
}
|
|
127
126
|
|
|
128
127
|
.profile-text-view {
|
|
@@ -139,7 +138,7 @@
|
|
|
139
138
|
justify-content: center;
|
|
140
139
|
align-items: center;
|
|
141
140
|
overflow: auto;
|
|
142
|
-
font-size:
|
|
141
|
+
font-size: var(--sys-typescale-body1-size);
|
|
143
142
|
color: var(--sys-color-token-subtle);
|
|
144
143
|
padding: 50px;
|
|
145
144
|
}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
/* Icon-related changes */
|
|
15
15
|
li .icon {
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
16
|
+
width: var(--sys-size-9);
|
|
17
|
+
height: var(--sys-size-9);
|
|
18
18
|
margin-right: var(--sys-size-6);
|
|
19
19
|
flex: none;
|
|
20
20
|
}
|
|
@@ -32,8 +32,8 @@ li .icon {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
li.small .icon {
|
|
35
|
-
width:
|
|
36
|
-
height:
|
|
35
|
+
width: var(--sys-size-8);
|
|
36
|
+
height: var(--sys-size-8);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
li.wait .icon {
|
|
@@ -86,13 +86,13 @@ ol.tree-outline {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
& .selection {
|
|
89
|
-
border-radius: 0
|
|
89
|
+
border-radius: 0 var(--sys-shape-corner-full) var(--sys-shape-corner-full) 0;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.tree-outline .profile-launcher-view-tree-item,
|
|
94
94
|
.tree-outline li.profiles-tree-section + .children > li {
|
|
95
|
-
border-radius: 0
|
|
95
|
+
border-radius: 0 var(--sys-shape-corner-full) var(--sys-shape-corner-full) 0;
|
|
96
96
|
position: relative;
|
|
97
97
|
|
|
98
98
|
&.selected {
|
|
@@ -121,7 +121,7 @@ ol.tree-outline {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
&:focus-visible {
|
|
124
|
-
box-shadow: inset 0 0 0
|
|
124
|
+
box-shadow: inset 0 0 0 var(--sys-size-2) var(--sys-color-state-focus-ring);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -146,17 +146,17 @@ ol.tree-outline {
|
|
|
146
146
|
/* Generic items styling */
|
|
147
147
|
|
|
148
148
|
li.wait .spinner::before {
|
|
149
|
-
--dimension:
|
|
149
|
+
--dimension: var(--sys-size-9);
|
|
150
150
|
|
|
151
151
|
margin: 0;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
li.wait.small .spinner::before {
|
|
155
|
-
--dimension:
|
|
155
|
+
--dimension: var(--sys-size-7);
|
|
156
156
|
--clip-size: 9px;
|
|
157
|
-
--override-spinner-size:
|
|
157
|
+
--override-spinner-size: var(--sys-size-2);
|
|
158
158
|
|
|
159
|
-
margin:
|
|
159
|
+
margin: var(--sys-size-1);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
li.wait.selected .spinner::before {
|
|
@@ -174,7 +174,7 @@ li.wait.selected .spinner::before {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
li.small {
|
|
177
|
-
height:
|
|
177
|
+
height: var(--sys-size-9);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
li .titles {
|
|
@@ -199,7 +199,7 @@ li .titles > .title-container .title.editing {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
li.small .titles {
|
|
202
|
-
top:
|
|
202
|
+
top: var(--sys-size-2);
|
|
203
203
|
line-height: normal;
|
|
204
204
|
}
|
|
205
205
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
.warning-icon {
|
|
25
25
|
margin-left: -18px;
|
|
26
|
-
margin-right:
|
|
26
|
+
margin-right: var(--sys-size-3);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.row {
|
|
@@ -104,5 +104,5 @@ ul {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.protocol-monitor-sidebar-toolbar {
|
|
107
|
-
border-top:
|
|
107
|
+
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
108
108
|
}
|
|
@@ -177,7 +177,12 @@ export interface EventTypes {
|
|
|
177
177
|
[Events.SUBMIT_EDITOR]: Command;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
const JSONEditorBase: Common.ObjectWrapper.EventMixin<EventTypes, typeof UI.Widget.VBox> =
|
|
181
|
+
Common.ObjectWrapper.eventMixin(
|
|
182
|
+
UI.Widget.VBox,
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
export class JSONEditor extends JSONEditorBase {
|
|
181
186
|
#metadataByCommand = new Map<string, {parameters: Parameter[], description: string, replyArgs: string[]}>();
|
|
182
187
|
#typesByName = new Map<string, Parameter[]>();
|
|
183
188
|
#enumsByName = new Map<string, Record<string, string>>();
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
@scope to (devtools-widget > *) {
|
|
7
7
|
.protocol-monitor-toolbar {
|
|
8
|
-
border-bottom:
|
|
8
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.protocol-monitor-bottom-toolbar {
|
|
12
|
-
border-top:
|
|
12
|
+
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.target-selector {
|
|
@@ -164,7 +164,7 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
164
164
|
#editor?: TextEditor.TextEditor.TextEditor;
|
|
165
165
|
#state?: CodeMirror.EditorState;
|
|
166
166
|
|
|
167
|
-
constructor(target?: HTMLElement, view = DEFAULT_VIEW) {
|
|
167
|
+
constructor(target?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
168
168
|
super({
|
|
169
169
|
jslog: `${VisualLogging.dialog('edit-breakpoint')}`,
|
|
170
170
|
useShadowDom: true,
|
|
@@ -498,7 +498,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
export const elementSymbol = Symbol('element');
|
|
501
|
+
export const elementSymbol: unique symbol = Symbol('element');
|
|
502
502
|
export const defaultMaxAsyncStackChainDepth = 32;
|
|
503
503
|
|
|
504
504
|
export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
@@ -182,7 +182,8 @@ const DEFAULT_VIEW = (input: ViewInput|null, _output: undefined, target: Documen
|
|
|
182
182
|
type View = typeof DEFAULT_VIEW;
|
|
183
183
|
|
|
184
184
|
export class DebuggerPausedMessage extends UI.Widget.Widget<ShadowRoot> {
|
|
185
|
-
static override readonly INJECT
|
|
185
|
+
static override readonly INJECT: readonly[typeof SDK.EventBreakpointsModel.EventBreakpointsManager] =
|
|
186
|
+
[SDK.EventBreakpointsModel.EventBreakpointsManager] as const;
|
|
186
187
|
|
|
187
188
|
#viewInput: ViewInput|null = null;
|
|
188
189
|
readonly #eventBreakpointsManager: SDK.EventBreakpointsModel.EventBreakpointsManager;
|
|
@@ -342,11 +343,12 @@ export class DebuggerPausedMessage extends UI.Widget.Widget<ShadowRoot> {
|
|
|
342
343
|
}
|
|
343
344
|
}
|
|
344
345
|
|
|
345
|
-
export const BreakpointTypeNouns
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
]
|
|
346
|
+
export const BreakpointTypeNouns: Map<Protocol.DOMDebugger.DOMBreakpointType, () => Platform.UIString.LocalizedString> =
|
|
347
|
+
new Map([
|
|
348
|
+
[Protocol.DOMDebugger.DOMBreakpointType.SubtreeModified, i18nLazyString(UIStrings.subtreeModifications)],
|
|
349
|
+
[Protocol.DOMDebugger.DOMBreakpointType.AttributeModified, i18nLazyString(UIStrings.attributeModifications)],
|
|
350
|
+
[Protocol.DOMDebugger.DOMBreakpointType.NodeRemoved, i18nLazyString(UIStrings.nodeRemoval)],
|
|
351
|
+
]);
|
|
350
352
|
|
|
351
353
|
interface PausedDetailsAuxData {
|
|
352
354
|
description?: string;
|
|
@@ -66,7 +66,8 @@ function markersFromProfileData(map: Workspace.UISourceCode.LineColumnProfileMap
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export class PerformanceProfilePlugin extends Plugin {
|
|
69
|
-
updateEffect
|
|
69
|
+
updateEffect: CodeMirror.StateEffectType<Workspace.UISourceCode.LineColumnProfileMap> =
|
|
70
|
+
CodeMirror.StateEffect.define<Workspace.UISourceCode.LineColumnProfileMap>();
|
|
70
71
|
field: CodeMirror.StateField<CodeMirror.RangeSet<CodeMirror.GutterMarker>>;
|
|
71
72
|
gutter: CodeMirror.Extension;
|
|
72
73
|
compartment: CodeMirror.Compartment = new CodeMirror.Compartment();
|
|
@@ -189,7 +189,7 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
|
|
|
189
189
|
null;
|
|
190
190
|
#view: View;
|
|
191
191
|
|
|
192
|
-
constructor(target?: HTMLElement, view = DEFAULT_VIEW) {
|
|
192
|
+
constructor(target?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
193
193
|
super(target, {
|
|
194
194
|
jslog: `${VisualLogging.section('sources.scope-chain')}`,
|
|
195
195
|
useShadowDom: true,
|
|
@@ -117,8 +117,13 @@ export const DEFAULT_VIEW: View = (input, output, target): void => {
|
|
|
117
117
|
// clang-format on
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
const SourcesViewBase: Common.ObjectWrapper.EventMixin<EventTypes, typeof UI.Widget.VBox> =
|
|
121
|
+
Common.ObjectWrapper.eventMixin(
|
|
122
|
+
UI.Widget.VBox,
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
export class SourcesView extends SourcesViewBase implements UI.SearchableView.Searchable,
|
|
126
|
+
UI.SearchableView.Replaceable {
|
|
122
127
|
#searchableView!: UI.SearchableView.SearchableView;
|
|
123
128
|
editorContainer?: TabbedEditorContainer;
|
|
124
129
|
#uiSourceCodes = new Set<Workspace.UISourceCode.UISourceCode>();
|
|
@@ -86,8 +86,12 @@ const HEADER_OVERRIDES_FILENAME = '.headers';
|
|
|
86
86
|
|
|
87
87
|
let tabId = 0;
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
const TabbedEditorContainerBase: Common.ObjectWrapper.EventMixin<EventTypes, typeof UI.Widget.VBox> =
|
|
90
|
+
Common.ObjectWrapper.eventMixin(
|
|
91
|
+
UI.Widget.VBox,
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
export class TabbedEditorContainer extends TabbedEditorContainerBase {
|
|
91
95
|
#historyManager!: EditingLocationHistoryManager;
|
|
92
96
|
set historyManager(historyManager: EditingLocationHistoryManager) {
|
|
93
97
|
this.#historyManager = historyManager;
|
|
@@ -40,9 +40,13 @@ const UIStrings = {
|
|
|
40
40
|
const str_ = i18n.i18n.registerUIStrings('panels/sources/UISourceCodeFrame.ts', UIStrings);
|
|
41
41
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
const UISourceCodeFrameBase:
|
|
44
|
+
Common.ObjectWrapper.EventMixin<EventTypes, typeof SourceFrame.SourceFrame.SourceFrameImpl> =
|
|
45
|
+
Common.ObjectWrapper.eventMixin(
|
|
46
|
+
SourceFrame.SourceFrame.SourceFrameImpl,
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export class UISourceCodeFrame extends UISourceCodeFrameBase {
|
|
46
50
|
#uiSourceCode: Workspace.UISourceCode.UISourceCode;
|
|
47
51
|
#muteSourceCodeEvents = false;
|
|
48
52
|
#persistenceBinding: Persistence.Persistence.PersistenceBinding|null;
|
|
@@ -150,6 +154,7 @@ export class UISourceCodeFrame extends Common.ObjectWrapper
|
|
|
150
154
|
}
|
|
151
155
|
|
|
152
156
|
private unloadUISourceCode(): void {
|
|
157
|
+
this.textEditor.removeAttribute('data-file-path');
|
|
153
158
|
Common.EventTarget.removeEventListeners(this.#messageAndDecorationListeners);
|
|
154
159
|
Common.EventTarget.removeEventListeners(this.#uiSourceCodeEventListeners);
|
|
155
160
|
this.#uiSourceCode.removeWorkingCopyGetter();
|
|
@@ -158,6 +163,7 @@ export class UISourceCodeFrame extends Common.ObjectWrapper
|
|
|
158
163
|
}
|
|
159
164
|
|
|
160
165
|
private initializeUISourceCode(): void {
|
|
166
|
+
this.textEditor.setAttribute('data-file-path', this.#uiSourceCode.url());
|
|
161
167
|
this.#uiSourceCodeEventListeners = [
|
|
162
168
|
this.#uiSourceCode.addEventListener(
|
|
163
169
|
Workspace.UISourceCode.Events.WorkingCopyChanged, this.onWorkingCopyChanged, this),
|
|
@@ -333,6 +339,7 @@ export class UISourceCodeFrame extends Common.ObjectWrapper
|
|
|
333
339
|
}
|
|
334
340
|
|
|
335
341
|
private onTitleChanged(): void {
|
|
342
|
+
this.textEditor.setAttribute('data-file-path', this.#uiSourceCode.url());
|
|
336
343
|
this.updateLanguageMode('').then(() => this.reloadPlugins(), console.error);
|
|
337
344
|
}
|
|
338
345
|
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
|
|
18
18
|
const UIStrings = {
|
|
19
19
|
/**
|
|
20
|
-
* @description
|
|
20
|
+
* @description Header for the animations track in the timeline flame chart of the Performance panel.
|
|
21
21
|
*/
|
|
22
22
|
animations: 'Animations',
|
|
23
23
|
} as const;
|
|
@@ -11,44 +11,44 @@ import type {AnnotationModifiedEvent} from './ModificationsManager.js';
|
|
|
11
11
|
|
|
12
12
|
const UIStrings = {
|
|
13
13
|
/**
|
|
14
|
-
* @description
|
|
14
|
+
* @description Screen reader announcement when entering label editing mode in the Performance panel.
|
|
15
15
|
*/
|
|
16
16
|
srEnterLabelEditMode: 'Editing the annotation label text',
|
|
17
17
|
/**
|
|
18
|
-
* @description
|
|
18
|
+
* @description Screen reader announcement when an entry label text has been updated in the Performance panel.
|
|
19
19
|
* @example {Hello world} PH1
|
|
20
20
|
*/
|
|
21
21
|
srLabelTextUpdated: 'Label updated to {PH1}',
|
|
22
22
|
/**
|
|
23
|
-
* @description
|
|
23
|
+
* @description Screen reader announcement when the bounds of a time range annotation have been updated in the Performance panel.
|
|
24
24
|
* @example {13ms} PH1
|
|
25
25
|
* @example {20ms} PH2
|
|
26
26
|
*/
|
|
27
27
|
srTimeRangeBoundsUpdated: 'Time range updated, starting at {PH1} and ending at {PH2}',
|
|
28
28
|
/**
|
|
29
|
-
* @description label for a time range overlay
|
|
29
|
+
* @description Accessible label for a time range overlay in the timeline flame chart.
|
|
30
30
|
*/
|
|
31
31
|
timeRange: 'time range',
|
|
32
32
|
/**
|
|
33
|
-
* @description label for
|
|
33
|
+
* @description Accessible label for an entry label overlay in the timeline flame chart.
|
|
34
34
|
*/
|
|
35
35
|
entryLabel: 'entry label',
|
|
36
36
|
/**
|
|
37
|
-
* @description label for a connected entries overlay
|
|
37
|
+
* @description Accessible label for a connected entries overlay in the timeline flame chart.
|
|
38
38
|
*/
|
|
39
39
|
entriesLink: 'connected entries',
|
|
40
40
|
/**
|
|
41
|
-
* @description
|
|
41
|
+
* @description Screen reader announcement when an annotation has been removed in the Performance panel.
|
|
42
42
|
* @example {Entry Label} PH1
|
|
43
43
|
*/
|
|
44
44
|
srAnnotationRemoved: 'The {PH1} annotation has been removed',
|
|
45
45
|
/**
|
|
46
|
-
* @description
|
|
46
|
+
* @description Screen reader announcement when an annotation has been added in the Performance panel.
|
|
47
47
|
* @example {Entry Label} PH1
|
|
48
48
|
*/
|
|
49
49
|
srAnnotationAdded: 'The {PH1} annotation has been added',
|
|
50
50
|
/**
|
|
51
|
-
* @description
|
|
51
|
+
* @description Screen reader announcement when the connected entries annotation links to two events in the Performance panel.
|
|
52
52
|
* @example {Paint} PH1
|
|
53
53
|
* @example {Function call} PH2
|
|
54
54
|
*/
|
|
@@ -18,35 +18,35 @@ import type {TimelineModeViewDelegate} from './TimelinePanel.js';
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Label for the JS heap counter in the counters graph of the Performance panel.
|
|
22
22
|
*/
|
|
23
23
|
jsHeap: 'JS heap',
|
|
24
24
|
/**
|
|
25
|
-
* @description
|
|
25
|
+
* @description Label for the documents counter in the counters graph of the Performance panel.
|
|
26
26
|
*/
|
|
27
27
|
documents: 'Documents',
|
|
28
28
|
/**
|
|
29
|
-
* @description
|
|
29
|
+
* @description Label for the DOM nodes counter in the counters graph of the Performance panel.
|
|
30
30
|
*/
|
|
31
31
|
nodes: 'Nodes',
|
|
32
32
|
/**
|
|
33
|
-
* @description
|
|
33
|
+
* @description Label for the event listeners counter in the counters graph of the Performance panel.
|
|
34
34
|
*/
|
|
35
35
|
listeners: 'Listeners',
|
|
36
36
|
/**
|
|
37
|
-
* @description
|
|
37
|
+
* @description Label for the GPU memory counter in the counters graph of the Performance panel.
|
|
38
38
|
*/
|
|
39
39
|
gpuMemory: 'GPU memory',
|
|
40
40
|
/**
|
|
41
|
-
* @description Range text content in
|
|
41
|
+
* @description Range text content in the counters graph of the Performance panel.
|
|
42
42
|
* @example {2} PH1
|
|
43
43
|
* @example {10} PH2
|
|
44
44
|
*/
|
|
45
45
|
ss: '[{PH1} – {PH2}]',
|
|
46
46
|
/**
|
|
47
|
-
* @description
|
|
47
|
+
* @description Message displayed when no memory usage data is found in the counters graph of the Performance panel.
|
|
48
48
|
*/
|
|
49
|
-
noEventsFound: 'No memory usage data found within selected events
|
|
49
|
+
noEventsFound: 'No memory usage data found within selected events',
|
|
50
50
|
} as const;
|
|
51
51
|
const str_ = i18n.i18n.registerUIStrings('panels/timeline/CountersGraph.ts', UIStrings);
|
|
52
52
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -18,15 +18,15 @@ import {TimelineUIUtils} from './TimelineUIUtils.js';
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Column header for start time in the event log tree view of the Performance panel.
|
|
22
22
|
*/
|
|
23
23
|
startTime: 'Start time',
|
|
24
24
|
/**
|
|
25
|
-
* @description Screen reader label for a select box that filters the
|
|
25
|
+
* @description Screen reader label for a select box that filters the event log by duration in the Performance panel.
|
|
26
26
|
*/
|
|
27
27
|
durationFilter: 'Duration filter',
|
|
28
28
|
/**
|
|
29
|
-
* @description
|
|
29
|
+
* @description Option in the duration filter dropdown to show all events in the event log of the Performance panel.
|
|
30
30
|
*/
|
|
31
31
|
all: 'All',
|
|
32
32
|
} as const;
|
|
@@ -18,7 +18,7 @@ import * as Extensions from './extensions/extensions.js';
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Subtitle shown next to the track name for an extension track in the timeline flame chart.
|
|
22
22
|
*/
|
|
23
23
|
customTrackSubtitle: '— Custom',
|
|
24
24
|
} as const;
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
|
|
17
17
|
const UIStrings = {
|
|
18
18
|
/**
|
|
19
|
-
* @description
|
|
19
|
+
* @description Header for the GPU track in the timeline flame chart of the Performance panel.
|
|
20
20
|
*/
|
|
21
21
|
gpu: 'GPU',
|
|
22
22
|
} as const;
|
|
@@ -19,7 +19,7 @@ import * as Components from './components/components.js';
|
|
|
19
19
|
|
|
20
20
|
const UIStrings = {
|
|
21
21
|
/**
|
|
22
|
-
* @description
|
|
22
|
+
* @description Header for the interactions track in the timeline flame chart of the Performance panel.
|
|
23
23
|
*/
|
|
24
24
|
interactions: 'Interactions',
|
|
25
25
|
} as const;
|
|
@@ -10,11 +10,11 @@ import * as UI from '../../ui/legacy/legacy.js';
|
|
|
10
10
|
|
|
11
11
|
const UIStrings = {
|
|
12
12
|
/**
|
|
13
|
-
* @description
|
|
13
|
+
* @description Placeholder text shown when a JavaScript VM isolate has no label in the Performance panel.
|
|
14
14
|
*/
|
|
15
15
|
empty: '(empty)',
|
|
16
16
|
/**
|
|
17
|
-
* @description
|
|
17
|
+
* @description Title for the dropdown to select a JavaScript VM instance in the Performance panel.
|
|
18
18
|
*/
|
|
19
19
|
selectJavascriptVmInstance: 'Select JavaScript VM instance',
|
|
20
20
|
} as const;
|
|
@@ -25,7 +25,7 @@ export class IsolateSelector extends UI.Toolbar.ToolbarItem implements SDK.Isola
|
|
|
25
25
|
menu: Menus.SelectMenu.SelectMenu;
|
|
26
26
|
options?: Array<{index: number, isolate: SDK.IsolateManager.Isolate}>;
|
|
27
27
|
items?: Menus.Menu.MenuItem[];
|
|
28
|
-
readonly itemByIsolate
|
|
28
|
+
readonly itemByIsolate: Map<SDK.IsolateManager.Isolate, Menus.Menu.MenuItem> = new Map();
|
|
29
29
|
readonly #targetManager: SDK.TargetManager.TargetManager;
|
|
30
30
|
readonly #isolateManager: SDK.IsolateManager.IsolateManager;
|
|
31
31
|
|
|
@@ -24,15 +24,15 @@ import * as Utils from './utils/utils.js';
|
|
|
24
24
|
|
|
25
25
|
const UIStrings = {
|
|
26
26
|
/**
|
|
27
|
-
* @description
|
|
27
|
+
* @description Header for the layout shifts track in the timeline flame chart of the Performance panel.
|
|
28
28
|
*/
|
|
29
29
|
layoutShifts: 'Layout shifts',
|
|
30
30
|
/**
|
|
31
|
-
* @description
|
|
31
|
+
* @description Title for a layout shift cluster event in the timeline flame chart.
|
|
32
32
|
*/
|
|
33
33
|
layoutShiftCluster: 'Layout shift cluster',
|
|
34
34
|
/**
|
|
35
|
-
* @description
|
|
35
|
+
* @description Title for a layout shift event in the timeline flame chart.
|
|
36
36
|
*/
|
|
37
37
|
layoutShift: 'Layout shift',
|
|
38
38
|
} as const;
|
|
@@ -48,7 +48,7 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
|
48
48
|
* allow us to do this properly and not hack around it.
|
|
49
49
|
* TODO: Delete this once the new Layout Shift UI ships out of the TIMELINE_LAYOUT_SHIFT_DETAILS experiment
|
|
50
50
|
**/
|
|
51
|
-
export const LAYOUT_SHIFT_SYNTHETIC_DURATION = Trace.Types.Timing.Micro(5_000);
|
|
51
|
+
export const LAYOUT_SHIFT_SYNTHETIC_DURATION: Trace.Types.Timing.Micro = Trace.Types.Timing.Micro(5_000);
|
|
52
52
|
|
|
53
53
|
export class LayoutShiftsTrackAppender implements TrackAppender {
|
|
54
54
|
readonly appenderName: TrackAppenderName = 'LayoutShifts';
|
|
@@ -23,7 +23,7 @@ import {InstantEventVisibleDurationMs} from './TimelineFlameChartDataProvider.js
|
|
|
23
23
|
|
|
24
24
|
const UIStrings = {
|
|
25
25
|
/**
|
|
26
|
-
* @description
|
|
26
|
+
* @description Header for the network track in the timeline flame chart of the Performance panel.
|
|
27
27
|
*/
|
|
28
28
|
network: 'Network',
|
|
29
29
|
} as const;
|
|
@@ -37,7 +37,7 @@ export class NetworkTrackAppender implements TrackAppender {
|
|
|
37
37
|
readonly appenderName: TrackAppenderName = 'Network';
|
|
38
38
|
|
|
39
39
|
#flameChartData: PerfUI.FlameChart.FlameChartTimelineData;
|
|
40
|
-
webSocketIdToLevel
|
|
40
|
+
webSocketIdToLevel: Map<number, number> = new Map();
|
|
41
41
|
#events: NetworkTrackEvent[] = [];
|
|
42
42
|
|
|
43
43
|
#font: string;
|
|
@@ -19,26 +19,25 @@ import timelineStatusDialogStyles from './timelineStatusDialog.css.js';
|
|
|
19
19
|
|
|
20
20
|
const UIStrings = {
|
|
21
21
|
/**
|
|
22
|
-
* @description
|
|
22
|
+
* @description Button label to download the trace file after an error in the status dialog.
|
|
23
23
|
*/
|
|
24
24
|
downloadAfterError: 'Download trace',
|
|
25
25
|
/**
|
|
26
|
-
* @description
|
|
26
|
+
* @description Label for the status field in the status dialog.
|
|
27
27
|
*/
|
|
28
28
|
status: 'Status',
|
|
29
29
|
/**
|
|
30
|
-
* @description
|
|
30
|
+
* @description Label for the elapsed time field in the status dialog.
|
|
31
31
|
*/
|
|
32
32
|
time: 'Time',
|
|
33
33
|
/**
|
|
34
|
-
* @description
|
|
34
|
+
* @description Label for the description field in the status dialog.
|
|
35
35
|
*/
|
|
36
36
|
description: 'Description',
|
|
37
37
|
/**
|
|
38
|
-
* @description
|
|
38
|
+
* @description Button label to stop recording in the status dialog.
|
|
39
39
|
*/
|
|
40
40
|
stop: 'Stop',
|
|
41
|
-
|
|
42
41
|
} as const;
|
|
43
42
|
const str_ = i18n.i18n.registerUIStrings('panels/timeline/StatusDialog.ts', UIStrings);
|
|
44
43
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -13,19 +13,19 @@ import * as TimelineTreeView from './TimelineTreeView.js';
|
|
|
13
13
|
|
|
14
14
|
const UIStrings = {
|
|
15
15
|
/**
|
|
16
|
-
* @description
|
|
16
|
+
* @description Label for an unattributed entity in the 1st / 3rd party tree view.
|
|
17
17
|
*/
|
|
18
18
|
unattributed: '[unattributed]',
|
|
19
19
|
/**
|
|
20
|
-
* @description
|
|
20
|
+
* @description Column header for entity names in the 1st / 3rd party tree view.
|
|
21
21
|
*/
|
|
22
22
|
firstOrThirdPartyName: '1st / 3rd party',
|
|
23
23
|
/**
|
|
24
|
-
* @description
|
|
24
|
+
* @description Column header for the network transfer size in the 1st / 3rd party tree view.
|
|
25
25
|
*/
|
|
26
26
|
transferSize: 'Transfer size',
|
|
27
27
|
/**
|
|
28
|
-
* @description
|
|
28
|
+
* @description Column header for the main thread time in the 1st / 3rd party tree view.
|
|
29
29
|
*/
|
|
30
30
|
mainThreadTime: 'Main thread time',
|
|
31
31
|
} as const;
|