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
|
@@ -65,7 +65,6 @@ import * as PanelsCommon from '../common/common.js';
|
|
|
65
65
|
import * as Media from '../media/media.js';
|
|
66
66
|
|
|
67
67
|
import * as ElementsComponents from './components/components.js';
|
|
68
|
-
import {cssPath, jsPath, xPath} from './DOMPath.js';
|
|
69
68
|
import {getElementIssueDetails} from './ElementIssueUtils.js';
|
|
70
69
|
import {ElementsPanel} from './ElementsPanel.js';
|
|
71
70
|
import * as ElementStatePaneWidget from './ElementStatePaneWidget.js';
|
|
@@ -361,7 +360,7 @@ export interface Decoration {
|
|
|
361
360
|
|
|
362
361
|
const DOM_UPDATE_ANIMATION_CLASS_NAME = 'dom-update-highlight';
|
|
363
362
|
|
|
364
|
-
function handleAdornerKeydown(cb: (event: Event) => void): (event: KeyboardEvent) => void {
|
|
363
|
+
export function handleAdornerKeydown(cb: (event: Event) => void): (event: KeyboardEvent) => void {
|
|
365
364
|
return (event: KeyboardEvent) => {
|
|
366
365
|
if (event.code === 'Enter' || event.code === 'Space') {
|
|
367
366
|
cb(event);
|
|
@@ -882,10 +881,14 @@ export const DEFAULT_VIEW = (input: ViewInput, output: ViewOutput, target: HTMLE
|
|
|
882
881
|
${hasAdorners ? html`<div class="adorner-container ${(input.editorState) ? 'hidden' : ''}">
|
|
883
882
|
${maybeRenderAdAdorner(input)}
|
|
884
883
|
${input.showViewSourceAdorner ? html`<devtools-adorner
|
|
884
|
+
class="clickable"
|
|
885
|
+
role=button
|
|
886
|
+
tabindex=0
|
|
885
887
|
.name=${ElementsComponents.AdornerManager.RegisteredAdorners.VIEW_SOURCE}
|
|
886
|
-
jslog=${VisualLogging.adorner(ElementsComponents.AdornerManager.RegisteredAdorners.VIEW_SOURCE)}
|
|
888
|
+
jslog=${VisualLogging.adorner(ElementsComponents.AdornerManager.RegisteredAdorners.VIEW_SOURCE).track({ click: true })}
|
|
887
889
|
aria-label=${i18nString(UIStrings.viewSourceCode)}
|
|
888
890
|
@click=${input.onViewSourceAdornerClick}
|
|
891
|
+
@keydown=${handleAdornerKeydown(input.onViewSourceAdornerClick)}
|
|
889
892
|
${adornerRef()}>
|
|
890
893
|
<span>${ElementsComponents.AdornerManager.RegisteredAdorners.VIEW_SOURCE}</span>
|
|
891
894
|
</devtools-adorner>` : nothing}
|
|
@@ -1017,7 +1020,9 @@ export const DEFAULT_VIEW = (input: ViewInput, output: ViewOutput, target: HTMLE
|
|
|
1017
1020
|
</span>
|
|
1018
1021
|
</devtools-adorner>`: nothing}
|
|
1019
1022
|
${input.showStartingStyleAdorner ? html`<devtools-adorner
|
|
1020
|
-
class="starting-style"
|
|
1023
|
+
class="starting-style clickable"
|
|
1024
|
+
role=button
|
|
1025
|
+
tabindex=0
|
|
1021
1026
|
.name=${ElementsComponents.AdornerManager.RegisteredAdorners.STARTING_STYLE}
|
|
1022
1027
|
jslog=${VisualLogging.adorner(ElementsComponents.AdornerManager.RegisteredAdorners.STARTING_STYLE).track({ click: true })}
|
|
1023
1028
|
active=${input.startingStyleAdornerActive}
|
|
@@ -1051,7 +1056,9 @@ export const DEFAULT_VIEW = (input: ViewInput, output: ViewOutput, target: HTMLE
|
|
|
1051
1056
|
</span>
|
|
1052
1057
|
</devtools-adorner>`: nothing}
|
|
1053
1058
|
${input.showScrollSnapAdorner ? html`<devtools-adorner
|
|
1054
|
-
class="scroll-snap"
|
|
1059
|
+
class="scroll-snap clickable"
|
|
1060
|
+
role=button
|
|
1061
|
+
tabindex=0
|
|
1055
1062
|
.name=${ElementsComponents.AdornerManager.RegisteredAdorners.SCROLL_SNAP}
|
|
1056
1063
|
jslog=${VisualLogging.adorner(ElementsComponents.AdornerManager.RegisteredAdorners.SCROLL_SNAP).track({ click: true })}
|
|
1057
1064
|
active=${input.scrollSnapAdornerActive}
|
|
@@ -1093,6 +1100,15 @@ export const DEFAULT_VIEW = (input: ViewInput, output: ViewOutput, target: HTMLE
|
|
|
1093
1100
|
|
|
1094
1101
|
type View = typeof DEFAULT_VIEW;
|
|
1095
1102
|
|
|
1103
|
+
export interface InitialEditState {
|
|
1104
|
+
attributeName?: string;
|
|
1105
|
+
isNewAttribute?: boolean;
|
|
1106
|
+
isProcessingInstruction?: boolean;
|
|
1107
|
+
isTextNode?: boolean;
|
|
1108
|
+
isEditAsHTML?: boolean;
|
|
1109
|
+
editAsHTMLCallback?: (success: boolean) => void;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1096
1112
|
export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
1097
1113
|
static override readonly INJECT = [IssuesManager.DOMIssuesManager.DOMIssuesManager] as const;
|
|
1098
1114
|
#domIssuesManager?: IssuesManager.DOMIssuesManager.DOMIssuesManager;
|
|
@@ -1106,6 +1122,8 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1106
1122
|
disableEdits = false;
|
|
1107
1123
|
showAIButton = false;
|
|
1108
1124
|
isDOMNodeSelected = false;
|
|
1125
|
+
initialEdit?: InitialEditState|null;
|
|
1126
|
+
onInitialEditCompleted?: () => void;
|
|
1109
1127
|
|
|
1110
1128
|
expand?: () => void;
|
|
1111
1129
|
collapse?: () => void;
|
|
@@ -1115,22 +1133,18 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1115
1133
|
childCount?: () => number;
|
|
1116
1134
|
closingTagElement?: () => Element | null;
|
|
1117
1135
|
updateShadowRootDepth?: (depth: number) => void;
|
|
1118
|
-
computeLeftIndent?: () => number;
|
|
1136
|
+
computeLeftIndent?: number|(() => number);
|
|
1119
1137
|
setChildrenListElementVisible?: (visible: boolean) => void;
|
|
1120
1138
|
|
|
1121
1139
|
findStartTagWidget?: () => ElementsTreeWidget | null;
|
|
1122
1140
|
selectDOMNode?: (node: SDK.DOMModel.DOMNode, selectedByUser?: boolean) => void;
|
|
1123
1141
|
revealInTopLayer?: (node: SDK.DOMModel.DOMNode) => void;
|
|
1124
|
-
showContextMenu?: (event: Event) => void;
|
|
1142
|
+
showContextMenu?: (event: Event, widget?: ElementsTreeWidget) => void;
|
|
1125
1143
|
populateTreeElement?: () => Promise<void>;
|
|
1126
|
-
performCopyOrCut?: (isCut: boolean, node: SDK.DOMModel.DOMNode, isElement?: boolean) => void;
|
|
1127
|
-
duplicateNode?: (node: SDK.DOMModel.DOMNode) => void;
|
|
1128
|
-
pasteNode?: (node: SDK.DOMModel.DOMNode) => void;
|
|
1129
|
-
canPaste?: (node: SDK.DOMModel.DOMNode) => boolean;
|
|
1130
1144
|
toggleHideElement?: (node: SDK.DOMModel.DOMNode) => Promise<void>;
|
|
1131
1145
|
isToggledToHidden?: (node: SDK.DOMModel.DOMNode) => boolean;
|
|
1132
|
-
selectNodeAfterEdit?: (wasExpanded: boolean, error: string|null,
|
|
1133
|
-
|
|
1146
|
+
selectNodeAfterEdit?: (wasExpanded: boolean, error: string|null, newNode: SDK.DOMModel.DOMNode|null,
|
|
1147
|
+
moveDirection?: string) => void;
|
|
1134
1148
|
runPendingUpdates?: () => void;
|
|
1135
1149
|
focusOutline?: () => void;
|
|
1136
1150
|
setMultilineEditing?: (multilineEditing: EditorHandles|null) => void;
|
|
@@ -1138,10 +1152,10 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1138
1152
|
|
|
1139
1153
|
#view: View;
|
|
1140
1154
|
|
|
1141
|
-
|
|
1155
|
+
#searchQuery: string|null = null;
|
|
1142
1156
|
#expandedChildrenLimit: number;
|
|
1143
|
-
|
|
1144
|
-
|
|
1157
|
+
#decorationsThrottler = new Common.Throttler.Throttler(100);
|
|
1158
|
+
inClipboard = false;
|
|
1145
1159
|
#hovered: boolean;
|
|
1146
1160
|
editing: EditorHandles|null;
|
|
1147
1161
|
#editorRef?: TextEditor.TextEditor.TextEditor;
|
|
@@ -1173,6 +1187,18 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1173
1187
|
|
|
1174
1188
|
#updateRecord: Elements.ElementUpdateRecord.ElementUpdateRecord|null = null;
|
|
1175
1189
|
|
|
1190
|
+
get updateRecord(): Elements.ElementUpdateRecord.ElementUpdateRecord|null {
|
|
1191
|
+
return this.#updateRecord;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
set updateRecord(updateRecord: Elements.ElementUpdateRecord.ElementUpdateRecord|null) {
|
|
1195
|
+
if (this.#updateRecord === updateRecord) {
|
|
1196
|
+
return;
|
|
1197
|
+
}
|
|
1198
|
+
this.#updateRecord = updateRecord;
|
|
1199
|
+
this.requestUpdate();
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1176
1202
|
get node(): SDK.DOMModel.DOMNode {
|
|
1177
1203
|
return this.#node;
|
|
1178
1204
|
}
|
|
@@ -1181,6 +1207,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1181
1207
|
this.#node = node;
|
|
1182
1208
|
if (!this.isClosingTag) {
|
|
1183
1209
|
void this.#updateAdorners();
|
|
1210
|
+
this.updateDecorations();
|
|
1184
1211
|
}
|
|
1185
1212
|
}
|
|
1186
1213
|
|
|
@@ -1190,6 +1217,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1190
1217
|
|
|
1191
1218
|
set expanded(expanded: boolean) {
|
|
1192
1219
|
this.#expanded = expanded;
|
|
1220
|
+
this.updateDecorations();
|
|
1193
1221
|
this.requestUpdate();
|
|
1194
1222
|
}
|
|
1195
1223
|
|
|
@@ -1211,6 +1239,18 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1211
1239
|
this.requestUpdate();
|
|
1212
1240
|
}
|
|
1213
1241
|
|
|
1242
|
+
get searchQuery(): string|null {
|
|
1243
|
+
return this.#searchQuery;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
set searchQuery(query: string|null) {
|
|
1247
|
+
if (this.#searchQuery === query) {
|
|
1248
|
+
return;
|
|
1249
|
+
}
|
|
1250
|
+
this.#searchQuery = query;
|
|
1251
|
+
this.requestUpdate();
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1214
1254
|
get tagTypeContext(): TagTypeContext {
|
|
1215
1255
|
if (this.isClosingTag) {
|
|
1216
1256
|
return {tagType: TagType.CLOSING};
|
|
@@ -1245,9 +1285,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1245
1285
|
this.#domIssuesManager = domIssuesManager;
|
|
1246
1286
|
this.#view = view;
|
|
1247
1287
|
|
|
1248
|
-
this.searchQuery = null;
|
|
1249
1288
|
this.#expandedChildrenLimit = InitialChildrenLimit;
|
|
1250
|
-
this.decorationsThrottler = new Common.Throttler.Throttler(100);
|
|
1251
1289
|
|
|
1252
1290
|
this.inClipboard = false;
|
|
1253
1291
|
this.#hovered = false;
|
|
@@ -1316,6 +1354,14 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1316
1354
|
|
|
1317
1355
|
#clearDOMNextUpdate = false;
|
|
1318
1356
|
|
|
1357
|
+
override wasShown(): void {
|
|
1358
|
+
super.wasShown();
|
|
1359
|
+
if (!this.isClosingTag) {
|
|
1360
|
+
void this.#updateAdorners();
|
|
1361
|
+
this.updateDecorations();
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1319
1365
|
override performUpdate(): void {
|
|
1320
1366
|
// Skip updating when in-place editing (not HTML editing indicated by the
|
|
1321
1367
|
// editorState) is happening. Doing an update would break editing
|
|
@@ -1323,6 +1369,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1323
1369
|
if (this.editing && !this.#editorState) {
|
|
1324
1370
|
return;
|
|
1325
1371
|
}
|
|
1372
|
+
this.updateDecorations();
|
|
1326
1373
|
if (this.#clearDOMNextUpdate) {
|
|
1327
1374
|
this.#clearDOMNextUpdate = false;
|
|
1328
1375
|
Lit.render(Lit.nothing, this.contentElement, {host: this});
|
|
@@ -1366,7 +1413,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1366
1413
|
decorations: this.#decorations,
|
|
1367
1414
|
descendantDecorations: this.#expanded ? [] : this.#descendantDecorations,
|
|
1368
1415
|
decorationsTooltip: this.#decorationsTooltip,
|
|
1369
|
-
indent: this
|
|
1416
|
+
indent: this.#getLeftIndent(),
|
|
1370
1417
|
showScrollSnapAdorner: Boolean(this.#layout?.hasScroll) && !isClosingTag,
|
|
1371
1418
|
scrollSnapAdornerActive: this.#scrollSnapAdornerActive,
|
|
1372
1419
|
showSlotAdorner: Boolean(this.node.assignedSlot) && !isClosingTag,
|
|
@@ -1388,7 +1435,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1388
1435
|
},
|
|
1389
1436
|
topLayerIndex: this.node.topLayerIndex(),
|
|
1390
1437
|
onViewSourceAdornerClick: this.disableEdits ? () => {} : this.revealHTMLInSources.bind(this),
|
|
1391
|
-
onGutterClick: this.showContextMenu ? (event: Event) => this.showContextMenu?.(event) : () => {},
|
|
1438
|
+
onGutterClick: this.showContextMenu ? (event: Event) => this.showContextMenu?.(event, this) : () => {},
|
|
1392
1439
|
onContainerAdornerClick: this.disableEdits ? () => {} : (event: Event) => this.#onContainerAdornerClick(event),
|
|
1393
1440
|
onFlexAdornerClick: this.disableEdits ? () => {} : (event: Event) => this.#onFlexAdornerClick(event),
|
|
1394
1441
|
onGridAdornerClick: this.disableEdits ? () => {} : (event: Event) => this.#onGridAdornerClick(event),
|
|
@@ -1426,6 +1473,30 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1426
1473
|
if (this.#updateRecord) {
|
|
1427
1474
|
this.#updateRecord = null;
|
|
1428
1475
|
}
|
|
1476
|
+
if (this.#searchQuery && !this.editing) {
|
|
1477
|
+
this.#highlightSearchResults();
|
|
1478
|
+
} else if (!this.#searchQuery && this.#highlights.length) {
|
|
1479
|
+
this.hideSearchHighlights();
|
|
1480
|
+
}
|
|
1481
|
+
if (this.initialEdit) {
|
|
1482
|
+
const edit = this.initialEdit;
|
|
1483
|
+
this.initialEdit = null;
|
|
1484
|
+
this.onInitialEditCompleted?.();
|
|
1485
|
+
if (edit.isEditAsHTML) {
|
|
1486
|
+
this.toggleEditAsHTML(edit.editAsHTMLCallback);
|
|
1487
|
+
} else if (edit.isProcessingInstruction) {
|
|
1488
|
+
this.startEditingProcessingInstructionValue();
|
|
1489
|
+
} else if (edit.isTextNode) {
|
|
1490
|
+
const textNode = this.contentElement.querySelector('.webkit-html-text-node');
|
|
1491
|
+
if (textNode) {
|
|
1492
|
+
this.startEditingTextNode(textNode);
|
|
1493
|
+
}
|
|
1494
|
+
} else if (edit.isNewAttribute) {
|
|
1495
|
+
this.addNewAttribute();
|
|
1496
|
+
} else if (edit.attributeName) {
|
|
1497
|
+
this.triggerEditAttribute(edit.attributeName);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1429
1500
|
}
|
|
1430
1501
|
|
|
1431
1502
|
async #onCustomElementAdornerClick(event: Event): Promise<void> {
|
|
@@ -1913,7 +1984,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1913
1984
|
return UI.ActionRegistry.ActionRegistry.instance().hasAction('freestyler.elements-floating-button');
|
|
1914
1985
|
}
|
|
1915
1986
|
|
|
1916
|
-
|
|
1987
|
+
startEditing(): boolean|undefined {
|
|
1917
1988
|
if (!this.isDOMNodeSelected) {
|
|
1918
1989
|
return;
|
|
1919
1990
|
}
|
|
@@ -2272,7 +2343,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
2272
2343
|
|
|
2273
2344
|
function resize(this: ElementsTreeWidget): void {
|
|
2274
2345
|
if (this.visibleWidth) {
|
|
2275
|
-
this.#editorWidth = this.visibleWidth() -
|
|
2346
|
+
this.#editorWidth = this.visibleWidth() - this.#getLeftIndent() - 30;
|
|
2276
2347
|
this.requestUpdate();
|
|
2277
2348
|
}
|
|
2278
2349
|
}
|
|
@@ -2285,7 +2356,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
2285
2356
|
}
|
|
2286
2357
|
|
|
2287
2358
|
function dispose(this: ElementsTreeWidget): void {
|
|
2288
|
-
if (!this.#
|
|
2359
|
+
if (!this.editing && !this.#editorState) {
|
|
2289
2360
|
return;
|
|
2290
2361
|
}
|
|
2291
2362
|
this.editing = null;
|
|
@@ -2311,6 +2382,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
2311
2382
|
moveDirection: string,
|
|
2312
2383
|
): void {
|
|
2313
2384
|
this.editing = null;
|
|
2385
|
+
this.#clearDOMNextUpdate = true;
|
|
2314
2386
|
|
|
2315
2387
|
function moveToNextAttributeIfNeeded(this: ElementsTreeWidget, error?: string|null): void {
|
|
2316
2388
|
if (error) {
|
|
@@ -2432,10 +2504,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
2432
2504
|
}
|
|
2433
2505
|
|
|
2434
2506
|
Badges.UserBadges.instance().recordAction(Badges.BadgeAction.DOM_ELEMENT_OR_ATTRIBUTE_EDITED);
|
|
2435
|
-
|
|
2436
|
-
if (newWidget) {
|
|
2437
|
-
moveToNextAttributeIfNeeded.call(newWidget);
|
|
2438
|
-
}
|
|
2507
|
+
this.selectNodeAfterEdit(wasExpanded, error, newNode, moveDirection);
|
|
2439
2508
|
});
|
|
2440
2509
|
}
|
|
2441
2510
|
|
|
@@ -2497,10 +2566,17 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
2497
2566
|
this.#highlightSearchResults();
|
|
2498
2567
|
}
|
|
2499
2568
|
|
|
2569
|
+
#getLeftIndent(): number {
|
|
2570
|
+
if (typeof this.computeLeftIndent === 'function') {
|
|
2571
|
+
return this.computeLeftIndent();
|
|
2572
|
+
}
|
|
2573
|
+
return this.computeLeftIndent ?? 0;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2500
2576
|
updateDecorations(): void {
|
|
2501
2577
|
// Important to keep the entire tree node row as a clickable area for that
|
|
2502
2578
|
// node.
|
|
2503
|
-
this.element.style.setProperty('--indent',
|
|
2579
|
+
this.element.style.setProperty('--indent', this.#getLeftIndent() + 'px');
|
|
2504
2580
|
|
|
2505
2581
|
if (this.isClosingTag) {
|
|
2506
2582
|
return;
|
|
@@ -2510,7 +2586,7 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
2510
2586
|
return;
|
|
2511
2587
|
}
|
|
2512
2588
|
|
|
2513
|
-
void this
|
|
2589
|
+
void this.#decorationsThrottler.schedule(this.#updateDecorations.bind(this));
|
|
2514
2590
|
}
|
|
2515
2591
|
|
|
2516
2592
|
#updateDecorations(): Promise<void> {
|
|
@@ -2552,15 +2628,23 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
2552
2628
|
return Promise.all(promises).then(updateDecorationsUI.bind(this));
|
|
2553
2629
|
|
|
2554
2630
|
function updateDecorationsUI(this: ElementsTreeWidget): void {
|
|
2555
|
-
this
|
|
2556
|
-
|
|
2631
|
+
if (!this.isShowing()) {
|
|
2632
|
+
return;
|
|
2633
|
+
}
|
|
2557
2634
|
|
|
2558
2635
|
if (!decorations.length && !descendantDecorations.length) {
|
|
2559
|
-
this.#decorationsTooltip
|
|
2560
|
-
|
|
2636
|
+
if (this.#decorations.length || this.#descendantDecorations.length || this.#decorationsTooltip) {
|
|
2637
|
+
this.#decorations = [];
|
|
2638
|
+
this.#descendantDecorations = [];
|
|
2639
|
+
this.#decorationsTooltip = '';
|
|
2640
|
+
this.requestUpdate();
|
|
2641
|
+
}
|
|
2561
2642
|
return;
|
|
2562
2643
|
}
|
|
2563
2644
|
|
|
2645
|
+
this.#decorations = decorations;
|
|
2646
|
+
this.#descendantDecorations = descendantDecorations;
|
|
2647
|
+
|
|
2564
2648
|
const tooltip: string[] = [];
|
|
2565
2649
|
for (const decoration of decorations) {
|
|
2566
2650
|
tooltip.push(decoration.title);
|
|
@@ -2623,53 +2707,6 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
2623
2707
|
void node.getOuterHTML().then(this.startEditingAsHTML.bind(this, commitChange, disposeCallback));
|
|
2624
2708
|
}
|
|
2625
2709
|
|
|
2626
|
-
copyCSSPath(): void {
|
|
2627
|
-
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(cssPath(this.node, true));
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
copyJSPath(): void {
|
|
2631
|
-
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(jsPath(this.node, true));
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
copyXPath(): void {
|
|
2635
|
-
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(xPath(this.node, true));
|
|
2636
|
-
}
|
|
2637
|
-
|
|
2638
|
-
copyFullXPath(): void {
|
|
2639
|
-
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(xPath(this.node, false));
|
|
2640
|
-
}
|
|
2641
|
-
|
|
2642
|
-
async copyStyles(): Promise<void> {
|
|
2643
|
-
const node = this.node;
|
|
2644
|
-
const cssModel = node.domModel().cssModel();
|
|
2645
|
-
const cascade = await cssModel.cachedMatchedCascadeForNode(node);
|
|
2646
|
-
if (!cascade) {
|
|
2647
|
-
return;
|
|
2648
|
-
}
|
|
2649
|
-
|
|
2650
|
-
const indent = Common.Settings.Settings.instance().moduleSetting('text-editor-indent').get();
|
|
2651
|
-
const lines: string[] = [];
|
|
2652
|
-
for (const style of cascade.nodeStyles().reverse()) {
|
|
2653
|
-
for (const property of style.leadingProperties()) {
|
|
2654
|
-
if (!property.parsedOk || property.disabled || !property.activeInStyle() || property.implicit) {
|
|
2655
|
-
continue;
|
|
2656
|
-
}
|
|
2657
|
-
if (cascade.isInherited(style) && !SDK.CSSMetadata.cssMetadata().isPropertyInherited(property.name)) {
|
|
2658
|
-
continue;
|
|
2659
|
-
}
|
|
2660
|
-
if (style.parentRule?.isUserAgent()) {
|
|
2661
|
-
continue;
|
|
2662
|
-
}
|
|
2663
|
-
if (cascade.propertyState(property) !== SDK.CSSMatchedStyles.PropertyState.ACTIVE) {
|
|
2664
|
-
continue;
|
|
2665
|
-
}
|
|
2666
|
-
lines.push(`${indent}${property.name}: ${property.value};`);
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(lines.join('\n'));
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
2710
|
#highlightSearchResults(): void {
|
|
2674
2711
|
this.hideSearchHighlights();
|
|
2675
2712
|
|
|
@@ -2805,6 +2842,7 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
2805
2842
|
this.widgetWrapper = document.createElement('div');
|
|
2806
2843
|
this.widgetWrapper.style.display = 'contents';
|
|
2807
2844
|
this.title = this.widgetWrapper;
|
|
2845
|
+
this.listItemElement.draggable = true;
|
|
2808
2846
|
this.widget = new ElementsTreeWidget();
|
|
2809
2847
|
this.widget.isClosingTag = this.#isClosingTag;
|
|
2810
2848
|
this.widget.node = this.nodeInternal;
|
|
@@ -2873,7 +2911,8 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
2873
2911
|
this.widget.hideSearchHighlights();
|
|
2874
2912
|
}
|
|
2875
2913
|
copyStyles(): Promise<void> {
|
|
2876
|
-
|
|
2914
|
+
const outline = this.treeOutline as ElementsTreeOutline | null;
|
|
2915
|
+
return outline?.domTreeWidget?.copyStyles(this.nodeInternal) ?? Promise.resolve();
|
|
2877
2916
|
}
|
|
2878
2917
|
setInClipboard(inClipboard: boolean): void {
|
|
2879
2918
|
this.widget.setInClipboard(inClipboard);
|
|
@@ -2894,6 +2933,9 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
2894
2933
|
highlightAttribute(name: string): void {
|
|
2895
2934
|
this.widget.highlightAttribute(name);
|
|
2896
2935
|
}
|
|
2936
|
+
startEditing(): boolean|undefined {
|
|
2937
|
+
return this.widget.startEditing();
|
|
2938
|
+
}
|
|
2897
2939
|
startEditingAttribute(attribute: Element, elementForSelection: Element): boolean {
|
|
2898
2940
|
return this.widget.startEditingAttribute(attribute, elementForSelection);
|
|
2899
2941
|
}
|
|
@@ -2904,16 +2946,20 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
2904
2946
|
this.widget.editAsHTML();
|
|
2905
2947
|
}
|
|
2906
2948
|
copyCSSPath(): void {
|
|
2907
|
-
this.
|
|
2949
|
+
const outline = this.treeOutline as ElementsTreeOutline | null;
|
|
2950
|
+
outline?.domTreeWidget?.copyCSSPath(this.nodeInternal);
|
|
2908
2951
|
}
|
|
2909
2952
|
copyJSPath(): void {
|
|
2910
|
-
this.
|
|
2953
|
+
const outline = this.treeOutline as ElementsTreeOutline | null;
|
|
2954
|
+
outline?.domTreeWidget?.copyJSPath(this.nodeInternal);
|
|
2911
2955
|
}
|
|
2912
2956
|
copyXPath(): void {
|
|
2913
|
-
this.
|
|
2957
|
+
const outline = this.treeOutline as ElementsTreeOutline | null;
|
|
2958
|
+
outline?.domTreeWidget?.copyXPath(this.nodeInternal);
|
|
2914
2959
|
}
|
|
2915
2960
|
copyFullXPath(): void {
|
|
2916
|
-
this.
|
|
2961
|
+
const outline = this.treeOutline as ElementsTreeOutline | null;
|
|
2962
|
+
outline?.domTreeWidget?.copyFullXPath(this.nodeInternal);
|
|
2917
2963
|
}
|
|
2918
2964
|
hasEditableNode(): boolean {
|
|
2919
2965
|
return this.widget.hasEditableNode();
|
|
@@ -2958,20 +3004,17 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
2958
3004
|
this.widget.revealInTopLayer = node => outline.revealInTopLayer(node);
|
|
2959
3005
|
this.widget.showContextMenu = event => void outline.showContextMenu(this, event);
|
|
2960
3006
|
this.widget.populateTreeElement = async () => await outline.populateTreeElement(this);
|
|
2961
|
-
this.widget.performCopyOrCut = (isCut, node, isElement) => outline.performCopyOrCut(isCut, node, isElement);
|
|
2962
|
-
this.widget.duplicateNode = node => outline.duplicateNode(node);
|
|
2963
|
-
this.widget.pasteNode = node => outline.pasteNode(node);
|
|
2964
|
-
this.widget.canPaste = node => outline.canPaste(node);
|
|
2965
3007
|
this.widget.toggleHideElement = node => outline.toggleHideElement(node);
|
|
2966
3008
|
this.widget.isToggledToHidden = node => outline.isToggledToHidden(node);
|
|
2967
|
-
this.widget.selectNodeAfterEdit = (wasExpanded, error, newNode) => {
|
|
2968
|
-
|
|
2969
|
-
return newTreeItem?.widget ?? null;
|
|
3009
|
+
this.widget.selectNodeAfterEdit = (wasExpanded, error, newNode, moveDirection) => {
|
|
3010
|
+
outline.domTreeWidget?.selectNodeAfterEdit(wasExpanded, error, newNode, moveDirection);
|
|
2970
3011
|
};
|
|
2971
3012
|
this.widget.runPendingUpdates = () => outline.runPendingUpdates();
|
|
2972
3013
|
this.widget.focusOutline = () => outline.focus();
|
|
2973
|
-
this.widget.setMultilineEditing = multilineEditing =>
|
|
2974
|
-
|
|
3014
|
+
this.widget.setMultilineEditing = multilineEditing => {
|
|
3015
|
+
outline.domTreeWidget?.setMultilineEditing(multilineEditing);
|
|
3016
|
+
};
|
|
3017
|
+
this.widget.visibleWidth = () => outline.domTreeWidget?.visibleWidth ?? outline.visibleWidth();
|
|
2975
3018
|
}
|
|
2976
3019
|
}
|
|
2977
3020
|
|
|
@@ -3031,6 +3074,11 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
3031
3074
|
|
|
3032
3075
|
override onenter(): boolean {
|
|
3033
3076
|
this.#syncOutlineProperties();
|
|
3077
|
+
const outline = this.treeOutline as ElementsTreeOutline | null;
|
|
3078
|
+
if (outline?.domTreeWidget) {
|
|
3079
|
+
outline.domTreeWidget.startEditing(this.nodeInternal);
|
|
3080
|
+
return true;
|
|
3081
|
+
}
|
|
3034
3082
|
return this.widget.onenter();
|
|
3035
3083
|
}
|
|
3036
3084
|
|