chrome-devtools-frontend 1.0.1684555 → 1.0.1690116
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/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 +26 -12
- 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 +10 -4
- 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/collect-ui-strings.js +5 -5
- package/front_end/core/i18n/generate-locales-js.js +1 -1
- package/front_end/core/i18n/i18n.ts +6 -0
- package/front_end/core/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 -7
- 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 +9 -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 +49 -14
- package/front_end/core/sdk/DebuggerModel.ts +1 -1
- package/front_end/core/sdk/EmulationModel.ts +23 -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 +15 -0
- package/front_end/core/sdk/Script.ts +1 -1
- package/front_end/core/sdk/SecurityOrigin.ts +158 -0
- package/front_end/core/sdk/ServiceWorkerManager.ts +75 -17
- package/front_end/core/sdk/Target.ts +1 -5
- 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/node_app/app/nodeConnectionsPanel.css +5 -5
- package/front_end/entrypoints/node_app/node_app.ts +1 -1
- package/front_end/generated/ARIAProperties.ts +39 -1
- package/front_end/generated/InspectorBackendCommands.ts +2 -1
- package/front_end/generated/SupportedCSSProperties.ts +60 -119
- package/front_end/generated/protocol-mapping.d.ts +9 -0
- package/front_end/generated/protocol-proxy-api.d.ts +7 -0
- package/front_end/generated/protocol.ts +12 -2
- package/front_end/models/ai_assistance/AiAgent2.ts +13 -7
- package/front_end/models/ai_assistance/AiConversation.ts +8 -17
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +2 -2
- package/front_end/models/ai_assistance/AiUtils.ts +16 -10
- 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 +8 -13
- package/front_end/models/ai_assistance/agents/AiAgent.ts +29 -6
- 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 +7 -5
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +8 -7
- package/front_end/models/ai_assistance/ai_assistance.ts +8 -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 +3 -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 +3 -2
- 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 +17 -4
- 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 +16 -4
- 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 +9 -9
- package/front_end/models/ai_assistance/tools/SelectTraceEventByKey.ts +9 -8
- package/front_end/models/ai_assistance/tools/Tool.ts +21 -11
- 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/GenericIssue.ts +18 -18
- package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +1 -1
- package/front_end/models/javascript_metadata/{NativeFunctions.js → NativeFunctions.ts} +26 -10
- 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 +1 -1
- package/front_end/models/trace/insights/Cache.ts +1 -1
- package/front_end/models/trace/insights/CharacterSet.ts +1 -1
- package/front_end/models/trace/insights/DOMSize.ts +1 -1
- package/front_end/models/trace/insights/DocumentLatency.ts +1 -1
- package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -1
- package/front_end/models/trace/insights/FontDisplay.ts +1 -1
- package/front_end/models/trace/insights/ForcedReflow.ts +1 -1
- package/front_end/models/trace/insights/INPBreakdown.ts +1 -1
- package/front_end/models/trace/insights/ImageDelivery.ts +1 -1
- package/front_end/models/trace/insights/LCPBreakdown.ts +1 -1
- package/front_end/models/trace/insights/LCPDiscovery.ts +1 -1
- package/front_end/models/trace/insights/LegacyJavaScript.ts +1 -1
- package/front_end/models/trace/insights/ModernHTTP.ts +1 -1
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +1 -1
- package/front_end/models/trace/insights/RenderBlocking.ts +3 -4
- package/front_end/models/trace/insights/SlowCSSSelector.ts +1 -1
- package/front_end/models/trace/insights/ThirdParties.ts +3 -3
- package/front_end/models/trace/insights/Viewport.ts +1 -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/ARIAAttributesView.ts +1 -1
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +686 -2
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
- package/front_end/panels/accessibility/AccessibilityStrings.ts +7 -3
- 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 +1 -1
- package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
- package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +2 -2
- package/front_end/panels/ai_assistance/components/AccessibilityAgentMarkdownRenderer.ts +1 -3
- package/front_end/panels/ai_assistance/components/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/AnimationGroupPreviewUI.ts +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/animation/AnimationUI.ts +1 -1
- package/front_end/panels/animation/animationTimeline.css +62 -62
- package/front_end/panels/application/AppManifestView.ts +6 -2
- package/front_end/panels/application/ApplicationPanelSidebar.ts +8 -5
- package/front_end/panels/application/BackgroundServiceView.ts +290 -252
- package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +1 -1
- package/front_end/panels/application/FrameDetailsView.ts +1 -1
- package/front_end/panels/application/IndexedDBViews.ts +3 -2
- package/front_end/panels/application/ReportingApiTreeElement.ts +1 -1
- package/front_end/panels/application/ReportingApiView.ts +2 -2
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -1
- package/front_end/panels/application/ServiceWorkersView.ts +1 -1
- package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
- package/front_end/panels/application/StorageItemsToolbar.ts +6 -2
- package/front_end/panels/application/StorageView.ts +9 -8
- package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
- package/front_end/panels/application/WebMCPView.ts +17 -8
- 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/BounceTrackingMitigationsView.ts +1 -1
- package/front_end/panels/application/components/CrashReportContextGrid.ts +1 -1
- package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
- package/front_end/panels/application/components/ReportsGrid.ts +1 -1
- package/front_end/panels/application/components/TrustTokensView.ts +1 -1
- 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/MismatchedPreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.css +2 -2
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -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 +14 -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.ts +2 -2
- package/front_end/panels/autofill/autofillView.css +4 -4
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -3
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
- 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.ts +56 -15
- package/front_end/panels/changes/ChangesView.ts +1 -1
- 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 +12 -5
- package/front_end/panels/console/ConsoleSidebar.ts +6 -2
- package/front_end/panels/console/ConsoleView.ts +6 -3
- package/front_end/panels/console/ConsoleViewMessage.ts +3 -1
- package/front_end/panels/console/console-meta.ts +5 -24
- 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/ElementsPanel.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +142 -94
- package/front_end/panels/elements/ElementsTreeOutline.ts +2132 -472
- package/front_end/panels/elements/PropertyRenderer.ts +22 -15
- package/front_end/panels/elements/ShortcutTreeElement.ts +6 -3
- package/front_end/panels/elements/StandaloneStylesContainer.ts +6 -2
- package/front_end/panels/elements/StylePropertiesSection.ts +65 -8
- package/front_end/panels/elements/StylePropertyTreeElement.ts +81 -26
- package/front_end/panels/elements/StylesSidebarPane.ts +149 -10
- 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 +226 -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.ts +6 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +6 -2
- 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/LayerDetailsView.ts +6 -2
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +7 -2
- package/front_end/panels/layer_viewer/Layers3DView.ts +17 -11
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +6 -2
- 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/lighthouse/lighthousePanel.css +5 -5
- package/front_end/panels/lighthouse/lighthouseStartView.css +13 -13
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +6 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +6 -2
- package/front_end/panels/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/NetworkThrottlingSelector.ts +6 -2
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +25 -54
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +9 -9
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -0
- package/front_end/panels/network/NetworkLogView.ts +8 -3
- 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 +23 -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 +39 -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 +5 -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/performance_monitor/performanceMonitor.css +3 -3
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +7 -2
- package/front_end/panels/profiler/HeapProfileView.ts +7 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +8 -4
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +8 -4
- package/front_end/panels/profiler/HeapSnapshotView.ts +15 -6
- package/front_end/panels/profiler/HeapTimelineOverview.ts +6 -2
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +12 -5
- package/front_end/panels/profiler/ProfileLauncherView.ts +6 -2
- package/front_end/panels/profiler/heapProfiler.css +15 -15
- package/front_end/panels/profiler/profileLauncherView.css +10 -10
- package/front_end/panels/profiler/profilesPanel.css +8 -9
- package/front_end/panels/profiler/profilesSidebarTree.css +13 -13
- package/front_end/panels/protocol_monitor/JSONEditor.css +2 -2
- package/front_end/panels/protocol_monitor/JSONEditor.ts +6 -1
- package/front_end/panels/protocol_monitor/protocolMonitor.css +2 -2
- package/front_end/panels/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/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/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/SourcesView.ts +7 -2
- package/front_end/panels/sources/TabbedEditorContainer.ts +6 -2
- package/front_end/panels/sources/UISourceCodeFrame.ts +11 -4
- 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/AnimationsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/AnnotationHelpers.ts +9 -9
- package/front_end/panels/timeline/CountersGraph.ts +8 -8
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +3 -3
- package/front_end/panels/timeline/ExtensionTrackAppender.ts +1 -1
- package/front_end/panels/timeline/GPUTrackAppender.ts +1 -1
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/IsolateSelector.ts +2 -2
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +3 -3
- package/front_end/panels/timeline/NetworkTrackAppender.ts +1 -1
- package/front_end/panels/timeline/StatusDialog.ts +5 -6
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +4 -4
- package/front_end/panels/timeline/ThreadAppender.ts +12 -14
- package/front_end/panels/timeline/TimelineController.ts +5 -8
- package/front_end/panels/timeline/TimelineDetailsView.ts +22 -30
- package/front_end/panels/timeline/TimelineEventOverview.ts +4 -4
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +17 -17
- package/front_end/panels/timeline/TimelineFlameChartView.ts +11 -8
- package/front_end/panels/timeline/TimelineHistoryManager.ts +8 -8
- package/front_end/panels/timeline/TimelineLoader.ts +1 -1
- package/front_end/panels/timeline/TimelineMiniMap.ts +10 -5
- package/front_end/panels/timeline/TimelinePanel.ts +57 -59
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +27 -27
- package/front_end/panels/timeline/TimelineTreeView.ts +46 -44
- package/front_end/panels/timeline/TimelineUIUtils.ts +142 -116
- package/front_end/panels/timeline/TimingsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/TrackConfigBanner.ts +4 -4
- package/front_end/panels/timeline/UIDevtoolsUtils.ts +15 -15
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
- 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/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/enable-easter-egg.js +1 -1
- 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 +30 -36
- package/front_end/panels/timeline/timelineDetailsView.css +11 -11
- package/front_end/panels/timeline/timelineFlameChartView.css +10 -10
- package/front_end/panels/timeline/timelineFlamechartPopover.css +5 -5
- package/front_end/panels/timeline/timelineHistoryManager.css +7 -7
- package/front_end/panels/timeline/timelinePaintProfiler.css +2 -2
- package/front_end/panels/timeline/timelinePanel.css +20 -20
- package/front_end/panels/timeline/timelineTreeView.css +8 -8
- package/front_end/panels/timeline/utils/IgnoreList.ts +4 -4
- 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 +26 -6
- package/front_end/ui/comments/CommentOverlayManager.ts +9 -1
- 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/Button.docs.ts +1 -1
- package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
- package/front_end/ui/components/buttons/button.css +30 -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/ReportView.docs.ts +1 -1
- 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/snackbars/Snackbars.docs.ts +1 -1
- package/front_end/ui/components/spinners/Spinner.ts +1 -1
- package/front_end/ui/components/spinners/Spinners.docs.ts +1 -1
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +1 -2
- package/front_end/ui/components/switch/Switch.docs.ts +1 -1
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +10 -8
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +2 -1
- package/front_end/ui/components/text_editor/ExecutionPositionHighlighter.ts +2 -2
- package/front_end/ui/components/text_editor/TextEditor.ts +22 -1
- package/front_end/ui/components/text_editor/config.ts +125 -100
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/theme.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.docs.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
- package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +4 -1
- package/front_end/ui/kit/cards/Card.ts +1 -1
- package/front_end/ui/kit/icons/Icon.ts +1 -1
- package/front_end/ui/kit/icons/icon.css +4 -4
- package/front_end/ui/kit/link/Link.docs.ts +1 -1
- package/front_end/ui/kit/link/Link.ts +1 -1
- package/front_end/ui/kit/link/link.css +1 -1
- package/front_end/ui/legacy/ActionRegistration.ts +23 -23
- package/front_end/ui/legacy/ContextMenu.docs.ts +1 -1
- package/front_end/ui/legacy/Dialog.ts +11 -3
- package/front_end/ui/legacy/DockController.ts +3 -3
- package/front_end/ui/legacy/EmptyWidget.ts +13 -34
- package/front_end/ui/legacy/FilterBar.ts +10 -5
- 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 +19 -26
- package/front_end/ui/legacy/ListWidget.ts +7 -7
- package/front_end/ui/legacy/PlusButton.ts +1 -3
- package/front_end/ui/legacy/RadioButton.docs.ts +1 -1
- package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +6 -6
- package/front_end/ui/legacy/SearchableView.ts +16 -16
- package/front_end/ui/legacy/SelectMenu.docs.ts +1 -1
- package/front_end/ui/legacy/Slider.docs.ts +1 -1
- package/front_end/ui/legacy/SoftContextMenu.ts +8 -8
- package/front_end/ui/legacy/SoftDropDown.ts +1 -1
- package/front_end/ui/legacy/SplitWidget.ts +5 -1
- package/front_end/ui/legacy/SuggestBox.ts +2 -2
- package/front_end/ui/legacy/TabbedPane.ts +15 -11
- 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 +80 -20
- 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.ts +6 -1
- package/front_end/ui/legacy/components/color_picker/spectrum.css +90 -90
- 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/data_grid/ViewportDataGrid.ts +6 -2
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +6 -1
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +6 -2
- 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 +8 -6
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +28 -11
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +6 -2
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +8 -8
- 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/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.ts +8 -3
- package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +6 -1
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +3 -3
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +7 -2
- 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/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 +34 -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 +3 -3
- 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
|
@@ -97,7 +97,7 @@ export class RehydratingConnectionTransport implements ProtocolClient.Connection
|
|
|
97
97
|
onDisconnect: ((arg0: string) => void)|null = null;
|
|
98
98
|
onMessage: ((arg0: Object) => void)|null = null;
|
|
99
99
|
trace: TraceObject|null = null;
|
|
100
|
-
sessions = new Map<number, RehydratingSessionBase>();
|
|
100
|
+
sessions: Map<number, RehydratingSessionBase> = new Map<number, RehydratingSessionBase>();
|
|
101
101
|
/**
|
|
102
102
|
* Set to the in-flight `traceURL` fetch (including its hydration/error handling) so tests can await
|
|
103
103
|
* the load deterministically. Stays `undefined` when loading via message passing, or when a
|
|
@@ -956,7 +956,7 @@ export class RemoteArrayBuffer {
|
|
|
956
956
|
return this.#object.arrayBufferByteLength();
|
|
957
957
|
}
|
|
958
958
|
|
|
959
|
-
async bytes(start = 0, end = this.byteLength()): Promise<number[]|null> {
|
|
959
|
+
async bytes(start = 0, end: number = this.byteLength()): Promise<number[]|null> {
|
|
960
960
|
if (start < 0 || start >= this.byteLength()) {
|
|
961
961
|
throw new RangeError('start is out of range');
|
|
962
962
|
}
|
|
@@ -26,7 +26,7 @@ export class ResourceTreeModel extends SDKModel<EventTypes> {
|
|
|
26
26
|
readonly #securityOriginManager: SecurityOriginManager;
|
|
27
27
|
readonly #storageKeyManager: StorageKeyManager;
|
|
28
28
|
readonly #frameManager: FrameManager;
|
|
29
|
-
readonly framesInternal = new Map<string, ResourceTreeFrame>();
|
|
29
|
+
readonly framesInternal: Map<string, ResourceTreeFrame> = new Map<string, ResourceTreeFrame>();
|
|
30
30
|
#cachedResourcesProcessed = false;
|
|
31
31
|
#pendingReloadOptions: {
|
|
32
32
|
ignoreCache: (boolean|undefined),
|
|
@@ -660,7 +660,7 @@ export class ResourceTreeFrame {
|
|
|
660
660
|
#creationStackTrace: Protocol.Runtime.StackTrace|null;
|
|
661
661
|
#creationStackTraceTarget: Target|null = null;
|
|
662
662
|
#childFrames = new Set<ResourceTreeFrame>();
|
|
663
|
-
resourcesMap = new Map<Platform.DevToolsPath.UrlString, Resource>();
|
|
663
|
+
resourcesMap: Map<Platform.DevToolsPath.UrlString, Resource> = new Map<Platform.DevToolsPath.UrlString, Resource>();
|
|
664
664
|
backForwardCacheDetails: {
|
|
665
665
|
explanations: Protocol.Page.BackForwardCacheNotRestoredExplanation[],
|
|
666
666
|
restoredFromCache?: boolean,
|
|
@@ -14,7 +14,7 @@ export interface RegistrationInfo {
|
|
|
14
14
|
|
|
15
15
|
export type SDKModelConstructor<T extends SDKModel = SDKModel> = new (target: Target) => T;
|
|
16
16
|
|
|
17
|
-
const registeredModels = new Map<SDKModelConstructor, RegistrationInfo>();
|
|
17
|
+
const registeredModels: Map<SDKModelConstructor, RegistrationInfo> = new Map<SDKModelConstructor, RegistrationInfo>();
|
|
18
18
|
|
|
19
19
|
// TODO(crbug.com/1228674) Remove defaults for generic type parameters once
|
|
20
20
|
// all event emitters and sinks have been migrated.
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import type * as Protocol from '../../generated/protocol.js';
|
|
6
6
|
import * as Common from '../common/common.js';
|
|
7
7
|
|
|
8
|
+
import {DataSaverOverride} from './EmulationModel.js';
|
|
9
|
+
|
|
8
10
|
export const jsSourceMapsEnabledSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
9
11
|
name: 'js-source-maps-enabled',
|
|
10
12
|
type: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -168,6 +170,12 @@ export const cpuPressureSettingDescriptor: Common.Settings.SettingDescriptor<str
|
|
|
168
170
|
defaultValue: 'none',
|
|
169
171
|
};
|
|
170
172
|
|
|
173
|
+
export const cpuPerformanceSettingDescriptor: Common.Settings.SettingDescriptor<string> = {
|
|
174
|
+
name: 'emulation.cpu-performance',
|
|
175
|
+
type: Common.Settings.SettingType.ENUM,
|
|
176
|
+
defaultValue: 'no-override',
|
|
177
|
+
};
|
|
178
|
+
|
|
171
179
|
export const touchSettingDescriptor: Common.Settings.SettingDescriptor<string> = {
|
|
172
180
|
name: 'emulation.touch',
|
|
173
181
|
type: Common.Settings.SettingType.ENUM,
|
|
@@ -215,6 +223,13 @@ export const emulatedCSSMediaFeaturePrefersReducedDataSettingDescriptor: Common.
|
|
|
215
223
|
storageType: Common.Settings.SettingStorageType.SESSION,
|
|
216
224
|
};
|
|
217
225
|
|
|
226
|
+
export const dataSaverSettingDescriptor: Common.Settings.SettingDescriptor<DataSaverOverride> = {
|
|
227
|
+
name: 'emulation.data-saver',
|
|
228
|
+
type: Common.Settings.SettingType.ENUM,
|
|
229
|
+
defaultValue: DataSaverOverride.UNSET,
|
|
230
|
+
storageType: Common.Settings.SettingStorageType.SESSION,
|
|
231
|
+
};
|
|
232
|
+
|
|
218
233
|
export const emulatedCSSMediaFeaturePrefersReducedTransparencySettingDescriptor:
|
|
219
234
|
Common.Settings.SettingDescriptor<string> = {
|
|
220
235
|
name: 'emulated-css-media-feature-prefers-reduced-transparency',
|
|
@@ -457,7 +457,7 @@ function frameIdForScript(script: Script): Protocol.Page.FrameId|null {
|
|
|
457
457
|
return resourceTreeModel.mainFrame.id;
|
|
458
458
|
}
|
|
459
459
|
|
|
460
|
-
export const sourceURLRegex = /^[\x20\t]*\/\/[@#] sourceURL=\s*(\S*?)\s*$/;
|
|
460
|
+
export const sourceURLRegex: RegExp = /^[\x20\t]*\/\/[@#] sourceURL=\s*(\S*?)\s*$/;
|
|
461
461
|
|
|
462
462
|
export async function disassembleWasm(content: string): Promise<TextUtils.WasmDisassembly.WasmDisassembly> {
|
|
463
463
|
const worker = Platform.HostRuntime.HOST_RUNTIME.createWorker(
|
|
@@ -0,0 +1,158 @@
|
|
|
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 '../common/common.js';
|
|
6
|
+
import type * as Platform from '../platform/platform.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Internal representation of a security origin:
|
|
10
|
+
* - `origin`: A comparable origin string (`<scheme>://<host>[:<port>]` or path-scoped `file://<host>/<path>`).
|
|
11
|
+
* - `opaque`: An isolated opaque origin uniquely identified by a UUID that never matches any other origin.
|
|
12
|
+
*/
|
|
13
|
+
type InternalOrigin =
|
|
14
|
+
|{readonly type: 'origin', readonly value: string}|{readonly type: 'opaque', readonly uuid: string};
|
|
15
|
+
|
|
16
|
+
/** Exact string matches that represent an invalid or opaque origin. */
|
|
17
|
+
const OPAQUE_EXACT_MATCHES = new Set([
|
|
18
|
+
'',
|
|
19
|
+
'null',
|
|
20
|
+
'undefined',
|
|
21
|
+
'data:',
|
|
22
|
+
'detached',
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
/** String prefixes for origins that must be treated as opaque (e.g. `about:blank`, `blob:data`). */
|
|
26
|
+
const OPAQUE_PREFIXES = [
|
|
27
|
+
'about:',
|
|
28
|
+
'blob:about',
|
|
29
|
+
'blob:data',
|
|
30
|
+
'blob:null',
|
|
31
|
+
] as const;
|
|
32
|
+
|
|
33
|
+
function isOpaqueUrlString(url: string): boolean {
|
|
34
|
+
const lower = url.trim().toLowerCase();
|
|
35
|
+
if (OPAQUE_EXACT_MATCHES.has(lower)) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
return OPAQUE_PREFIXES.some(prefix => lower.startsWith(prefix));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* An immutable security origin for an entity in DevTools (such as a document,
|
|
43
|
+
* network request, or storage key).
|
|
44
|
+
*
|
|
45
|
+
* DevTools features that handle user data or execute commands on behalf of the user
|
|
46
|
+
* (such as DevTools AI Assistance and Extensions) must enforce strict origin boundaries
|
|
47
|
+
* to prevent prompt injection and cross-origin data exfiltration.
|
|
48
|
+
*
|
|
49
|
+
* This class serves as the single source of truth for origin comparison and classification:
|
|
50
|
+
*
|
|
51
|
+
* 1. **Standard Origins**: Web URLs (HTTP, HTTPS, WSS) resolve to `<scheme>://<host>[:<port>]`.
|
|
52
|
+
* Two standard origins are same-origin if their scheme, host, and port match.
|
|
53
|
+
*
|
|
54
|
+
* 2. **File URLs (`file://`)**: In the WHATWG web security model, `file://` URLs are assigned
|
|
55
|
+
* opaque origins. In DevTools, however, users frequently debug local files (`file:///path/index.html`).
|
|
56
|
+
* Treating all `file://` URLs as opaque would block the user from inspecting elements or styles within
|
|
57
|
+
* the same file. Conversely, treating all `file://` URLs as a single shared origin would allow a malicious
|
|
58
|
+
* local file to traverse into other local files via iframes (b/524362513).
|
|
59
|
+
* Therefore, DevTools treats `file://` URLs as **path-scoped origins** (`file://<authority><path>`).
|
|
60
|
+
* `isOpaque()` returns `false` for `file://` URLs, and two `file://` URLs are considered same-origin
|
|
61
|
+
* only if their full file path and host match exactly.
|
|
62
|
+
*
|
|
63
|
+
* 3. **Opaque Origins**: Opaque contexts (`data:`, `about:blank`, invalid URLs, or synthetic
|
|
64
|
+
* opaque origins) are backed by unique UUIDs. An opaque origin never matches any other origin,
|
|
65
|
+
* even another opaque origin created from the same URL string.
|
|
66
|
+
*/
|
|
67
|
+
export class SecurityOrigin {
|
|
68
|
+
readonly #origin: InternalOrigin;
|
|
69
|
+
|
|
70
|
+
private constructor(origin: InternalOrigin) {
|
|
71
|
+
this.#origin = origin;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Creates a `SecurityOrigin` instance from a raw URL or origin string.
|
|
76
|
+
*
|
|
77
|
+
* - If the URL is determined to be opaque (e.g. `data:`, `about:blank`, empty, `null`),
|
|
78
|
+
* a new unique opaque origin is returned.
|
|
79
|
+
* - If the URL is a `file://` URL, a path-scoped origin (`file://<authority><path>`) is returned.
|
|
80
|
+
* - Otherwise, the standard origin (`<scheme>://<host>[:<port>]`) is extracted and returned.
|
|
81
|
+
*
|
|
82
|
+
* @param rawUrl The raw URL or origin string to evaluate.
|
|
83
|
+
*/
|
|
84
|
+
static create(rawUrl: string): SecurityOrigin {
|
|
85
|
+
if (isOpaqueUrlString(rawUrl)) {
|
|
86
|
+
return SecurityOrigin.createUniqueOpaque();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (rawUrl.toLowerCase().startsWith('file://')) {
|
|
90
|
+
const parsed = Common.ParsedURL.ParsedURL.fromString(rawUrl as Platform.DevToolsPath.UrlString);
|
|
91
|
+
if (!parsed) {
|
|
92
|
+
return SecurityOrigin.createUniqueOpaque();
|
|
93
|
+
}
|
|
94
|
+
const authority = parsed.host + (parsed.port ? ':' + parsed.port : '');
|
|
95
|
+
return new SecurityOrigin({type: 'origin', value: `file://${authority}${parsed.path}`});
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const origin = Common.ParsedURL.ParsedURL.extractOrigin(rawUrl as Platform.DevToolsPath.UrlString);
|
|
99
|
+
if (!origin || isOpaqueUrlString(origin)) {
|
|
100
|
+
return SecurityOrigin.createUniqueOpaque();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return new SecurityOrigin({type: 'origin', value: origin});
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Creates a synthetic, unique opaque origin.
|
|
108
|
+
*
|
|
109
|
+
* Useful when an entity (like a sandboxed iframe or detached DOM tree) needs an
|
|
110
|
+
* isolated origin that will never match any other origin in the session.
|
|
111
|
+
*/
|
|
112
|
+
static createUniqueOpaque(): SecurityOrigin {
|
|
113
|
+
return new SecurityOrigin({type: 'opaque', uuid: crypto.randomUUID()});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Checks whether this security origin is equivalent to another security origin.
|
|
118
|
+
*
|
|
119
|
+
* - Standard origins return `true` if their scheme, host, and port match.
|
|
120
|
+
* - File origins return `true` if their full file path and host match.
|
|
121
|
+
* - Opaque origins return `true` only if both instances have identical UUIDs.
|
|
122
|
+
* - Passing `null` always returns `false`.
|
|
123
|
+
*
|
|
124
|
+
* @param other The other `SecurityOrigin` to compare with.
|
|
125
|
+
*/
|
|
126
|
+
isSameOriginWith(other: SecurityOrigin|null): boolean {
|
|
127
|
+
if (!other) {
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
if (this.#origin.type === 'opaque' || other.#origin.type === 'opaque') {
|
|
131
|
+
return this.#origin.type === 'opaque' && other.#origin.type === 'opaque' &&
|
|
132
|
+
this.#origin.uuid === other.#origin.uuid;
|
|
133
|
+
}
|
|
134
|
+
return this.#origin.value === other.#origin.value;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Returns whether this origin is opaque.
|
|
139
|
+
*
|
|
140
|
+
* Opaque origins include `data:` URLs, `about:blank`, invalid URLs, and instances
|
|
141
|
+
* created via `createUniqueOpaque()`.
|
|
142
|
+
*/
|
|
143
|
+
isOpaque(): boolean {
|
|
144
|
+
return this.#origin.type === 'opaque';
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Returns a stable string representation of this origin for identification, storage keys,
|
|
149
|
+
* or debugging logs.
|
|
150
|
+
*
|
|
151
|
+
* - For standard origins, returns the serialized origin string (e.g. `https://example.com:8080`).
|
|
152
|
+
* - For file origins, returns the path-scoped origin (e.g. `file:///path/to/file.html`).
|
|
153
|
+
* - For opaque origins, returns the unique UUID string.
|
|
154
|
+
*/
|
|
155
|
+
siteId(): string {
|
|
156
|
+
return this.#origin.type === 'opaque' ? this.#origin.uuid : this.#origin.value;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -358,7 +358,9 @@ export class ServiceWorkerVersion {
|
|
|
358
358
|
}
|
|
359
359
|
this.targetId = payload.targetId || null;
|
|
360
360
|
this.routerRules = null;
|
|
361
|
-
if (payload.
|
|
361
|
+
if (payload.typedRouterRules) {
|
|
362
|
+
this.routerRules = this.parseTypedRules(payload.typedRouterRules);
|
|
363
|
+
} else if (payload.routerRules) {
|
|
362
364
|
this.routerRules = this.parseJSONRules(payload.routerRules);
|
|
363
365
|
}
|
|
364
366
|
}
|
|
@@ -455,24 +457,80 @@ export class ServiceWorkerVersion {
|
|
|
455
457
|
return null;
|
|
456
458
|
}
|
|
457
459
|
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* `urlPattern` can be either plain text (e.g. '/foo/*') or a JSON-serialized URLPattern/URLPatternInit object.
|
|
463
|
+
* Parses it to an object if valid JSON, otherwise falls back to the original string.
|
|
464
|
+
*/
|
|
465
|
+
private parseURLPatternCondition(urlPattern: string): string|Record<string, unknown>|null {
|
|
466
|
+
try {
|
|
467
|
+
const parsed = JSON.parse(urlPattern);
|
|
468
|
+
if (typeof parsed === 'object' && parsed !== null && !Array.isArray(parsed)) {
|
|
469
|
+
// URLPattern or URLPatternInit
|
|
470
|
+
return parsed as Record<string, unknown>;
|
|
471
|
+
}
|
|
472
|
+
if (typeof parsed !== 'string') {
|
|
473
|
+
return null;
|
|
474
|
+
}
|
|
475
|
+
} catch {
|
|
476
|
+
// fallthrough
|
|
477
|
+
}
|
|
478
|
+
return urlPattern;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
private parseTypedRules(rules: Protocol.ServiceWorker.ServiceWorkerRouterRule[]): ServiceWorkerRouterRule[]|null {
|
|
482
|
+
const routerRules: ServiceWorkerRouterRule[] = [];
|
|
483
|
+
for (const rule of rules) {
|
|
484
|
+
const condition: Record<string, unknown> = {...rule.condition};
|
|
485
|
+
// "urlPattern" condition can have structural URLPatternInit encoded into a JSON string.
|
|
486
|
+
// If `condition` is directly stringified, such JSON strings are double-escaped (`"abc"` -> `\"abc\""`).
|
|
487
|
+
// Expand "urlPattern" condition to native object and stringify whole conditions in such cases to avoid this.
|
|
488
|
+
if (rule.condition.urlPattern) {
|
|
489
|
+
condition.urlPattern = this.parseURLPatternCondition(rule.condition.urlPattern);
|
|
490
|
+
if (condition.urlPattern === null) {
|
|
491
|
+
console.error('Parse error: Invalid "urlPattern" condition in `typedRouterRules` in ServiceWorkerVersion');
|
|
492
|
+
return null;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
let source: Protocol.ServiceWorker.ServiceWorkerRouterSourceType|
|
|
496
|
+
Protocol.ServiceWorker.ServiceWorkerRouterSourceDict;
|
|
497
|
+
if (rule.source.type === Protocol.ServiceWorker.ServiceWorkerRouterSourceType.SourceDict) {
|
|
498
|
+
if (!rule.source.sourceDict) {
|
|
499
|
+
console.error('Parse error: `sourceDict` is missing in `typedRouterRules` source');
|
|
500
|
+
return null;
|
|
501
|
+
}
|
|
502
|
+
source = rule.source.sourceDict;
|
|
503
|
+
} else {
|
|
504
|
+
if (rule.source.sourceDict !== undefined) {
|
|
505
|
+
console.error('Parse error: Unexpected `sourceDict` in `typedRouterRules` source');
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
508
|
+
source = rule.source.type;
|
|
509
|
+
}
|
|
510
|
+
routerRules.push(new ServiceWorkerRouterRule(JSON.stringify(condition), JSON.stringify(source), rule.id));
|
|
511
|
+
}
|
|
512
|
+
return routerRules;
|
|
513
|
+
}
|
|
458
514
|
}
|
|
459
515
|
|
|
460
516
|
export namespace ServiceWorkerVersion {
|
|
461
|
-
export const RunningStatus
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
517
|
+
export const RunningStatus:
|
|
518
|
+
Record<Protocol.ServiceWorker.ServiceWorkerVersionRunningStatus, () => Platform.UIString.LocalizedString> = {
|
|
519
|
+
[Protocol.ServiceWorker.ServiceWorkerVersionRunningStatus.Running]: i18nLazyString(UIStrings.running),
|
|
520
|
+
[Protocol.ServiceWorker.ServiceWorkerVersionRunningStatus.Starting]: i18nLazyString(UIStrings.starting),
|
|
521
|
+
[Protocol.ServiceWorker.ServiceWorkerVersionRunningStatus.Stopped]: i18nLazyString(UIStrings.stopped),
|
|
522
|
+
[Protocol.ServiceWorker.ServiceWorkerVersionRunningStatus.Stopping]: i18nLazyString(UIStrings.stopping),
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
export const Status:
|
|
526
|
+
Record<Protocol.ServiceWorker.ServiceWorkerVersionStatus, () => Platform.UIString.LocalizedString> = {
|
|
527
|
+
[Protocol.ServiceWorker.ServiceWorkerVersionStatus.Activated]: i18nLazyString(UIStrings.activated),
|
|
528
|
+
[Protocol.ServiceWorker.ServiceWorkerVersionStatus.Activating]: i18nLazyString(UIStrings.activating),
|
|
529
|
+
[Protocol.ServiceWorker.ServiceWorkerVersionStatus.Installed]: i18nLazyString(UIStrings.installed),
|
|
530
|
+
[Protocol.ServiceWorker.ServiceWorkerVersionStatus.Installing]: i18nLazyString(UIStrings.installing),
|
|
531
|
+
[Protocol.ServiceWorker.ServiceWorkerVersionStatus.New]: i18nLazyString(UIStrings.new),
|
|
532
|
+
[Protocol.ServiceWorker.ServiceWorkerVersionStatus.Redundant]: i18nLazyString(UIStrings.redundant),
|
|
533
|
+
};
|
|
476
534
|
|
|
477
535
|
export const enum Modes {
|
|
478
536
|
INSTALLING = 'installing',
|
|
@@ -488,7 +546,7 @@ export class ServiceWorkerRegistration {
|
|
|
488
546
|
scopeURL!: Platform.DevToolsPath.UrlString;
|
|
489
547
|
securityOrigin!: Platform.DevToolsPath.UrlString;
|
|
490
548
|
isDeleted!: boolean;
|
|
491
|
-
versions = new Map<string, ServiceWorkerVersion>();
|
|
549
|
+
versions: Map<string, ServiceWorkerVersion> = new Map<string, ServiceWorkerVersion>();
|
|
492
550
|
deleting = false;
|
|
493
551
|
errors: Protocol.ServiceWorker.ServiceWorkerErrorMessage[] = [];
|
|
494
552
|
|
|
@@ -6,7 +6,6 @@ import type * as Protocol from '../../generated/protocol.js';
|
|
|
6
6
|
import * as Common from '../common/common.js';
|
|
7
7
|
import * as Platform from '../platform/platform.js';
|
|
8
8
|
import * as ProtocolClient from '../protocol_client/protocol_client.js';
|
|
9
|
-
import * as Root from '../root/root.js';
|
|
10
9
|
|
|
11
10
|
import {SDKModel, type SDKModelConstructor} from './SDKModel.js';
|
|
12
11
|
import type {TargetManager} from './TargetManager.js';
|
|
@@ -50,10 +49,7 @@ export class Target extends ProtocolClient.InspectorBackend.TargetBase {
|
|
|
50
49
|
this.#capabilitiesMask = Capability.BROWSER | Capability.STORAGE | Capability.DOM | Capability.JS |
|
|
51
50
|
Capability.LOG | Capability.NETWORK | Capability.TARGET | Capability.TRACING | Capability.EMULATION |
|
|
52
51
|
Capability.INPUT | Capability.INSPECTOR | Capability.AUDITS | Capability.WEB_AUTHN | Capability.IO |
|
|
53
|
-
Capability.MEDIA | Capability.EVENT_BREAKPOINTS | Capability.DOM_STORAGE;
|
|
54
|
-
if (Root.Runtime.hostConfig.devToolsWebMCPSupport?.enabled) {
|
|
55
|
-
this.#capabilitiesMask |= Capability.WEB_MCP;
|
|
56
|
-
}
|
|
52
|
+
Capability.MEDIA | Capability.EVENT_BREAKPOINTS | Capability.DOM_STORAGE | Capability.WEB_MCP;
|
|
57
53
|
if (parentTarget?.type() !== Type.FRAME) {
|
|
58
54
|
// This matches backend exposing certain capabilities only for the main frame.
|
|
59
55
|
this.#capabilitiesMask |=
|
|
@@ -77,6 +77,7 @@ import * as ScreenCaptureModel from './ScreenCaptureModel.js';
|
|
|
77
77
|
import * as Script from './Script.js';
|
|
78
78
|
import * as SDKModel from './SDKModel.js';
|
|
79
79
|
import * as SDKSettings from './SDKSettings.js';
|
|
80
|
+
import * as SecurityOrigin from './SecurityOrigin.js';
|
|
80
81
|
import * as SecurityOriginManager from './SecurityOriginManager.js';
|
|
81
82
|
import * as ServerSentEventProtocol from './ServerSentEventsProtocol.js';
|
|
82
83
|
import * as ServerTiming from './ServerTiming.js';
|
|
@@ -164,6 +165,7 @@ export {
|
|
|
164
165
|
Script,
|
|
165
166
|
SDKModel,
|
|
166
167
|
SDKSettings,
|
|
168
|
+
SecurityOrigin,
|
|
167
169
|
SecurityOriginManager,
|
|
168
170
|
ServerSentEventProtocol,
|
|
169
171
|
ServerTiming,
|
|
@@ -282,6 +282,6 @@ export class ContentData {
|
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
export const EMPTY_TEXT_CONTENT_DATA = new ContentData('', /* isBase64 */ false, 'text/plain');
|
|
285
|
+
export const EMPTY_TEXT_CONTENT_DATA: ContentData = new ContentData('', /* isBase64 */ false, 'text/plain');
|
|
286
286
|
|
|
287
287
|
export type ContentDataOrError = ContentData|{error: string};
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import type {FormatMapping} from '../formatter_actions/formatter_actions.js';
|
|
6
|
+
|
|
5
7
|
export class FormattedContentBuilder {
|
|
6
8
|
#lastOriginalPosition = 0;
|
|
7
9
|
#formattedContent: string[] = [];
|
|
@@ -15,7 +17,7 @@ export class FormattedContentBuilder {
|
|
|
15
17
|
#cachedIndents = new Map<number, string>();
|
|
16
18
|
#canBeIdentifierOrNumber = /[$\u200C\u200D\p{ID_Continue}]/u;
|
|
17
19
|
|
|
18
|
-
mapping = {original: [0], formatted: [0]};
|
|
20
|
+
mapping: FormatMapping = {original: [0], formatted: [0]};
|
|
19
21
|
|
|
20
22
|
constructor(private indentString: string) {
|
|
21
23
|
}
|
|
@@ -8,10 +8,10 @@ import * as Root from '../../core/root/root.js';
|
|
|
8
8
|
// is not used.
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @devtools/es-modules-import
|
|
10
10
|
import type * as CodeMirrorModule from '../../third_party/codemirror/codemirror-legacy.js';
|
|
11
|
+
import {type FormatResult, FormattableMediaTypes} from '../formatter_actions/formatter_actions.js';
|
|
11
12
|
|
|
12
13
|
import {CSSFormatter} from './CSSFormatter.js';
|
|
13
14
|
import {FormattedContentBuilder} from './FormattedContentBuilder.js';
|
|
14
|
-
import {type FormatResult, FormattableMediaTypes} from './FormatterActions.js';
|
|
15
15
|
import {HTMLFormatter} from './HTMLFormatter.js';
|
|
16
16
|
import {IdentityFormatter} from './IdentityFormatter.js';
|
|
17
17
|
import {JavaScriptFormatter} from './JavaScriptFormatter.js';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Acorn from '../../third_party/acorn/acorn.js';
|
|
6
|
+
import {DefinitionKind, ScopeKind, type ScopeTreeNode} from '../formatter_actions/formatter_actions.js';
|
|
6
7
|
|
|
7
8
|
import {ECMA_VERSION} from './AcornTokenizer.js';
|
|
8
|
-
import {DefinitionKind, ScopeKind, type ScopeTreeNode} from './FormatterActions.js';
|
|
9
9
|
|
|
10
10
|
export function parseScopes(expression: string, sourceType: 'module'|'script' = 'script'): Scope|null {
|
|
11
11
|
// Parse the expression and find variables and scopes.
|
|
@@ -32,7 +32,7 @@ export interface VariableUses {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export class Scope {
|
|
35
|
-
readonly variables
|
|
35
|
+
readonly variables: Map<string, VariableUses> = new Map();
|
|
36
36
|
readonly parent: Scope|null;
|
|
37
37
|
readonly start: number;
|
|
38
38
|
readonly end: number;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Acorn from '../../third_party/acorn/acorn.js';
|
|
6
|
+
import {DefinitionKind} from '../formatter_actions/formatter_actions.js';
|
|
6
7
|
|
|
7
8
|
import {ECMA_VERSION} from './AcornTokenizer.js';
|
|
8
|
-
import {DefinitionKind} from './FormatterActions.js';
|
|
9
9
|
import {ScopeVariableAnalysis} from './ScopeParser.js';
|
|
10
10
|
|
|
11
11
|
export function substituteExpression(expression: string, nameMap: Map<string, string|null>): string {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Platform from '../../core/platform/platform.js';
|
|
6
|
+
import {FormatterActions} from '../formatter_actions/formatter_actions.js';
|
|
6
7
|
|
|
7
8
|
import * as FormatterWorker from './formatter_worker.js';
|
|
8
|
-
import {FormatterActions} from './FormatterActions.js';
|
|
9
9
|
|
|
10
10
|
Platform.HostRuntime.HOST_RUNTIME.workerScope.onmessage = function(event): void {
|
|
11
11
|
const method: FormatterActions = event.data.method;
|
|
@@ -173,7 +173,7 @@ export class NodeIndicator extends UI.Widget.Widget {
|
|
|
173
173
|
#targetInfos: Protocol.Target.TargetInfo[] = [];
|
|
174
174
|
#wasShown = false;
|
|
175
175
|
|
|
176
|
-
constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
|
|
176
|
+
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
177
177
|
super(element, {useShadowDom: true});
|
|
178
178
|
this.#view = view;
|
|
179
179
|
|
|
@@ -29,7 +29,7 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
|
29
29
|
|
|
30
30
|
export class OutermostTargetSelector implements SDK.TargetManager.Observer, UI.SoftDropDown.Delegate<SDK.Target.Target>,
|
|
31
31
|
UI.Toolbar.Provider {
|
|
32
|
-
readonly listItems
|
|
32
|
+
readonly listItems: UI.ListModel.ListModel<SDK.Target.Target> = new UI.ListModel.ListModel();
|
|
33
33
|
readonly #dropDown: UI.SoftDropDown.SoftDropDown<SDK.Target.Target>;
|
|
34
34
|
readonly #toolbarItem: UI.Toolbar.ToolbarItem;
|
|
35
35
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
:host {
|
|
8
|
-
padding:
|
|
8
|
+
padding: var(--sys-size-2) var(--sys-size-1) var(--sys-size-2) var(--sys-size-2);
|
|
9
9
|
white-space: nowrap;
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
.title {
|
|
18
18
|
overflow: hidden;
|
|
19
|
-
padding-left:
|
|
19
|
+
padding-left: var(--sys-size-5);
|
|
20
20
|
text-overflow: ellipsis;
|
|
21
21
|
flex-grow: 0;
|
|
22
22
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
color: var(--sys-color-token-subtle);
|
|
26
26
|
margin-right: 3px;
|
|
27
27
|
overflow: hidden;
|
|
28
|
-
padding-left:
|
|
28
|
+
padding-left: var(--sys-size-5);
|
|
29
29
|
text-overflow: ellipsis;
|
|
30
30
|
flex-grow: 0;
|
|
31
31
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
:host {
|
|
8
|
-
padding:
|
|
8
|
+
padding: var(--sys-size-6);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
devtools-checkbox {
|
|
@@ -14,7 +14,7 @@ devtools-checkbox {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.panel-section-separator {
|
|
17
|
-
height:
|
|
17
|
+
height: var(--sys-size-1);
|
|
18
18
|
margin-bottom: 10px;
|
|
19
19
|
background: var(--sys-color-divider);
|
|
20
20
|
flex: none;
|
|
@@ -25,5 +25,5 @@ devtools-checkbox {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.chrome-select-label {
|
|
28
|
-
margin-bottom:
|
|
28
|
+
margin-bottom: var(--sys-size-8);
|
|
29
29
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import '../shell/shell.js';
|
|
6
|
-
import '../../panels/
|
|
6
|
+
import '../../panels/timeline/timeline-meta.js';
|
|
7
7
|
import '../../panels/mobile_throttling/mobile_throttling-meta.js';
|
|
8
8
|
import '../../panels/network/network-meta.js';
|
|
9
9
|
|
|
@@ -31,12 +31,18 @@ const UIStrings = {
|
|
|
31
31
|
showNode: 'Show Scripts',
|
|
32
32
|
} as const;
|
|
33
33
|
|
|
34
|
-
const str_ = i18n.i18n.registerUIStrings(
|
|
34
|
+
const str_ = i18n.i18n.registerUIStrings(
|
|
35
|
+
'entrypoints/js_app/js_app.ts',
|
|
36
|
+
UIStrings,
|
|
37
|
+
);
|
|
35
38
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
36
|
-
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(
|
|
39
|
+
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(
|
|
40
|
+
undefined,
|
|
41
|
+
str_,
|
|
42
|
+
);
|
|
37
43
|
|
|
38
44
|
let jsMainImplInstance: JsMainImpl;
|
|
39
|
-
let loadedSourcesModule:
|
|
45
|
+
let loadedSourcesModule: typeof Sources|undefined;
|
|
40
46
|
|
|
41
47
|
async function loadSourcesModule(): Promise<typeof Sources> {
|
|
42
48
|
if (!loadedSourcesModule) {
|
|
@@ -45,7 +51,9 @@ async function loadSourcesModule(): Promise<typeof Sources> {
|
|
|
45
51
|
return loadedSourcesModule;
|
|
46
52
|
}
|
|
47
53
|
export class JsMainImpl implements Common.Runnable.Runnable {
|
|
48
|
-
static instance(
|
|
54
|
+
static instance(
|
|
55
|
+
opts: {forceNew: boolean|null} = {forceNew: null},
|
|
56
|
+
): JsMainImpl {
|
|
49
57
|
const {forceNew} = opts;
|
|
50
58
|
if (!jsMainImplInstance || forceNew) {
|
|
51
59
|
jsMainImplInstance = new JsMainImpl();
|
|
@@ -55,10 +63,16 @@ export class JsMainImpl implements Common.Runnable.Runnable {
|
|
|
55
63
|
}
|
|
56
64
|
|
|
57
65
|
async run(): Promise<void> {
|
|
58
|
-
Host.userMetrics.actionTaken(
|
|
66
|
+
Host.userMetrics.actionTaken(
|
|
67
|
+
Host.UserMetrics.Action.ConnectToNodeJSDirectly,
|
|
68
|
+
);
|
|
59
69
|
void SDK.Connections.initMainConnection(async () => {
|
|
60
70
|
const target = SDK.TargetManager.TargetManager.instance().createTarget(
|
|
61
|
-
'main',
|
|
71
|
+
'main',
|
|
72
|
+
i18nString(UIStrings.main),
|
|
73
|
+
SDK.Target.Type.NODE,
|
|
74
|
+
null,
|
|
75
|
+
);
|
|
62
76
|
void target.runtimeAgent().invoke_runIfWaitingForDebugger();
|
|
63
77
|
}, Components.TargetDetachedDialog.TargetDetachedDialog.connectionLost);
|
|
64
78
|
}
|
|
@@ -73,8 +87,10 @@ UI.ViewManager.registerViewExtension({
|
|
|
73
87
|
persistence: UI.ViewManager.ViewPersistence.PERMANENT,
|
|
74
88
|
async loadView(universe) {
|
|
75
89
|
const Sources = await loadSourcesModule();
|
|
76
|
-
return Sources.SourcesNavigator.NetworkNavigatorView.instance(
|
|
77
|
-
|
|
90
|
+
return Sources.SourcesNavigator.NetworkNavigatorView.instance({
|
|
91
|
+
forceNew: null,
|
|
92
|
+
networkProjectManager: universe.networkProjectManager,
|
|
93
|
+
});
|
|
78
94
|
},
|
|
79
95
|
});
|
|
80
96
|
|