chrome-devtools-frontend 1.0.1664496 → 1.0.1665921
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/devtools-testing-guidance/SKILL.md +48 -0
- package/.agents/skills/devtools-ux-writing-refactor/SKILL.md +3 -3
- package/.agents/skills/repro-flaky-tests/SKILL.md +2 -2
- package/.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md +7 -1
- package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +2 -0
- package/.agents/skills/version-control/SKILL.md +4 -3
- package/docs/ui_engineering.md +89 -0
- package/eslint.config.mjs +9 -2
- package/front_end/Images/rollup.config.mjs +1 -1
- package/front_end/Tests.js +15 -16
- package/front_end/core/common/Gzip.ts +2 -2
- package/front_end/core/common/Settings.ts +4 -20
- package/front_end/core/common/Srcset.ts +1 -1
- package/front_end/core/common/VersionController.ts +1 -1
- package/front_end/core/host/AidaClient.ts +19 -4
- package/front_end/core/host/AidaGcaTranslation.ts +2 -2
- package/front_end/core/host/GcaClient.ts +2 -2
- package/front_end/core/host/GdpClient.ts +3 -3
- package/front_end/core/host/InspectorFrontendHostStub.ts +1 -1
- package/front_end/core/host/ResourceLoader.ts +15 -15
- package/front_end/core/protocol_client/DevToolsCDPConnection.ts +2 -2
- package/front_end/core/protocol_client/InspectorBackend.ts +1 -1
- package/front_end/core/root/Runtime.ts +0 -1
- package/front_end/core/sdk/CSSMatchedStyles.ts +78 -3
- package/front_end/core/sdk/CSSMetadata.ts +17 -12
- package/front_end/core/sdk/CSSProperty.ts +1 -1
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +2 -2
- package/front_end/core/sdk/CSSRule.ts +3 -3
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +3 -3
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +1 -1
- package/front_end/core/sdk/Connections.ts +1 -1
- package/front_end/core/sdk/DebuggerModel.ts +13 -13
- package/front_end/core/sdk/NetworkManager.ts +19 -19
- package/front_end/core/sdk/NetworkRequest.ts +57 -57
- package/front_end/core/sdk/OverlayModel.ts +1 -1
- package/front_end/core/sdk/PageResourceLoader.ts +2 -2
- package/front_end/core/sdk/RehydratingConnection.ts +5 -5
- package/front_end/core/sdk/ScreenCaptureModel.ts +1 -1
- package/front_end/core/sdk/Script.ts +2 -2
- package/front_end/core/sdk/ServerTiming.ts +7 -7
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +1 -1
- package/front_end/core/sdk/ServiceWorkerManager.ts +11 -11
- package/front_end/core/sdk/SourceMapScopeChainEntry.ts +2 -2
- package/front_end/core/sdk/SourceMapScopesInfo.ts +1 -1
- package/front_end/core/sdk/StorageKeyManager.ts +1 -1
- package/front_end/core/sdk/sdk-meta.ts +98 -98
- package/front_end/devtools_compatibility.js +15 -13
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +4 -8
- package/front_end/entrypoints/main/MainImpl.ts +2 -3
- package/front_end/entrypoints/main/main-meta.ts +1 -16
- package/front_end/entrypoints/shell/shell.ts +1 -0
- package/front_end/entrypoints/trace_app/trace_app.ts +1 -0
- package/front_end/foundation/README.md +1 -1
- package/front_end/foundation/Universe.test.api.ts +73 -0
- package/front_end/foundation/Universe.ts +22 -0
- package/front_end/generated/InspectorBackendCommands.ts +2 -2
- package/front_end/generated/SupportedCSSProperties.js +1 -1
- package/front_end/generated/protocol.ts +19 -0
- package/front_end/models/ai_assistance/AiAgent2.ts +1 -1
- package/front_end/models/ai_assistance/AiConversation.ts +1 -1
- package/front_end/models/ai_assistance/BuiltInAi.ts +1 -1
- package/front_end/models/ai_assistance/ChangeManager.ts +0 -70
- package/front_end/models/ai_assistance/ExtensionScope.ts +2 -36
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +9 -9
- package/front_end/models/ai_assistance/agents/AiAgent.ts +10 -2
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +4 -4
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +1 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +21 -21
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +4 -4
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +1 -1
- package/front_end/models/ai_assistance/ai_assistance.ts +0 -5
- package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +11 -4
- package/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts +8 -2
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +14 -11
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +2 -2
- package/front_end/models/ai_assistance/performance/AICallTree.ts +2 -2
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +1 -1
- package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +9 -2
- package/front_end/models/ai_assistance/tools/GetStyles.ts +4 -4
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +2 -5
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -2
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -2
- package/front_end/models/badges/badges-meta.ts +27 -0
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +4 -3
- package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +6 -7
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +5 -4
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +72 -29
- package/front_end/models/bindings/ResourceMapping.ts +38 -32
- package/front_end/models/bindings/ResourceScriptMapping.ts +5 -7
- package/front_end/models/breakpoints/BreakpointManager.ts +2 -1
- package/front_end/models/har/Writer.ts +2 -2
- package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +1 -1
- package/front_end/models/issues_manager/GenericIssue.ts +1 -1
- package/front_end/models/issues_manager/IssuesManager.ts +14 -5
- package/front_end/models/issues_manager/PartitioningBlobURLIssue.ts +1 -1
- package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +2 -2
- package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +13 -2
- package/front_end/models/issues_manager/issues_manager.ts +0 -2
- package/front_end/models/live-metrics/LiveMetrics.ts +22 -5
- package/front_end/models/live-metrics/web-vitals-injected/rollup.config.mjs +1 -1
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +10 -4
- package/front_end/models/logs/logs-meta.ts +23 -16
- package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +2 -2
- package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +1 -1
- package/front_end/models/source_map_scopes/NamesResolver.ts +104 -86
- package/front_end/models/source_map_scopes/ScopeChainModel.ts +6 -2
- package/front_end/models/stack_trace/StackTraceModel.ts +1 -1
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +1 -1
- package/front_end/models/trace/handlers/UserTimingsHandler.ts +17 -6
- package/front_end/models/trace/helpers/SamplesIntegrator.ts +1 -1
- package/front_end/models/trace/helpers/Timing.ts +1 -1
- package/front_end/models/trace/insights/Common.ts +1 -1
- package/front_end/models/trace/insights/DocumentLatency.ts +3 -3
- package/front_end/models/trace/insights/LCPDiscovery.ts +1 -1
- package/front_end/models/trace/insights/ModernHTTP.ts +1 -1
- package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +2 -2
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +14 -9
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +2 -15
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -2
- package/front_end/panels/ai_assistance/components/ChatInput.ts +23 -19
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +9 -18
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -35
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +1 -1
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +4 -4
- package/front_end/panels/ai_assistance/components/ImageResize.ts +74 -0
- package/front_end/panels/ai_assistance/components/WalkthroughView.ts +2 -2
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +28 -29
- package/front_end/panels/animation/AnimationTimeline.ts +3 -3
- package/front_end/panels/animation/animationTimeline.css +0 -2
- package/front_end/panels/application/AppManifestView.ts +1 -1
- package/front_end/panels/application/ApplicationPanelSidebar.ts +1 -1
- package/front_end/panels/application/CookieItemsView.ts +1 -1
- package/front_end/panels/application/CrashReportContextView.ts +3 -3
- package/front_end/panels/application/DeviceBoundSessionsModel.ts +1 -1
- package/front_end/panels/application/DeviceBoundSessionsTreeElement.ts +1 -1
- package/front_end/panels/application/DeviceBoundSessionsView.ts +1 -1
- package/front_end/panels/application/IndexedDBViews.ts +1 -1
- package/front_end/panels/application/KeyValueStorageItemsView.ts +1 -1
- package/front_end/panels/application/OriginTrialTreeView.ts +1 -1
- package/front_end/panels/application/ServiceWorkersView.ts +6 -6
- package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
- package/front_end/panels/application/StorageItemsToolbar.ts +3 -3
- package/front_end/panels/application/WebMCPView.ts +7 -5
- package/front_end/panels/application/components/AdsView.ts +21 -6
- package/front_end/panels/application/components/BackForwardCacheView.ts +2 -2
- package/front_end/panels/application/components/ProtocolHandlersView.ts +1 -1
- package/front_end/panels/application/components/StorageMetadataView.ts +1 -1
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +2 -2
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -1
- package/front_end/panels/application/preloading/components/PreloadingString.ts +3 -3
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +2 -1
- package/front_end/panels/autofill/AutofillView.ts +1 -1
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +2 -2
- package/front_end/panels/changes/ChangesSidebar.ts +2 -2
- package/front_end/panels/changes/ChangesView.ts +4 -5
- package/front_end/panels/changes/CombinedDiffView.ts +3 -3
- package/front_end/panels/changes/changes-meta.ts +2 -2
- package/front_end/panels/common/AiCodeCompletionTeaser.ts +1 -1
- package/front_end/panels/common/AiCodeGenerationTeaser.ts +3 -3
- package/front_end/panels/common/BadgeNotification.ts +8 -8
- package/front_end/panels/common/DOMLinkifier.ts +1 -1
- package/front_end/panels/common/GdpSignUpDialog.ts +2 -2
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +1 -1
- package/front_end/panels/common/aiCodeCompletionDisclaimer.css +0 -1
- package/front_end/panels/console/ConsoleInsightTeaser.ts +1 -1
- package/front_end/panels/console/ConsolePinPane.ts +3 -3
- package/front_end/panels/console/ConsolePrompt.ts +6 -4
- package/front_end/panels/console/ConsoleSidebar.ts +8 -10
- package/front_end/panels/console_counters/WarningErrorCounter.ts +10 -11
- package/front_end/panels/coverage/CoverageView.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
- package/front_end/panels/elements/CSSRuleValidator.ts +1 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +3 -2
- package/front_end/panels/elements/ElementsTreeElement.ts +3 -3
- package/front_end/panels/elements/EventListenersWidget.ts +1 -3
- package/front_end/panels/elements/LayoutPane.ts +23 -13
- package/front_end/panels/elements/StandaloneStylesContainer.ts +7 -7
- package/front_end/panels/elements/StylePropertiesSection.ts +33 -5
- package/front_end/panels/elements/StylePropertyTreeElement.ts +5 -5
- package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +6 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +4 -3
- package/front_end/panels/elements/elements-meta.ts +18 -2
- package/front_end/panels/emulation/DeviceModeToolbar.ts +100 -40
- package/front_end/panels/emulation/DeviceModeView.ts +5 -4
- package/front_end/panels/emulation/MediaQueryInspector.ts +35 -19
- package/front_end/panels/event_listeners/EventListenersView.ts +4 -4
- package/front_end/panels/explain/components/ConsoleInsight.ts +8 -9
- package/front_end/panels/explain/explain-meta.ts +3 -3
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +135 -167
- package/front_end/panels/layer_viewer/Layers3DView.ts +10 -23
- package/front_end/panels/layer_viewer/layer_viewer-meta.ts +27 -0
- package/front_end/panels/lighthouse/LighthouseController.ts +44 -55
- package/front_end/panels/lighthouse/LighthousePanel.ts +9 -9
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +2 -2
- package/front_end/panels/lighthouse/LighthouseStartView.ts +9 -12
- package/front_end/panels/lighthouse/LighthouseStatusView.ts +33 -33
- package/front_end/panels/lighthouse/RadioSetting.ts +1 -1
- package/front_end/panels/lighthouse/lighthouse-meta.ts +131 -1
- package/front_end/panels/media/EventDisplayTable.ts +67 -94
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/media/eventDisplayTable.css +9 -4
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +5 -5
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +1 -1
- package/front_end/panels/network/EventSourceMessagesView.ts +98 -107
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/network/NetworkWaterfallColumn.ts +1 -1
- package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
- package/front_end/panels/network/RequestCookiesView.ts +2 -2
- package/front_end/panels/network/RequestHeadersView.ts +5 -5
- package/front_end/panels/network/RequestPayloadView.ts +4 -4
- package/front_end/panels/network/RequestTimingView.ts +2 -2
- package/front_end/panels/network/components/DirectSocketConnectionView.ts +1 -1
- package/front_end/panels/network/eventSourceMessagesView.css +12 -3
- package/front_end/panels/network/networkTimingTable.css +2 -2
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +1 -1
- package/front_end/panels/profiler/BottomUpProfileDataGrid.ts +25 -29
- package/front_end/panels/profiler/HeapProfileView.ts +308 -247
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +13 -3
- package/front_end/panels/profiler/HeapSnapshotView.ts +30 -10
- package/front_end/panels/profiler/HeapTimelineOverview.ts +5 -2
- package/front_end/panels/profiler/ProfileDataGrid.ts +128 -157
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +17 -5
- package/front_end/panels/profiler/ProfilesPanel.ts +2 -2
- package/front_end/panels/profiler/TopDownProfileDataGrid.ts +17 -21
- package/front_end/panels/profiler/profilesPanel.css +9 -13
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +2 -2
- package/front_end/panels/recorder/CreateRecordingView.ts +4 -4
- package/front_end/panels/recorder/RecorderPanel.ts +6 -6
- package/front_end/panels/recorder/RecordingView.ts +1 -1
- package/front_end/panels/recorder/ReplaySection.ts +1 -1
- package/front_end/panels/recorder/StepView.ts +1 -1
- package/front_end/panels/recorder/injected/rollup.config.mjs +1 -1
- package/front_end/panels/search/SearchView.ts +1 -1
- package/front_end/panels/security/SecurityPanel.ts +54 -41
- package/front_end/panels/sensors/LocationsSettingsTab.ts +246 -233
- package/front_end/panels/sensors/SensorsView.ts +1 -1
- package/front_end/panels/settings/AISettingsTab.ts +11 -10
- package/front_end/panels/settings/SettingsScreen.ts +29 -24
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +2 -2
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +5 -5
- package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
- package/front_end/panels/sources/BreakpointsView.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +2 -2
- package/front_end/panels/sources/DebuggerPausedMessage.ts +2 -2
- package/front_end/panels/sources/DebuggerPlugin.ts +25 -22
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -1
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +7 -5
- package/front_end/panels/sources/sources-meta.ts +1 -1
- package/front_end/panels/timeline/CountersGraph.ts +1 -2
- package/front_end/panels/timeline/ExtensionTrackAppender.ts +1 -1
- package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +2 -2
- package/front_end/panels/timeline/TimelineFlameChartView.ts +4 -4
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +1 -1
- package/front_end/panels/timeline/TimelinePanel.ts +53 -81
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +10 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +18 -4
- package/front_end/panels/timeline/TrackConfigBanner.ts +1 -1
- package/front_end/panels/timeline/components/ExportTraceOptions.ts +1 -1
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +8 -9
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +1 -1
- package/front_end/panels/timeline/components/TimelineRangeSummaryView.ts +1 -1
- package/front_end/panels/timeline/components/insights/DuplicatedJavaScript.ts +2 -2
- package/front_end/panels/timeline/components/insights/LCPBreakdown.ts +1 -1
- package/front_end/panels/timeline/components/insights/LegacyJavaScript.ts +1 -1
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +2 -2
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +5 -0
- package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +13 -8
- package/front_end/panels/timeline/overlays/components/timespanBreakdownOverlay.css +1 -0
- package/front_end/panels/timeline/timeline-meta.ts +169 -0
- package/front_end/panels/timeline/timelineFlameChartView.css +5 -0
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/panels/whats_new/ReleaseNoteText.ts +9 -9
- package/front_end/panels/whats_new/resources/WNDT.md +7 -8
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/web-vitals/README.chromium +2 -2
- package/front_end/third_party/web-vitals/package/README.md +120 -19
- package/front_end/third_party/web-vitals/package/attribution.d.ts +16 -0
- package/front_end/third_party/web-vitals/package/attribution.js +18 -0
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onCLS.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.d.ts +1 -7
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.js +53 -32
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +43 -12
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +21 -3
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.js +30 -24
- package/front_end/third_party/web-vitals/package/dist/modules/lib/FCPEntryManager.d.ts +3 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/FCPEntryManager.js +18 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +2 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +18 -2
- package/front_end/third_party/web-vitals/package/dist/modules/lib/LCPEntryManager.d.ts +1 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/LCPEntryManager.js +1 -0
- 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/generateUniqueID.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getLoadState.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getLoadState.js +7 -7
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getSelector.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.js +4 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +7 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.js +20 -11
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initUnique.js +8 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/observe.d.ts +3 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/observe.js +19 -4
- package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/interactionCountPolyfill.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/softNavs.d.ts +3 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/softNavs.js +38 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/whenIdleOrHidden.js +5 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onCLS.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onCLS.js +30 -11
- package/front_end/third_party/web-vitals/package/dist/modules/onFCP.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onFCP.js +36 -4
- package/front_end/third_party/web-vitals/package/dist/modules/onINP.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onINP.js +42 -22
- package/front_end/third_party/web-vitals/package/dist/modules/onLCP.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onLCP.js +109 -30
- package/front_end/third_party/web-vitals/package/dist/modules/onTTFB.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onTTFB.js +25 -7
- package/front_end/third_party/web-vitals/package/dist/modules/types/base.d.ts +24 -1
- package/front_end/third_party/web-vitals/package/dist/modules/types/fcp.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/types/inp.d.ts +14 -6
- package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/types/ttfb.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/types.d.ts +26 -4
- package/front_end/third_party/web-vitals/package/package.json +21 -22
- package/front_end/third_party/web-vitals/package/src/attribution/onCLS.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/attribution/onFCP.ts +62 -39
- package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +52 -15
- package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +25 -7
- package/front_end/third_party/web-vitals/package/src/attribution/onTTFB.ts +43 -37
- package/front_end/third_party/web-vitals/package/src/lib/{polyfills/getFirstHiddenTimePolyfill.ts → FCPEntryManager.ts} +4 -14
- package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +22 -2
- package/front_end/third_party/web-vitals/package/src/lib/LCPEntryManager.ts +1 -0
- package/front_end/third_party/web-vitals/package/src/lib/bindReporter.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/generateUniqueID.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/getLoadState.ts +11 -12
- package/front_end/third_party/web-vitals/package/src/lib/getSelector.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/getVisibilityWatcher.ts +4 -1
- package/front_end/third_party/web-vitals/package/src/lib/initMetric.ts +24 -11
- package/front_end/third_party/web-vitals/package/src/lib/initUnique.ts +12 -4
- package/front_end/third_party/web-vitals/package/src/lib/observe.ts +26 -5
- package/front_end/third_party/web-vitals/package/src/lib/polyfills/interactionCountPolyfill.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/softNavs.ts +48 -0
- package/front_end/third_party/web-vitals/package/src/lib/whenIdleOrHidden.ts +12 -4
- package/front_end/third_party/web-vitals/package/src/onCLS.ts +75 -18
- package/front_end/third_party/web-vitals/package/src/onFCP.ts +66 -7
- package/front_end/third_party/web-vitals/package/src/onINP.ts +100 -39
- package/front_end/third_party/web-vitals/package/src/onLCP.ts +169 -34
- package/front_end/third_party/web-vitals/package/src/onTTFB.ts +50 -13
- package/front_end/third_party/web-vitals/package/src/types/base.ts +31 -10
- package/front_end/third_party/web-vitals/package/src/types/fcp.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/types/inp.ts +14 -6
- package/front_end/third_party/web-vitals/package/src/types/lcp.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/types/ttfb.ts +2 -2
- package/front_end/third_party/web-vitals/package/src/types.ts +32 -9
- package/front_end/third_party/web-vitals/patches/0001-Add-onEachInteraction-to-onINP-options.patch +11 -11
- package/front_end/third_party/web-vitals/rebuild.sh +2 -2
- package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +2 -0
- package/front_end/ui/components/buttons/Button.ts +16 -0
- package/front_end/ui/components/dialogs/Dialog.ts +1 -1
- package/front_end/ui/components/highlighting/HighlightManager.ts +6 -1
- package/front_end/ui/components/highlighting/highlighting.ts +1 -1
- package/front_end/ui/components/icon_button/FileSourceIcon.ts +1 -1
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +2 -2
- package/front_end/ui/components/settings/SettingCheckbox.ts +12 -7
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +2 -2
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +6 -6
- package/front_end/ui/components/text_editor/javascript.ts +3 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +12 -2
- package/front_end/ui/legacy/ListControl.ts +1 -1
- package/front_end/ui/legacy/SelectMenu.docs.ts +17 -19
- package/front_end/ui/legacy/Toolbar.ts +4 -1
- package/front_end/ui/legacy/Treeoutline.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/spectrum.css +1 -2
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +50 -4
- package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +3 -1
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +4 -4
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +8 -7
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +14 -11
- package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +1 -1
- package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +15 -5
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +4 -4
- package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -1
- package/front_end/ui/lit/render.ts +1 -1
- package/front_end/ui/settings/SettingUIRegistration.ts +8 -3
- package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/inspector_overlay/main.ts +1 -1
- package/mcp/mcp.ts +5 -4
- package/package.json +13 -13
- package/front_end/models/ai_assistance/AgentProject.ts +0 -261
- package/front_end/models/ai_assistance/agents/PatchAgent.ts +0 -306
- package/front_end/models/issues_manager/CheckFormsIssuesTrigger.ts +0 -45
- package/front_end/models/text_utils/text_utils.ts +0 -5
- package/front_end/panels/ai_assistance/PatchWidget.ts +0 -867
- package/front_end/panels/ai_assistance/SelectWorkspaceDialog.ts +0 -368
- package/front_end/panels/ai_assistance/selectWorkspaceDialog.css +0 -92
|
@@ -12,59 +12,59 @@ import type {LoadNetworkResourceResult} from './InspectorFrontendHostAPI.js';
|
|
|
12
12
|
|
|
13
13
|
const UIStrings = {
|
|
14
14
|
/**
|
|
15
|
-
* @description Name of an error category used in error messages
|
|
15
|
+
* @description Name of an error category used in error messages.
|
|
16
16
|
*/
|
|
17
17
|
systemError: 'System error',
|
|
18
18
|
/**
|
|
19
|
-
* @description Name of an error category used in error messages
|
|
19
|
+
* @description Name of an error category used in error messages.
|
|
20
20
|
*/
|
|
21
21
|
connectionError: 'Connection error',
|
|
22
22
|
/**
|
|
23
|
-
* @description Name of an error category used in error messages
|
|
23
|
+
* @description Name of an error category used in error messages.
|
|
24
24
|
*/
|
|
25
25
|
certificateError: 'Certificate error',
|
|
26
26
|
/**
|
|
27
|
-
* @description Name of an error category used in error messages
|
|
27
|
+
* @description Name of an error category used in error messages.
|
|
28
28
|
*/
|
|
29
29
|
httpError: 'HTTP error',
|
|
30
30
|
/**
|
|
31
|
-
* @description Name of an error category used in error messages
|
|
31
|
+
* @description Name of an error category used in error messages.
|
|
32
32
|
*/
|
|
33
33
|
cacheError: 'Cache error',
|
|
34
34
|
/**
|
|
35
|
-
* @description Name of an error category used in error messages
|
|
35
|
+
* @description Name of an error category used in error messages.
|
|
36
36
|
*/
|
|
37
|
-
signedExchangeError: 'Signed Exchange error',
|
|
37
|
+
signedExchangeError: '`Signed Exchange` error',
|
|
38
38
|
/**
|
|
39
|
-
* @description Name of an error category used in error messages
|
|
39
|
+
* @description Name of an error category used in error messages.
|
|
40
40
|
*/
|
|
41
41
|
ftpError: 'FTP error',
|
|
42
42
|
/**
|
|
43
|
-
* @description Name of an error category used in error messages
|
|
43
|
+
* @description Name of an error category used in error messages.
|
|
44
44
|
*/
|
|
45
45
|
certificateManagerError: 'Certificate manager error',
|
|
46
46
|
/**
|
|
47
|
-
* @description Name of an error category used in error messages
|
|
47
|
+
* @description Name of an error category used in error messages.
|
|
48
48
|
*/
|
|
49
49
|
dnsResolverError: 'DNS resolver error',
|
|
50
50
|
/**
|
|
51
|
-
* @description Name of an error category used in error messages
|
|
51
|
+
* @description Name of an error category used in error messages.
|
|
52
52
|
*/
|
|
53
53
|
unknownError: 'Unknown error',
|
|
54
54
|
/**
|
|
55
|
-
* @description Phrase used in error messages that carry a network error name
|
|
55
|
+
* @description Phrase used in error messages that carry a network error name.
|
|
56
56
|
* @example {404} PH1
|
|
57
57
|
* @example {net::ERR_INSUFFICIENT_RESOURCES} PH2
|
|
58
58
|
*/
|
|
59
59
|
httpErrorStatusCodeSS: 'HTTP error: status code {PH1}, {PH2}',
|
|
60
60
|
/**
|
|
61
|
-
* @description Name of an error category used in error messages
|
|
61
|
+
* @description Name of an error category used in error messages.
|
|
62
62
|
*/
|
|
63
63
|
invalidUrl: 'Invalid URL',
|
|
64
64
|
/**
|
|
65
|
-
* @description Name of an error category used in error messages
|
|
65
|
+
* @description Name of an error category used in error messages.
|
|
66
66
|
*/
|
|
67
|
-
decodingDataUrlFailed: 'Decoding
|
|
67
|
+
decodingDataUrlFailed: 'Decoding data URL failed',
|
|
68
68
|
} as const;
|
|
69
69
|
const str_ = i18n.i18n.registerUIStrings('core/host/ResourceLoader.ts', UIStrings);
|
|
70
70
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
type CDPReceivableMessage,
|
|
12
12
|
type Command,
|
|
13
13
|
type CommandParams,
|
|
14
|
-
type CommandResult
|
|
14
|
+
type CommandResult,
|
|
15
15
|
} from './CDPConnection.js';
|
|
16
16
|
import type {ConnectionTransport} from './ConnectionTransport.js';
|
|
17
17
|
import {InspectorBackend, type MessageError, type QualifiedName, test} from './InspectorBackend.js';
|
|
@@ -101,7 +101,7 @@ export class DevToolsCDPConnection implements CDPConnection {
|
|
|
101
101
|
error: {
|
|
102
102
|
message: `Session is unregistering, can\'t dispatch pending call to ${method}`,
|
|
103
103
|
code: CDPErrorStatus.SESSION_NOT_FOUND,
|
|
104
|
-
}
|
|
104
|
+
},
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
type CDPEvent,
|
|
15
15
|
type Command,
|
|
16
16
|
type CommandParams,
|
|
17
|
-
type Event
|
|
17
|
+
type Event,
|
|
18
18
|
} from './CDPConnection.js';
|
|
19
19
|
import {ConnectionTransport} from './ConnectionTransport.js';
|
|
20
20
|
import {DevToolsCDPConnection} from './DevToolsCDPConnection.js';
|
|
@@ -464,7 +464,6 @@ export interface HostConfigFreestyler {
|
|
|
464
464
|
enabled: boolean;
|
|
465
465
|
userTier: string;
|
|
466
466
|
executionMode?: HostConfigFreestylerExecutionMode;
|
|
467
|
-
patching?: boolean;
|
|
468
467
|
multimodal?: boolean;
|
|
469
468
|
multimodalUploadInput?: boolean;
|
|
470
469
|
functionCalling?: boolean;
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
StringMatcher,
|
|
41
41
|
URLMatcher,
|
|
42
42
|
VariableMatcher,
|
|
43
|
-
VariableNameMatcher
|
|
43
|
+
VariableNameMatcher,
|
|
44
44
|
} from './CSSPropertyParserMatchers.js';
|
|
45
45
|
import {
|
|
46
46
|
CSSAtRule,
|
|
@@ -886,6 +886,81 @@ export class CSSMatchedStyles {
|
|
|
886
886
|
return new Set(this.#customHighlightPseudoDOMCascades.keys());
|
|
887
887
|
}
|
|
888
888
|
|
|
889
|
+
/**
|
|
890
|
+
* Looks for a rule with the same selector chain as a specific parent rule of the current one.
|
|
891
|
+
* This finds a rule with the same guaranteed specificity, not necessarily THE parent rule,
|
|
892
|
+
* as the same selector string can be used on multiple rules in the same scope, in the same
|
|
893
|
+
* or different stylesheet.
|
|
894
|
+
*
|
|
895
|
+
* @param rule The (nested) rule whose parent rule selector should be matched
|
|
896
|
+
* @param nestingIndex Nesting depth of the parent selector to be matched, with 0 meaning direct parent, 1 grandparent rule and so on
|
|
897
|
+
* @returns A rule with the same selector chain and specificity as selected parent rule, if found. `null` otherwise
|
|
898
|
+
*/
|
|
899
|
+
findParentRule(rule: CSSStyleRule, nestingIndex: number): CSSStyleRule|null {
|
|
900
|
+
const selectorText = rule.nestingSelectors?.[nestingIndex];
|
|
901
|
+
if (!selectorText) {
|
|
902
|
+
return null;
|
|
903
|
+
}
|
|
904
|
+
const nestingSelectors = rule.nestingSelectors?.slice(nestingIndex + 1) ?? [];
|
|
905
|
+
|
|
906
|
+
const matchCascade = (cascade: DOMInheritanceCascade): CSSStyleRule|null => {
|
|
907
|
+
for (const style of cascade.styles()) {
|
|
908
|
+
if (this.isInherited(style)) {
|
|
909
|
+
continue;
|
|
910
|
+
}
|
|
911
|
+
const parentRule = style.parentRule;
|
|
912
|
+
if (!(parentRule instanceof CSSStyleRule)) {
|
|
913
|
+
continue;
|
|
914
|
+
}
|
|
915
|
+
if (parentRule.selectorText() !== selectorText) {
|
|
916
|
+
continue;
|
|
917
|
+
}
|
|
918
|
+
const ruleNestingSelectors = parentRule.nestingSelectors ?? [];
|
|
919
|
+
if (ruleNestingSelectors.length !== nestingSelectors.length) {
|
|
920
|
+
continue;
|
|
921
|
+
}
|
|
922
|
+
let matchesChain = true;
|
|
923
|
+
for (let i = 0; i < nestingSelectors.length; i++) {
|
|
924
|
+
if (ruleNestingSelectors[i] !== nestingSelectors[i]) {
|
|
925
|
+
matchesChain = false;
|
|
926
|
+
break;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
if (matchesChain) {
|
|
930
|
+
return parentRule;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
return null;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
if (this.#mainDOMCascade) {
|
|
937
|
+
const match = matchCascade(this.#mainDOMCascade);
|
|
938
|
+
if (match) {
|
|
939
|
+
return match;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
if (this.#pseudoDOMCascades) {
|
|
944
|
+
for (const cascade of this.#pseudoDOMCascades.values()) {
|
|
945
|
+
const match = matchCascade(cascade);
|
|
946
|
+
if (match) {
|
|
947
|
+
return match;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
if (this.#customHighlightPseudoDOMCascades) {
|
|
953
|
+
for (const cascade of this.#customHighlightPseudoDOMCascades.values()) {
|
|
954
|
+
const match = matchCascade(cascade);
|
|
955
|
+
if (match) {
|
|
956
|
+
return match;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
return null;
|
|
962
|
+
}
|
|
963
|
+
|
|
889
964
|
nodeForStyle(style: CSSStyleDeclaration): DOMNode|null {
|
|
890
965
|
return this.#addedStyles.get(style) || this.#nodeForStyle.get(style) || null;
|
|
891
966
|
}
|
|
@@ -1548,7 +1623,7 @@ class DOMInheritanceCascade {
|
|
|
1548
1623
|
return defaultValueForCSSType(match.type);
|
|
1549
1624
|
}
|
|
1550
1625
|
return evaluateFallback(match.fallback, match.matching);
|
|
1551
|
-
})
|
|
1626
|
+
}),
|
|
1552
1627
|
]);
|
|
1553
1628
|
const decl = PropertyParser.ASTUtils.siblings(PropertyParser.ASTUtils.declValue(matching.ast.tree));
|
|
1554
1629
|
const declText = decl.length > 0 ? matching.getComputedTextRange(decl[0], decl[decl.length - 1]) : '';
|
|
@@ -1598,7 +1673,7 @@ class DOMInheritanceCascade {
|
|
|
1598
1673
|
// We've seen the variable before, so we can look up the text directly.
|
|
1599
1674
|
return {
|
|
1600
1675
|
value: computedCSSVariablesMap.get(innerNodeCascade)?.get(recordName)?.value ?? null,
|
|
1601
|
-
mayFallback: false
|
|
1676
|
+
mayFallback: false,
|
|
1602
1677
|
};
|
|
1603
1678
|
}
|
|
1604
1679
|
|
|
@@ -564,25 +564,28 @@ const valuePresets = new Map([
|
|
|
564
564
|
]),
|
|
565
565
|
],
|
|
566
566
|
[
|
|
567
|
-
'clip-path',
|
|
567
|
+
'clip-path',
|
|
568
|
+
new Map([
|
|
568
569
|
['inset', 'inset(|10px|)'],
|
|
569
570
|
['circle', 'circle(|100px|)'],
|
|
570
571
|
['ellipse', 'ellipse(|100px 100px|)'],
|
|
571
572
|
['polygon', 'polygon(|50px 0px, 100px 100px, 0px 100px|)'],
|
|
572
573
|
['url', 'url(||)'],
|
|
573
|
-
])
|
|
574
|
+
]),
|
|
574
575
|
],
|
|
575
576
|
[
|
|
576
|
-
'transition-timing-function',
|
|
577
|
+
'transition-timing-function',
|
|
578
|
+
new Map([
|
|
577
579
|
['steps', 'steps(|5, end|)'],
|
|
578
580
|
['cubic-bezier', 'cubic-bezier(|0.25, 0.1, 0.25, 1|)'],
|
|
579
|
-
])
|
|
581
|
+
]),
|
|
580
582
|
],
|
|
581
583
|
[
|
|
582
|
-
'animation-timing-function',
|
|
584
|
+
'animation-timing-function',
|
|
585
|
+
new Map([
|
|
583
586
|
['steps', 'steps(|5, end|)'],
|
|
584
587
|
['cubic-bezier', 'cubic-bezier(|0.25, 0.1, 0.25, 1|)'],
|
|
585
|
-
])
|
|
588
|
+
]),
|
|
586
589
|
],
|
|
587
590
|
[
|
|
588
591
|
'box-shadow',
|
|
@@ -608,11 +611,12 @@ const valuePresets = new Map([
|
|
|
608
611
|
]),
|
|
609
612
|
],
|
|
610
613
|
[
|
|
611
|
-
'text-box-edge',
|
|
614
|
+
'text-box-edge',
|
|
615
|
+
new Map([
|
|
612
616
|
['cap', 'cap alphabetic'],
|
|
613
617
|
['ex', 'ex alphabetic'],
|
|
614
|
-
])
|
|
615
|
-
]
|
|
618
|
+
]),
|
|
619
|
+
],
|
|
616
620
|
]);
|
|
617
621
|
|
|
618
622
|
const partialValueKeywordsNoPresets = new Map<string, Set<string>>([
|
|
@@ -621,7 +625,8 @@ const partialValueKeywordsNoPresets = new Map<string, Set<string>>([
|
|
|
621
625
|
['animation-timing-function', new Set(['jump-both', 'jump-end', 'jump-none', 'jump-start'])],
|
|
622
626
|
['transition-timing-function', new Set(['jump-both', 'jump-end', 'jump-none', 'jump-start'])],
|
|
623
627
|
[
|
|
624
|
-
'animation-trigger',
|
|
628
|
+
'animation-trigger',
|
|
629
|
+
new Set([
|
|
625
630
|
'play',
|
|
626
631
|
'pause',
|
|
627
632
|
'play-once',
|
|
@@ -630,7 +635,7 @@ const partialValueKeywordsNoPresets = new Map<string, Set<string>>([
|
|
|
630
635
|
'play-backwards',
|
|
631
636
|
'play-pause',
|
|
632
637
|
'replay',
|
|
633
|
-
])
|
|
638
|
+
]),
|
|
634
639
|
],
|
|
635
640
|
]);
|
|
636
641
|
|
|
@@ -1006,7 +1011,7 @@ const extraPropertyValues = new Map<string, Set<string>>([
|
|
|
1006
1011
|
],
|
|
1007
1012
|
[
|
|
1008
1013
|
'font-variant-alternates',
|
|
1009
|
-
new Set(['historical-forms', 'stylistic', 'styleset', 'character-variant', 'swash', 'ornaments', 'annotation'])
|
|
1014
|
+
new Set(['historical-forms', 'stylistic', 'styleset', 'character-variant', 'swash', 'ornaments', 'annotation']),
|
|
1010
1015
|
],
|
|
1011
1016
|
['vertical-align', new Set(['top', 'bottom', '-webkit-baseline-middle'])],
|
|
1012
1017
|
['page-break-after', new Set(['left', 'right', 'always', 'avoid'])],
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
type Match,
|
|
17
17
|
matchDeclaration,
|
|
18
18
|
type Matcher,
|
|
19
|
-
stripComments
|
|
19
|
+
stripComments,
|
|
20
20
|
} from './CSSPropertyParser.js';
|
|
21
21
|
import {CSSWideKeywordMatcher} from './CSSPropertyParserMatchers.js';
|
|
22
22
|
import type {CSSStyleDeclaration} from './CSSStyleDeclaration.js';
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
matchDeclaration,
|
|
23
23
|
matcherBase,
|
|
24
24
|
type SyntaxTree,
|
|
25
|
-
tokenizeDeclaration
|
|
25
|
+
tokenizeDeclaration,
|
|
26
26
|
} from './CSSPropertyParser.js';
|
|
27
27
|
import type {CSSStyleDeclaration} from './CSSStyleDeclaration.js';
|
|
28
28
|
|
|
@@ -1030,7 +1030,7 @@ export class LengthMatcher extends matcherBase(LengthMatch) {
|
|
|
1030
1030
|
'em', 'ex', 'ch', 'cap', 'ic', 'lh', 'rem', 'rex', 'rch', 'rlh', 'ric', 'rcap', 'pt', 'pc',
|
|
1031
1031
|
'in', 'cm', 'mm', 'Q', 'vw', 'vh', 'vi', 'vb', 'vmin', 'vmax', 'dvw', 'dvh', 'dvi', 'dvb',
|
|
1032
1032
|
'dvmin', 'dvmax', 'svw', 'svh', 'svi', 'svb', 'svmin', 'svmax', 'lvw', 'lvh', 'lvi', 'lvb', 'lvmin', 'lvmax',
|
|
1033
|
-
'cqw', 'cqh', 'cqi', 'cqb', 'cqmin', 'cqmax', 'cqem', 'cqlh', 'cqex', 'cqch', '%'
|
|
1033
|
+
'cqw', 'cqh', 'cqi', 'cqb', 'cqmin', 'cqmax', 'cqem', 'cqlh', 'cqex', 'cqch', '%',
|
|
1034
1034
|
]);
|
|
1035
1035
|
override matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): LengthMatch|null {
|
|
1036
1036
|
if (node.name !== 'NumberLiteral') {
|
|
@@ -121,7 +121,7 @@ export class CSSStyleRule extends CSSRule {
|
|
|
121
121
|
origin: payload.origin,
|
|
122
122
|
style: payload.style,
|
|
123
123
|
header: styleSheetHeaderForRule(cssModel, payload),
|
|
124
|
-
originTreeScopeNodeId: payload.originTreeScopeNodeId
|
|
124
|
+
originTreeScopeNodeId: payload.originTreeScopeNodeId,
|
|
125
125
|
});
|
|
126
126
|
this.reinitializeSelectors(payload.selectorList);
|
|
127
127
|
this.nestingSelectors = payload.nestingSelectors;
|
|
@@ -415,10 +415,10 @@ export class CSSFunctionRule extends CSSRule {
|
|
|
415
415
|
cssProperties: [],
|
|
416
416
|
shorthandEntries: [],
|
|
417
417
|
range: CSSFunctionRule.mergeRanges(payload.children),
|
|
418
|
-
styleSheetId: payload.styleSheetId
|
|
418
|
+
styleSheetId: payload.styleSheetId,
|
|
419
419
|
},
|
|
420
420
|
header: styleSheetHeaderForRule(cssModel, payload),
|
|
421
|
-
originTreeScopeNodeId: payload.originTreeScopeNodeId
|
|
421
|
+
originTreeScopeNodeId: payload.originTreeScopeNodeId,
|
|
422
422
|
});
|
|
423
423
|
this.#name = new CSSValue(payload.name);
|
|
424
424
|
this.#parameters = payload.parameters.map(({name}) => name);
|
|
@@ -17,13 +17,13 @@ import type {DebugId} from './SourceMap.js';
|
|
|
17
17
|
|
|
18
18
|
const UIStrings = {
|
|
19
19
|
/**
|
|
20
|
-
* @description Error message for when a CSS file can't be loaded
|
|
20
|
+
* @description Error message for when a CSS file can't be loaded.
|
|
21
21
|
*/
|
|
22
22
|
couldNotFindTheOriginalStyle: 'Could not find the original style sheet.',
|
|
23
23
|
/**
|
|
24
24
|
* @description Error message to display when a source CSS file could not be retrieved.
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
couldNotRetrieveSourceStyles: 'Could not retrieve source styles.',
|
|
27
27
|
} as const;
|
|
28
28
|
const str_ = i18n.i18n.registerUIStrings('core/sdk/CSSStyleSheetHeader.ts', UIStrings);
|
|
29
29
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -167,7 +167,7 @@ export class CSSStyleSheetHeader implements TextUtils.ContentProvider.ContentPro
|
|
|
167
167
|
async requestContentData(): Promise<TextUtils.ContentData.ContentDataOrError> {
|
|
168
168
|
const cssText = await this.#cssModel.getStyleSheetText(this.id);
|
|
169
169
|
if (cssText === null) {
|
|
170
|
-
return {error: i18nString(UIStrings.
|
|
170
|
+
return {error: i18nString(UIStrings.couldNotRetrieveSourceStyles)};
|
|
171
171
|
}
|
|
172
172
|
return new TextUtils.ContentData.ContentData(cssText, /* isBase64=*/ false, 'text/css');
|
|
173
173
|
}
|
|
@@ -11,7 +11,7 @@ import type {PageResourceLoader, PageResourceLoadInitiator} from './PageResource
|
|
|
11
11
|
|
|
12
12
|
const UIStrings = {
|
|
13
13
|
/**
|
|
14
|
-
* @description Error message when failing to fetch a resource referenced in a source map
|
|
14
|
+
* @description Error message when failing to fetch a resource referenced in a source map.
|
|
15
15
|
* @example {https://example.com/sourcemap.map} PH1
|
|
16
16
|
* @example {An error occurred} PH2
|
|
17
17
|
*/
|
|
@@ -13,7 +13,7 @@ import {RehydratingConnectionTransport} from './RehydratingConnection.js';
|
|
|
13
13
|
|
|
14
14
|
const UIStrings = {
|
|
15
15
|
/**
|
|
16
|
-
* @description Text on the remote debugging window to indicate the connection is lost
|
|
16
|
+
* @description Text on the remote debugging window to indicate the connection is lost.
|
|
17
17
|
*/
|
|
18
18
|
websocketDisconnected: 'WebSocket disconnected',
|
|
19
19
|
} as const;
|
|
@@ -25,7 +25,7 @@ const UIStrings = {
|
|
|
25
25
|
*/
|
|
26
26
|
local: 'Local',
|
|
27
27
|
/**
|
|
28
|
-
* @description Text that refers to closure as a programming term
|
|
28
|
+
* @description Text that refers to closure as a programming term.
|
|
29
29
|
*/
|
|
30
30
|
closure: 'Closure',
|
|
31
31
|
/**
|
|
@@ -33,19 +33,19 @@ const UIStrings = {
|
|
|
33
33
|
*/
|
|
34
34
|
block: 'Block',
|
|
35
35
|
/**
|
|
36
|
-
* @description Label for a group of JavaScript files
|
|
36
|
+
* @description Label for a group of JavaScript files.
|
|
37
37
|
*/
|
|
38
38
|
script: 'Script',
|
|
39
39
|
/**
|
|
40
|
-
* @description Title of a section in the debugger showing JavaScript variables from
|
|
41
|
-
*block. Block here means section of code, 'with' refers to a JavaScript programming concept and
|
|
42
|
-
*is a fixed term.
|
|
40
|
+
* @description Title of a section in the debugger showing JavaScript variables from a 'with'
|
|
41
|
+
* block. Block here means section of code, 'with' refers to a JavaScript programming concept and
|
|
42
|
+
* is a fixed term.
|
|
43
43
|
*/
|
|
44
44
|
withBlock: '`With` block',
|
|
45
45
|
/**
|
|
46
|
-
* @description Title of a section in the debugger showing JavaScript variables from
|
|
47
|
-
*block. Block here means section of code, 'catch' refers to a JavaScript programming concept and
|
|
48
|
-
*is a fixed term.
|
|
46
|
+
* @description Title of a section in the debugger showing JavaScript variables from a 'catch'
|
|
47
|
+
* block. Block here means section of code, 'catch' refers to a JavaScript programming concept and
|
|
48
|
+
* is a fixed term.
|
|
49
49
|
*/
|
|
50
50
|
catchBlock: '`Catch` block',
|
|
51
51
|
/**
|
|
@@ -53,19 +53,19 @@ const UIStrings = {
|
|
|
53
53
|
*/
|
|
54
54
|
global: 'Global',
|
|
55
55
|
/**
|
|
56
|
-
* @description Text for a JavaScript module, the programming concept
|
|
56
|
+
* @description Text for a JavaScript module, the programming concept.
|
|
57
57
|
*/
|
|
58
58
|
module: 'Module',
|
|
59
59
|
/**
|
|
60
|
-
* @description Text describing the expression scope in WebAssembly
|
|
60
|
+
* @description Text describing the expression scope in WebAssembly.
|
|
61
61
|
*/
|
|
62
62
|
expression: 'Expression',
|
|
63
63
|
/**
|
|
64
|
-
* @description Text in Scope Chain
|
|
64
|
+
* @description Text in Scope Chain section of the Sources panel.
|
|
65
65
|
*/
|
|
66
66
|
exception: 'Exception',
|
|
67
67
|
/**
|
|
68
|
-
* @description Text in Scope Chain
|
|
68
|
+
* @description Text in Scope Chain section of the Sources panel.
|
|
69
69
|
*/
|
|
70
70
|
returnValue: 'Return value',
|
|
71
71
|
} as const;
|
|
@@ -907,7 +907,7 @@ export class DebuggerModel extends SDKModel<EventTypes> {
|
|
|
907
907
|
{
|
|
908
908
|
callFrames: [],
|
|
909
909
|
parent: stackTraceOrPausedDetails.asyncStackTrace,
|
|
910
|
-
parentId: stackTraceOrPausedDetails.asyncStackTraceId
|
|
910
|
+
parentId: stackTraceOrPausedDetails.asyncStackTraceId,
|
|
911
911
|
} :
|
|
912
912
|
stackTraceOrPausedDetails;
|
|
913
913
|
let target = this.target();
|
|
@@ -45,11 +45,11 @@ const UIStrings = {
|
|
|
45
45
|
*/
|
|
46
46
|
noContentForPreflight: 'No content available for preflight request',
|
|
47
47
|
/**
|
|
48
|
-
* @description Text to indicate that network throttling is disabled
|
|
48
|
+
* @description Text to indicate that network throttling is disabled.
|
|
49
49
|
*/
|
|
50
50
|
noThrottling: 'No throttling',
|
|
51
51
|
/**
|
|
52
|
-
* @description Text to indicate the network connectivity is offline
|
|
52
|
+
* @description Text to indicate the network connectivity is offline.
|
|
53
53
|
*/
|
|
54
54
|
offline: 'Offline',
|
|
55
55
|
/**
|
|
@@ -60,53 +60,53 @@ const UIStrings = {
|
|
|
60
60
|
// change it we break their stored throttling settings.
|
|
61
61
|
// (See crrev.com/c/2947255)
|
|
62
62
|
/**
|
|
63
|
-
* @description Text in Network Manager representing the "Slow 4G" throttling preset
|
|
63
|
+
* @description Text in Network Manager representing the "Slow 4G" throttling preset.
|
|
64
64
|
*/
|
|
65
65
|
fastG: 'Slow 4G', // Named `fastG` for legacy reasons and because this value
|
|
66
66
|
// is serialized locally on the user's machine: if we
|
|
67
67
|
// change it we break their stored throttling settings.
|
|
68
68
|
// (See crrev.com/c/2947255)
|
|
69
69
|
/**
|
|
70
|
-
* @description Text in Network Manager representing the "Fast 4G" throttling preset
|
|
70
|
+
* @description Text in Network Manager representing the "Fast 4G" throttling preset.
|
|
71
71
|
*/
|
|
72
72
|
fast4G: 'Fast 4G',
|
|
73
73
|
/**
|
|
74
|
-
* @description Text in Network Manager representing the "Blocking" throttling preset
|
|
74
|
+
* @description Text in Network Manager representing the "Blocking" throttling preset.
|
|
75
75
|
*/
|
|
76
76
|
block: 'Block',
|
|
77
77
|
/**
|
|
78
|
-
* @description
|
|
78
|
+
* @description Message in Network Manager indicating that a request was blocked by DevTools.
|
|
79
79
|
* @example {https://example.com} PH1
|
|
80
80
|
*/
|
|
81
81
|
requestWasBlockedByDevtoolsS: 'Request was blocked by DevTools: "{PH1}"',
|
|
82
82
|
/**
|
|
83
|
-
* @description
|
|
83
|
+
* @description Console message when a request failed loading.
|
|
84
84
|
* @example {XHR} PH1
|
|
85
85
|
* @example {GET} PH2
|
|
86
86
|
* @example {https://example.com} PH3
|
|
87
87
|
*/
|
|
88
88
|
sFailedLoadingSS: '{PH1} failed loading: {PH2} "{PH3}".',
|
|
89
89
|
/**
|
|
90
|
-
* @description
|
|
90
|
+
* @description Console message when a request finished loading.
|
|
91
91
|
* @example {XHR} PH1
|
|
92
92
|
* @example {GET} PH2
|
|
93
93
|
* @example {https://example.com} PH3
|
|
94
94
|
*/
|
|
95
95
|
sFinishedLoadingSS: '{PH1} finished loading: {PH2} "{PH3}".',
|
|
96
96
|
/**
|
|
97
|
-
* @description One of direct socket connection statuses
|
|
97
|
+
* @description One of direct socket connection statuses.
|
|
98
98
|
*/
|
|
99
99
|
directSocketStatusOpening: 'Opening',
|
|
100
100
|
/**
|
|
101
|
-
* @description One of direct socket connection statuses
|
|
101
|
+
* @description One of direct socket connection statuses.
|
|
102
102
|
*/
|
|
103
103
|
directSocketStatusOpen: 'Open',
|
|
104
104
|
/**
|
|
105
|
-
* @description One of direct socket connection statuses
|
|
105
|
+
* @description One of direct socket connection statuses.
|
|
106
106
|
*/
|
|
107
107
|
directSocketStatusClosed: 'Closed',
|
|
108
108
|
/**
|
|
109
|
-
* @description One of direct socket connection statuses
|
|
109
|
+
* @description One of direct socket connection statuses.
|
|
110
110
|
*/
|
|
111
111
|
directSocketStatusAborted: 'Aborted',
|
|
112
112
|
} as const;
|
|
@@ -1117,7 +1117,7 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
|
1117
1117
|
clientSecurityState,
|
|
1118
1118
|
connectTiming,
|
|
1119
1119
|
siteHasCookieInOtherPartition,
|
|
1120
|
-
appliedNetworkConditionsId
|
|
1120
|
+
appliedNetworkConditionsId,
|
|
1121
1121
|
}: Protocol.Network.RequestWillBeSentExtraInfoEvent): void {
|
|
1122
1122
|
const blockedRequestCookies: BlockedCookieWithReason[] = [];
|
|
1123
1123
|
const includedRequestCookies: IncludedCookieWithReason[] = [];
|
|
@@ -1394,7 +1394,7 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
|
1394
1394
|
sendBufferSize: event.options.sendBufferSize,
|
|
1395
1395
|
receiveBufferSize: event.options.receiveBufferSize,
|
|
1396
1396
|
dnsQueryType: event.options.dnsQueryType,
|
|
1397
|
-
}
|
|
1397
|
+
},
|
|
1398
1398
|
};
|
|
1399
1399
|
networkRequest.setResourceType(Common.ResourceType.resourceTypes.DirectSocket);
|
|
1400
1400
|
networkRequest.setIssueTime(event.timestamp, event.timestamp);
|
|
@@ -1589,7 +1589,7 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
|
1589
1589
|
type: DirectSocketChunkType.SEND,
|
|
1590
1590
|
timestamp: event.timestamp,
|
|
1591
1591
|
remoteAddress: event.message.remoteAddr,
|
|
1592
|
-
remotePort: event.message.remotePort
|
|
1592
|
+
remotePort: event.message.remotePort,
|
|
1593
1593
|
});
|
|
1594
1594
|
networkRequest.responseReceivedTime = event.timestamp;
|
|
1595
1595
|
|
|
@@ -1607,7 +1607,7 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
|
1607
1607
|
type: DirectSocketChunkType.RECEIVE,
|
|
1608
1608
|
timestamp: event.timestamp,
|
|
1609
1609
|
remoteAddress: event.message.remoteAddr,
|
|
1610
|
-
remotePort: event.message.remotePort
|
|
1610
|
+
remotePort: event.message.remotePort,
|
|
1611
1611
|
});
|
|
1612
1612
|
networkRequest.responseReceivedTime = event.timestamp;
|
|
1613
1613
|
|
|
@@ -1776,7 +1776,7 @@ export class RequestCondition extends Common.ObjectWrapper.ObjectWrapper<Request
|
|
|
1776
1776
|
|
|
1777
1777
|
const pattern = {
|
|
1778
1778
|
wildcardURL: setting.url,
|
|
1779
|
-
upgradedPattern: RequestURLPattern.upgradeFromWildcard(setting.url) ?? undefined
|
|
1779
|
+
upgradedPattern: RequestURLPattern.upgradeFromWildcard(setting.url) ?? undefined,
|
|
1780
1780
|
};
|
|
1781
1781
|
return new this(pattern, setting.enabled, BlockingConditions);
|
|
1782
1782
|
}
|
|
@@ -2020,7 +2020,7 @@ export class RequestConditions extends Common.ObjectWrapper.ObjectWrapper<Reques
|
|
|
2020
2020
|
packetReordering: conditions.packetReordering,
|
|
2021
2021
|
connectionType: NetworkManager.connectionType(conditions),
|
|
2022
2022
|
offline,
|
|
2023
|
-
}))
|
|
2023
|
+
})),
|
|
2024
2024
|
})
|
|
2025
2025
|
.then(response => {
|
|
2026
2026
|
if (!response.getError()) {
|
|
@@ -2757,7 +2757,7 @@ export const THROTTLING_CONDITIONS_LOOKUP: ReadonlyMap<PredefinedThrottlingCondi
|
|
|
2757
2757
|
[PredefinedThrottlingConditionKey.OFFLINE, OfflineConditions],
|
|
2758
2758
|
[PredefinedThrottlingConditionKey.SPEED_3G, Slow3GConditions],
|
|
2759
2759
|
[PredefinedThrottlingConditionKey.SPEED_SLOW_4G, Slow4GConditions],
|
|
2760
|
-
[PredefinedThrottlingConditionKey.SPEED_FAST_4G, Fast4GConditions]
|
|
2760
|
+
[PredefinedThrottlingConditionKey.SPEED_FAST_4G, Fast4GConditions],
|
|
2761
2761
|
]);
|
|
2762
2762
|
|
|
2763
2763
|
function keyIsPredefined(key: ThrottlingConditionKey): key is PredefinedThrottlingConditionKey {
|