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
|
@@ -10,9 +10,49 @@ import * as Lighthouse from './lighthouse.js';
|
|
|
10
10
|
|
|
11
11
|
const UIStrings = {
|
|
12
12
|
/**
|
|
13
|
-
* @description Command for showing the
|
|
13
|
+
* @description Command for showing the Lighthouse panel.
|
|
14
14
|
*/
|
|
15
15
|
showLighthouse: 'Show `Lighthouse`',
|
|
16
|
+
/**
|
|
17
|
+
* @description Title of Lighthouse performance category setting.
|
|
18
|
+
*/
|
|
19
|
+
performance: 'Performance',
|
|
20
|
+
/**
|
|
21
|
+
* @description Title of Lighthouse accessibility category setting.
|
|
22
|
+
*/
|
|
23
|
+
accessibility: 'Accessibility',
|
|
24
|
+
/**
|
|
25
|
+
* @description Title of Lighthouse best practices category setting.
|
|
26
|
+
*/
|
|
27
|
+
bestPractices: 'Best practices',
|
|
28
|
+
/**
|
|
29
|
+
* @description Title of Lighthouse SEO category setting.
|
|
30
|
+
*/
|
|
31
|
+
seo: 'SEO',
|
|
32
|
+
/**
|
|
33
|
+
* @description Title of Lighthouse agentic browsing category setting.
|
|
34
|
+
*/
|
|
35
|
+
agenticBrowsing: 'Agentic browsing',
|
|
36
|
+
/**
|
|
37
|
+
* @description Title of Lighthouse device type setting.
|
|
38
|
+
*/
|
|
39
|
+
device: 'Apply mobile emulation',
|
|
40
|
+
/**
|
|
41
|
+
* @description Title of Lighthouse mode setting.
|
|
42
|
+
*/
|
|
43
|
+
mode: 'Lighthouse mode',
|
|
44
|
+
/**
|
|
45
|
+
* @description Title of Lighthouse throttling setting.
|
|
46
|
+
*/
|
|
47
|
+
throttling: 'Throttling method',
|
|
48
|
+
/**
|
|
49
|
+
* @description Title of Lighthouse clear storage setting.
|
|
50
|
+
*/
|
|
51
|
+
clearStorage: 'Clear storage',
|
|
52
|
+
/**
|
|
53
|
+
* @description Title of Lighthouse JavaScript sampling setting.
|
|
54
|
+
*/
|
|
55
|
+
enableSampling: 'Enable JS sampling',
|
|
16
56
|
} as const;
|
|
17
57
|
|
|
18
58
|
const str_ = i18n.i18n.registerUIStrings('panels/lighthouse/lighthouse-meta.ts', UIStrings);
|
|
@@ -55,3 +95,93 @@ Common.Revealer.registerRevealer({
|
|
|
55
95
|
return new Lighthouse.LighthousePanel.ReportRevealer();
|
|
56
96
|
},
|
|
57
97
|
});
|
|
98
|
+
|
|
99
|
+
Common.Settings.registerSettingExtension({
|
|
100
|
+
category: Common.Settings.SettingCategory.NONE,
|
|
101
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
102
|
+
title: i18nLazyString(UIStrings.performance),
|
|
103
|
+
settingName: 'lighthouse.cat-perf',
|
|
104
|
+
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
105
|
+
defaultValue: true,
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
Common.Settings.registerSettingExtension({
|
|
109
|
+
category: Common.Settings.SettingCategory.NONE,
|
|
110
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
111
|
+
title: i18nLazyString(UIStrings.accessibility),
|
|
112
|
+
settingName: 'lighthouse.cat-a11y',
|
|
113
|
+
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
114
|
+
defaultValue: true,
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
Common.Settings.registerSettingExtension({
|
|
118
|
+
category: Common.Settings.SettingCategory.NONE,
|
|
119
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
120
|
+
title: i18nLazyString(UIStrings.bestPractices),
|
|
121
|
+
settingName: 'lighthouse.cat-best-practices',
|
|
122
|
+
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
123
|
+
defaultValue: true,
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
Common.Settings.registerSettingExtension({
|
|
127
|
+
category: Common.Settings.SettingCategory.NONE,
|
|
128
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
129
|
+
title: i18nLazyString(UIStrings.seo),
|
|
130
|
+
settingName: 'lighthouse.cat-seo',
|
|
131
|
+
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
132
|
+
defaultValue: true,
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
Common.Settings.registerSettingExtension({
|
|
136
|
+
category: Common.Settings.SettingCategory.NONE,
|
|
137
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
138
|
+
title: i18nLazyString(UIStrings.agenticBrowsing),
|
|
139
|
+
settingName: 'lighthouse.cat-agentic-browsing',
|
|
140
|
+
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
141
|
+
defaultValue: false,
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
Common.Settings.registerSettingExtension({
|
|
145
|
+
category: Common.Settings.SettingCategory.NONE,
|
|
146
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
147
|
+
title: i18nLazyString(UIStrings.device),
|
|
148
|
+
settingName: 'lighthouse.device-type',
|
|
149
|
+
settingType: Common.Settings.SettingType.ENUM,
|
|
150
|
+
defaultValue: 'mobile',
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
Common.Settings.registerSettingExtension({
|
|
154
|
+
category: Common.Settings.SettingCategory.NONE,
|
|
155
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
156
|
+
title: i18nLazyString(UIStrings.mode),
|
|
157
|
+
settingName: 'lighthouse.mode',
|
|
158
|
+
settingType: Common.Settings.SettingType.ENUM,
|
|
159
|
+
defaultValue: 'navigation',
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
Common.Settings.registerSettingExtension({
|
|
163
|
+
category: Common.Settings.SettingCategory.NONE,
|
|
164
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
165
|
+
title: i18nLazyString(UIStrings.throttling),
|
|
166
|
+
settingName: 'lighthouse.throttling',
|
|
167
|
+
settingType: Common.Settings.SettingType.ENUM,
|
|
168
|
+
defaultValue: 'simulate',
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
Common.Settings.registerSettingExtension({
|
|
172
|
+
category: Common.Settings.SettingCategory.NONE,
|
|
173
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
174
|
+
title: i18nLazyString(UIStrings.clearStorage),
|
|
175
|
+
settingName: 'lighthouse.clear-storage',
|
|
176
|
+
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
177
|
+
defaultValue: true,
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
Common.Settings.registerSettingExtension({
|
|
181
|
+
category: Common.Settings.SettingCategory.NONE,
|
|
182
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
183
|
+
title: i18nLazyString(UIStrings.enableSampling),
|
|
184
|
+
settingName: 'lighthouse.enable-sampling',
|
|
185
|
+
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
186
|
+
defaultValue: false,
|
|
187
|
+
});
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
// Copyright 2019 The Chromium Authors
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
-
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
5
4
|
|
|
6
|
-
import
|
|
5
|
+
import '../../ui/legacy/components/data_grid/data_grid.js';
|
|
6
|
+
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
|
-
import * as DataGrid from '../../ui/legacy/components/data_grid/data_grid.js';
|
|
9
8
|
import * as SourceFrame from '../../ui/legacy/components/source_frame/source_frame.js';
|
|
10
9
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
10
|
+
import {Directives, html, render} from '../../ui/lit/lit.js';
|
|
11
11
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
12
12
|
|
|
13
13
|
import eventDisplayTableStyles from './eventDisplayTable.css.js';
|
|
14
14
|
import type {PlayerEvent} from './MediaModel.js';
|
|
15
15
|
|
|
16
|
+
const {widget} = UI.Widget;
|
|
17
|
+
const {repeat} = Directives;
|
|
16
18
|
const UIStrings = {
|
|
17
19
|
/**
|
|
18
20
|
* @description Text for timestamps of items.
|
|
@@ -34,92 +36,75 @@ const UIStrings = {
|
|
|
34
36
|
} as const;
|
|
35
37
|
const str_ = i18n.i18n.registerUIStrings('panels/media/EventDisplayTable.ts', UIStrings);
|
|
36
38
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
37
|
-
export interface
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
weight?: number;
|
|
39
|
+
export interface EventDisplayRow {
|
|
40
|
+
displayTimestamp: string;
|
|
41
|
+
event: string;
|
|
42
|
+
value: Record<string, unknown>;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
export
|
|
45
|
-
|
|
46
|
-
EVENT = 'event',
|
|
47
|
-
VALUE = 'value',
|
|
45
|
+
export interface PlayerEventsViewInput {
|
|
46
|
+
parsedEvents: EventDisplayRow[];
|
|
48
47
|
}
|
|
49
48
|
|
|
50
|
-
export
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
49
|
+
export type View = (input: PlayerEventsViewInput, output: void, target: HTMLElement) => void;
|
|
50
|
+
|
|
51
|
+
export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
52
|
+
// clang-format off
|
|
53
|
+
render(html`
|
|
54
|
+
<style>${eventDisplayTableStyles}</style>
|
|
55
|
+
<devtools-data-grid row-height='auto' autoscroll striped name=${i18nString(UIStrings.eventDisplay)}
|
|
56
|
+
class="event-display-table-contents-table-container no-border-top-datagrid"
|
|
57
|
+
.template=${html`
|
|
58
|
+
<style>${eventDisplayTableStyles}</style>
|
|
59
|
+
<table>
|
|
60
|
+
<thead>
|
|
61
|
+
<tr>
|
|
62
|
+
<th id="display-timestamp" weight="1">${i18nString(UIStrings.timestamp)}</th>
|
|
63
|
+
<th id="event" weight="2">${i18nString(UIStrings.eventName)}</th>
|
|
64
|
+
<th id="value" weight="7">${i18nString(UIStrings.value)}</th>
|
|
65
|
+
</tr>
|
|
66
|
+
</thead>
|
|
67
|
+
<tbody>
|
|
68
|
+
${repeat(input.parsedEvents, event => event, event => html`
|
|
69
|
+
<tr>
|
|
70
|
+
<td class="event-display-table-basic-text-table-entry">${event.displayTimestamp}</td>
|
|
71
|
+
<td class="event-display-table-basic-text-table-entry">${event.event}</td>
|
|
72
|
+
<td class="event-display-table-contents-json-wrapper">
|
|
73
|
+
${widget(el => new SourceFrame.JSONView.JSONView(new SourceFrame.JSONView.ParsedJSON(event.value, '', ''), true, el))}
|
|
74
|
+
</td>
|
|
75
|
+
</tr>
|
|
76
|
+
`)}
|
|
77
|
+
</tbody>
|
|
78
|
+
</table>
|
|
79
|
+
`}>
|
|
80
|
+
</devtools-data-grid>
|
|
81
|
+
`,
|
|
82
|
+
// clang-format on
|
|
83
|
+
target);
|
|
84
|
+
};
|
|
74
85
|
|
|
75
86
|
export class PlayerEventsView extends UI.Widget.VBox {
|
|
76
|
-
private readonly dataGrid: DataGrid.DataGrid.DataGridImpl<EventNode>;
|
|
77
87
|
private firstEventTime: number;
|
|
88
|
+
#view: View;
|
|
89
|
+
#parsedEvents: EventDisplayRow[] = [];
|
|
78
90
|
|
|
79
|
-
constructor() {
|
|
91
|
+
constructor(view: View = DEFAULT_VIEW) {
|
|
80
92
|
super({jslog: `${VisualLogging.pane('events')}`});
|
|
81
|
-
this
|
|
82
|
-
|
|
83
|
-
// Set up element styles.
|
|
84
|
-
|
|
85
|
-
this.contentElement.classList.add('event-display-table-contents-table-container');
|
|
86
|
-
|
|
87
|
-
this.dataGrid = this.createDataGrid([
|
|
88
|
-
{
|
|
89
|
-
id: MediaEventColumnKeys.TIMESTAMP,
|
|
90
|
-
title: i18nString(UIStrings.timestamp),
|
|
91
|
-
weight: 1,
|
|
92
|
-
sortable: false,
|
|
93
|
-
},
|
|
94
|
-
{id: MediaEventColumnKeys.EVENT, title: i18nString(UIStrings.eventName), weight: 2, sortable: false},
|
|
95
|
-
{
|
|
96
|
-
id: MediaEventColumnKeys.VALUE,
|
|
97
|
-
title: i18nString(UIStrings.value),
|
|
98
|
-
weight: 7,
|
|
99
|
-
sortable: false,
|
|
100
|
-
},
|
|
101
|
-
]);
|
|
102
|
-
|
|
93
|
+
this.#view = view;
|
|
103
94
|
this.firstEventTime = 0;
|
|
104
|
-
this.
|
|
105
|
-
this.dataGrid.asWidget().show(this.contentElement);
|
|
95
|
+
this.requestUpdate();
|
|
106
96
|
}
|
|
107
97
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
98
|
+
override wasShown(): void {
|
|
99
|
+
super.wasShown();
|
|
100
|
+
this.requestUpdate();
|
|
101
|
+
}
|
|
113
102
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
columns: gridColumnDescs,
|
|
120
|
-
});
|
|
121
|
-
datagrid.asWidget().contentElement.classList.add('no-border-top-datagrid');
|
|
122
|
-
return datagrid;
|
|
103
|
+
override performUpdate(): void {
|
|
104
|
+
const viewInput = {
|
|
105
|
+
parsedEvents: this.#parsedEvents,
|
|
106
|
+
};
|
|
107
|
+
this.#view(viewInput, undefined, this.contentElement);
|
|
123
108
|
}
|
|
124
109
|
|
|
125
110
|
onEvent(event: PlayerEvent): void {
|
|
@@ -133,14 +118,12 @@ export class PlayerEventsView extends UI.Widget.VBox {
|
|
|
133
118
|
const json = JSON.parse(stringified);
|
|
134
119
|
event.event = json.event;
|
|
135
120
|
delete json['event'];
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
scroll.scrollTop = scroll.scrollHeight;
|
|
143
|
-
}
|
|
121
|
+
this.#parsedEvents.push({
|
|
122
|
+
displayTimestamp: event.displayTimestamp,
|
|
123
|
+
event: event.event,
|
|
124
|
+
value: json,
|
|
125
|
+
});
|
|
126
|
+
this.requestUpdate();
|
|
144
127
|
} catch {
|
|
145
128
|
// If this is a legacy message event, ignore it for now until they
|
|
146
129
|
// are handled.
|
|
@@ -153,14 +136,4 @@ export class PlayerEventsView extends UI.Widget.VBox {
|
|
|
153
136
|
}
|
|
154
137
|
return event;
|
|
155
138
|
}
|
|
156
|
-
|
|
157
|
-
private static convertToGridDescriptor(columnConfig: EventDisplayColumnConfig): DataGrid.DataGrid.ColumnDescriptor {
|
|
158
|
-
return {
|
|
159
|
-
id: columnConfig.id,
|
|
160
|
-
title: columnConfig.title as Common.UIString.LocalizedString,
|
|
161
|
-
sortable: columnConfig.sortable,
|
|
162
|
-
weight: columnConfig.weight || 0,
|
|
163
|
-
sort: DataGrid.DataGrid.Order.Ascending,
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
139
|
}
|
|
@@ -4,19 +4,24 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
.no-border-top-datagrid
|
|
7
|
+
devtools-data-grid.no-border-top-datagrid {
|
|
8
8
|
/* make sure there is no top border, it ruins the menu view */
|
|
9
9
|
border-top: 0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.event-display-table-contents-table-container
|
|
12
|
+
devtools-data-grid.event-display-table-contents-table-container {
|
|
13
13
|
height: 100%;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
.event-display-table-basic-text-table-entry {
|
|
17
17
|
line-height: 26px;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.event-display-table-contents-json-wrapper > .json-view {
|
|
20
|
+
.event-display-table-contents-json-wrapper > devtools-widget.json-view {
|
|
21
21
|
overflow: visible;
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
.data-grid > .data-container > table.data {
|
|
25
|
+
height: auto;
|
|
26
|
+
table-layout: auto;
|
|
27
|
+
}
|
|
@@ -151,9 +151,9 @@ export const DEFAULT_VIEW: ViewFunction = (input, output, target) => {
|
|
|
151
151
|
attributes: {
|
|
152
152
|
disabled: input.disabled,
|
|
153
153
|
'aria-label': input.title,
|
|
154
|
-
jslog: `${VisualLogging.dropDown(input.jslogContext).track({change: true})}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
154
|
+
jslog: `${VisualLogging.dropDown(input.jslogContext).track({change: true})}`,
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
157
|
});
|
|
158
158
|
};
|
|
159
159
|
|
|
@@ -321,7 +321,7 @@ export class NetworkThrottlingSelect extends Common.ObjectWrapper.eventMixin<Eve
|
|
|
321
321
|
SDK.NetworkManager.Slow4GConditions,
|
|
322
322
|
SDK.NetworkManager.Slow3GConditions,
|
|
323
323
|
SDK.NetworkManager.OfflineConditions,
|
|
324
|
-
]
|
|
324
|
+
],
|
|
325
325
|
});
|
|
326
326
|
break;
|
|
327
327
|
case NetworkThrottlingSelect.Variant.INDIVIDUAL_REQUEST_CONDITIONS:
|
|
@@ -333,7 +333,7 @@ export class NetworkThrottlingSelect extends Common.ObjectWrapper.eventMixin<Eve
|
|
|
333
333
|
SDK.NetworkManager.Fast4GConditions,
|
|
334
334
|
SDK.NetworkManager.Slow4GConditions,
|
|
335
335
|
SDK.NetworkManager.Slow3GConditions,
|
|
336
|
-
]
|
|
336
|
+
],
|
|
337
337
|
},
|
|
338
338
|
);
|
|
339
339
|
break;
|