chrome-devtools-frontend 1.0.1683520 → 1.0.1689415
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/.agents/skills/gerrit-cli/SKILL.md +29 -8
- package/.agents/skills/gerrit-cli/references/commands.md +51 -18
- package/.agents/skills/gerrit-cli/references/workflows.md +6 -6
- package/.agents/skills/gerrit-cli/scripts/import_upstream.py +43 -70
- package/AUTHORS +1 -0
- package/config/typescript/tsconfig.base.json +1 -0
- package/config/typescript/tsconfig.eslint.json +9 -0
- package/docs/contributing/issues.md +1 -1
- package/docs/styleguide/ux/writing.md +2 -2
- package/eslint.config.mjs +18 -10
- package/front_end/core/common/Base64.ts +1 -1
- package/front_end/core/common/Color.ts +28 -6
- package/front_end/core/common/ColorConverter.ts +12 -0
- package/front_end/core/common/Console.ts +2 -1
- package/front_end/core/common/Object.ts +2 -2
- package/front_end/core/common/ResourceType.ts +12 -13
- package/front_end/core/common/Revealer.ts +1 -1
- package/front_end/core/common/Settings.ts +2 -2
- package/front_end/core/common/TextDictionary.ts +2 -2
- package/front_end/core/common/Throttler.ts +1 -1
- package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -2
- package/front_end/core/host/UserMetrics.ts +51 -37
- package/front_end/core/host/host.ts +1 -1
- package/front_end/core/i18n/i18nImpl.ts +1 -1
- package/front_end/core/platform/HostRuntime.ts +3 -3
- package/front_end/core/platform/KeyboardUtilities.ts +1 -1
- package/front_end/core/protocol_client/InspectorBackend.ts +7 -6
- package/front_end/core/root/Runtime.ts +4 -2
- package/front_end/core/sdk/AnimationModel.ts +1 -1
- package/front_end/core/sdk/CPUThrottlingManager.ts +198 -0
- package/front_end/core/sdk/CSSMetadata.ts +11 -6
- package/front_end/core/sdk/CSSPropertyParser.ts +5 -3
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +90 -59
- package/front_end/core/sdk/ConsoleModel.ts +1 -1
- package/front_end/core/sdk/DOMModel.ts +3 -3
- package/front_end/core/sdk/DebuggerModel.ts +1 -1
- package/front_end/core/sdk/EmulationModel.ts +5 -0
- package/front_end/core/sdk/LayerTreeBase.ts +1 -1
- package/front_end/core/sdk/NetworkManager.ts +1 -1
- package/front_end/core/sdk/README.md +40 -0
- package/front_end/core/sdk/RehydratingConnection.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +1 -1
- package/front_end/core/sdk/ResourceTreeModel.ts +2 -2
- package/front_end/core/sdk/SDKModel.ts +1 -1
- package/front_end/core/sdk/SDKSettings.ts +6 -0
- package/front_end/core/sdk/Script.ts +2 -1
- package/front_end/core/sdk/SecurityOrigin.ts +48 -0
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +0 -7
- package/front_end/core/sdk/ServiceWorkerManager.ts +75 -17
- package/front_end/core/sdk/StorageBucketsModel.ts +0 -6
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/core/text_utils/ContentData.ts +1 -1
- package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +3 -1
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -1
- package/front_end/entrypoints/formatter_worker/ScopeParser.ts +2 -2
- package/front_end/entrypoints/formatter_worker/Substitute.ts +1 -1
- package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -1
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -1
- package/front_end/entrypoints/inspector_main/nodeIcon.css +1 -1
- package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +3 -3
- package/front_end/entrypoints/inspector_main/renderingOptions.css +3 -3
- package/front_end/entrypoints/js_app/js_app.ts +25 -9
- package/front_end/entrypoints/main/MainImpl.ts +2 -1
- package/front_end/entrypoints/main/main-meta.ts +5 -31
- package/front_end/entrypoints/node_app/app/nodeConnectionsPanel.css +5 -5
- package/front_end/entrypoints/node_app/node_app.ts +1 -1
- package/front_end/foundation/Universe.ts +7 -0
- package/front_end/generated/ARIAProperties.ts +39 -1
- package/front_end/generated/InspectorBackendCommands.ts +13 -22
- package/front_end/generated/SupportedCSSProperties.ts +60 -119
- package/front_end/generated/protocol-mapping.d.ts +18 -59
- package/front_end/generated/protocol-proxy-api.d.ts +14 -47
- package/front_end/generated/protocol.ts +104 -331
- package/front_end/models/ai_assistance/AiAgent2.ts +25 -11
- package/front_end/models/ai_assistance/AiConversation.ts +23 -14
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +2 -2
- package/front_end/models/ai_assistance/AiUtils.ts +16 -0
- package/front_end/models/ai_assistance/EvaluateAction.ts +1 -1
- package/front_end/models/ai_assistance/README.md +1 -1
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +2 -3
- package/front_end/models/ai_assistance/agents/AiAgent.ts +40 -25
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +4 -3
- package/front_end/models/ai_assistance/agents/FileAgent.ts +2 -2
- package/front_end/models/ai_assistance/agents/NetworkAgent.ts +2 -2
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +1 -1
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +13 -11
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +9 -7
- package/front_end/models/ai_assistance/ai_assistance.ts +12 -0
- package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +16 -1
- package/front_end/models/ai_assistance/contexts/FileContext.ts +6 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +150 -325
- package/front_end/models/ai_assistance/injected.ts +5 -3
- package/front_end/models/ai_assistance/performance/AIContext.ts +1 -1
- package/front_end/models/ai_assistance/skills/README.md +1 -1
- package/front_end/models/ai_assistance/skills/accessibility.md +19 -10
- package/front_end/models/ai_assistance/skills/network.md +13 -7
- package/front_end/models/ai_assistance/skills/performance.md +22 -16
- package/front_end/models/ai_assistance/skills/sources.md +13 -7
- package/front_end/models/ai_assistance/skills/storage.md +19 -18
- package/front_end/models/ai_assistance/skills/styling.md +30 -37
- package/front_end/models/ai_assistance/tools/CookieUtils.ts +120 -0
- package/front_end/models/ai_assistance/tools/DOMStorageUtils.ts +53 -4
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +8 -32
- package/front_end/models/ai_assistance/tools/GetCookieValues.ts +146 -0
- package/front_end/models/ai_assistance/tools/GetDetailedCallTree.ts +11 -9
- package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +17 -5
- package/front_end/models/ai_assistance/tools/GetFunctionCode.ts +12 -11
- package/front_end/models/ai_assistance/tools/GetInsightDetails.ts +11 -11
- package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +15 -8
- package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +3 -3
- package/front_end/models/ai_assistance/tools/GetResourceContent.ts +12 -12
- package/front_end/models/ai_assistance/tools/GetSourceContent.ts +3 -2
- package/front_end/models/ai_assistance/tools/GetStorageBreakdown.ts +132 -0
- package/front_end/models/ai_assistance/tools/GetStorageValues.ts +18 -5
- package/front_end/models/ai_assistance/tools/GetStyles.ts +3 -3
- package/front_end/models/ai_assistance/tools/GetTraceEventByKey.ts +9 -8
- package/front_end/models/ai_assistance/tools/GetTraceMainThreadSummary.ts +13 -14
- package/front_end/models/ai_assistance/tools/GetTraceNetworkSummary.ts +12 -10
- package/front_end/models/ai_assistance/tools/ListCookies.ts +93 -0
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +15 -6
- package/front_end/models/ai_assistance/tools/ListPageOrigins.ts +3 -3
- package/front_end/models/ai_assistance/tools/ListSources.ts +5 -3
- package/front_end/models/ai_assistance/tools/ListStorageKeys.ts +17 -5
- package/front_end/models/ai_assistance/tools/RecordPerformanceTrace.ts +3 -2
- package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +4 -3
- package/front_end/models/ai_assistance/tools/RunLighthouse.ts +14 -17
- package/front_end/models/ai_assistance/tools/SelectTraceEventByKey.ts +9 -8
- package/front_end/models/ai_assistance/tools/Tool.ts +36 -13
- package/front_end/models/ai_assistance/tools/ToolRegistry.ts +41 -8
- package/front_end/models/badges/AiExplorerBadge.ts +3 -3
- package/front_end/models/badges/CodeWhispererBadge.ts +2 -2
- package/front_end/models/badges/DOMDetectiveBadge.ts +3 -3
- package/front_end/models/badges/SpeedsterBadge.ts +3 -3
- package/front_end/models/badges/StarterBadge.ts +4 -4
- package/front_end/models/bindings/CompilerScriptMapping.ts +11 -2
- package/front_end/models/bindings/ContentProviderBasedProject.ts +3 -2
- package/front_end/models/breakpoints/BreakpointManager.ts +1 -1
- package/front_end/models/emulation/EmulatedDevices.ts +2 -2
- package/front_end/models/formatter/FormatterWorkerPool.ts +2 -2
- package/front_end/models/formatter/ScriptFormatter.ts +1 -2
- package/front_end/models/geometry/GeometryImpl.ts +2 -2
- package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +1 -1
- package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +3 -2
- package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +5 -5
- package/front_end/models/issues_manager/DOMIssuesManager.ts +144 -0
- package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +13 -1
- package/front_end/models/issues_manager/GenericIssue.ts +32 -20
- package/front_end/models/issues_manager/IssuesManager.ts +0 -1
- package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +1 -1
- package/front_end/models/issues_manager/issues_manager.ts +2 -0
- package/front_end/models/javascript_metadata/{NativeFunctions.js → NativeFunctions.ts} +29 -9
- package/front_end/models/live-metrics/LiveMetrics.ts +9 -3
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +58 -6
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +2 -62
- package/front_end/models/network_time_calculator/RequestTimeRanges.ts +2 -2
- package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +5 -0
- package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
- package/front_end/models/persistence/NetworkPersistenceManager.ts +35 -6
- package/front_end/models/stack_trace/StackTraceImpl.ts +2 -2
- package/front_end/models/trace/LanternComputationData.ts +2 -3
- package/front_end/models/trace/extras/StackTraceForEvent.ts +3 -2
- package/front_end/models/trace/extras/ThirdParties.ts +9 -9
- package/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +7 -4
- package/front_end/models/trace/handlers/FramesHandler.ts +3 -3
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +2 -2
- package/front_end/models/trace/handlers/SamplesHandler.ts +4 -2
- package/front_end/models/trace/handlers/UserInteractionsHandler.ts +1 -1
- package/front_end/models/trace/handlers/WarningsHandler.ts +2 -2
- package/front_end/models/trace/helpers/Network.ts +3 -3
- package/front_end/models/trace/helpers/Trace.ts +1 -1
- package/front_end/models/trace/insights/CLSCulprits.ts +2 -1
- package/front_end/models/trace/insights/Cache.ts +3 -1
- package/front_end/models/trace/insights/CharacterSet.ts +3 -1
- package/front_end/models/trace/insights/DOMSize.ts +3 -1
- package/front_end/models/trace/insights/DocumentLatency.ts +3 -1
- package/front_end/models/trace/insights/DuplicatedJavaScript.ts +3 -1
- package/front_end/models/trace/insights/FontDisplay.ts +2 -1
- package/front_end/models/trace/insights/ForcedReflow.ts +2 -1
- package/front_end/models/trace/insights/INPBreakdown.ts +3 -1
- package/front_end/models/trace/insights/ImageDelivery.ts +3 -1
- package/front_end/models/trace/insights/LCPBreakdown.ts +3 -1
- package/front_end/models/trace/insights/LCPDiscovery.ts +3 -1
- package/front_end/models/trace/insights/LegacyJavaScript.ts +3 -1
- package/front_end/models/trace/insights/ModernHTTP.ts +2 -1
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +2 -1
- package/front_end/models/trace/insights/RenderBlocking.ts +5 -4
- package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -1
- package/front_end/models/trace/insights/ThirdParties.ts +5 -3
- package/front_end/models/trace/insights/Viewport.ts +2 -1
- package/front_end/models/trace/lantern/simulation/Constants.ts +34 -2
- package/front_end/models/trace/lantern/simulation/DNSCache.ts +1 -1
- package/front_end/models/trace/types/TraceEvents.ts +8 -3
- package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +2 -1
- package/front_end/models/workspace/WorkspaceImpl.ts +18 -2
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +686 -2
- package/front_end/panels/accessibility/accessibilityNode.css +4 -4
- package/front_end/panels/accessibility/accessibilityProperties.css +1 -1
- package/front_end/panels/accessibility/accessibilitySidebarView.css +2 -2
- package/front_end/panels/accessibility/axBreadcrumbs.css +13 -13
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +14 -14
- package/front_end/panels/ai_assistance/ExternalHandler.ts +89 -0
- package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatInput.ts +3 -2
- package/front_end/panels/ai_assistance/components/ChatView.ts +1 -1
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +1 -1
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +1 -1
- package/front_end/panels/ai_assistance/components/chatInput.css +12 -12
- package/front_end/panels/ai_assistance/components/chatMessage.css +16 -16
- package/front_end/panels/ai_assistance/components/chatView.css +2 -2
- package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -1
- package/front_end/panels/ai_assistance/components/exportForAgentsDialog.css +4 -0
- package/front_end/panels/ai_assistance/components/walkthroughView.css +6 -6
- package/front_end/panels/animation/animationTimeline.css +62 -62
- package/front_end/panels/application/ApplicationPanelSidebar.ts +6 -1
- package/front_end/panels/application/BackgroundServiceModel.ts +4 -3
- package/front_end/panels/application/BackgroundServiceView.ts +290 -252
- package/front_end/panels/application/IndexedDBModel.ts +0 -7
- package/front_end/panels/application/WebMCPView.ts +15 -7
- package/front_end/panels/application/appManifestView.css +5 -5
- package/front_end/panels/application/backgroundServiceView.css +18 -2
- package/front_end/panels/application/components/AdsView.ts +100 -4
- package/front_end/panels/application/components/adsView.css +8 -5
- package/front_end/panels/application/components/backForwardCacheView.css +5 -5
- package/front_end/panels/application/components/bounceTrackingMitigationsView.css +1 -1
- package/front_end/panels/application/components/endpointsGrid.css +1 -1
- package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
- package/front_end/panels/application/components/protocolHandlersView.css +6 -6
- package/front_end/panels/application/components/reportsGrid.css +1 -1
- package/front_end/panels/application/components/serviceWorkerRouterView.css +4 -4
- package/front_end/panels/application/components/trustTokensView.css +7 -7
- package/front_end/panels/application/cookieItemsView.css +3 -3
- package/front_end/panels/application/deviceBoundSessionsView.css +3 -3
- package/front_end/panels/application/frameDetailsReportView.css +11 -11
- package/front_end/panels/application/indexedDBViews.css +7 -7
- package/front_end/panels/application/originTrialTokenRows.css +2 -2
- package/front_end/panels/application/originTrialTreeView.css +3 -3
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.css +2 -2
- package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +1 -1
- package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +2 -2
- package/front_end/panels/application/preloading/components/preloadingGrid.css +2 -2
- package/front_end/panels/application/preloading/components/usedPreloadingView.css +7 -7
- package/front_end/panels/application/preloading/preloadingView.css +1 -1
- package/front_end/panels/application/preloading/preloadingViewDropDown.css +3 -3
- package/front_end/panels/application/serviceWorkerCacheViews.css +5 -5
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +12 -12
- package/front_end/panels/application/serviceWorkersView.css +15 -16
- package/front_end/panels/application/storageView.css +5 -5
- package/front_end/panels/application/webMCPView.css +9 -9
- package/front_end/panels/autofill/autofillView.css +4 -4
- package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +4 -4
- package/front_end/panels/browser_debugger/domBreakpointsSidebarPane.css +5 -3
- package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +4 -4
- package/front_end/panels/changes/changesSidebar.css +1 -1
- package/front_end/panels/changes/changesView.css +1 -1
- package/front_end/panels/changes/combinedDiffView.css +1 -1
- package/front_end/panels/common/CPUThrottlingOption.ts +5 -10
- package/front_end/panels/common/badgeNotification.css +2 -2
- package/front_end/panels/common/domLinkifier.css +1 -1
- package/front_end/panels/common/gdpSignUpDialog.css +3 -3
- package/front_end/panels/common/geminiRebrandPromoDialog.css +1 -1
- package/front_end/panels/console/ConsolePrompt.ts +6 -3
- package/front_end/panels/console/ConsoleView.ts +23 -19
- package/front_end/panels/console/ConsoleViewMessage.ts +7 -2
- package/front_end/panels/console/console-meta.ts +9 -43
- package/front_end/panels/console/consoleContextSelector.css +2 -2
- package/front_end/panels/console/consolePinPane.css +9 -9
- package/front_end/panels/console/consolePrompt.css +5 -5
- package/front_end/panels/console/consoleView.css +39 -39
- package/front_end/panels/coverage/coverageListView.css +2 -2
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +34 -34
- package/front_end/panels/css_overview/cssOverviewProcessingView.css +5 -5
- package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +1 -1
- package/front_end/panels/css_overview/cssOverviewStartView.css +17 -17
- package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +209 -62
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +4 -4
- package/front_end/panels/elements/DOMTreeContextMenu.ts +59 -54
- package/front_end/panels/elements/ElementIssueUtils.ts +10 -2
- package/front_end/panels/elements/ElementsPanel.ts +5 -2
- package/front_end/panels/elements/ElementsTreeElement.ts +212 -255
- package/front_end/panels/elements/ElementsTreeOutline.ts +1804 -495
- package/front_end/panels/elements/ShortcutTreeElement.ts +6 -3
- package/front_end/panels/elements/StandaloneStylesContainer.ts +5 -11
- package/front_end/panels/elements/StylePropertiesSection.ts +65 -8
- package/front_end/panels/elements/StylePropertyTreeElement.ts +8 -0
- package/front_end/panels/elements/StylesContainer.ts +1 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +317 -159
- package/front_end/panels/elements/classesPaneWidget.css +6 -6
- package/front_end/panels/elements/components/stylePropertyEditor.css +7 -7
- package/front_end/panels/elements/computedStyleWidget.css +1 -1
- package/front_end/panels/elements/elementStatePaneWidget.css +8 -8
- package/front_end/panels/elements/elements-meta.ts +14 -0
- package/front_end/panels/elements/elementsPanel.css +4 -4
- package/front_end/panels/elements/elementsTreeOutline.css +222 -38
- package/front_end/panels/elements/layersWidget.css +4 -4
- package/front_end/panels/elements/layoutPane.css +18 -18
- package/front_end/panels/elements/metricsSidebarPane.css +11 -11
- package/front_end/panels/elements/platformFontsWidget.css +5 -5
- package/front_end/panels/elements/propertiesWidget.css +2 -2
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +20 -20
- package/front_end/panels/elements/stylesSidebarPane.css +37 -20
- package/front_end/panels/emulation/deviceModeView.css +49 -49
- package/front_end/panels/emulation/mediaQueryInspector.css +18 -18
- package/front_end/panels/event_listeners/eventListenersView.css +1 -1
- package/front_end/panels/explain/components/consoleInsight.css +29 -29
- package/front_end/panels/issues/components/elementsPanelLink.css +2 -2
- package/front_end/panels/issues/components/hideIssuesMenu.css +1 -1
- package/front_end/panels/issues/issuesPane.css +2 -2
- package/front_end/panels/issues/issuesTree.css +50 -50
- package/front_end/panels/layer_viewer/Layers3DView.ts +9 -10
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
- package/front_end/panels/layer_viewer/layerTreeOutline.css +2 -2
- package/front_end/panels/layer_viewer/layers3DView.css +1 -1
- package/front_end/panels/layer_viewer/paintProfiler.css +1 -1
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +2 -2
- package/front_end/panels/media/playerListView.css +9 -9
- package/front_end/panels/media/playerMessagesView.css +8 -8
- package/front_end/panels/media/playerPropertiesView.css +6 -6
- package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +9 -9
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -0
- package/front_end/panels/network/NetworkPanel.ts +9 -4
- package/front_end/panels/network/RequestConditionsDrawer.ts +12 -12
- package/front_end/panels/network/RequestPayloadView.ts +78 -26
- package/front_end/panels/network/binaryResourceView.css +1 -1
- package/front_end/panels/network/components/EditableSpan.css +3 -3
- package/front_end/panels/network/components/HeaderSectionRow.css +14 -14
- package/front_end/panels/network/components/RequestHeaderSection.css +7 -7
- package/front_end/panels/network/components/RequestHeadersView.css +18 -18
- package/front_end/panels/network/components/RequestTrustTokensView.css +1 -1
- package/front_end/panels/network/network-meta.ts +9 -9
- package/front_end/panels/network/networkConfigView.css +11 -11
- package/front_end/panels/network/networkLogView.css +35 -35
- package/front_end/panels/network/networkManageCustomHeadersView.css +1 -1
- package/front_end/panels/network/networkPanel.css +7 -7
- package/front_end/panels/network/networkTimingTable.css +13 -13
- package/front_end/panels/network/requestConditionsDrawer.css +4 -4
- package/front_end/panels/network/requestCookiesView.css +5 -5
- package/front_end/panels/network/requestDeviceBoundSessionsView.css +1 -1
- package/front_end/panels/network/requestHTMLView.css +1 -1
- package/front_end/panels/network/requestHeadersTree.css +19 -19
- package/front_end/panels/network/requestInitiatorView.css +1 -1
- package/front_end/panels/network/requestInitiatorViewTree.css +3 -3
- package/front_end/panels/network/requestPayloadTree.css +5 -5
- package/front_end/panels/network/requestPayloadView.css +1 -1
- package/front_end/panels/network/resourceChunkView.css +3 -3
- package/front_end/panels/network/signedExchangeInfoTree.css +6 -6
- package/front_end/panels/profiler/heapProfiler.css +15 -15
- package/front_end/panels/profiler/profileLauncherView.css +10 -10
- package/front_end/panels/recorder/RecordingView.ts +1 -1
- package/front_end/panels/recorder/StepEditor.ts +86 -7
- package/front_end/panels/recorder/TimelineSection.ts +2 -1
- package/front_end/panels/recorder/createRecordingView.css +17 -17
- package/front_end/panels/recorder/extensionView.css +5 -5
- package/front_end/panels/recorder/injected/RecordingClient.ts +1 -1
- package/front_end/panels/recorder/models/SchemaUtils.ts +2 -2
- package/front_end/panels/recorder/models/ScreenshotStorage.ts +1 -1
- package/front_end/panels/recorder/recorderPanel.css +7 -7
- package/front_end/panels/recorder/recordingListView.css +12 -12
- package/front_end/panels/recorder/recordingView.css +47 -47
- package/front_end/panels/recorder/stepEditor.css +2 -2
- package/front_end/panels/recorder/stepView.css +20 -20
- package/front_end/panels/recorder/timelineSection.css +9 -9
- package/front_end/panels/screencast/screencastView.css +12 -12
- package/front_end/panels/search/searchResultsPane.css +10 -10
- package/front_end/panels/search/searchView.css +9 -9
- package/front_end/panels/security/SecurityPanel.ts +84 -54
- package/front_end/panels/security/SecurityPanelSidebar.ts +0 -32
- package/front_end/panels/security/mainView.css +26 -26
- package/front_end/panels/security/originView.css +15 -15
- package/front_end/panels/sensors/locationsSettingsTab.css +6 -6
- package/front_end/panels/sensors/sensors.css +28 -28
- package/front_end/panels/settings/KeybindsSettingsTab.ts +5 -2
- package/front_end/panels/settings/components/syncSection.css +5 -5
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +13 -13
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +16 -16
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +2 -2
- package/front_end/panels/settings/keybindsSettingsTab.css +2 -2
- package/front_end/panels/settings/settingsScreen.css +5 -5
- package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
- package/front_end/panels/sources/breakpointEditDialog.css +9 -9
- package/front_end/panels/sources/breakpointsView.css +25 -25
- package/front_end/panels/sources/callStackSidebarPane.css +10 -10
- package/front_end/panels/sources/components/HeadersView.css +6 -6
- package/front_end/panels/sources/debuggerPausedMessage.css +4 -4
- package/front_end/panels/sources/dialog.css +2 -2
- package/front_end/panels/sources/navigatorTree.css +2 -2
- package/front_end/panels/sources/navigatorView.css +2 -2
- package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
- package/front_end/panels/sources/sourcesNavigator.css +1 -1
- package/front_end/panels/sources/sourcesPanel.css +2 -2
- package/front_end/panels/sources/sourcesView.css +1 -1
- package/front_end/panels/sources/threadsSidebarPane.css +5 -5
- package/front_end/panels/sources/watchExpressionsSidebarPane.css +8 -8
- package/front_end/panels/timeline/TimelineDetailsView.ts +9 -21
- package/front_end/panels/timeline/TimelineFlameChartView.ts +3 -5
- package/front_end/panels/timeline/TimelineMiniMap.ts +3 -3
- package/front_end/panels/timeline/components/BreadcrumbsUI.ts +2 -6
- package/front_end/panels/timeline/components/CWVMetrics.ts +9 -10
- package/front_end/panels/timeline/components/DetailsView.ts +12 -16
- package/front_end/panels/timeline/components/ExportTraceOptions.ts +13 -13
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +19 -19
- package/front_end/panels/timeline/components/IgnoreListSetting.ts +7 -9
- package/front_end/panels/timeline/components/InteractionBreakdown.ts +3 -3
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +13 -13
- package/front_end/panels/timeline/components/LiveMetricsView.ts +65 -65
- package/front_end/panels/timeline/components/MetricCard.ts +25 -25
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +22 -22
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +9 -9
- package/front_end/panels/timeline/components/OriginMap.ts +7 -7
- package/front_end/panels/timeline/components/RelatedInsightChips.ts +2 -2
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +19 -20
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -1
- package/front_end/panels/timeline/components/TimelineSummary.ts +2 -2
- package/front_end/panels/timeline/components/Utils.ts +2 -6
- package/front_end/panels/timeline/components/breadcrumbsUI.css +3 -3
- package/front_end/panels/timeline/components/exportTraceOptions.css +1 -1
- package/front_end/panels/timeline/components/fieldSettingsDialog.css +13 -13
- package/front_end/panels/timeline/components/ignoreListSetting.css +3 -3
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +6 -9
- package/front_end/panels/timeline/components/insights/Checklist.ts +2 -2
- package/front_end/panels/timeline/components/insights/Table.ts +1 -1
- package/front_end/panels/timeline/components/liveMetricsView.css +39 -39
- package/front_end/panels/timeline/components/metricCard.css +20 -20
- package/front_end/panels/timeline/components/networkRequestDetails.css +9 -9
- package/front_end/panels/timeline/components/networkRequestTooltip.css +14 -14
- package/front_end/panels/timeline/components/networkTrackWidget.css +2 -2
- package/front_end/panels/timeline/components/originMap.css +4 -4
- package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
- package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +4 -4
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +5 -5
- package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +1 -1
- package/front_end/panels/timeline/components/timelineSummary.css +4 -4
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +4 -4
- package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +6 -6
- package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +1 -1
- package/front_end/panels/timeline/thirdPartyTreeView.css +5 -5
- package/front_end/panels/timeline/timeline-meta.ts +0 -6
- package/front_end/panels/timeline/timelineDetailsView.css +11 -11
- package/front_end/panels/timeline/timelinePanel.css +20 -20
- package/front_end/panels/timeline/timelineTreeView.css +8 -8
- package/front_end/panels/webauthn/webauthnPane.css +6 -6
- package/front_end/panels/whats_new/ReleaseNoteText.ts +2 -2
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/i18n/i18n-impl.ts +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +15 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +42 -8
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js +15 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts +14 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js +23 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js +77 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +15 -1
- package/front_end/third_party/puppeteer/package/package.json +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +16 -2
- package/front_end/third_party/puppeteer/package/src/cdp/WebMCP.ts +36 -1
- package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/Poller.ts +86 -6
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/web-vitals/README.chromium +2 -2
- package/front_end/third_party/web-vitals/package/README.md +22 -7
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +6 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +30 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +14 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +19 -13
- package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/doubleRAF.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +3 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/softNavs.js +3 -1
- package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +15 -1
- package/front_end/third_party/web-vitals/package/package.json +1 -2
- package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +9 -2
- package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +36 -5
- package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +21 -15
- package/front_end/third_party/web-vitals/package/src/lib/doubleRAF.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/softNavs.ts +4 -1
- package/front_end/third_party/web-vitals/package/src/types/lcp.ts +16 -1
- package/front_end/third_party/web-vitals/rebuild.sh +3 -3
- package/front_end/ui/comments/CommentAnchorResolver.ts +109 -4
- package/front_end/ui/comments/CommentOverlayManager.ts +16 -32
- package/front_end/ui/comments/commentsOverlay.css +6 -5
- package/front_end/ui/components/adorners/Adorner.ts +1 -1
- package/front_end/ui/components/adorners/adorner.css +6 -6
- package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
- package/front_end/ui/components/buttons/button.css +9 -9
- package/front_end/ui/components/buttons/floatingButton.css +2 -2
- package/front_end/ui/components/buttons/textButton.css +12 -12
- package/front_end/ui/components/dialogs/Dialog.ts +1 -1
- package/front_end/ui/components/dialogs/dialog.css +1 -1
- package/front_end/ui/components/diff_view/diffView.css +3 -3
- package/front_end/ui/components/expandable_list/expandableList.css +9 -9
- package/front_end/ui/components/highlighting/HighlightElement.ts +1 -1
- package/front_end/ui/components/highlighting/HighlightManager.ts +4 -0
- package/front_end/ui/components/icon_button/iconButton.css +2 -2
- package/front_end/ui/components/input/checkbox.css +8 -8
- package/front_end/ui/components/input/textInput.css +3 -3
- package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
- package/front_end/ui/components/linkifier/linkifierImpl.css +1 -1
- package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +1 -1
- package/front_end/ui/components/markdown_view/codeBlock.css +2 -2
- package/front_end/ui/components/markdown_view/markdownView.css +7 -7
- package/front_end/ui/components/menus/menuGroup.css +2 -2
- package/front_end/ui/components/menus/menuItem.css +2 -2
- package/front_end/ui/components/menus/selectMenu.css +2 -2
- package/front_end/ui/components/menus/selectMenuButton.css +4 -4
- package/front_end/ui/components/panel_feedback/panelFeedback.css +15 -15
- package/front_end/ui/components/panel_feedback/previewToggle.css +2 -2
- package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +7 -7
- package/front_end/ui/components/report_view/report.css +3 -3
- package/front_end/ui/components/report_view/reportSectionDivider.css +1 -1
- package/front_end/ui/components/report_view/reportValue.css +1 -1
- package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
- package/front_end/ui/components/settings/settingCheckbox.css +6 -6
- package/front_end/ui/components/text_editor/TextEditor.ts +3 -1
- package/front_end/ui/components/text_editor/config.ts +16 -4
- package/front_end/ui/kit/icons/icon.css +4 -4
- package/front_end/ui/kit/link/link.css +1 -1
- package/front_end/ui/legacy/ActionRegistration.ts +23 -23
- package/front_end/ui/legacy/Dialog.ts +1 -1
- package/front_end/ui/legacy/DockController.ts +7 -4
- package/front_end/ui/legacy/EmptyWidget.ts +13 -34
- package/front_end/ui/legacy/FilterBar.ts +4 -4
- package/front_end/ui/legacy/Infobar.ts +2 -2
- package/front_end/ui/legacy/InspectorDrawerView.ts +6 -6
- package/front_end/ui/legacy/InspectorView.ts +22 -27
- package/front_end/ui/legacy/KeyboardShortcut.ts +4 -7
- package/front_end/ui/legacy/ListWidget.ts +7 -7
- package/front_end/ui/legacy/PlusButton.ts +1 -3
- package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +6 -6
- package/front_end/ui/legacy/SearchableView.ts +18 -17
- package/front_end/ui/legacy/ShortcutRegistry.ts +6 -3
- package/front_end/ui/legacy/SoftContextMenu.ts +8 -8
- package/front_end/ui/legacy/SoftDropDown.ts +1 -1
- package/front_end/ui/legacy/SuggestBox.ts +2 -2
- package/front_end/ui/legacy/TabbedPane.ts +10 -10
- package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -2
- package/front_end/ui/legacy/Toolbar.ts +5 -5
- package/front_end/ui/legacy/Treeoutline.ts +1 -1
- package/front_end/ui/legacy/UIUtils.ts +90 -26
- package/front_end/ui/legacy/ViewManager.ts +1 -1
- package/front_end/ui/legacy/ViewRegistration.ts +7 -7
- package/front_end/ui/legacy/Widget.ts +5 -5
- package/front_end/ui/legacy/checkboxTextLabel.css +3 -3
- package/front_end/ui/legacy/components/color_picker/ColorFormatSpec.ts +16 -0
- package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -0
- package/front_end/ui/legacy/components/color_picker/spectrum.css +90 -90
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +23 -24
- package/front_end/ui/legacy/components/cookie_table/cookiesTable.css +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +26 -28
- package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -7
- package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +13 -13
- package/front_end/ui/legacy/components/inline_editor/colorSwatch.css +7 -7
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +5 -5
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +18 -18
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +104 -86
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +8 -6
- package/front_end/ui/legacy/components/object_ui/objectPopover.css +4 -4
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +6 -6
- package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +28 -11
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -6
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +14 -15
- package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/NetworkPriorities.ts +5 -5
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +5 -5
- package/front_end/ui/legacy/components/perf_ui/PieChart.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +0 -4
- package/front_end/ui/legacy/components/perf_ui/chartViewport.css +4 -4
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +6 -6
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +7 -7
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +11 -11
- package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +4 -6
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +6 -6
- package/front_end/ui/legacy/components/perf_ui/timelineGrid.css +5 -5
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +3 -3
- package/front_end/ui/legacy/components/source_frame/FontView.ts +2 -2
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +13 -13
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/PreviewFactory.ts +2 -2
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +2 -2
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +15 -18
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
- package/front_end/ui/legacy/components/source_frame/jsonView.css +1 -1
- package/front_end/ui/legacy/components/source_frame/resourceSourceFrame.css +1 -1
- package/front_end/ui/legacy/components/source_frame/source_frame-meta.ts +10 -10
- package/front_end/ui/legacy/components/source_frame/xmlTree.css +3 -3
- package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
- package/front_end/ui/legacy/components/utils/jsUtils.css +10 -10
- package/front_end/ui/legacy/dropTarget.css +2 -2
- package/front_end/ui/legacy/emptyWidget.css +6 -0
- package/front_end/ui/legacy/filter.css +19 -19
- package/front_end/ui/legacy/infobar.css +2 -2
- package/front_end/ui/legacy/inspectorCommon.css +67 -67
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
- package/front_end/ui/legacy/listWidget.css +5 -5
- package/front_end/ui/legacy/progressIndicator.css +4 -4
- package/front_end/ui/legacy/reportView.css +7 -7
- package/front_end/ui/legacy/searchableView.css +5 -5
- package/front_end/ui/legacy/smallBubble.css +3 -3
- package/front_end/ui/legacy/softContextMenu.css +4 -4
- package/front_end/ui/legacy/softDropDownButton.css +1 -1
- package/front_end/ui/legacy/splitWidget.css +9 -31
- package/front_end/ui/legacy/suggestBox.css +4 -4
- package/front_end/ui/legacy/tabbedPane.css +17 -17
- package/front_end/ui/legacy/textPrompt.css +2 -2
- package/front_end/ui/legacy/toolbar.css +4 -4
- package/front_end/ui/legacy/treeoutline.css +14 -14
- package/front_end/ui/legacy/viewContainers.css +6 -6
- package/front_end/ui/settings/ConsoleSettings.ts +66 -0
- package/front_end/ui/settings/MainSettings.ts +47 -0
- package/front_end/ui/settings/settings.ts +2 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +12 -0
- package/inspector_overlay/common.ts +12 -12
- package/inspector_overlay/css_grid_label_helpers.ts +16 -17
- package/inspector_overlay/drag_resize_handler.ts +2 -2
- package/inspector_overlay/highlight_common.ts +11 -13
- package/inspector_overlay/highlight_container_query.ts +2 -2
- package/inspector_overlay/highlight_flex_common.ts +6 -7
- package/inspector_overlay/highlight_grid_common.ts +3 -3
- package/inspector_overlay/highlight_isolated_element.ts +12 -3
- package/inspector_overlay/highlight_scroll_snap.ts +2 -2
- package/inspector_overlay/loadCSS.rollup.js +0 -1
- package/inspector_overlay/testing/InspectorOverlayHelpers.ts +13 -13
- package/inspector_overlay/tool_green_dev_anchors.ts +3 -3
- package/inspector_overlay/tool_highlight.ts +9 -9
- package/inspector_overlay/tool_paused.ts +4 -4
- package/inspector_overlay/tool_persistent.ts +11 -11
- package/inspector_overlay/tool_screenshot.ts +7 -7
- package/inspector_overlay/tool_source_order.ts +4 -4
- package/inspector_overlay/tool_viewport_size.ts +3 -3
- package/inspector_overlay/tool_window_controls.ts +4 -4
- package/mcp/mcp.ts +1 -0
- package/package.json +2 -2
- package/front_end/generated/protocol-tsconfig.json +0 -10
- package/front_end/panels/js_timeline/DIR_METADATA +0 -3
- package/front_end/panels/js_timeline/js_timeline-meta.ts +0 -193
- package/front_end/panels/js_timeline/js_timeline.ts +0 -1
- /package/front_end/entrypoints/{formatter_worker/FormatterActions.ts → formatter_actions/formatter_actions.ts} +0 -0
|
@@ -269,9 +269,8 @@ function linkInitiators(lanternRequests: NetworkRequest[]): void {
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
function createNetworkRequests(
|
|
273
|
-
|
|
274
|
-
endTime = Number.POSITIVE_INFINITY): NetworkRequest[] {
|
|
272
|
+
function createNetworkRequests(trace: Lantern.Types.Trace, data: Handlers.Types.HandlerData, startTime = 0,
|
|
273
|
+
endTime: number = Number.POSITIVE_INFINITY): NetworkRequest[] {
|
|
275
274
|
const workerThreads = findWorkerThreads(trace);
|
|
276
275
|
|
|
277
276
|
const lanternRequestsNoRedirects: NetworkRequest[] = [];
|
|
@@ -7,8 +7,9 @@ import type * as Handlers from '../handlers/handlers.js';
|
|
|
7
7
|
import * as Helpers from '../helpers/helpers.js';
|
|
8
8
|
import * as Types from '../types/types.js';
|
|
9
9
|
|
|
10
|
-
export const stackTraceForEventInTrace
|
|
11
|
-
|
|
10
|
+
export const stackTraceForEventInTrace:
|
|
11
|
+
Map<Handlers.Types.HandlerData, Map<Types.Events.Event, Protocol.Runtime.StackTrace>> =
|
|
12
|
+
new Map<Handlers.Types.HandlerData, Map<Types.Events.Event, Protocol.Runtime.StackTrace>>();
|
|
12
13
|
|
|
13
14
|
export function clearCacheForTrace(data: Handlers.Types.HandlerData): void {
|
|
14
15
|
stackTraceForEventInTrace.delete(data);
|
|
@@ -52,7 +52,7 @@ function collectMainThreadActivity(data: Handlers.Types.HandlerData): Types.Even
|
|
|
52
52
|
|
|
53
53
|
export function summarizeByThirdParty(
|
|
54
54
|
data: Handlers.Types.HandlerData, traceBounds: Types.Timing.TraceWindowMicro): EntitySummary[] {
|
|
55
|
-
const mainThreadEvents = collectMainThreadActivity(data)
|
|
55
|
+
const mainThreadEvents = collectMainThreadActivity(data);
|
|
56
56
|
const groupingFunction = (event: Types.Events.Event): string => {
|
|
57
57
|
const entity = data.Renderer.entityMappings.entityByEvent.get(event);
|
|
58
58
|
return entity?.name ?? '';
|
|
@@ -68,7 +68,7 @@ export function summarizeByThirdParty(
|
|
|
68
68
|
*/
|
|
69
69
|
export function summarizeByURL(
|
|
70
70
|
data: Handlers.Types.HandlerData, traceBounds: Types.Timing.TraceWindowMicro): URLSummary[] {
|
|
71
|
-
const mainThreadEvents = collectMainThreadActivity(data)
|
|
71
|
+
const mainThreadEvents = collectMainThreadActivity(data);
|
|
72
72
|
const groupingFunction = (event: Types.Events.Event): string => {
|
|
73
73
|
return Handlers.Helpers.getNonResolvedURL(event, data) ?? '';
|
|
74
74
|
};
|
|
@@ -140,20 +140,20 @@ function summarizeBottomUpByURL(root: TraceTree.BottomUpRootNode, data: Handlers
|
|
|
140
140
|
return summaries;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
// Use the same filtering as front_end/panels/timeline/TimelineTreeView.ts.
|
|
144
|
+
const exclusiveNameFilter = new TraceFilter.ExclusiveNameFilter([]);
|
|
145
|
+
const visibleEventsFilter = new TraceFilter.VisibleEventsFilter(
|
|
146
|
+
[...Helpers.Trace.VISIBLE_TRACE_EVENT_TYPES.values(), Types.Events.Name.SYNTHETIC_NETWORK_REQUEST]);
|
|
147
|
+
|
|
143
148
|
function getBottomUpTree(
|
|
144
149
|
mainThreadEvents: Types.Events.Event[], tracebounds: Types.Timing.TraceWindowMicro,
|
|
145
150
|
groupingFunction: ((arg0: Types.Events.Event) => string)|null): TraceTree.BottomUpRootNode {
|
|
146
|
-
// Use the same filtering as front_end/panels/timeline/TimelineTreeView.ts.
|
|
147
|
-
const visibleEvents = Helpers.Trace.VISIBLE_TRACE_EVENT_TYPES.values().toArray();
|
|
148
|
-
const filter =
|
|
149
|
-
new TraceFilter.VisibleEventsFilter(visibleEvents.concat([Types.Events.Name.SYNTHETIC_NETWORK_REQUEST]));
|
|
150
|
-
|
|
151
151
|
// The bottom up root node handles all the "in Tracebounds" checks we need for the insight.
|
|
152
152
|
const startTime = Helpers.Timing.microToMilli(tracebounds.min);
|
|
153
153
|
const endTime = Helpers.Timing.microToMilli(tracebounds.max);
|
|
154
154
|
return new TraceTree.BottomUpRootNode(mainThreadEvents, {
|
|
155
|
-
textFilter:
|
|
156
|
-
filters: [
|
|
155
|
+
textFilter: exclusiveNameFilter,
|
|
156
|
+
filters: [visibleEventsFilter],
|
|
157
157
|
startTime,
|
|
158
158
|
endTime,
|
|
159
159
|
eventGroupIdCallback: groupingFunction,
|
|
@@ -8,13 +8,16 @@ import * as Types from '../types/types.js';
|
|
|
8
8
|
import {data as flowsHandlerData} from './FlowsHandler.js';
|
|
9
9
|
import {data as rendererHandlerData} from './RendererHandler.js';
|
|
10
10
|
|
|
11
|
-
let schedulerToRunEntryPoints
|
|
11
|
+
let schedulerToRunEntryPoints: Map<Types.Events.Event, Types.Events.Event[]> =
|
|
12
|
+
new Map<Types.Events.Event, Types.Events.Event[]>();
|
|
12
13
|
|
|
13
|
-
let taskScheduleForTaskRunEvent
|
|
14
|
-
|
|
14
|
+
let taskScheduleForTaskRunEvent: Map<Types.Events.DebuggerAsyncTaskRun, Types.Events.DebuggerAsyncTaskScheduled> =
|
|
15
|
+
new Map<Types.Events.DebuggerAsyncTaskRun, Types.Events.DebuggerAsyncTaskScheduled>();
|
|
16
|
+
let asyncCallToScheduler: Map<Types.Events.SyntheticProfileCall, {taskName: string, scheduler: Types.Events.Event}> =
|
|
15
17
|
new Map<Types.Events.SyntheticProfileCall, {taskName: string, scheduler: Types.Events.Event}>();
|
|
16
18
|
|
|
17
|
-
let runEntryPointToScheduler
|
|
19
|
+
let runEntryPointToScheduler: Map<Types.Events.Event, {taskName: string, scheduler: Types.Events.Event}> =
|
|
20
|
+
new Map<Types.Events.Event, {taskName: string, scheduler: Types.Events.Event}>();
|
|
18
21
|
|
|
19
22
|
export function reset(): void {
|
|
20
23
|
schedulerToRunEntryPoints = new Map();
|
|
@@ -390,10 +390,10 @@ class TimelineFrame implements Types.Events.LegacyTimelineFrame {
|
|
|
390
390
|
// Types.Events.Event.
|
|
391
391
|
cat = 'devtools.legacy_frame';
|
|
392
392
|
name = 'frame';
|
|
393
|
-
ph = Types.Events.Phase.COMPLETE;
|
|
393
|
+
ph: Types.Events.Phase = Types.Events.Phase.COMPLETE;
|
|
394
394
|
ts: Types.Timing.Micro;
|
|
395
|
-
pid = Types.Events.ProcessID(-1);
|
|
396
|
-
tid = Types.Events.ThreadID(-1);
|
|
395
|
+
pid: Types.Events.ProcessID = Types.Events.ProcessID(-1);
|
|
396
|
+
tid: Types.Events.ThreadID = Types.Events.ThreadID(-1);
|
|
397
397
|
|
|
398
398
|
index = -1;
|
|
399
399
|
startTime: Types.Timing.Micro;
|
|
@@ -67,13 +67,13 @@ interface RemoteFont {
|
|
|
67
67
|
* This represents the maximum #time we will allow a cluster to go before we
|
|
68
68
|
* reset it.
|
|
69
69
|
**/
|
|
70
|
-
export const MAX_CLUSTER_DURATION = Helpers.Timing.milliToMicro(Types.Timing.Milli(5000));
|
|
70
|
+
export const MAX_CLUSTER_DURATION: Types.Timing.Micro = Helpers.Timing.milliToMicro(Types.Timing.Milli(5000));
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* This represents the maximum #time we will allow between layout shift events
|
|
74
74
|
* before considering it to be the start of a new cluster.
|
|
75
75
|
**/
|
|
76
|
-
export const MAX_SHIFT_TIME_DELTA = Helpers.Timing.milliToMicro(Types.Timing.Milli(1000));
|
|
76
|
+
export const MAX_SHIFT_TIME_DELTA: Types.Timing.Micro = Helpers.Timing.milliToMicro(Types.Timing.Milli(1000));
|
|
77
77
|
|
|
78
78
|
// Layout shifts are reported globally to the developer, irrespective of which
|
|
79
79
|
// frame they originated in. However, each process does have its own individual
|
|
@@ -8,8 +8,10 @@ import * as CPUProfile from '../../cpu_profile/cpu_profile.js';
|
|
|
8
8
|
import * as Helpers from '../helpers/helpers.js';
|
|
9
9
|
import * as Types from '../types/types.js';
|
|
10
10
|
|
|
11
|
-
let profilesInProcess
|
|
12
|
-
|
|
11
|
+
let profilesInProcess: Map<Types.Events.ProcessID, Map<Types.Events.ThreadID, ProfileData>> =
|
|
12
|
+
new Map<Types.Events.ProcessID, Map<Types.Events.ThreadID, ProfileData>>();
|
|
13
|
+
let entryToNode: Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode> =
|
|
14
|
+
new Map<Types.Events.Event, Helpers.TreeHelpers.TraceEntryNode>();
|
|
13
15
|
|
|
14
16
|
// The profile head, containing its metadata like its start
|
|
15
17
|
// time, comes in a "Profile" event. The sample data comes in
|
|
@@ -16,7 +16,7 @@ import type {HandlerName} from './types.js';
|
|
|
16
16
|
let beginCommitCompositorFrameEvents: Types.Events.BeginCommitCompositorFrame[] = [];
|
|
17
17
|
let parseMetaViewportEvents: Types.Events.ParseMetaViewport[] = [];
|
|
18
18
|
|
|
19
|
-
export const LONG_INTERACTION_THRESHOLD = Helpers.Timing.milliToMicro(Types.Timing.Milli(200));
|
|
19
|
+
export const LONG_INTERACTION_THRESHOLD: Types.Timing.Micro = Helpers.Timing.milliToMicro(Types.Timing.Milli(200));
|
|
20
20
|
|
|
21
21
|
const INP_GOOD_TIMING = LONG_INTERACTION_THRESHOLD;
|
|
22
22
|
const INP_MEDIUM_TIMING = Helpers.Timing.milliToMicro(Types.Timing.Milli(500));
|
|
@@ -42,9 +42,9 @@ let taskReflowEvents: Types.Events.Event[] = [];
|
|
|
42
42
|
*/
|
|
43
43
|
let longTaskEvents: Types.Events.Event[] = [];
|
|
44
44
|
|
|
45
|
-
export const FORCED_REFLOW_THRESHOLD = Helpers.Timing.milliToMicro(Types.Timing.Milli(30));
|
|
45
|
+
export const FORCED_REFLOW_THRESHOLD: Types.Timing.Micro = Helpers.Timing.milliToMicro(Types.Timing.Milli(30));
|
|
46
46
|
|
|
47
|
-
export const LONG_MAIN_THREAD_TASK_THRESHOLD = Helpers.Timing.milliToMicro(Types.Timing.Milli(50));
|
|
47
|
+
export const LONG_MAIN_THREAD_TASK_THRESHOLD: Types.Timing.Micro = Helpers.Timing.milliToMicro(Types.Timing.Milli(50));
|
|
48
48
|
|
|
49
49
|
export function reset(): void {
|
|
50
50
|
warningsPerEvent = new Map();
|
|
@@ -48,10 +48,10 @@ export interface CacheControl {
|
|
|
48
48
|
'private'?: boolean;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export const CACHEABLE_STATUS_CODES = new Set([200, 203, 206]);
|
|
51
|
+
export const CACHEABLE_STATUS_CODES: Set<number> = new Set([200, 203, 206]);
|
|
52
52
|
|
|
53
53
|
/** @type {Set<LH.Crdp.Network.ResourceType>} */
|
|
54
|
-
export const STATIC_RESOURCE_TYPES = new Set([
|
|
54
|
+
export const STATIC_RESOURCE_TYPES: Set<Protocol.Network.ResourceType> = new Set([
|
|
55
55
|
Protocol.Network.ResourceType.Font,
|
|
56
56
|
Protocol.Network.ResourceType.Image,
|
|
57
57
|
Protocol.Network.ResourceType.Media,
|
|
@@ -59,7 +59,7 @@ export const STATIC_RESOURCE_TYPES = new Set([
|
|
|
59
59
|
Protocol.Network.ResourceType.Stylesheet,
|
|
60
60
|
]);
|
|
61
61
|
|
|
62
|
-
export const NON_NETWORK_SCHEMES = [
|
|
62
|
+
export const NON_NETWORK_SCHEMES: string[] = [
|
|
63
63
|
'blob', // @see https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
|
64
64
|
'data', // @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
|
|
65
65
|
'intent', // @see https://developer.chrome.com/docs/multidevice/android/intents/
|
|
@@ -838,7 +838,7 @@ export function extractSampleTraceId(event: Types.Events.Event): number|null {
|
|
|
838
838
|
* This exactly matches Trace.Styles.visibleTypes. See the runtime verification in maybeInitStylesMap.
|
|
839
839
|
* TODO(crbug.com/410884528)
|
|
840
840
|
**/
|
|
841
|
-
export const VISIBLE_TRACE_EVENT_TYPES = new Set<Types.Events.Name>([
|
|
841
|
+
export const VISIBLE_TRACE_EVENT_TYPES: Set<Types.Events.Name> = new Set<Types.Events.Name>([
|
|
842
842
|
Types.Events.Name.ABORT_POST_TASK_CALLBACK,
|
|
843
843
|
Types.Events.Name.ANIMATION,
|
|
844
844
|
Types.Events.Name.ASYNC_TASK,
|
|
@@ -72,7 +72,8 @@ export const UIStrings = {
|
|
|
72
72
|
} as const;
|
|
73
73
|
|
|
74
74
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/CLSCulprits.ts', UIStrings);
|
|
75
|
-
export const i18nString
|
|
75
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
76
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
76
77
|
|
|
77
78
|
export type CLSCulpritsInsightModel = InsightModel<typeof UIStrings, {
|
|
78
79
|
animationFailures: readonly NoncompositedAnimationFailure[],
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import * as Protocol from '../../../generated/protocol.js';
|
|
7
8
|
import type * as Handlers from '../handlers/handlers.js';
|
|
8
9
|
import * as Helpers from '../helpers/helpers.js';
|
|
@@ -48,7 +49,8 @@ export const UIStrings = {
|
|
|
48
49
|
} as const;
|
|
49
50
|
|
|
50
51
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/Cache.ts', UIStrings);
|
|
51
|
-
export const i18nString
|
|
52
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
53
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
52
54
|
|
|
53
55
|
export type CacheInsightModel = InsightModel<typeof UIStrings, {
|
|
54
56
|
requests: Array<{
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import type * as Handlers from '../handlers/handlers.js';
|
|
7
8
|
import type * as Types from '../types/types.js';
|
|
8
9
|
|
|
@@ -53,7 +54,8 @@ export const UIStrings = {
|
|
|
53
54
|
} as const;
|
|
54
55
|
|
|
55
56
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/CharacterSet.ts', UIStrings);
|
|
56
|
-
export const i18nString
|
|
57
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
58
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
57
59
|
|
|
58
60
|
const CHARSET_HTTP_REGEX = /charset\s*=\s*[a-zA-Z0-9\-_:.()]{2,}/i;
|
|
59
61
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type * as Common from '../../../core/common/common.js';
|
|
6
6
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
7
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
7
8
|
import * as Handlers from '../handlers/handlers.js';
|
|
8
9
|
import * as Helpers from '../helpers/helpers.js';
|
|
9
10
|
import * as Types from '../types/types.js';
|
|
@@ -72,7 +73,8 @@ export const UIStrings = {
|
|
|
72
73
|
} as const;
|
|
73
74
|
|
|
74
75
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/DOMSize.ts', UIStrings);
|
|
75
|
-
export const i18nString
|
|
76
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
77
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
76
78
|
|
|
77
79
|
const DOM_SIZE_DURATION_THRESHOLD = Helpers.Timing.milliToMicro(Types.Timing.Milli(40));
|
|
78
80
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import type * as Handlers from '../handlers/handlers.js';
|
|
7
8
|
import * as Helpers from '../helpers/helpers.js';
|
|
8
9
|
import * as Types from '../types/types.js';
|
|
@@ -71,7 +72,8 @@ export const UIStrings = {
|
|
|
71
72
|
} as const;
|
|
72
73
|
|
|
73
74
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/DocumentLatency.ts', UIStrings);
|
|
74
|
-
export const i18nString
|
|
75
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
76
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
75
77
|
|
|
76
78
|
// Due to the way that DevTools throttling works we cannot see if server response took less than ~570ms.
|
|
77
79
|
// We set our failure threshold to 600ms to avoid those false positives but we want devs to shoot for 100ms.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import * as Extras from '../extras/extras.js';
|
|
7
8
|
import type * as Handlers from '../handlers/handlers.js';
|
|
8
9
|
import * as Helpers from '../helpers/helpers.js';
|
|
@@ -42,7 +43,8 @@ export const UIStrings = {
|
|
|
42
43
|
} as const;
|
|
43
44
|
|
|
44
45
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/DuplicatedJavaScript.ts', UIStrings);
|
|
45
|
-
export const i18nString
|
|
46
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
47
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
46
48
|
|
|
47
49
|
export type DuplicatedJavaScriptInsightModel = InsightModel<typeof UIStrings, {
|
|
48
50
|
duplication: Extras.ScriptDuplication.ScriptDuplication,
|
|
@@ -41,7 +41,8 @@ export const UIStrings = {
|
|
|
41
41
|
} as const;
|
|
42
42
|
|
|
43
43
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/FontDisplay.ts', UIStrings);
|
|
44
|
-
export const i18nString
|
|
44
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
45
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
45
46
|
|
|
46
47
|
export interface RemoteFont {
|
|
47
48
|
name?: string;
|
|
@@ -51,7 +51,8 @@ export const UIStrings = {
|
|
|
51
51
|
} as const;
|
|
52
52
|
|
|
53
53
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/ForcedReflow.ts', UIStrings);
|
|
54
|
-
export const i18nString
|
|
54
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
55
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
55
56
|
|
|
56
57
|
export type ForcedReflowInsightModel = InsightModel<typeof UIStrings, {
|
|
57
58
|
topLevelFunctionCallData: ForcedReflowAggregatedData | undefined,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import * as Handlers from '../handlers/handlers.js';
|
|
7
8
|
import * as Helpers from '../helpers/helpers.js';
|
|
8
9
|
import type * as Types from '../types/types.js';
|
|
@@ -54,7 +55,8 @@ export const UIStrings = {
|
|
|
54
55
|
} as const;
|
|
55
56
|
|
|
56
57
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/INPBreakdown.ts', UIStrings);
|
|
57
|
-
export const i18nString
|
|
58
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
59
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
58
60
|
|
|
59
61
|
export type INPBreakdownInsightModel = InsightModel<typeof UIStrings, {
|
|
60
62
|
longestInteractionEvent?: Types.Events.SyntheticInteractionPair,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import type * as Handlers from '../handlers/handlers.js';
|
|
7
8
|
import * as Helpers from '../helpers/helpers.js';
|
|
8
9
|
import type * as Types from '../types/types.js';
|
|
@@ -68,7 +69,8 @@ export const UIStrings = {
|
|
|
68
69
|
} as const;
|
|
69
70
|
|
|
70
71
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/ImageDelivery.ts', UIStrings);
|
|
71
|
-
export const i18nString
|
|
72
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
73
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
72
74
|
|
|
73
75
|
/**
|
|
74
76
|
* Even JPEGs with lots of detail can usually be compressed down to <1 byte per pixel
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type * as Common from '../../../core/common/common.js';
|
|
6
6
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
7
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
7
8
|
import * as Handlers from '../handlers/handlers.js';
|
|
8
9
|
import * as Helpers from '../helpers/helpers.js';
|
|
9
10
|
import * as Types from '../types/types.js';
|
|
@@ -63,7 +64,8 @@ export const UIStrings = {
|
|
|
63
64
|
noLcp: 'No LCP detected',
|
|
64
65
|
} as const;
|
|
65
66
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/LCPBreakdown.ts', UIStrings);
|
|
66
|
-
export const i18nString
|
|
67
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
68
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
67
69
|
|
|
68
70
|
/** A TraceWindow plus its UIString. **/
|
|
69
71
|
export type Subpart = Types.Timing.TraceWindowMicro&{label: Common.UIString.LocalizedString};
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import * as Handlers from '../handlers/handlers.js';
|
|
7
8
|
import * as Helpers from '../helpers/helpers.js';
|
|
8
9
|
import * as Types from '../types/types.js';
|
|
@@ -64,7 +65,8 @@ export const UIStrings = {
|
|
|
64
65
|
} as const;
|
|
65
66
|
|
|
66
67
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/LCPDiscovery.ts', UIStrings);
|
|
67
|
-
export const i18nString
|
|
68
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
69
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
68
70
|
|
|
69
71
|
export function isLCPDiscoveryInsight(model: InsightModel): model is LCPDiscoveryInsightModel {
|
|
70
72
|
return model.insightKey === 'LCPDiscovery';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import * as LegacyJavaScriptLib from '../../../third_party/legacy-javascript/legacy-javascript.js';
|
|
7
8
|
import type * as Handlers from '../handlers/handlers.js';
|
|
8
9
|
import * as Helpers from '../helpers/helpers.js';
|
|
@@ -44,7 +45,8 @@ export const UIStrings = {
|
|
|
44
45
|
} as const;
|
|
45
46
|
|
|
46
47
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/LegacyJavaScript.ts', UIStrings);
|
|
47
|
-
export const i18nString
|
|
48
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
49
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
48
50
|
|
|
49
51
|
export interface PatternMatchResult {
|
|
50
52
|
name: string;
|
|
@@ -44,7 +44,8 @@ export const UIStrings = {
|
|
|
44
44
|
} as const;
|
|
45
45
|
|
|
46
46
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/ModernHTTP.ts', UIStrings);
|
|
47
|
-
export const i18nString
|
|
47
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
48
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
48
49
|
|
|
49
50
|
export type ModernHTTPInsightModel = InsightModel<typeof UIStrings, {
|
|
50
51
|
http1Requests: Types.Events.SyntheticNetworkRequest[],
|
|
@@ -108,7 +108,8 @@ export const UIStrings = {
|
|
|
108
108
|
} as const;
|
|
109
109
|
|
|
110
110
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/NetworkDependencyTree.ts', UIStrings);
|
|
111
|
-
export const i18nString
|
|
111
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
112
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
112
113
|
|
|
113
114
|
// XHRs are fetched at High priority, but we exclude them, as they are unlikely to be critical
|
|
114
115
|
// Images are also non-critical.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import * as Protocol from '../../../generated/protocol.js';
|
|
7
8
|
import * as Handlers from '../handlers/handlers.js';
|
|
8
9
|
import * as Helpers from '../helpers/helpers.js';
|
|
@@ -28,9 +29,8 @@ export const UIStrings = {
|
|
|
28
29
|
/**
|
|
29
30
|
* @description Text to describe that there are requests blocking rendering, which may affect LCP.
|
|
30
31
|
*/
|
|
31
|
-
description:
|
|
32
|
-
|
|
33
|
-
'can move these network requests out of the critical path.',
|
|
32
|
+
description:
|
|
33
|
+
`Requests are blocking the page’s initial render, which may delay LCP. [Deferring or inlining](https://developer.chrome.com/docs/performance/insights/render-blocking) can move these network requests out of the critical path.`,
|
|
34
34
|
/**
|
|
35
35
|
* @description Label to describe a network request (that happens to be render-blocking).
|
|
36
36
|
*/
|
|
@@ -46,7 +46,8 @@ export const UIStrings = {
|
|
|
46
46
|
} as const;
|
|
47
47
|
|
|
48
48
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/RenderBlocking.ts', UIStrings);
|
|
49
|
-
export const i18nString
|
|
49
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
50
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
50
51
|
|
|
51
52
|
export function isRenderBlockingInsight(insight: InsightModel): insight is RenderBlockingInsightModel {
|
|
52
53
|
return insight.insightKey === 'RenderBlocking';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import type * as Handlers from '../handlers/handlers.js';
|
|
7
8
|
import * as Helpers from '../helpers/helpers.js';
|
|
8
9
|
import * as Types from '../types/types.js';
|
|
@@ -62,7 +63,8 @@ export const UIStrings = {
|
|
|
62
63
|
} as const;
|
|
63
64
|
|
|
64
65
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/SlowCSSSelector.ts', UIStrings);
|
|
65
|
-
export const i18nString
|
|
66
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
67
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
66
68
|
const slowCSSSelectorThreshold = 500; // 500us threshold for slow selectors
|
|
67
69
|
|
|
68
70
|
export type SlowCSSSelectorInsightModel = InsightModel<typeof UIStrings, {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import * as ThirdPartyWeb from '../../../third_party/third-party-web/third-party-web.js';
|
|
7
8
|
import * as Extras from '../extras/extras.js';
|
|
8
9
|
import * as Handlers from '../handlers/handlers.js';
|
|
@@ -25,8 +26,8 @@ export const UIStrings = {
|
|
|
25
26
|
* @description Description of a DevTools insight that identifies the code on the page that the user doesn't control.
|
|
26
27
|
* This is displayed after a user expands the section to see more. No character length limits.
|
|
27
28
|
*/
|
|
28
|
-
description:
|
|
29
|
-
|
|
29
|
+
description:
|
|
30
|
+
`3rd party code can significantly impact load performance. [Reduce and defer loading of 3rd party code](https://developer.chrome.com/docs/performance/insights/third-parties) to prioritize your page’s content.`,
|
|
30
31
|
/**
|
|
31
32
|
* @description Label for a table column that displays the name of a third-party provider.
|
|
32
33
|
*/
|
|
@@ -46,7 +47,8 @@ export const UIStrings = {
|
|
|
46
47
|
} as const;
|
|
47
48
|
|
|
48
49
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/ThirdParties.ts', UIStrings);
|
|
49
|
-
export const i18nString
|
|
50
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
51
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
50
52
|
|
|
51
53
|
export type ThirdPartiesInsightModel = InsightModel<typeof UIStrings, {
|
|
52
54
|
/** The entity for this navigation's URL. Any other entity is from a third party. */
|
|
@@ -34,7 +34,8 @@ export const UIStrings = {
|
|
|
34
34
|
} as const;
|
|
35
35
|
|
|
36
36
|
const str_ = i18n.i18n.registerUIStrings('models/trace/insights/Viewport.ts', UIStrings);
|
|
37
|
-
export const i18nString
|
|
37
|
+
export const i18nString: (id: string, values?: Record<string, string|number|boolean>) =>
|
|
38
|
+
Platform.UIString.LocalizedString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
38
39
|
|
|
39
40
|
export type ViewportInsightModel = InsightModel<typeof UIStrings, {
|
|
40
41
|
mobileOptimized: boolean | null,
|
|
@@ -5,7 +5,37 @@
|
|
|
5
5
|
const DEVTOOLS_RTT_ADJUSTMENT_FACTOR = 3.75;
|
|
6
6
|
const DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR = 0.9;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
9
|
+
export interface ThrottlingSettings {
|
|
10
|
+
DEVTOOLS_RTT_ADJUSTMENT_FACTOR: number;
|
|
11
|
+
DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR: number;
|
|
12
|
+
mobileSlow4G: {
|
|
13
|
+
rttMs: number,
|
|
14
|
+
throughputKbps: number,
|
|
15
|
+
requestLatencyMs: number,
|
|
16
|
+
downloadThroughputKbps: number,
|
|
17
|
+
uploadThroughputKbps: number,
|
|
18
|
+
cpuSlowdownMultiplier: number,
|
|
19
|
+
};
|
|
20
|
+
mobileRegular3G: {
|
|
21
|
+
rttMs: number,
|
|
22
|
+
throughputKbps: number,
|
|
23
|
+
requestLatencyMs: number,
|
|
24
|
+
downloadThroughputKbps: number,
|
|
25
|
+
uploadThroughputKbps: number,
|
|
26
|
+
cpuSlowdownMultiplier: number,
|
|
27
|
+
};
|
|
28
|
+
desktopDense4G: {
|
|
29
|
+
rttMs: number,
|
|
30
|
+
throughputKbps: number,
|
|
31
|
+
cpuSlowdownMultiplier: number,
|
|
32
|
+
requestLatencyMs: number,
|
|
33
|
+
downloadThroughputKbps: number,
|
|
34
|
+
uploadThroughputKbps: number,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const throttling: ThrottlingSettings = {
|
|
9
39
|
DEVTOOLS_RTT_ADJUSTMENT_FACTOR,
|
|
10
40
|
DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
|
|
11
41
|
// These values align with WebPageTest's definition of "Fast 3G"
|
|
@@ -41,6 +71,8 @@ const throttling = {
|
|
|
41
71
|
},
|
|
42
72
|
};
|
|
43
73
|
|
|
44
|
-
const Constants = {
|
|
74
|
+
const Constants: {throttling: ThrottlingSettings} = {
|
|
75
|
+
throttling,
|
|
76
|
+
};
|
|
45
77
|
|
|
46
78
|
export {Constants};
|
|
@@ -12,7 +12,7 @@ import type * as Lantern from '../types/types.js';
|
|
|
12
12
|
const DNS_RESOLUTION_RTT_MULTIPLIER = 2;
|
|
13
13
|
|
|
14
14
|
class DNSCache {
|
|
15
|
-
static rttMultiplier = DNS_RESOLUTION_RTT_MULTIPLIER;
|
|
15
|
+
static rttMultiplier: number = DNS_RESOLUTION_RTT_MULTIPLIER;
|
|
16
16
|
|
|
17
17
|
rtt: number;
|
|
18
18
|
resolvedDomainNames: Map<string, {resolvedAt: number}>;
|
|
@@ -770,7 +770,12 @@ const markerTypeGuards = [
|
|
|
770
770
|
isSoftNavigationStart,
|
|
771
771
|
];
|
|
772
772
|
|
|
773
|
-
export
|
|
773
|
+
export type MarkerEventName = Name.MARK_DOM_CONTENT|Name.MARK_LOAD|Name.MARK_FIRST_PAINT|Name.MARK_FCP|
|
|
774
|
+
Name.MARK_SOFT_FCP|Name.MARK_LCP_CANDIDATE|
|
|
775
|
+
Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION|Name.NAVIGATION_START|
|
|
776
|
+
Name.SOFT_NAVIGATION_START;
|
|
777
|
+
|
|
778
|
+
export const MarkerName: readonly MarkerEventName[] = [
|
|
774
779
|
Name.MARK_DOM_CONTENT,
|
|
775
780
|
Name.MARK_LOAD,
|
|
776
781
|
Name.MARK_FIRST_PAINT,
|
|
@@ -780,10 +785,10 @@ export const MarkerName = [
|
|
|
780
785
|
Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION,
|
|
781
786
|
Name.NAVIGATION_START,
|
|
782
787
|
Name.SOFT_NAVIGATION_START,
|
|
783
|
-
]
|
|
788
|
+
];
|
|
784
789
|
|
|
785
790
|
export interface MarkerEvent extends Event {
|
|
786
|
-
name:
|
|
791
|
+
name: MarkerEventName;
|
|
787
792
|
}
|
|
788
793
|
|
|
789
794
|
export function isMarkerEvent(event: Event): event is MarkerEvent {
|
|
@@ -23,7 +23,8 @@ export class SourceMappingsUpdated extends Event {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/** The code location key is created as a concatenation of its fields. **/
|
|
26
|
-
export const resolvedCodeLocationDataNames
|
|
26
|
+
export const resolvedCodeLocationDataNames: Map<string, ResolvedCodeLocationData|null> =
|
|
27
|
+
new Map<string, ResolvedCodeLocationData|null>();
|
|
27
28
|
|
|
28
29
|
export class SourceMapsResolver extends EventTarget {
|
|
29
30
|
readonly #debuggerWorkspaceBinding: Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding;
|