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
|
@@ -45,12 +45,12 @@ export class DragResizeHandler {
|
|
|
45
45
|
this.boundMousedown = this.onMousedown.bind(this);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
install() {
|
|
48
|
+
install(): void {
|
|
49
49
|
this.document.body.addEventListener('mousemove', this.boundMousemove);
|
|
50
50
|
this.document.body.addEventListener('mousedown', this.boundMousedown);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
uninstall() {
|
|
53
|
+
uninstall(): void {
|
|
54
54
|
this.document.body.removeEventListener('mousemove', this.boundMousemove);
|
|
55
55
|
this.document.body.removeEventListener('mousedown', this.boundMousedown);
|
|
56
56
|
}
|
|
@@ -33,8 +33,8 @@ export const enum LinePattern {
|
|
|
33
33
|
DASHED = 'dashed',
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export function drawPathWithLineStyle(
|
|
37
|
-
|
|
36
|
+
export function drawPathWithLineStyle(context: CanvasRenderingContext2D, path: Path2D, lineStyle?: LineStyle,
|
|
37
|
+
lineWidth = 1): void {
|
|
38
38
|
if (lineStyle?.color) {
|
|
39
39
|
context.save();
|
|
40
40
|
context.translate(0.5, 0.5);
|
|
@@ -51,8 +51,8 @@ export function drawPathWithLineStyle(
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export function fillPathWithBoxStyle(
|
|
55
|
-
|
|
54
|
+
export function fillPathWithBoxStyle(context: CanvasRenderingContext2D, path: Path2D, bounds: PathBounds, angle: number,
|
|
55
|
+
boxStyle?: BoxStyle): void {
|
|
56
56
|
if (!boxStyle) {
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
@@ -157,9 +157,8 @@ let hatchLineColor = '';
|
|
|
157
157
|
* |\ \ \ |
|
|
158
158
|
* **********
|
|
159
159
|
*/
|
|
160
|
-
export function hatchFillPath(
|
|
161
|
-
|
|
162
|
-
rotationAngle: number, flipDirection: boolean|undefined) {
|
|
160
|
+
export function hatchFillPath(context: CanvasRenderingContext2D, path: Path2D, bounds: Bounds, delta: number,
|
|
161
|
+
color: string, rotationAngle: number, flipDirection: boolean|undefined): void {
|
|
163
162
|
// Make the bounds be at most the canvas size if it is bigger in any direction.
|
|
164
163
|
// Making the bounds bigger than the canvas is useless as what's drawn there won't be visible.
|
|
165
164
|
if (context.canvas.width < bounds.maxX - bounds.minX || context.canvas.height < bounds.maxY - bounds.minY) {
|
|
@@ -204,8 +203,8 @@ export function hatchFillPath(
|
|
|
204
203
|
* Given a quad, create the corresponding path object. This also accepts a list of quads to clip from the resulting
|
|
205
204
|
* path.
|
|
206
205
|
*/
|
|
207
|
-
export function createPathForQuad(
|
|
208
|
-
|
|
206
|
+
export function createPathForQuad(outerQuad: Quad, quadsToClip: Quad[], bounds: PathBounds,
|
|
207
|
+
emulationScaleFactor: number): Path2D {
|
|
209
208
|
let commands = [
|
|
210
209
|
'M',
|
|
211
210
|
outerQuad.p1.x,
|
|
@@ -274,10 +273,9 @@ export function formatColor(hexa: string, colorFormat: string): string {
|
|
|
274
273
|
return hexa;
|
|
275
274
|
}
|
|
276
275
|
|
|
277
|
-
export function drawPath(
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
emulationScaleFactor: number) {
|
|
276
|
+
export function drawPath(context: CanvasRenderingContext2D, commands: PathCommands, fillColor: string|undefined,
|
|
277
|
+
outlineColor: string|undefined, outlinePattern: LinePattern|undefined, bounds: PathBounds,
|
|
278
|
+
emulationScaleFactor: number): Path2D {
|
|
281
279
|
context.save();
|
|
282
280
|
const path = buildPath(commands, bounds, emulationScaleFactor);
|
|
283
281
|
if (fillColor) {
|
|
@@ -17,8 +17,8 @@ export interface ContainerQueryHighlight {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export function drawContainerQueryHighlight(
|
|
21
|
-
|
|
20
|
+
export function drawContainerQueryHighlight(highlight: ContainerQueryHighlight, context: CanvasRenderingContext2D,
|
|
21
|
+
emulationScaleFactor: number): void {
|
|
22
22
|
const config = highlight.containerQueryContainerHighlightConfig;
|
|
23
23
|
const bounds = emptyBounds();
|
|
24
24
|
const borderPath = buildPath(highlight.containerBorder, bounds, emulationScaleFactor);
|
|
@@ -67,9 +67,8 @@ const ALIGNMENT_ARROW_DISTANCE_FROM_LINE = 2;
|
|
|
67
67
|
const FLEXIBILITY_ARROW_THICKNESS = 1;
|
|
68
68
|
const FLEXIBILITY_ARROW_TIP_SIZE = 5;
|
|
69
69
|
|
|
70
|
-
export function drawLayoutFlexItemHighlight(
|
|
71
|
-
|
|
72
|
-
emulationScaleFactor: number) {
|
|
70
|
+
export function drawLayoutFlexItemHighlight(highlight: FlexItemHighlight, itemPath: PathCommands,
|
|
71
|
+
context: CanvasRenderingContext2D, emulationScaleFactor: number): void {
|
|
73
72
|
const {baseSize, isHorizontalFlow} = highlight;
|
|
74
73
|
|
|
75
74
|
const itemQuad = rectPathToQuad(itemPath);
|
|
@@ -178,7 +177,7 @@ export function drawLayoutFlexContainerHighlight(
|
|
|
178
177
|
highlight: FlexContainerHighlight,
|
|
179
178
|
context: CanvasRenderingContext2D,
|
|
180
179
|
emulationScaleFactor: number,
|
|
181
|
-
) {
|
|
180
|
+
): void {
|
|
182
181
|
const config = highlight.flexContainerHighlightConfig;
|
|
183
182
|
const bounds = emptyBounds();
|
|
184
183
|
const borderPath = buildPath(highlight.containerBorder, bounds, emulationScaleFactor);
|
|
@@ -649,8 +648,8 @@ export function getGapQuads(
|
|
|
649
648
|
* quad2)
|
|
650
649
|
* @param isReverse whether the direction is reversed (quad1 below quad2 or quad1 right of quad2)
|
|
651
650
|
*/
|
|
652
|
-
export function getGapQuadBetweenQuads(
|
|
653
|
-
|
|
651
|
+
export function getGapQuadBetweenQuads(quad1: Quad, quad2: Quad, size: number, vertically: boolean,
|
|
652
|
+
isReverse?: boolean): Quad {
|
|
654
653
|
if (isReverse) {
|
|
655
654
|
[quad1, quad2] = [quad2, quad1];
|
|
656
655
|
}
|
|
@@ -880,7 +879,7 @@ export function segmentContains([p1, p2]: Position[], point: Position): boolean
|
|
|
880
879
|
return (point.y - p1.y) * (p2.x - p1.x) === (p2.y - p1.y) * (point.x - p1.x);
|
|
881
880
|
}
|
|
882
881
|
|
|
883
|
-
export function distance(p1: Position, p2: Position) {
|
|
882
|
+
export function distance(p1: Position, p2: Position): number {
|
|
884
883
|
return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));
|
|
885
884
|
}
|
|
886
885
|
|
|
@@ -215,9 +215,9 @@ export interface GridHighlight {
|
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
export function drawLayoutGridHighlight(
|
|
219
|
-
|
|
220
|
-
|
|
218
|
+
export function drawLayoutGridHighlight(highlight: GridHighlight, context: CanvasRenderingContext2D,
|
|
219
|
+
deviceScaleFactor: number, canvasWidth: number, canvasHeight: number,
|
|
220
|
+
emulationScaleFactor: number, labelState: GridLabelState): void {
|
|
221
221
|
const gridBounds = emptyBounds();
|
|
222
222
|
const gridPath = buildPath(highlight.gridBorder, gridBounds, emulationScaleFactor);
|
|
223
223
|
|
|
@@ -21,9 +21,18 @@ export interface IsolatedElementHighlight {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
export interface IsolatedElementPaths {
|
|
25
|
+
widthPath: Path2D;
|
|
26
|
+
heightPath: Path2D;
|
|
27
|
+
bidirectionPath: Path2D;
|
|
28
|
+
currentWidth: number;
|
|
29
|
+
currentHeight: number;
|
|
30
|
+
highlightIndex: number;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function drawIsolatedElementHighlight(highlight: IsolatedElementHighlight, context: CanvasRenderingContext2D,
|
|
34
|
+
canvasWidth: number, canvasHeight: number,
|
|
35
|
+
emulationScaleFactor: number): IsolatedElementPaths {
|
|
27
36
|
const {currentX, currentY, currentWidth, currentHeight, highlightIndex} = highlight;
|
|
28
37
|
// Draw a mask covering other area of the canvas.
|
|
29
38
|
context.save();
|
|
@@ -156,8 +156,8 @@ function drawSnapportBorder(
|
|
|
156
156
|
emulationScaleFactor);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
export function drawScrollSnapHighlight(
|
|
160
|
-
|
|
159
|
+
export function drawScrollSnapHighlight(highlight: ScrollSnapHighlight, context: CanvasRenderingContext2D,
|
|
160
|
+
emulationScaleFactor: number): void {
|
|
161
161
|
// The order of the following draw calls is important, change it carefully.
|
|
162
162
|
drawScrollPadding(highlight, context, emulationScaleFactor);
|
|
163
163
|
const areaBounds = drawSnapAreas(highlight, context, emulationScaleFactor);
|
|
@@ -58,20 +58,20 @@ function assertElements<T extends Element>(
|
|
|
58
58
|
/**
|
|
59
59
|
* This does the same as initFrame but also prepares the DOM for testing grid labels.
|
|
60
60
|
*/
|
|
61
|
-
export function initFrameForGridLabels() {
|
|
61
|
+
export function initFrameForGridLabels(): void {
|
|
62
62
|
const styleTag = document.createElement('style');
|
|
63
63
|
styleTag.textContent = gridStyle;
|
|
64
64
|
document.head.append(styleTag);
|
|
65
65
|
createGridLabelContainer();
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export function initFrameForMultipleGridLabels(numGrids: number) {
|
|
68
|
+
export function initFrameForMultipleGridLabels(numGrids: number): void {
|
|
69
69
|
for (let i = 1; i <= numGrids; i++) {
|
|
70
70
|
createGridLabelContainer(i);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
export function createGridLabelContainer(layerId?: number) {
|
|
74
|
+
export function createGridLabelContainer(layerId?: number): void {
|
|
75
75
|
// Ensure main layer is created first
|
|
76
76
|
let el = document.getElementById(GRID_LABEL_CONTAINER_ID);
|
|
77
77
|
if (!el) {
|
|
@@ -156,9 +156,9 @@ interface ExpectedAreaNameLabel {
|
|
|
156
156
|
top?: string;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
export function drawGridLineNumbersAndAssertLabels(
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
export function drawGridLineNumbersAndAssertLabels(config: NormalizePositionDataConfig&{writingMode?: string},
|
|
160
|
+
bounds: Bounds, canvasSize: CanvasSize, layerId: number,
|
|
161
|
+
expectedLabels: ExpectedLineNumberLabel[]): void {
|
|
162
162
|
const el = getGridLineNumberLabelContainer(layerId);
|
|
163
163
|
const data = normalizePositionData(config, bounds);
|
|
164
164
|
|
|
@@ -178,9 +178,9 @@ export function drawGridLineNumbersAndAssertLabels(
|
|
|
178
178
|
'The right total number of line number labels were displayed');
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
export function drawGridLineNamesAndAssertLabels(
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
export function drawGridLineNamesAndAssertLabels(config: NormalizePositionDataConfig, bounds: Bounds,
|
|
182
|
+
canvasSize: CanvasSize, layerId: number, deviceEmulationFactor: number,
|
|
183
|
+
expectedLabels: ExpectedLineNameLabel[]): void {
|
|
184
184
|
const el = getGridLineNameLabelContainer(layerId);
|
|
185
185
|
const data = normalizePositionData(config, bounds);
|
|
186
186
|
drawGridLineNames(el, data as GridPositionNormalizedDataWithNames, canvasSize, deviceEmulationFactor);
|
|
@@ -234,9 +234,9 @@ export function drawGridLineNamesAndAssertLabels(
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
export function drawGridAreaNamesAndAssertLabels(
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
export function drawGridAreaNamesAndAssertLabels(areaNames: AreaBounds[], writingModeMatrix: DOMMatrix|undefined,
|
|
238
|
+
writingMode: string|undefined,
|
|
239
|
+
expectedLabels: ExpectedAreaNameLabel[]): void {
|
|
240
240
|
const el = getGridAreaNameLabelContainer();
|
|
241
241
|
drawGridAreaNames(el, areaNames, writingModeMatrix, writingMode);
|
|
242
242
|
|
|
@@ -271,7 +271,7 @@ export function drawGridAreaNamesAndAssertLabels(
|
|
|
271
271
|
|
|
272
272
|
export function drawMultipleGridLineNumbersAndAssertLabels(
|
|
273
273
|
configs: Array<{config: NormalizePositionDataConfig, layerId: number}>, bounds: Bounds, canvasSize: CanvasSize,
|
|
274
|
-
expectedLabelList: ExpectedLayerLabel[]) {
|
|
274
|
+
expectedLabelList: ExpectedLayerLabel[]): void {
|
|
275
275
|
for (const item of configs) {
|
|
276
276
|
const el = getGridLineNumberLabelContainer(item.layerId);
|
|
277
277
|
const data = normalizePositionData(item.config, bounds);
|
|
@@ -42,7 +42,7 @@ export class GreenDevAnchorsOverlay extends Overlay {
|
|
|
42
42
|
#anchorsContainer!: HTMLElement;
|
|
43
43
|
#anchorsByNodeId = new Map<number, HTMLElement>();
|
|
44
44
|
|
|
45
|
-
override install() {
|
|
45
|
+
override install(): void {
|
|
46
46
|
consoleLog('GreenDevAnchorsOverlay.install() called');
|
|
47
47
|
|
|
48
48
|
this.document.body.classList.add('fill');
|
|
@@ -62,7 +62,7 @@ export class GreenDevAnchorsOverlay extends Overlay {
|
|
|
62
62
|
super.install();
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
override uninstall() {
|
|
65
|
+
override uninstall(): void {
|
|
66
66
|
consoleLog('GreenDevAnchorsOverlay.uninstall() called');
|
|
67
67
|
|
|
68
68
|
this.document.body.classList.remove('fill');
|
|
@@ -74,7 +74,7 @@ export class GreenDevAnchorsOverlay extends Overlay {
|
|
|
74
74
|
super.uninstall();
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
drawGreenDevAnchors(highlights: GreenDevAnchorsHighlight[]) {
|
|
77
|
+
drawGreenDevAnchors(highlights: GreenDevAnchorsHighlight[]): void {
|
|
78
78
|
if (this.#anchorsContainer && !this.#anchorsContainer.isConnected) {
|
|
79
79
|
// The container was removed from the DOM (likely by PersistentOverlay.uninstall cleaning up),
|
|
80
80
|
// but this overlay still thinks it's installed. We need to re-install to restore the DOM.
|
|
@@ -94,7 +94,7 @@ export class HighlightOverlay extends Overlay {
|
|
|
94
94
|
private persistentOverlay?: PersistentOverlay;
|
|
95
95
|
private gridLabelState = {gridLayerCounter: 0};
|
|
96
96
|
|
|
97
|
-
override reset(resetData: ResetData) {
|
|
97
|
+
override reset(resetData: ResetData): void {
|
|
98
98
|
super.reset(resetData);
|
|
99
99
|
this.tooltip.innerHTML = '';
|
|
100
100
|
this.gridLabelState.gridLayerCounter = 0;
|
|
@@ -103,7 +103,7 @@ export class HighlightOverlay extends Overlay {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
override install() {
|
|
106
|
+
override install(): void {
|
|
107
107
|
this.document.body.classList.add('fill');
|
|
108
108
|
|
|
109
109
|
const canvas = this.document.createElement('canvas');
|
|
@@ -125,14 +125,14 @@ export class HighlightOverlay extends Overlay {
|
|
|
125
125
|
super.install();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
override uninstall() {
|
|
128
|
+
override uninstall(): void {
|
|
129
129
|
this.document.body.classList.remove('fill');
|
|
130
130
|
this.document.body.innerHTML = '';
|
|
131
131
|
|
|
132
132
|
super.uninstall();
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
drawHighlight(highlight: Highlight) {
|
|
135
|
+
drawHighlight(highlight: Highlight): {bounds: PathBounds} {
|
|
136
136
|
this.context.save();
|
|
137
137
|
|
|
138
138
|
const bounds = emptyBounds();
|
|
@@ -224,27 +224,27 @@ export class HighlightOverlay extends Overlay {
|
|
|
224
224
|
return {bounds};
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
drawGridHighlight(highlight: GridHighlight) {
|
|
227
|
+
drawGridHighlight(highlight: GridHighlight): void {
|
|
228
228
|
if (this.persistentOverlay) {
|
|
229
229
|
this.persistentOverlay.drawGridHighlight(highlight);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
drawFlexContainerHighlight(highlight: FlexContainerHighlight) {
|
|
233
|
+
drawFlexContainerHighlight(highlight: FlexContainerHighlight): void {
|
|
234
234
|
if (this.persistentOverlay) {
|
|
235
235
|
this.persistentOverlay.drawFlexContainerHighlight(highlight);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
drawScrollSnapHighlight(highlight: ScrollSnapHighlight) {
|
|
239
|
+
drawScrollSnapHighlight(highlight: ScrollSnapHighlight): void {
|
|
240
240
|
this.persistentOverlay?.drawScrollSnapHighlight(highlight);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
drawContainerQueryHighlight(highlight: ContainerQueryHighlight) {
|
|
243
|
+
drawContainerQueryHighlight(highlight: ContainerQueryHighlight): void {
|
|
244
244
|
this.persistentOverlay?.drawContainerQueryHighlight(highlight);
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
drawIsolatedElementHighlight(highlight: IsolatedElementHighlight) {
|
|
247
|
+
drawIsolatedElementHighlight(highlight: IsolatedElementHighlight): void {
|
|
248
248
|
this.persistentOverlay?.drawIsolatedElementHighlight(highlight);
|
|
249
249
|
}
|
|
250
250
|
|
|
@@ -14,7 +14,7 @@ export class PausedOverlay extends Overlay {
|
|
|
14
14
|
this.onKeyDown = this.onKeyDown.bind(this);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
onKeyDown(event: KeyboardEvent) {
|
|
17
|
+
onKeyDown(event: KeyboardEvent): void {
|
|
18
18
|
if (event.key === 'F8' || this.eventHasCtrlOrMeta(event) && event.key === '\\') {
|
|
19
19
|
this.window.InspectorOverlayHost.send('resume');
|
|
20
20
|
} else if (event.key === 'F10' || this.eventHasCtrlOrMeta(event) && event.key === '\'') {
|
|
@@ -22,7 +22,7 @@ export class PausedOverlay extends Overlay {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
override install() {
|
|
25
|
+
override install(): void {
|
|
26
26
|
const controlsLine = this.document.createElement('div');
|
|
27
27
|
controlsLine.classList.add('controls-line');
|
|
28
28
|
|
|
@@ -62,13 +62,13 @@ export class PausedOverlay extends Overlay {
|
|
|
62
62
|
super.install();
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
override uninstall() {
|
|
65
|
+
override uninstall(): void {
|
|
66
66
|
this.document.body.innerHTML = '';
|
|
67
67
|
this.document.removeEventListener('keydown', this.onKeyDown);
|
|
68
68
|
super.uninstall();
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
drawPausedInDebuggerMessage(message: string) {
|
|
71
|
+
drawPausedInDebuggerMessage(message: string): void {
|
|
72
72
|
this.container.textContent = message;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -68,25 +68,25 @@ export class PersistentOverlay extends Overlay {
|
|
|
68
68
|
private dragHandler?: DragResizeHandler;
|
|
69
69
|
private greenDevAnchorsOverlay?: GreenDevAnchorsOverlay;
|
|
70
70
|
|
|
71
|
-
setGreenDevAnchorsOverlay(greenDevAnchorsOverlay: GreenDevAnchorsOverlay) {
|
|
71
|
+
setGreenDevAnchorsOverlay(greenDevAnchorsOverlay: GreenDevAnchorsOverlay): void {
|
|
72
72
|
this.greenDevAnchorsOverlay = greenDevAnchorsOverlay;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
override reset(data: ResetData) {
|
|
75
|
+
override reset(data: ResetData): void {
|
|
76
76
|
super.reset(data);
|
|
77
77
|
this.gridLabelState.gridLayerCounter = 0;
|
|
78
78
|
this.gridLabels.innerHTML = '';
|
|
79
79
|
this.greenDevAnchorsOverlay?.reset(data);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
renderGridMarkup() {
|
|
82
|
+
renderGridMarkup(): void {
|
|
83
83
|
const gridLabels = this.document.createElement('div');
|
|
84
84
|
gridLabels.id = 'grid-label-container';
|
|
85
85
|
this.document.body.append(gridLabels);
|
|
86
86
|
this.gridLabels = gridLabels;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
override install() {
|
|
89
|
+
override install(): void {
|
|
90
90
|
this.document.body.classList.add('fill');
|
|
91
91
|
|
|
92
92
|
const canvas = this.document.createElement('canvas');
|
|
@@ -102,7 +102,7 @@ export class PersistentOverlay extends Overlay {
|
|
|
102
102
|
this.dragHandler?.install();
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
override uninstall() {
|
|
105
|
+
override uninstall(): void {
|
|
106
106
|
this.document.body.classList.remove('fill');
|
|
107
107
|
this.document.body.innerHTML = '';
|
|
108
108
|
this.draggableBorders = new Map();
|
|
@@ -110,7 +110,7 @@ export class PersistentOverlay extends Overlay {
|
|
|
110
110
|
this.dragHandler?.uninstall();
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
drawGridHighlight(highlight: GridHighlight) {
|
|
113
|
+
drawGridHighlight(highlight: GridHighlight): void {
|
|
114
114
|
this.context.save();
|
|
115
115
|
drawLayoutGridHighlight(
|
|
116
116
|
highlight, this.context, this.deviceScaleFactor, this.canvasWidth, this.canvasHeight, this.emulationScaleFactor,
|
|
@@ -118,32 +118,32 @@ export class PersistentOverlay extends Overlay {
|
|
|
118
118
|
this.context.restore();
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
drawFlexContainerHighlight(highlight: FlexContainerHighlight) {
|
|
121
|
+
drawFlexContainerHighlight(highlight: FlexContainerHighlight): void {
|
|
122
122
|
this.context.save();
|
|
123
123
|
drawLayoutFlexContainerHighlight(highlight, this.context, this.emulationScaleFactor);
|
|
124
124
|
this.context.restore();
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
drawScrollSnapHighlight(highlight: ScrollSnapHighlight) {
|
|
127
|
+
drawScrollSnapHighlight(highlight: ScrollSnapHighlight): void {
|
|
128
128
|
this.context.save();
|
|
129
129
|
drawScrollSnapHighlight(highlight, this.context, this.emulationScaleFactor);
|
|
130
130
|
this.context.restore();
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
drawContainerQueryHighlight(highlight: ContainerQueryHighlight) {
|
|
133
|
+
drawContainerQueryHighlight(highlight: ContainerQueryHighlight): void {
|
|
134
134
|
this.context.save();
|
|
135
135
|
drawContainerQueryHighlight(highlight, this.context, this.emulationScaleFactor);
|
|
136
136
|
this.context.restore();
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
drawGreenDevFloatyAnchors(highlights: GreenDevAnchorsHighlight[]) {
|
|
139
|
+
drawGreenDevFloatyAnchors(highlights: GreenDevAnchorsHighlight[]): void {
|
|
140
140
|
if (this.greenDevAnchorsOverlay && !this.greenDevAnchorsOverlay.installed) {
|
|
141
141
|
this.greenDevAnchorsOverlay.install();
|
|
142
142
|
}
|
|
143
143
|
this.greenDevAnchorsOverlay?.drawGreenDevAnchors(highlights);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
drawIsolatedElementHighlight(highlight: IsolatedElementHighlight) {
|
|
146
|
+
drawIsolatedElementHighlight(highlight: IsolatedElementHighlight): void {
|
|
147
147
|
if (!this.dragHandler) {
|
|
148
148
|
this.dragHandler = new DragResizeHandler(this.document, makeDraggableDelegate(this));
|
|
149
149
|
this.dragHandler.install();
|
|
@@ -25,7 +25,7 @@ export class ScreenshotOverlay extends Overlay {
|
|
|
25
25
|
this.onKeyDown = this.onKeyDown.bind(this);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
override install() {
|
|
28
|
+
override install(): void {
|
|
29
29
|
const root = this.document.documentElement;
|
|
30
30
|
root.addEventListener('mousedown', this.onMouseDown, true);
|
|
31
31
|
root.addEventListener('mouseup', this.onMouseUp, true);
|
|
@@ -41,7 +41,7 @@ export class ScreenshotOverlay extends Overlay {
|
|
|
41
41
|
super.install();
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
override uninstall() {
|
|
44
|
+
override uninstall(): void {
|
|
45
45
|
this.document.body.innerHTML = '';
|
|
46
46
|
const root = this.document.documentElement;
|
|
47
47
|
root.removeEventListener('mousedown', this.onMouseDown, true);
|
|
@@ -51,7 +51,7 @@ export class ScreenshotOverlay extends Overlay {
|
|
|
51
51
|
super.uninstall();
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
onMouseDown(event: MouseEvent) {
|
|
54
|
+
onMouseDown(event: MouseEvent): void {
|
|
55
55
|
anchor = {x: event.pageX, y: event.pageY};
|
|
56
56
|
position = anchor;
|
|
57
57
|
this.updateZone();
|
|
@@ -59,7 +59,7 @@ export class ScreenshotOverlay extends Overlay {
|
|
|
59
59
|
event.preventDefault();
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
onMouseUp(event: MouseEvent) {
|
|
62
|
+
onMouseUp(event: MouseEvent): void {
|
|
63
63
|
if (anchor && position) {
|
|
64
64
|
const rect = currentRect();
|
|
65
65
|
if (rect.width >= 5 && rect.height >= 5) {
|
|
@@ -72,7 +72,7 @@ export class ScreenshotOverlay extends Overlay {
|
|
|
72
72
|
event.preventDefault();
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
onMouseMove(event: MouseEvent) {
|
|
75
|
+
onMouseMove(event: MouseEvent): void {
|
|
76
76
|
if (anchor && event.buttons === 1) {
|
|
77
77
|
position = {x: event.pageX, y: event.pageY};
|
|
78
78
|
} else {
|
|
@@ -83,7 +83,7 @@ export class ScreenshotOverlay extends Overlay {
|
|
|
83
83
|
event.preventDefault();
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
onKeyDown(event: KeyboardEvent) {
|
|
86
|
+
onKeyDown(event: KeyboardEvent): void {
|
|
87
87
|
if (anchor && event.key === 'Escape') {
|
|
88
88
|
cancel();
|
|
89
89
|
this.updateZone();
|
|
@@ -92,7 +92,7 @@ export class ScreenshotOverlay extends Overlay {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
updateZone() {
|
|
95
|
+
updateZone(): void {
|
|
96
96
|
const zone = this.zone;
|
|
97
97
|
if (!position || !anchor) {
|
|
98
98
|
zone.style.display = 'none';
|
|
@@ -19,12 +19,12 @@ interface SourceOrderHighlight {
|
|
|
19
19
|
export class SourceOrderOverlay extends Overlay {
|
|
20
20
|
private sourceOrderContainer!: HTMLElement;
|
|
21
21
|
|
|
22
|
-
override reset(resetData: ResetData) {
|
|
22
|
+
override reset(resetData: ResetData): void {
|
|
23
23
|
super.reset(resetData);
|
|
24
24
|
this.sourceOrderContainer.textContent = '';
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
override install() {
|
|
27
|
+
override install(): void {
|
|
28
28
|
this.document.body.classList.add('fill');
|
|
29
29
|
|
|
30
30
|
const canvas = this.document.createElement('canvas');
|
|
@@ -42,13 +42,13 @@ export class SourceOrderOverlay extends Overlay {
|
|
|
42
42
|
super.install();
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
override uninstall() {
|
|
45
|
+
override uninstall(): void {
|
|
46
46
|
this.document.body.classList.remove('fill');
|
|
47
47
|
this.document.body.innerHTML = '';
|
|
48
48
|
super.uninstall();
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
drawSourceOrder(highlight: SourceOrderHighlight) {
|
|
51
|
+
drawSourceOrder(highlight: SourceOrderHighlight): {bounds: PathBounds} {
|
|
52
52
|
const sourceOrder = highlight.sourceOrder || 0;
|
|
53
53
|
const path = highlight.paths.slice().pop();
|
|
54
54
|
|
|
@@ -12,7 +12,7 @@ function formatNumber(n: number): string {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export class ViewportSizeOverlay extends Overlay {
|
|
15
|
-
override install() {
|
|
15
|
+
override install(): void {
|
|
16
16
|
this.document.body.classList.add('fill');
|
|
17
17
|
const canvas = this.document.createElement('canvas');
|
|
18
18
|
canvas.id = 'canvas';
|
|
@@ -22,13 +22,13 @@ export class ViewportSizeOverlay extends Overlay {
|
|
|
22
22
|
super.install();
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
override uninstall() {
|
|
25
|
+
override uninstall(): void {
|
|
26
26
|
this.document.body.classList.remove('fill');
|
|
27
27
|
this.document.body.innerHTML = '';
|
|
28
28
|
super.uninstall();
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
drawViewSize() {
|
|
31
|
+
drawViewSize(): void {
|
|
32
32
|
const viewportSize = this.viewportSizeForMediaQueries || this.viewportSize;
|
|
33
33
|
const text = `${formatNumber(viewportSize.width)}px \xD7 ${formatNumber(viewportSize.height)}px`;
|
|
34
34
|
const canvasWidth = this.canvasWidth || 0;
|
|
@@ -23,7 +23,7 @@ export class WindowControlsOverlay extends Overlay {
|
|
|
23
23
|
super(window, style);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
override install() {
|
|
26
|
+
override install(): void {
|
|
27
27
|
const windowLinuxToolbarIcons = ['chevron', 'ellipsis', 'minimize', 'maximize', 'close'];
|
|
28
28
|
const macLeftToolbarIcons = ['mac-close', 'mac-minimize', 'mac-maximize'];
|
|
29
29
|
const macRightToolbarIcons = ['mac-chevron', 'mac-ellipsis'];
|
|
@@ -37,7 +37,7 @@ export class WindowControlsOverlay extends Overlay {
|
|
|
37
37
|
super.install();
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
override uninstall() {
|
|
40
|
+
override uninstall(): void {
|
|
41
41
|
this.windowsToolBar.remove();
|
|
42
42
|
this.linuxToolBar.remove();
|
|
43
43
|
this.macToolbarRight.remove();
|
|
@@ -45,7 +45,7 @@ export class WindowControlsOverlay extends Overlay {
|
|
|
45
45
|
super.uninstall();
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
drawWindowControlsOverlay(config: WindowControlsOverlayConfig) {
|
|
48
|
+
drawWindowControlsOverlay(config: WindowControlsOverlayConfig): void {
|
|
49
49
|
// Clear all overlays
|
|
50
50
|
this.clearOverlays();
|
|
51
51
|
|
|
@@ -64,7 +64,7 @@ export class WindowControlsOverlay extends Overlay {
|
|
|
64
64
|
this.document.documentElement.style.setProperty('--wco-icon-color', generateLegibleTextColor(config.themeColor));
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
clearOverlays() {
|
|
67
|
+
clearOverlays(): void {
|
|
68
68
|
hideElement(this.linuxToolBar);
|
|
69
69
|
hideElement(this.windowsToolBar);
|
|
70
70
|
hideElement(this.macToolbarLeft);
|
package/mcp/mcp.ts
CHANGED
|
@@ -20,6 +20,7 @@ export {DebuggerModel, skipAllPausesSettingDescriptor} from '../front_end/core/s
|
|
|
20
20
|
export * as DOMModel from '../front_end/core/sdk/DOMModel.js';
|
|
21
21
|
export * as NetworkManager from '../front_end/core/sdk/NetworkManager.js';
|
|
22
22
|
export {RuntimeModel} from '../front_end/core/sdk/RuntimeModel.js';
|
|
23
|
+
export * as SDKSettings from '../front_end/core/sdk/SDKSettings.js';
|
|
23
24
|
export * as SourceMapManager from '../front_end/core/sdk/SourceMapManager.js';
|
|
24
25
|
export {Target} from '../front_end/core/sdk/Target.js';
|
|
25
26
|
export {TargetManager} from '../front_end/core/sdk/TargetManager.js';
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"debug-webtest": "vpython3 third_party/node/node.py --output scripts/npm_test.js --debug-devtools",
|
|
25
25
|
"generate-protocol-resources": "vpython3 scripts/deps/generate_protocol_resources.py && git cl format --js",
|
|
26
26
|
"install-deps": "vpython3 scripts/deps/manage_node_deps.py",
|
|
27
|
-
"lint": "vpython3 third_party/node/node.py --output scripts/
|
|
27
|
+
"lint": "vpython3 third_party/node/node.py --output scripts/lint/run_lint_check.mjs",
|
|
28
28
|
"prebuild": "gn gen out/Default",
|
|
29
29
|
"rdb": "rdb stream -new -realm chromium:public --",
|
|
30
30
|
"start": "vpython3 third_party/node/node.py --output scripts/run_start.mjs",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"chai": "6.2.2",
|
|
55
55
|
"cssnano": "8.0.2",
|
|
56
56
|
"cssnano-preset-lite": "5.0.1",
|
|
57
|
-
"esbuild": "0.
|
|
57
|
+
"esbuild": "0.28.2",
|
|
58
58
|
"eslint": "9.39.5",
|
|
59
59
|
"eslint-plugin-eslint-plugin": "7.4.2",
|
|
60
60
|
"eslint-plugin-import": "2.32.0",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"webidl2": "24.5.0",
|
|
93
93
|
"yargs": "17.7.2"
|
|
94
94
|
},
|
|
95
|
-
"version": "1.0.
|
|
95
|
+
"version": "1.0.1690116"
|
|
96
96
|
}
|