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
|
@@ -9,6 +9,7 @@ import type * as Trace from '../../trace/trace.js';
|
|
|
9
9
|
import type {AiWidget, ConversationContext, FunctionHandlerOptions} from '../agents/AiAgent.js';
|
|
10
10
|
import type {executeJsCode} from '../agents/ExecuteJavascript.js';
|
|
11
11
|
import type {ChangeManager} from '../ChangeManager.js';
|
|
12
|
+
import type {PerformanceTraceContext} from '../contexts/PerformanceTraceContext.js';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Result indicating an error occurred during tool execution.
|
|
@@ -58,14 +59,13 @@ export type ContextHandlerResult<ContextType = unknown> =
|
|
|
58
59
|
ToolContextResult<ContextType>|ToolApprovalResult|ToolErrorResult;
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
|
-
* Base capability for all tool contexts
|
|
62
|
+
* Base capability interface for all tool contexts.
|
|
63
|
+
* This interface is intentionally empty: tools must explicitly declare any
|
|
64
|
+
* capabilities they require (e.g. `TargetCapability`, `PerformanceTraceCapability`)
|
|
65
|
+
* rather than relying on implicitly provided context.
|
|
62
66
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
* The active context for the current conversation step, if any.
|
|
66
|
-
*/
|
|
67
|
-
conversationContext: ConversationContext<unknown>|null;
|
|
68
|
-
}
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
68
|
+
export interface BaseToolCapability {}
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Capability for tools that need to execute JavaScript code on the inspected page.
|
|
@@ -122,10 +122,24 @@ export interface OriginLockCapability {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* Capability for tools that need to
|
|
125
|
+
* Capability for tools that need to inspect an active Lighthouse report from context.
|
|
126
|
+
*/
|
|
127
|
+
export interface LighthouseReportCapability {
|
|
128
|
+
getLighthouseReport(): LHModel.ReporterTypes.ReportJSON|null;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Capability for tools that trigger new Lighthouse audit runs.
|
|
126
133
|
*/
|
|
127
|
-
export interface
|
|
128
|
-
|
|
134
|
+
export interface LighthouseRecordingCapability {
|
|
135
|
+
runLighthouse(overrides?: LHModel.RunTypes.RunOverrides): Promise<LHModel.ReporterTypes.ReportJSON|null>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Capability for tools that need access to the active performance trace context.
|
|
140
|
+
*/
|
|
141
|
+
export interface PerformanceTraceCapability {
|
|
142
|
+
getPerformanceTraceContext(): PerformanceTraceContext|null;
|
|
129
143
|
}
|
|
130
144
|
|
|
131
145
|
/**
|
|
@@ -140,7 +154,8 @@ export interface PerformanceRecordingCapability {
|
|
|
140
154
|
* Used by the agent to pass a complete context to any tool type-safely.
|
|
141
155
|
*/
|
|
142
156
|
export type AllToolsCapabilities = BaseToolCapability&PageExecutionCapability&StyleMutationCapability&TargetCapability&
|
|
143
|
-
OriginLockCapability&
|
|
157
|
+
OriginLockCapability&LighthouseReportCapability&LighthouseRecordingCapability&PerformanceRecordingCapability&
|
|
158
|
+
PerformanceTraceCapability&ServerLoggingCapability;
|
|
144
159
|
|
|
145
160
|
/**
|
|
146
161
|
* Base argument type for AI Tools.
|
|
@@ -150,7 +165,7 @@ export type ToolArgs = Record<string, unknown>;
|
|
|
150
165
|
// The maximum size (in bytes) of a function execution result.
|
|
151
166
|
// Approximately 16k tokens at ~4 characters per token, designed to limit
|
|
152
167
|
// result sizes to prevent overloading the LLM's context window.
|
|
153
|
-
export const MAX_FUNCTION_RESULT_BYTE_LENGTH = 16384 * 4;
|
|
168
|
+
export const MAX_FUNCTION_RESULT_BYTE_LENGTH: number = 16384 * 4;
|
|
154
169
|
|
|
155
170
|
export const enum ToolName {
|
|
156
171
|
EXECUTE_JAVASCRIPT = 'executeJavaScript',
|
|
@@ -164,6 +179,8 @@ export const enum ToolName {
|
|
|
164
179
|
LIST_PAGE_ORIGINS = 'listPageOrigins',
|
|
165
180
|
LIST_STORAGE_KEYS = 'listStorageKeys',
|
|
166
181
|
GET_STORAGE_VALUES = 'getStorageValues',
|
|
182
|
+
LIST_COOKIES = 'listCookies',
|
|
183
|
+
GET_COOKIE_VALUES = 'getCookieValues',
|
|
167
184
|
GET_TRACE_EVENT_BY_KEY = 'getTraceEventByKey',
|
|
168
185
|
SELECT_TRACE_EVENT_BY_KEY = 'selectTraceEventByKey',
|
|
169
186
|
LIST_SOURCES = 'listSources',
|
|
@@ -175,6 +192,7 @@ export const enum ToolName {
|
|
|
175
192
|
GET_FUNCTION_CODE = 'getFunctionCode',
|
|
176
193
|
GET_RESOURCE_CONTENT = 'getResourceContent',
|
|
177
194
|
GET_INSIGHT_DETAILS = 'getInsightDetails',
|
|
195
|
+
GET_STORAGE_BREAKDOWN = 'getStorageBreakdown',
|
|
178
196
|
}
|
|
179
197
|
|
|
180
198
|
/**
|
|
@@ -263,8 +281,13 @@ export type Tool<
|
|
|
263
281
|
CapabilitiesType extends BaseToolCapability = BaseToolCapability,
|
|
264
282
|
> = DataTool<ArgsType, ReturnType, CapabilitiesType>|ContextTool<ArgsType, ReturnType, CapabilitiesType>;
|
|
265
283
|
|
|
284
|
+
/**
|
|
285
|
+
* Capability provided to tools that handle sensitive user data (e.g. cookies or storage values).
|
|
286
|
+
* Calling `disableLogging()` irreversibly disables server-side logging for the remainder of
|
|
287
|
+
* the conversation session to prevent sensitive data from being logged on future turns.
|
|
288
|
+
*/
|
|
266
289
|
export interface ServerLoggingCapability {
|
|
267
|
-
|
|
290
|
+
disableLogging(): void;
|
|
268
291
|
}
|
|
269
292
|
|
|
270
293
|
export const enum ToolAnnotation {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import {ExecuteJavaScriptTool} from './ExecuteJavaScript.js';
|
|
6
|
+
import {GetCookieValuesTool} from './GetCookieValues.js';
|
|
6
7
|
import {GetDetailedCallTreeTool} from './GetDetailedCallTree.js';
|
|
7
8
|
import {GetElementAccessibilityDetailsTool} from './GetElementAccessibilityDetails.js';
|
|
8
9
|
import {GetFunctionCodeTool} from './GetFunctionCode.js';
|
|
@@ -11,11 +12,13 @@ import {GetLighthouseAuditsTool} from './GetLighthouseAudits.js';
|
|
|
11
12
|
import {GetNetworkRequestDetailsTool} from './GetNetworkRequestDetails.js';
|
|
12
13
|
import {GetResourceContentTool} from './GetResourceContent.js';
|
|
13
14
|
import {GetSourceContentTool} from './GetSourceContent.js';
|
|
15
|
+
import {GetStorageBreakdownTool} from './GetStorageBreakdown.js';
|
|
14
16
|
import {GetStorageValuesTool} from './GetStorageValues.js';
|
|
15
17
|
import {GetStylesTool} from './GetStyles.js';
|
|
16
18
|
import {GetTraceEventByKeyTool} from './GetTraceEventByKey.js';
|
|
17
19
|
import {GetTraceMainThreadSummaryTool} from './GetTraceMainThreadSummary.js';
|
|
18
20
|
import {GetTraceNetworkSummaryTool} from './GetTraceNetworkSummary.js';
|
|
21
|
+
import {ListCookiesTool} from './ListCookies.js';
|
|
19
22
|
import {ListNetworkRequestsTool} from './ListNetworkRequests.js';
|
|
20
23
|
import {ListPageOriginsTool} from './ListPageOrigins.js';
|
|
21
24
|
import {ListSourcesTool} from './ListSources.js';
|
|
@@ -26,15 +29,42 @@ import {RunLighthouseTool} from './RunLighthouse.js';
|
|
|
26
29
|
import {SelectTraceEventByKeyTool} from './SelectTraceEventByKey.js';
|
|
27
30
|
import {type AllToolsCapabilities, type Tool, type ToolArgs, ToolName} from './Tool.js';
|
|
28
31
|
|
|
32
|
+
export interface BaseToolsRegistryMap {
|
|
33
|
+
[ToolName.EXECUTE_JAVASCRIPT]: ExecuteJavaScriptTool;
|
|
34
|
+
[ToolName.GET_STYLES]: GetStylesTool;
|
|
35
|
+
[ToolName.LIST_NETWORK_REQUESTS]: ListNetworkRequestsTool;
|
|
36
|
+
[ToolName.GET_NETWORK_REQUEST_DETAILS]: GetNetworkRequestDetailsTool;
|
|
37
|
+
[ToolName.GET_LIGHTHOUSE_AUDITS]: GetLighthouseAuditsTool;
|
|
38
|
+
[ToolName.RESOLVE_DEVTOOLS_NODE_PATH]: ResolveDevtoolsNodePathTool;
|
|
39
|
+
[ToolName.GET_ELEMENT_ACCESSIBILITY_DETAILS]: GetElementAccessibilityDetailsTool;
|
|
40
|
+
[ToolName.RECORD_PERFORMANCE_TRACE]: RecordPerformanceTraceTool;
|
|
41
|
+
[ToolName.LIST_PAGE_ORIGINS]: ListPageOriginsTool;
|
|
42
|
+
[ToolName.LIST_STORAGE_KEYS]: ListStorageKeysTool;
|
|
43
|
+
[ToolName.GET_STORAGE_VALUES]: GetStorageValuesTool;
|
|
44
|
+
[ToolName.LIST_COOKIES]: ListCookiesTool;
|
|
45
|
+
[ToolName.GET_COOKIE_VALUES]: GetCookieValuesTool;
|
|
46
|
+
[ToolName.GET_TRACE_EVENT_BY_KEY]: GetTraceEventByKeyTool;
|
|
47
|
+
[ToolName.SELECT_TRACE_EVENT_BY_KEY]: SelectTraceEventByKeyTool;
|
|
48
|
+
[ToolName.LIST_SOURCES]: ListSourcesTool;
|
|
49
|
+
[ToolName.GET_SOURCE_CONTENT]: GetSourceContentTool;
|
|
50
|
+
[ToolName.GET_TRACE_MAIN_THREAD_SUMMARY]: GetTraceMainThreadSummaryTool;
|
|
51
|
+
[ToolName.GET_TRACE_NETWORK_SUMMARY]: GetTraceNetworkSummaryTool;
|
|
52
|
+
[ToolName.RUN_LIGHTHOUSE]: RunLighthouseTool;
|
|
53
|
+
[ToolName.GET_DETAILED_CALL_TREE]: GetDetailedCallTreeTool;
|
|
54
|
+
[ToolName.GET_FUNCTION_CODE]: GetFunctionCodeTool;
|
|
55
|
+
[ToolName.GET_RESOURCE_CONTENT]: GetResourceContentTool;
|
|
56
|
+
[ToolName.GET_INSIGHT_DETAILS]: GetInsightDetailsTool;
|
|
57
|
+
[ToolName.GET_STORAGE_BREAKDOWN]: GetStorageBreakdownTool;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type ToolsRegistryMap = BaseToolsRegistryMap&{
|
|
61
|
+
[K in ToolName as `${K}`]: BaseToolsRegistryMap[K];
|
|
62
|
+
};
|
|
63
|
+
|
|
29
64
|
/**
|
|
30
65
|
* Plain object registry containing concrete instantiated tools.
|
|
31
|
-
*
|
|
32
|
-
* This object is deliberately declared as a plain object without an explicit type annotation
|
|
33
|
-
* (like `Record<ToolName, Tool>`) to preserve the exact concrete type of each registered tool.
|
|
34
|
-
* This is required to support compile-time type safety and inference in the overloaded
|
|
35
|
-
* `ToolRegistry.get()` method, which maps a literal `ToolName` key to its specific class type.
|
|
36
66
|
*/
|
|
37
|
-
export const TOOLS = {
|
|
67
|
+
export const TOOLS: BaseToolsRegistryMap = {
|
|
38
68
|
[ToolName.EXECUTE_JAVASCRIPT]: new ExecuteJavaScriptTool(),
|
|
39
69
|
[ToolName.GET_STYLES]: new GetStylesTool(),
|
|
40
70
|
[ToolName.LIST_NETWORK_REQUESTS]: new ListNetworkRequestsTool(),
|
|
@@ -46,6 +76,8 @@ export const TOOLS = {
|
|
|
46
76
|
[ToolName.LIST_PAGE_ORIGINS]: new ListPageOriginsTool(),
|
|
47
77
|
[ToolName.LIST_STORAGE_KEYS]: new ListStorageKeysTool(),
|
|
48
78
|
[ToolName.GET_STORAGE_VALUES]: new GetStorageValuesTool(),
|
|
79
|
+
[ToolName.LIST_COOKIES]: new ListCookiesTool(),
|
|
80
|
+
[ToolName.GET_COOKIE_VALUES]: new GetCookieValuesTool(),
|
|
49
81
|
[ToolName.GET_TRACE_EVENT_BY_KEY]: new GetTraceEventByKeyTool(),
|
|
50
82
|
[ToolName.SELECT_TRACE_EVENT_BY_KEY]: new SelectTraceEventByKeyTool(),
|
|
51
83
|
[ToolName.LIST_SOURCES]: new ListSourcesTool(),
|
|
@@ -57,6 +89,7 @@ export const TOOLS = {
|
|
|
57
89
|
[ToolName.GET_FUNCTION_CODE]: new GetFunctionCodeTool(),
|
|
58
90
|
[ToolName.GET_RESOURCE_CONTENT]: new GetResourceContentTool(),
|
|
59
91
|
[ToolName.GET_INSIGHT_DETAILS]: new GetInsightDetailsTool(),
|
|
92
|
+
[ToolName.GET_STORAGE_BREAKDOWN]: new GetStorageBreakdownTool(),
|
|
60
93
|
};
|
|
61
94
|
|
|
62
95
|
/**
|
|
@@ -66,11 +99,11 @@ export class ToolRegistry {
|
|
|
66
99
|
/**
|
|
67
100
|
* Retrieves a tool by its literal name with 100% type safety.
|
|
68
101
|
*
|
|
69
|
-
* @template K - A key from the `
|
|
102
|
+
* @template K - A key from the `ToolsRegistryMap` registry.
|
|
70
103
|
* @param name The literal name of the tool to retrieve.
|
|
71
104
|
* @returns The concrete class type of the requested tool.
|
|
72
105
|
*/
|
|
73
|
-
static get<K extends keyof
|
|
106
|
+
static get<K extends keyof ToolsRegistryMap>(name: K): ToolsRegistryMap[K];
|
|
74
107
|
/**
|
|
75
108
|
* Fallback retrieval signature for general or runtime string lookups.
|
|
76
109
|
*
|
|
@@ -15,12 +15,12 @@ export class AiExplorerBadge extends Badge {
|
|
|
15
15
|
'profiles/me/awards/developers.google.com%2Fprofile%2Fbadges%2Factivity%2Fchrome-devtools%2Fai-explorer';
|
|
16
16
|
override readonly title = 'AI Explorer';
|
|
17
17
|
override readonly jslogContext = 'ai-explorer';
|
|
18
|
-
override readonly imageUri = AI_EXPLORER_BADGE_URI;
|
|
18
|
+
override readonly imageUri: string = AI_EXPLORER_BADGE_URI;
|
|
19
19
|
readonly #aiConversationCountSetting: Common.Settings.Setting<number>;
|
|
20
20
|
|
|
21
|
-
override readonly interestedActions = [
|
|
21
|
+
override readonly interestedActions: readonly BadgeAction[] = [
|
|
22
22
|
BadgeAction.STARTED_AI_CONVERSATION,
|
|
23
|
-
]
|
|
23
|
+
];
|
|
24
24
|
|
|
25
25
|
constructor(badgeContext: BadgeContext) {
|
|
26
26
|
super(badgeContext);
|
|
@@ -10,9 +10,9 @@ export class CodeWhispererBadge extends Badge {
|
|
|
10
10
|
'profiles/me/awards/developers.google.com%2Fprofile%2Fbadges%2Factivity%2Fchrome-devtools%2Fcode-whisperer';
|
|
11
11
|
override readonly title = 'Code Whisperer';
|
|
12
12
|
override readonly jslogContext = 'code-whisperer';
|
|
13
|
-
override readonly imageUri = CODE_WHISPERER_BADGE_IMAGE_URI;
|
|
13
|
+
override readonly imageUri: string = CODE_WHISPERER_BADGE_IMAGE_URI;
|
|
14
14
|
|
|
15
|
-
override readonly interestedActions = [BadgeAction.DEBUGGER_PAUSED]
|
|
15
|
+
override readonly interestedActions: readonly BadgeAction[] = [BadgeAction.DEBUGGER_PAUSED];
|
|
16
16
|
|
|
17
17
|
handleAction(_action: BadgeAction): void {
|
|
18
18
|
this.trigger();
|
|
@@ -10,11 +10,11 @@ export class DOMDetectiveBadge extends Badge {
|
|
|
10
10
|
'profiles/me/awards/developers.google.com%2Fprofile%2Fbadges%2Factivity%2Fchrome-devtools%2Fdom-detective';
|
|
11
11
|
override readonly title = 'DOM Detective';
|
|
12
12
|
override readonly jslogContext = 'dom-detective';
|
|
13
|
-
override readonly imageUri = DOM_DETECTIVE_BADGE_IMAGE_URI;
|
|
13
|
+
override readonly imageUri: string = DOM_DETECTIVE_BADGE_IMAGE_URI;
|
|
14
14
|
|
|
15
|
-
override readonly interestedActions = [
|
|
15
|
+
override readonly interestedActions: readonly BadgeAction[] = [
|
|
16
16
|
BadgeAction.MODERN_DOM_BADGE_CLICKED,
|
|
17
|
-
]
|
|
17
|
+
];
|
|
18
18
|
|
|
19
19
|
handleAction(_action: BadgeAction): void {
|
|
20
20
|
this.trigger();
|
|
@@ -10,10 +10,10 @@ export class SpeedsterBadge extends Badge {
|
|
|
10
10
|
'profiles/me/awards/developers.google.com%2Fprofile%2Fbadges%2Factivity%2Fchrome-devtools%2Fspeedster';
|
|
11
11
|
override readonly title = 'Speedster';
|
|
12
12
|
override readonly jslogContext = 'speedster';
|
|
13
|
-
override readonly interestedActions = [
|
|
13
|
+
override readonly interestedActions: readonly BadgeAction[] = [
|
|
14
14
|
BadgeAction.PERFORMANCE_INSIGHT_CLICKED,
|
|
15
|
-
]
|
|
16
|
-
override readonly imageUri = SPEEDSTER_BADGE_URI;
|
|
15
|
+
];
|
|
16
|
+
override readonly imageUri: string = SPEEDSTER_BADGE_URI;
|
|
17
17
|
|
|
18
18
|
handleAction(_action: BadgeAction): void {
|
|
19
19
|
this.trigger();
|
|
@@ -6,15 +6,15 @@ import {Badge, BadgeAction} from './Badge.js';
|
|
|
6
6
|
|
|
7
7
|
const STARTER_BADGE_IMAGE_URI = new URL('../../Images/devtools-user-badge.svg', import.meta.url).toString();
|
|
8
8
|
export class StarterBadge extends Badge {
|
|
9
|
-
override readonly isStarterBadge = true;
|
|
9
|
+
override readonly isStarterBadge: boolean = true;
|
|
10
10
|
override readonly name =
|
|
11
11
|
'profiles/me/awards/developers.google.com%2Fprofile%2Fbadges%2Factivity%2Fchrome-devtools%2Fchrome-devtools-user';
|
|
12
12
|
override readonly title = 'Chrome DevTools User';
|
|
13
13
|
override readonly jslogContext = 'chrome-devtools-user';
|
|
14
|
-
override readonly imageUri = STARTER_BADGE_IMAGE_URI;
|
|
14
|
+
override readonly imageUri: string = STARTER_BADGE_IMAGE_URI;
|
|
15
15
|
|
|
16
16
|
// TODO(ergunsh): Add remaining non-trivial event definitions
|
|
17
|
-
override readonly interestedActions = [
|
|
17
|
+
override readonly interestedActions: readonly BadgeAction[] = [
|
|
18
18
|
BadgeAction.GDP_SIGN_UP_COMPLETE,
|
|
19
19
|
BadgeAction.RECEIVE_BADGES_SETTING_ENABLED,
|
|
20
20
|
BadgeAction.CSS_RULE_MODIFIED,
|
|
@@ -24,7 +24,7 @@ export class StarterBadge extends Badge {
|
|
|
24
24
|
BadgeAction.PERFORMANCE_RECORDING_STARTED,
|
|
25
25
|
BadgeAction.NETWORK_SPEED_THROTTLED,
|
|
26
26
|
BadgeAction.RECORDER_RECORDING_STARTED,
|
|
27
|
-
]
|
|
27
|
+
];
|
|
28
28
|
|
|
29
29
|
handleAction(action: BadgeAction): void {
|
|
30
30
|
this.trigger({immediate: action === BadgeAction.GDP_SIGN_UP_COMPLETE});
|
|
@@ -458,13 +458,22 @@ export class CompilerScriptMapping implements DebuggerSourceMapping {
|
|
|
458
458
|
this.removeStubUISourceCode(script);
|
|
459
459
|
|
|
460
460
|
const target = script.target();
|
|
461
|
-
const
|
|
461
|
+
const embedderName = script.embedderName();
|
|
462
|
+
let securityOrigin: SDK.SecurityOrigin.SecurityOrigin|undefined;
|
|
463
|
+
if (embedderName) {
|
|
464
|
+
const extractedOrigin = Common.ParsedURL.ParsedURL.extractOrigin(embedderName);
|
|
465
|
+
if (extractedOrigin && extractedOrigin !== 'null') {
|
|
466
|
+
securityOrigin = SDK.SecurityOrigin.SecurityOrigin.create(extractedOrigin);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
const parsedOrigin = securityOrigin ? `:${securityOrigin.siteId()}` : '';
|
|
470
|
+
const projectId = `jsSourceMaps:${script.isContentScript() ? 'extensions' : ''}:${target.id()}${parsedOrigin}`;
|
|
462
471
|
let project = this.#projects.get(projectId);
|
|
463
472
|
if (!project) {
|
|
464
473
|
const projectType = script.isContentScript() ? Workspace.Workspace.projectTypes.ContentScripts :
|
|
465
474
|
Workspace.Workspace.projectTypes.Network;
|
|
466
475
|
project = new ContentProviderBasedProject(this.#stubProject.workspace(), projectId, projectType,
|
|
467
|
-
/* displayName */ '', /* isServiceProject */ false);
|
|
476
|
+
/* displayName */ '', /* isServiceProject */ false, securityOrigin);
|
|
468
477
|
NetworkProject.setTargetForProject(project, target);
|
|
469
478
|
this.#projects.set(projectId, project);
|
|
470
479
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import type * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as Platform from '../../core/platform/platform.js';
|
|
8
|
+
import type * as SDK from '../../core/sdk/sdk.js';
|
|
8
9
|
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
9
10
|
import * as Workspace from '../workspace/workspace.js';
|
|
10
11
|
|
|
@@ -27,8 +28,8 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
|
27
28
|
readonly #isServiceProject: boolean;
|
|
28
29
|
readonly #uiSourceCodeToData = new WeakMap<Workspace.UISourceCode.UISourceCode, UISourceCodeData>();
|
|
29
30
|
constructor(workspace: Workspace.Workspace.WorkspaceImpl, id: string, type: Workspace.Workspace.projectTypes,
|
|
30
|
-
displayName: string, isServiceProject: boolean) {
|
|
31
|
-
super(workspace, id, type, displayName);
|
|
31
|
+
displayName: string, isServiceProject: boolean, securityOrigin?: SDK.SecurityOrigin.SecurityOrigin) {
|
|
32
|
+
super(workspace, id, type, displayName, securityOrigin);
|
|
32
33
|
this.#isServiceProject = isServiceProject;
|
|
33
34
|
workspace.addProject(this);
|
|
34
35
|
}
|
|
@@ -510,7 +510,7 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
|
|
|
510
510
|
/** Bound locations */
|
|
511
511
|
readonly #uiLocations = new Set<Workspace.UISourceCode.UILocation>();
|
|
512
512
|
/** All known UISourceCodes with this url. This also includes UISourceCodes for the inline scripts embedded in a resource with this URL. */
|
|
513
|
-
readonly uiSourceCodes = new Set<Workspace.UISourceCode.UISourceCode>();
|
|
513
|
+
readonly uiSourceCodes: Set<Workspace.UISourceCode.UISourceCode> = new Set<Workspace.UISourceCode.UISourceCode>();
|
|
514
514
|
#storageState!: BreakpointStorageState;
|
|
515
515
|
#origin: BreakpointOrigin;
|
|
516
516
|
isRemoved = false;
|
|
@@ -50,7 +50,7 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
|
50
50
|
|
|
51
51
|
export class EmulatedDevice {
|
|
52
52
|
title = '';
|
|
53
|
-
type = Type.Unknown;
|
|
53
|
+
type: Type = Type.Unknown;
|
|
54
54
|
order!: number;
|
|
55
55
|
vertical: Orientation = {width: 0, height: 0, hinge: null};
|
|
56
56
|
horizontal: Orientation = {width: 0, height: 0, hinge: null};
|
|
@@ -630,7 +630,7 @@ export class EmulatedDevicesList extends Common.ObjectWrapper.ObjectWrapper<Even
|
|
|
630
630
|
return success;
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
-
static rawEmulatedDevicesForTest():
|
|
633
|
+
static rawEmulatedDevicesForTest(): ReadonlyArray<{'user-agent': string}&Record<string, any>> {
|
|
634
634
|
return emulatedDevices;
|
|
635
635
|
}
|
|
636
636
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import type * as PlatformApi from '../../core/platform/api/api.js';
|
|
6
6
|
import * as Platform from '../../core/platform/platform.js';
|
|
7
|
-
import * as FormatterActions from '../../entrypoints/
|
|
7
|
+
import * as FormatterActions from '../../entrypoints/formatter_actions/formatter_actions.js';
|
|
8
8
|
|
|
9
|
-
export {DefinitionKind, ScopeKind, type ScopeTreeNode} from '../../entrypoints/
|
|
9
|
+
export {DefinitionKind, ScopeKind, type ScopeTreeNode} from '../../entrypoints/formatter_actions/formatter_actions.js';
|
|
10
10
|
|
|
11
11
|
let formatterWorkerPoolInstance: FormatterWorkerPool|undefined;
|
|
12
12
|
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as Platform from '../../core/platform/platform.js';
|
|
7
|
-
|
|
8
|
-
import type * as FormatterActions from '../../entrypoints/formatter_worker/FormatterActions.js';
|
|
7
|
+
import type * as FormatterActions from '../../entrypoints/formatter_actions/formatter_actions.js';
|
|
9
8
|
|
|
10
9
|
import {formatterWorkerPool} from './FormatterWorkerPool.js';
|
|
11
10
|
|
|
@@ -111,11 +111,11 @@ export class CubicBezier {
|
|
|
111
111
|
|
|
112
112
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
113
113
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
114
|
-
static readonly Regex =
|
|
114
|
+
static readonly Regex: RegExp =
|
|
115
115
|
/((cubic-bezier\([^)]+\))|\b(linear(?![-\(])|ease-in-out|ease-in|ease-out|ease)\b)|(linear\([^)]+\))/g;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export const LINEAR_BEZIER = new CubicBezier(new Point(0, 0), new Point(1, 1));
|
|
118
|
+
export const LINEAR_BEZIER: CubicBezier = new CubicBezier(new Point(0, 0), new Point(1, 1));
|
|
119
119
|
|
|
120
120
|
export class EulerAngles {
|
|
121
121
|
alpha: number;
|
|
@@ -8,7 +8,7 @@ export const HeapSnapshotProgressEvent = {
|
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export const baseSystemDistance = 100000000;
|
|
11
|
-
export const baseUnreachableDistance = baseSystemDistance * 2;
|
|
11
|
+
export const baseUnreachableDistance: number = baseSystemDistance * 2;
|
|
12
12
|
|
|
13
13
|
export class AllocationNodeCallers {
|
|
14
14
|
nodesWithSingleCaller: SerializedAllocationNode[];
|
|
@@ -14,8 +14,9 @@ export class HeapSnapshotWorkerProxy extends Common.ObjectWrapper.ObjectWrapper<
|
|
|
14
14
|
#console: Common.Console.Console;
|
|
15
15
|
nextObjectId = 1;
|
|
16
16
|
nextCallId = 1;
|
|
17
|
-
callbacks
|
|
18
|
-
|
|
17
|
+
callbacks: Map<number, (error?: string, result?: unknown) => void> =
|
|
18
|
+
new Map<number, (error?: string, result?: unknown) => void>();
|
|
19
|
+
readonly previousCallbacks: Set<number> = new Set<number>();
|
|
19
20
|
readonly worker: PlatformApi.HostRuntime.Worker;
|
|
20
21
|
interval?: ReturnType<typeof setInterval>;
|
|
21
22
|
readonly workerUrl?: string;
|
|
@@ -131,27 +131,27 @@ const cspTrustedTypesPolicyViolation = {
|
|
|
131
131
|
links: [{link: 'https://web.dev/trusted-types/', linkTitle: i18nLazyString(UIStrings.trustedTypesPolicyViolation)}],
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
export const urlViolationCode = [
|
|
134
|
+
export const urlViolationCode: string = [
|
|
135
135
|
Protocol.Audits.InspectorIssueCode.ContentSecurityPolicyIssue,
|
|
136
136
|
Protocol.Audits.ContentSecurityPolicyViolationType.KURLViolation,
|
|
137
137
|
].join('::');
|
|
138
138
|
|
|
139
|
-
export const inlineViolationCode = [
|
|
139
|
+
export const inlineViolationCode: string = [
|
|
140
140
|
Protocol.Audits.InspectorIssueCode.ContentSecurityPolicyIssue,
|
|
141
141
|
Protocol.Audits.ContentSecurityPolicyViolationType.KInlineViolation,
|
|
142
142
|
].join('::');
|
|
143
143
|
|
|
144
|
-
export const evalViolationCode = [
|
|
144
|
+
export const evalViolationCode: string = [
|
|
145
145
|
Protocol.Audits.InspectorIssueCode.ContentSecurityPolicyIssue,
|
|
146
146
|
Protocol.Audits.ContentSecurityPolicyViolationType.KEvalViolation,
|
|
147
147
|
].join('::');
|
|
148
148
|
|
|
149
|
-
export const trustedTypesSinkViolationCode = [
|
|
149
|
+
export const trustedTypesSinkViolationCode: string = [
|
|
150
150
|
Protocol.Audits.InspectorIssueCode.ContentSecurityPolicyIssue,
|
|
151
151
|
Protocol.Audits.ContentSecurityPolicyViolationType.KTrustedTypesSinkViolation,
|
|
152
152
|
].join('::');
|
|
153
153
|
|
|
154
|
-
export const trustedTypesPolicyViolationCode = [
|
|
154
|
+
export const trustedTypesPolicyViolationCode: string = [
|
|
155
155
|
Protocol.Audits.InspectorIssueCode.ContentSecurityPolicyIssue,
|
|
156
156
|
Protocol.Audits.ContentSecurityPolicyViolationType.KTrustedTypesPolicyViolation,
|
|
157
157
|
].join('::');
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// Copyright 2026 The Chromium Authors
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
import * as Common from '../../core/common/common.js';
|
|
6
|
+
import * as Platform from '../../core/platform/platform.js';
|
|
7
|
+
import * as SDK from '../../core/sdk/sdk.js';
|
|
8
|
+
import type * as Protocol from '../../generated/protocol.js';
|
|
9
|
+
|
|
10
|
+
import type {Issue} from './Issue.js';
|
|
11
|
+
import type {IssueAddedEvent, IssueHiddenStatusUpdatedEvent, IssuesManager} from './IssuesManager.js';
|
|
12
|
+
import {Events as IssuesManagerEvents} from './IssuesManagerEvents.js';
|
|
13
|
+
|
|
14
|
+
export const enum Events {
|
|
15
|
+
DOM_ISSUE_ADDED = 'DOMIssueAdded',
|
|
16
|
+
DOM_ISSUE_REMOVED = 'DOMIssueRemoved',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface EventTypes {
|
|
20
|
+
[Events.DOM_ISSUE_ADDED]: {node: SDK.DOMModel.DOMNode, issue: Issue};
|
|
21
|
+
[Events.DOM_ISSUE_REMOVED]: {node: SDK.DOMModel.DOMNode, issue: Issue};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class DOMIssuesManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes> {
|
|
25
|
+
readonly #issuesManager: IssuesManager;
|
|
26
|
+
readonly #targetManager: SDK.TargetManager.TargetManager;
|
|
27
|
+
#currentIssues = new Set<Issue>();
|
|
28
|
+
#nodeToIssues = new Platform.MapUtilities.Multimap<SDK.DOMModel.DOMNode, Issue>();
|
|
29
|
+
readonly #nodeIdSubscribers = new Platform.MapUtilities.Multimap<Protocol.DOM.NodeId, () => void>();
|
|
30
|
+
|
|
31
|
+
constructor(issuesManager: IssuesManager, targetManager: SDK.TargetManager.TargetManager) {
|
|
32
|
+
super();
|
|
33
|
+
this.#issuesManager = issuesManager;
|
|
34
|
+
this.#targetManager = targetManager;
|
|
35
|
+
this.#issuesManager.addEventListener(IssuesManagerEvents.ISSUE_ADDED, this.#onIssueAdded, this);
|
|
36
|
+
this.#issuesManager.addEventListener(IssuesManagerEvents.ISSUE_HIDDEN_STATUS_UPDATED,
|
|
37
|
+
this.#onIssueHiddenStatusUpdated, this);
|
|
38
|
+
this.#issuesManager.addEventListener(IssuesManagerEvents.FULL_UPDATE_REQUIRED, this.#onFullUpdateRequired, this);
|
|
39
|
+
this.#targetManager.addModelListener(SDK.DOMModel.DOMModel, SDK.DOMModel.Events.DocumentUpdated,
|
|
40
|
+
this.#onDocumentUpdated, this, {scoped: true});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
subscribeByNodeId(nodeId: Protocol.DOM.NodeId, callback: () => void): void {
|
|
44
|
+
this.#nodeIdSubscribers.set(nodeId, callback);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
unsubscribeByNodeId(nodeId: Protocol.DOM.NodeId, callback: () => void): void {
|
|
48
|
+
this.#nodeIdSubscribers.delete(nodeId, callback);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
issuesForNode(node: SDK.DOMModel.DOMNode): Issue[] {
|
|
52
|
+
return Array.from(this.#nodeToIssues.get(node));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
#onIssueAdded(event: Common.EventTarget.EventTargetEvent<IssueAddedEvent>): void {
|
|
56
|
+
void this.#addIssue(event.data.issue);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#onIssueHiddenStatusUpdated(event: Common.EventTarget.EventTargetEvent<IssueHiddenStatusUpdatedEvent>): void {
|
|
60
|
+
const {issue} = event.data;
|
|
61
|
+
if (issue.isHidden()) {
|
|
62
|
+
void this.#removeIssue(issue);
|
|
63
|
+
} else {
|
|
64
|
+
void this.#addIssue(issue);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#onFullUpdateRequired(): void {
|
|
69
|
+
const newIssues = new Set(this.#issuesManager.issues());
|
|
70
|
+
for (const issue of this.#currentIssues) {
|
|
71
|
+
if (!newIssues.has(issue) || issue.isHidden()) {
|
|
72
|
+
void this.#removeIssue(issue);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
for (const issue of newIssues) {
|
|
76
|
+
if (!issue.isHidden()) {
|
|
77
|
+
void this.#addIssue(issue);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
#onDocumentUpdated(_event: Common.EventTarget.EventTargetEvent<SDK.DOMModel.DOMModel>): void {
|
|
83
|
+
this.#nodeToIssues.clear();
|
|
84
|
+
for (const issue of this.#issuesManager.issues()) {
|
|
85
|
+
if (!issue.isHidden()) {
|
|
86
|
+
void this.#addIssue(issue);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
async #resolveNodesForIssue(issue: Issue): Promise<SDK.DOMModel.DOMNode[]> {
|
|
92
|
+
const primaryTarget = this.#targetManager.primaryPageTarget() ?? this.#targetManager.targets()[0];
|
|
93
|
+
const nodes: SDK.DOMModel.DOMNode[] = [];
|
|
94
|
+
for (const element of issue.elements()) {
|
|
95
|
+
const elementTarget = (element.target && typeof (element.target as SDK.Target.Target).model === 'function') ?
|
|
96
|
+
(element.target as SDK.Target.Target) :
|
|
97
|
+
primaryTarget;
|
|
98
|
+
if (!elementTarget) {
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
const domModel = elementTarget.model(SDK.DOMModel.DOMModel);
|
|
102
|
+
if (!domModel) {
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
const deferredDOMNode = new SDK.DOMModel.DeferredDOMNode(elementTarget, element.backendNodeId);
|
|
106
|
+
const node = await deferredDOMNode.resolvePromise();
|
|
107
|
+
if (node) {
|
|
108
|
+
nodes.push(node);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return nodes;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
async #addIssue(issue: Issue): Promise<void> {
|
|
115
|
+
if (issue.isHidden()) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
this.#currentIssues.add(issue);
|
|
119
|
+
const nodes = await this.#resolveNodesForIssue(issue);
|
|
120
|
+
for (const node of nodes) {
|
|
121
|
+
if (!this.#nodeToIssues.hasValue(node, issue)) {
|
|
122
|
+
this.#nodeToIssues.set(node, issue);
|
|
123
|
+
this.dispatchEventToListeners(Events.DOM_ISSUE_ADDED, {node, issue});
|
|
124
|
+
for (const callback of this.#nodeIdSubscribers.get(node.id)) {
|
|
125
|
+
callback();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
async #removeIssue(issue: Issue): Promise<void> {
|
|
132
|
+
this.#currentIssues.delete(issue);
|
|
133
|
+
const nodes = await this.#resolveNodesForIssue(issue);
|
|
134
|
+
for (const node of nodes) {
|
|
135
|
+
if (this.#nodeToIssues.hasValue(node, issue)) {
|
|
136
|
+
this.#nodeToIssues.delete(node, issue);
|
|
137
|
+
this.dispatchEventToListeners(Events.DOM_ISSUE_REMOVED, {node, issue});
|
|
138
|
+
for (const callback of this.#nodeIdSubscribers.get(node.id)) {
|
|
139
|
+
callback();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type * as SDK from '../../core/sdk/sdk.js';
|
|
6
6
|
import * as Protocol from '../../generated/protocol.js';
|
|
7
7
|
|
|
8
|
-
import {Issue, IssueCategory, IssueKind} from './Issue.js';
|
|
8
|
+
import {type AffectedElement, Issue, IssueCategory, IssueKind} from './Issue.js';
|
|
9
9
|
import {
|
|
10
10
|
type LazyMarkdownIssueDescription,
|
|
11
11
|
type MarkdownIssueDescription,
|
|
@@ -23,6 +23,18 @@ export class ElementAccessibilityIssue extends Issue<Protocol.Audits.ElementAcce
|
|
|
23
23
|
super(issueCode, issueDetails, issuesModel, issueId);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
override elements(): Iterable<AffectedElement> {
|
|
27
|
+
const details = this.details();
|
|
28
|
+
if (details.nodeId) {
|
|
29
|
+
return [{
|
|
30
|
+
backendNodeId: details.nodeId,
|
|
31
|
+
nodeName: '',
|
|
32
|
+
target: this.model()?.target() ?? null,
|
|
33
|
+
}];
|
|
34
|
+
}
|
|
35
|
+
return [];
|
|
36
|
+
}
|
|
37
|
+
|
|
26
38
|
primaryKey(): string {
|
|
27
39
|
return JSON.stringify(this.details());
|
|
28
40
|
}
|