chrome-devtools-frontend 1.0.1526630 → 1.0.1529186
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/docs/ui_engineering.md +159 -0
- package/eslint.config.mjs +6 -1
- package/front_end/core/host/UserMetrics.ts +2 -1
- package/front_end/core/i18n/i18nImpl.ts +6 -1
- package/front_end/core/protocol_client/protocol_client.ts +1 -1
- package/front_end/core/root/Runtime.ts +38 -4
- package/front_end/core/sdk/CSSMatchedStyles.ts +50 -7
- package/front_end/core/sdk/CSSRule.ts +35 -6
- package/front_end/core/sdk/Connections.ts +2 -1
- package/front_end/core/sdk/DOMModel.ts +4 -0
- package/front_end/core/sdk/DebuggerModel.ts +5 -1
- package/front_end/core/sdk/NetworkManager.ts +267 -34
- package/front_end/core/sdk/PreloadingModel.ts +82 -17
- package/front_end/core/sdk/RehydratingConnection.snapshot.txt +1 -1
- package/front_end/core/sdk/RehydratingConnection.ts +29 -4
- package/front_end/core/sdk/ScopeTreeCache.ts +8 -3
- package/front_end/core/sdk/SourceMap.ts +41 -11
- package/front_end/core/sdk/SourceMapManager.ts +13 -2
- package/front_end/core/sdk/SourceMapScopesInfo.ts +49 -2
- package/front_end/core/sdk/TargetManager.ts +0 -22
- package/front_end/core/sdk/TraceObject.ts +8 -7
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +81 -0
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +3 -1
- package/front_end/entrypoints/main/GlobalAiButton.ts +1 -0
- package/front_end/entrypoints/main/MainImpl.ts +42 -28
- package/front_end/generated/InspectorBackendCommands.js +3 -2
- package/front_end/generated/SupportedCSSProperties.js +2 -0
- package/front_end/generated/protocol.ts +17 -3
- package/front_end/models/ai_assistance/BuiltInAi.ts +111 -0
- package/front_end/models/ai_assistance/ConversationHandler.ts +15 -14
- package/front_end/models/ai_assistance/ai_assistance.ts +53 -24
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +105 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +6 -1
- package/front_end/models/extensions/ExtensionView.ts +3 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +31 -27
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +31 -29
- package/front_end/models/persistence/NetworkPersistenceManager.ts +3 -5
- package/front_end/models/persistence/PersistenceImpl.ts +0 -5
- package/front_end/models/persistence/persistence-meta.ts +0 -31
- package/front_end/models/persistence/persistence.ts +0 -6
- package/front_end/models/source_map_scopes/NamesResolver.ts +5 -11
- package/front_end/models/stack_trace/Trie.ts +9 -0
- package/front_end/models/trace/lantern/types/Lantern.ts +1 -1
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +1 -0
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +1 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +120 -113
- package/front_end/panels/ai_assistance/PatchWidget.ts +9 -8
- package/front_end/panels/ai_assistance/SelectWorkspaceDialog.ts +2 -0
- package/front_end/panels/ai_assistance/components/ChatView.ts +29 -29
- package/front_end/panels/ai_assistance/components/UserActionRow.ts +1 -0
- package/front_end/panels/animation/AnimationTimeline.ts +1 -0
- package/front_end/panels/application/CookieItemsView.ts +1 -0
- package/front_end/panels/application/KeyValueStorageItemsView.ts +1 -0
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +2 -0
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +11 -5
- package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +2 -2
- package/front_end/panels/application/preloading/components/PreloadingString.ts +7 -5
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +22 -10
- package/front_end/panels/changes/CombinedDiffView.ts +1 -0
- package/front_end/{models/persistence → panels/common}/PersistenceUtils.ts +15 -17
- package/front_end/panels/common/common.ts +1 -0
- package/front_end/panels/console/ConsoleInsightTeaser.ts +369 -0
- package/front_end/panels/console/ConsolePanel.ts +2 -0
- package/front_end/panels/console/ConsolePrompt.ts +12 -2
- package/front_end/panels/console/ConsoleSidebar.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +12 -0
- package/front_end/panels/console/ConsoleViewMessage.ts +44 -0
- package/front_end/panels/{explain → console}/PromptBuilder.ts +12 -7
- package/front_end/panels/console/console-meta.ts +14 -0
- package/front_end/panels/console/console.ts +6 -0
- package/front_end/panels/console/consoleInsightTeaser.css +83 -0
- package/front_end/panels/coverage/CoverageListView.ts +29 -11
- package/front_end/panels/coverage/CoverageView.ts +292 -284
- package/front_end/panels/coverage/coverageView.css +17 -0
- package/front_end/panels/elements/ComputedStyleWidget.ts +1 -0
- package/front_end/panels/elements/LayoutPane.ts +1 -0
- package/front_end/panels/elements/NodeStackTraceWidget.ts +1 -0
- package/front_end/panels/elements/StylePropertyTreeElement.ts +5 -1
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +17 -0
- package/front_end/panels/emulation/DeviceModeView.ts +2 -0
- package/front_end/panels/explain/ActionDelegate.ts +4 -2
- package/front_end/panels/explain/components/ConsoleInsight.ts +14 -12
- package/front_end/panels/explain/explain-meta.ts +7 -0
- package/front_end/panels/explain/explain.ts +0 -1
- package/front_end/panels/js_timeline/js_timeline-meta.ts +1 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +2 -0
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +1 -0
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +1 -0
- package/front_end/panels/media/MainView.ts +1 -0
- package/front_end/panels/media/TickingFlameChart.ts +2 -0
- package/front_end/panels/network/BlockedURLsPane.ts +237 -108
- package/front_end/panels/network/EventSourceMessagesView.ts +1 -0
- package/front_end/panels/network/NetworkItemView.ts +1 -0
- package/front_end/panels/network/NetworkLogView.ts +9 -7
- package/front_end/panels/network/NetworkOverview.ts +1 -0
- package/front_end/panels/network/RequestCookiesView.ts +1 -0
- package/front_end/panels/network/RequestHTMLView.ts +1 -0
- package/front_end/panels/network/RequestInitiatorView.ts +1 -0
- package/front_end/panels/network/RequestPayloadView.ts +1 -0
- package/front_end/panels/network/RequestPreviewView.ts +1 -0
- package/front_end/panels/network/RequestResponseView.ts +1 -0
- package/front_end/panels/network/RequestTimingView.ts +2 -0
- package/front_end/panels/network/ResourceDirectSocketChunkView.ts +1 -0
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -0
- package/front_end/panels/network/components/RequestHeadersView.ts +2 -0
- package/front_end/panels/network/components/RequestTrustTokensView.ts +2 -0
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -0
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +2 -0
- package/front_end/panels/profiler/HeapSnapshotView.ts +7 -0
- package/front_end/panels/profiler/IsolateSelector.ts +1 -0
- package/front_end/panels/profiler/LiveHeapProfileView.ts +1 -0
- package/front_end/panels/profiler/ProfileView.ts +1 -0
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +1 -0
- package/front_end/panels/recorder/RecorderPanel.ts +2 -0
- package/front_end/panels/screencast/ScreencastView.ts +1 -0
- package/front_end/panels/search/SearchView.ts +1 -0
- package/front_end/panels/settings/AISettingsTab.ts +3 -3
- package/front_end/{models/persistence → panels/settings}/EditFileSystemView.ts +3 -6
- package/front_end/panels/settings/WorkspaceSettingsTab.ts +4 -1
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +2 -2
- package/front_end/panels/settings/settings.ts +2 -0
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +12 -0
- package/front_end/panels/sources/BreakpointsView.ts +1 -0
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -0
- package/front_end/{models/persistence → panels/sources}/PersistenceActions.ts +8 -12
- package/front_end/panels/sources/TabbedEditorContainer.ts +2 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +17 -2
- package/front_end/panels/sources/sources-meta.ts +15 -0
- package/front_end/panels/sources/sources.ts +2 -0
- package/front_end/panels/timeline/README.md +2 -2
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartView.ts +4 -3
- package/front_end/panels/timeline/TimelineLayersView.ts +1 -0
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +114 -37
- package/front_end/panels/timeline/TimelinePanel.ts +43 -62
- package/front_end/panels/timeline/TimelineTreeView.ts +1 -0
- package/front_end/panels/timeline/components/LiveMetricsView.ts +4 -8
- package/front_end/panels/timeline/components/Sidebar.ts +2 -0
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -1
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +7 -7
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +1 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +4 -4
- package/front_end/panels/utils/utils.ts +2 -1
- package/front_end/panels/web_audio/WebAudioView.ts +1 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/diff/diff_match_patch.js +1 -1
- package/front_end/third_party/lighthouse/README.chromium +2 -2
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1530 -2426
- package/front_end/third_party/lighthouse/locales/ar-XB.json +107 -455
- package/front_end/third_party/lighthouse/locales/ar.json +107 -455
- package/front_end/third_party/lighthouse/locales/bg.json +96 -444
- package/front_end/third_party/lighthouse/locales/ca.json +96 -444
- package/front_end/third_party/lighthouse/locales/cs.json +96 -444
- package/front_end/third_party/lighthouse/locales/da.json +96 -444
- package/front_end/third_party/lighthouse/locales/de.json +96 -444
- package/front_end/third_party/lighthouse/locales/el.json +96 -444
- package/front_end/third_party/lighthouse/locales/en-GB.json +96 -444
- package/front_end/third_party/lighthouse/locales/en-US.json +116 -467
- package/front_end/third_party/lighthouse/locales/en-XA.json +93 -441
- package/front_end/third_party/lighthouse/locales/en-XL.json +116 -467
- package/front_end/third_party/lighthouse/locales/es-419.json +96 -444
- package/front_end/third_party/lighthouse/locales/es.json +96 -444
- package/front_end/third_party/lighthouse/locales/fi.json +96 -444
- package/front_end/third_party/lighthouse/locales/fil.json +96 -444
- package/front_end/third_party/lighthouse/locales/fr.json +96 -444
- package/front_end/third_party/lighthouse/locales/he.json +118 -466
- package/front_end/third_party/lighthouse/locales/hi.json +96 -444
- package/front_end/third_party/lighthouse/locales/hr.json +100 -448
- package/front_end/third_party/lighthouse/locales/hu.json +96 -444
- package/front_end/third_party/lighthouse/locales/id.json +96 -444
- package/front_end/third_party/lighthouse/locales/it.json +96 -444
- package/front_end/third_party/lighthouse/locales/ja.json +96 -444
- package/front_end/third_party/lighthouse/locales/ko.json +97 -445
- package/front_end/third_party/lighthouse/locales/lt.json +96 -444
- package/front_end/third_party/lighthouse/locales/lv.json +97 -445
- package/front_end/third_party/lighthouse/locales/nl.json +96 -444
- package/front_end/third_party/lighthouse/locales/no.json +96 -444
- package/front_end/third_party/lighthouse/locales/pl.json +96 -444
- package/front_end/third_party/lighthouse/locales/pt-PT.json +96 -444
- package/front_end/third_party/lighthouse/locales/pt.json +97 -445
- package/front_end/third_party/lighthouse/locales/ro.json +97 -445
- package/front_end/third_party/lighthouse/locales/ru.json +96 -444
- package/front_end/third_party/lighthouse/locales/sk.json +96 -444
- package/front_end/third_party/lighthouse/locales/sl.json +96 -444
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +96 -444
- package/front_end/third_party/lighthouse/locales/sr.json +96 -444
- package/front_end/third_party/lighthouse/locales/sv.json +96 -444
- package/front_end/third_party/lighthouse/locales/ta.json +96 -444
- package/front_end/third_party/lighthouse/locales/te.json +97 -445
- package/front_end/third_party/lighthouse/locales/th.json +96 -444
- package/front_end/third_party/lighthouse/locales/tr.json +96 -444
- package/front_end/third_party/lighthouse/locales/uk.json +96 -444
- package/front_end/third_party/lighthouse/locales/vi.json +96 -444
- package/front_end/third_party/lighthouse/locales/zh-HK.json +96 -444
- package/front_end/third_party/lighthouse/locales/zh-TW.json +97 -445
- package/front_end/third_party/lighthouse/locales/zh.json +96 -444
- package/front_end/third_party/lighthouse/report/bundle.d.ts +8 -14
- package/front_end/third_party/lighthouse/report/bundle.js +10 -49
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
- package/front_end/third_party/web-vitals/README.chromium +5 -8
- package/front_end/third_party/web-vitals/package/README.md +191 -152
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/index.d.ts +0 -1
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/index.js +0 -1
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onCLS.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onCLS.js +45 -26
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.js +3 -3
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.d.ts +10 -10
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +307 -206
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +69 -49
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.js +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/index.d.ts +0 -1
- package/front_end/third_party/web-vitals/package/dist/modules/index.js +0 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +33 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +111 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/LCPEntryManager.d.ts +4 -0
- package/front_end/third_party/web-vitals/package/dist/modules/{attribution/deprecated.js → lib/LCPEntryManager.js} +6 -7
- package/front_end/third_party/web-vitals/package/dist/modules/lib/LayoutShiftManager.d.ts +6 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/LayoutShiftManager.js +44 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.js +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/getActivationStart.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getNavigationEntry.js +5 -7
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getSelector.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getSelector.js +9 -12
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.d.ts +1 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.js +52 -33
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +0 -2
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.js +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initUnique.d.ts +6 -0
- package/front_end/third_party/web-vitals/package/dist/modules/{deprecated.js → lib/initUnique.js} +11 -4
- package/front_end/third_party/web-vitals/package/dist/modules/lib/observe.js +3 -6
- package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/interactionCountPolyfill.js +6 -6
- package/front_end/third_party/web-vitals/package/dist/modules/lib/{whenIdle.d.ts → whenIdleOrHidden.d.ts} +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/{whenIdle.js → whenIdleOrHidden.js} +10 -8
- package/front_end/third_party/web-vitals/package/dist/modules/onCLS.js +17 -35
- package/front_end/third_party/web-vitals/package/dist/modules/onFCP.js +3 -5
- package/front_end/third_party/web-vitals/package/dist/modules/onINP.d.ts +9 -7
- package/front_end/third_party/web-vitals/package/dist/modules/onINP.js +27 -19
- package/front_end/third_party/web-vitals/package/dist/modules/onLCP.js +33 -26
- package/front_end/third_party/web-vitals/package/dist/modules/onTTFB.js +2 -4
- package/front_end/third_party/web-vitals/package/dist/modules/types/base.d.ts +6 -5
- package/front_end/third_party/web-vitals/package/dist/modules/types/cls.d.ts +5 -3
- package/front_end/third_party/web-vitals/package/dist/modules/types/inp.d.ts +80 -33
- package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +6 -2
- package/front_end/third_party/web-vitals/package/dist/modules/types.d.ts +28 -4
- package/front_end/third_party/web-vitals/package/dist/modules/types.js +0 -1
- package/front_end/third_party/web-vitals/package/package.json +4 -10
- package/front_end/third_party/web-vitals/package/src/attribution/index.ts +0 -1
- package/front_end/third_party/web-vitals/package/src/attribution/onCLS.ts +58 -33
- package/front_end/third_party/web-vitals/package/src/attribution/onFCP.ts +4 -4
- package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +382 -258
- package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +96 -69
- package/front_end/third_party/web-vitals/package/src/attribution/onTTFB.ts +3 -3
- package/front_end/third_party/web-vitals/package/src/index.ts +0 -1
- package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +146 -0
- package/front_end/third_party/web-vitals/package/src/{attribution/deprecated.ts → lib/LCPEntryManager.ts} +6 -9
- package/front_end/third_party/web-vitals/package/src/lib/LayoutShiftManager.ts +50 -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/getActivationStart.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/getNavigationEntry.ts +5 -8
- package/front_end/third_party/web-vitals/package/src/lib/getSelector.ts +12 -12
- package/front_end/third_party/web-vitals/package/src/lib/getVisibilityWatcher.ts +57 -35
- package/front_end/third_party/web-vitals/package/src/lib/initMetric.ts +2 -2
- package/front_end/third_party/web-vitals/package/src/{deprecated.ts → lib/initUnique.ts} +14 -8
- package/front_end/third_party/web-vitals/package/src/lib/observe.ts +3 -11
- package/front_end/third_party/web-vitals/package/src/lib/polyfills/interactionCountPolyfill.ts +12 -6
- package/front_end/third_party/web-vitals/package/src/lib/{whenIdle.ts → whenIdleOrHidden.ts} +10 -8
- package/front_end/third_party/web-vitals/package/src/onCLS.ts +17 -38
- package/front_end/third_party/web-vitals/package/src/onFCP.ts +3 -6
- package/front_end/third_party/web-vitals/package/src/onINP.ts +33 -28
- package/front_end/third_party/web-vitals/package/src/onLCP.ts +36 -29
- package/front_end/third_party/web-vitals/package/src/onTTFB.ts +2 -5
- package/front_end/third_party/web-vitals/package/src/types/base.ts +5 -5
- package/front_end/third_party/web-vitals/package/src/types/cls.ts +5 -3
- package/front_end/third_party/web-vitals/package/src/types/inp.ts +88 -33
- package/front_end/third_party/web-vitals/package/src/types/lcp.ts +6 -2
- package/front_end/third_party/web-vitals/package/src/types.ts +47 -4
- package/front_end/third_party/web-vitals/patches/0001-Add-onEachInteraction-to-onINP-options.patch +75 -0
- package/front_end/third_party/web-vitals/rebuild.sh +32 -18
- package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +5 -10
- package/front_end/third_party/web-vitals/web-vitals.ts +0 -2
- package/front_end/ui/components/docs/console_insight/basic.ts +3 -2
- package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +2 -0
- package/front_end/ui/components/text_editor/TextEditor.ts +0 -2
- package/front_end/ui/legacy/InspectorView.ts +2 -0
- package/front_end/ui/legacy/ListWidget.ts +2 -2
- package/front_end/ui/legacy/SplitWidget.ts +2 -0
- package/front_end/ui/legacy/TabbedPane.ts +1 -0
- package/front_end/ui/legacy/TargetCrashedScreen.ts +1 -0
- package/front_end/ui/legacy/UIUtils.ts +8 -19
- package/front_end/ui/legacy/ViewManager.ts +1 -0
- package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +7 -20
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -0
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +1 -0
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +1 -0
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -0
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -0
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -0
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -0
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +1 -0
- package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +2 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +25 -0
- package/mcp/README.md +7 -0
- package/mcp/mcp.ts +8 -0
- package/package.json +1 -1
- package/front_end/models/live-metrics/web-vitals-injected/OnEachInteraction.ts +0 -34
- package/front_end/third_party/web-vitals/package/attribution.d.ts +0 -16
- package/front_end/third_party/web-vitals/package/attribution.js +0 -18
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/deprecated.d.ts +0 -7
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFID.d.ts +0 -11
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFID.js +0 -46
- package/front_end/third_party/web-vitals/package/dist/modules/deprecated.d.ts +0 -5
- package/front_end/third_party/web-vitals/package/dist/modules/lib/interactions.d.ts +0 -31
- package/front_end/third_party/web-vitals/package/dist/modules/lib/interactions.js +0 -107
- package/front_end/third_party/web-vitals/package/dist/modules/lib/onHidden.d.ts +0 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/onHidden.js +0 -22
- package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/firstInputPolyfill.d.ts +0 -7
- package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/firstInputPolyfill.js +0 -147
- package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/getFirstHiddenTimePolyfill.d.ts +0 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/getFirstHiddenTimePolyfill.js +0 -25
- package/front_end/third_party/web-vitals/package/dist/modules/onFID.d.ts +0 -13
- package/front_end/third_party/web-vitals/package/dist/modules/onFID.js +0 -70
- package/front_end/third_party/web-vitals/package/dist/modules/types/fid.d.ts +0 -46
- package/front_end/third_party/web-vitals/package/dist/modules/types/fid.js +0 -16
- package/front_end/third_party/web-vitals/package/src/attribution/onFID.ts +0 -62
- package/front_end/third_party/web-vitals/package/src/lib/interactions.ts +0 -139
- package/front_end/third_party/web-vitals/package/src/lib/onHidden.ts +0 -23
- package/front_end/third_party/web-vitals/package/src/lib/polyfills/firstInputPolyfill.ts +0 -174
- package/front_end/third_party/web-vitals/package/src/onFID.ts +0 -105
- package/front_end/third_party/web-vitals/package/src/types/fid.ts +0 -65
- package/front_end/ui/components/text_editor/textEditor.css +0 -18
- package/front_end/ui/legacy/inlineButton.css +0 -22
- /package/front_end/entrypoints/{rehydrated_devtools_app/rehydrated_devtools_app.ts → trace_app/trace_app.ts} +0 -0
- /package/front_end/{models/persistence → panels/settings}/editFileSystemView.css +0 -0
|
@@ -2346,7 +2346,7 @@ export const NativeFunctions = [
|
|
|
2346
2346
|
{
|
|
2347
2347
|
name: "clear",
|
|
2348
2348
|
signatures: [["mask"]],
|
|
2349
|
-
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
2349
|
+
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
2350
2350
|
},
|
|
2351
2351
|
{
|
|
2352
2352
|
name: "adoptNode",
|
|
@@ -3370,12 +3370,12 @@ export const NativeFunctions = [
|
|
|
3370
3370
|
{
|
|
3371
3371
|
name: "disable",
|
|
3372
3372
|
signatures: [["cap"]],
|
|
3373
|
-
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
3373
|
+
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
3374
3374
|
},
|
|
3375
3375
|
{
|
|
3376
3376
|
name: "enable",
|
|
3377
3377
|
signatures: [["cap"]],
|
|
3378
|
-
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
3378
|
+
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
3379
3379
|
},
|
|
3380
3380
|
{
|
|
3381
3381
|
name: "setHeaderValue",
|
|
@@ -4556,7 +4556,7 @@ export const NativeFunctions = [
|
|
|
4556
4556
|
{
|
|
4557
4557
|
name: "bufferData",
|
|
4558
4558
|
signatures: [["target","size","usage"],["target","data","usage"]],
|
|
4559
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4559
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4560
4560
|
},
|
|
4561
4561
|
{
|
|
4562
4562
|
name: "bufferData",
|
|
@@ -4571,7 +4571,7 @@ export const NativeFunctions = [
|
|
|
4571
4571
|
{
|
|
4572
4572
|
name: "bufferSubData",
|
|
4573
4573
|
signatures: [["target","offset","data"]],
|
|
4574
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4574
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4575
4575
|
},
|
|
4576
4576
|
{
|
|
4577
4577
|
name: "bufferSubData",
|
|
@@ -4586,7 +4586,7 @@ export const NativeFunctions = [
|
|
|
4586
4586
|
{
|
|
4587
4587
|
name: "compressedTexImage2D",
|
|
4588
4588
|
signatures: [["target","level","internalformat","width","height","border","data"]],
|
|
4589
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4589
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4590
4590
|
},
|
|
4591
4591
|
{
|
|
4592
4592
|
name: "compressedTexImage2D",
|
|
@@ -4601,7 +4601,7 @@ export const NativeFunctions = [
|
|
|
4601
4601
|
{
|
|
4602
4602
|
name: "compressedTexSubImage2D",
|
|
4603
4603
|
signatures: [["target","level","xoffset","yoffset","width","height","format","data"]],
|
|
4604
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4604
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4605
4605
|
},
|
|
4606
4606
|
{
|
|
4607
4607
|
name: "compressedTexSubImage2D",
|
|
@@ -4616,7 +4616,7 @@ export const NativeFunctions = [
|
|
|
4616
4616
|
{
|
|
4617
4617
|
name: "readPixels",
|
|
4618
4618
|
signatures: [["x","y","width","height","format","type","pixels"]],
|
|
4619
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4619
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4620
4620
|
},
|
|
4621
4621
|
{
|
|
4622
4622
|
name: "readPixels",
|
|
@@ -4636,7 +4636,7 @@ export const NativeFunctions = [
|
|
|
4636
4636
|
{
|
|
4637
4637
|
name: "texImage2D",
|
|
4638
4638
|
signatures: [["target","level","internalformat","format","type","pixels"],["target","level","internalformat","format","type","image"],["target","level","internalformat","format","type","canvas"],["target","level","internalformat","format","type","offscreenCanvas"],["target","level","internalformat","format","type","video"],["target","level","internalformat","format","type","bitmap"],["target","level","internalformat","format","type","frame"],["target","level","internalformat","width","height","border","format","type","pixels"]],
|
|
4639
|
-
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4639
|
+
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4640
4640
|
},
|
|
4641
4641
|
{
|
|
4642
4642
|
name: "texImage2D",
|
|
@@ -4656,7 +4656,7 @@ export const NativeFunctions = [
|
|
|
4656
4656
|
{
|
|
4657
4657
|
name: "texSubImage2D",
|
|
4658
4658
|
signatures: [["target","level","xoffset","yoffset","format","type","pixels"],["target","level","xoffset","yoffset","format","type","image"],["target","level","xoffset","yoffset","format","type","canvas"],["target","level","xoffset","yoffset","format","type","offscreenCanvas"],["target","level","xoffset","yoffset","format","type","video"],["target","level","xoffset","yoffset","format","type","bitmap"],["target","level","xoffset","yoffset","format","type","frame"],["target","level","xoffset","yoffset","width","height","format","type","pixels"]],
|
|
4659
|
-
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4659
|
+
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4660
4660
|
},
|
|
4661
4661
|
{
|
|
4662
4662
|
name: "texSubImage2D",
|
|
@@ -4671,7 +4671,7 @@ export const NativeFunctions = [
|
|
|
4671
4671
|
{
|
|
4672
4672
|
name: "uniform1fv",
|
|
4673
4673
|
signatures: [["location","v"]],
|
|
4674
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4674
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4675
4675
|
},
|
|
4676
4676
|
{
|
|
4677
4677
|
name: "uniform1fv",
|
|
@@ -4686,7 +4686,7 @@ export const NativeFunctions = [
|
|
|
4686
4686
|
{
|
|
4687
4687
|
name: "uniform1iv",
|
|
4688
4688
|
signatures: [["location","v"]],
|
|
4689
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4689
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4690
4690
|
},
|
|
4691
4691
|
{
|
|
4692
4692
|
name: "uniform1iv",
|
|
@@ -4701,7 +4701,7 @@ export const NativeFunctions = [
|
|
|
4701
4701
|
{
|
|
4702
4702
|
name: "uniform2fv",
|
|
4703
4703
|
signatures: [["location","v"]],
|
|
4704
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4704
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4705
4705
|
},
|
|
4706
4706
|
{
|
|
4707
4707
|
name: "uniform2fv",
|
|
@@ -4716,7 +4716,7 @@ export const NativeFunctions = [
|
|
|
4716
4716
|
{
|
|
4717
4717
|
name: "uniform2iv",
|
|
4718
4718
|
signatures: [["location","v"]],
|
|
4719
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4719
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4720
4720
|
},
|
|
4721
4721
|
{
|
|
4722
4722
|
name: "uniform2iv",
|
|
@@ -4731,7 +4731,7 @@ export const NativeFunctions = [
|
|
|
4731
4731
|
{
|
|
4732
4732
|
name: "uniform3fv",
|
|
4733
4733
|
signatures: [["location","v"]],
|
|
4734
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4734
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4735
4735
|
},
|
|
4736
4736
|
{
|
|
4737
4737
|
name: "uniform3fv",
|
|
@@ -4746,7 +4746,7 @@ export const NativeFunctions = [
|
|
|
4746
4746
|
{
|
|
4747
4747
|
name: "uniform3iv",
|
|
4748
4748
|
signatures: [["location","v"]],
|
|
4749
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4749
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4750
4750
|
},
|
|
4751
4751
|
{
|
|
4752
4752
|
name: "uniform3iv",
|
|
@@ -4761,7 +4761,7 @@ export const NativeFunctions = [
|
|
|
4761
4761
|
{
|
|
4762
4762
|
name: "uniform4fv",
|
|
4763
4763
|
signatures: [["location","v"]],
|
|
4764
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4764
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4765
4765
|
},
|
|
4766
4766
|
{
|
|
4767
4767
|
name: "uniform4fv",
|
|
@@ -4776,7 +4776,7 @@ export const NativeFunctions = [
|
|
|
4776
4776
|
{
|
|
4777
4777
|
name: "uniform4iv",
|
|
4778
4778
|
signatures: [["location","v"]],
|
|
4779
|
-
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4779
|
+
receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4780
4780
|
},
|
|
4781
4781
|
{
|
|
4782
4782
|
name: "uniform4iv",
|
|
@@ -4796,7 +4796,7 @@ export const NativeFunctions = [
|
|
|
4796
4796
|
{
|
|
4797
4797
|
name: "uniformMatrix2fv",
|
|
4798
4798
|
signatures: [["location","transpose","array"]],
|
|
4799
|
-
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4799
|
+
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4800
4800
|
},
|
|
4801
4801
|
{
|
|
4802
4802
|
name: "uniformMatrix2fv",
|
|
@@ -4816,7 +4816,7 @@ export const NativeFunctions = [
|
|
|
4816
4816
|
{
|
|
4817
4817
|
name: "uniformMatrix3fv",
|
|
4818
4818
|
signatures: [["location","transpose","array"]],
|
|
4819
|
-
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4819
|
+
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4820
4820
|
},
|
|
4821
4821
|
{
|
|
4822
4822
|
name: "uniformMatrix3fv",
|
|
@@ -4836,7 +4836,7 @@ export const NativeFunctions = [
|
|
|
4836
4836
|
{
|
|
4837
4837
|
name: "uniformMatrix4fv",
|
|
4838
4838
|
signatures: [["location","transpose","array"]],
|
|
4839
|
-
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
4839
|
+
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
4840
4840
|
},
|
|
4841
4841
|
{
|
|
4842
4842
|
name: "uniformMatrix4fv",
|
|
@@ -5039,7 +5039,7 @@ export const NativeFunctions = [
|
|
|
5039
5039
|
{
|
|
5040
5040
|
name: "getParameter",
|
|
5041
5041
|
signatures: [["pname"]],
|
|
5042
|
-
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","
|
|
5042
|
+
receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
|
|
5043
5043
|
},
|
|
5044
5044
|
{
|
|
5045
5045
|
name: "getParameter",
|
|
@@ -6083,7 +6083,7 @@ export const NativeFunctions = [
|
|
|
6083
6083
|
},
|
|
6084
6084
|
{
|
|
6085
6085
|
name: "addAnimation",
|
|
6086
|
-
signatures: [["animation","
|
|
6086
|
+
signatures: [["animation","activateBehavior","?deactivateBehavior"]]
|
|
6087
6087
|
},
|
|
6088
6088
|
{
|
|
6089
6089
|
name: "removeAnimation",
|
|
@@ -6606,10 +6606,6 @@ export const NativeFunctions = [
|
|
|
6606
6606
|
name: "when",
|
|
6607
6607
|
signatures: [["type","?options"]]
|
|
6608
6608
|
},
|
|
6609
|
-
{
|
|
6610
|
-
name: "Event",
|
|
6611
|
-
signatures: [["type","?eventInitDict"]]
|
|
6612
|
-
},
|
|
6613
6609
|
{
|
|
6614
6610
|
name: "setFormControlRange",
|
|
6615
6611
|
signatures: [["element","start","end"]]
|
|
@@ -8443,6 +8439,14 @@ export const NativeFunctions = [
|
|
|
8443
8439
|
name: "sendPackets",
|
|
8444
8440
|
signatures: [["packets"]]
|
|
8445
8441
|
},
|
|
8442
|
+
{
|
|
8443
|
+
name: "addRemoteCandidate",
|
|
8444
|
+
signatures: [["candidate"]]
|
|
8445
|
+
},
|
|
8446
|
+
{
|
|
8447
|
+
name: "setRemoteDtlsParameters",
|
|
8448
|
+
signatures: [["params"]]
|
|
8449
|
+
},
|
|
8446
8450
|
{
|
|
8447
8451
|
name: "revoke",
|
|
8448
8452
|
signatures: [["permission"]]
|
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
import * as WebVitals from '../../../third_party/web-vitals/web-vitals.js';
|
|
6
6
|
import type * as Trace from '../../trace/trace.js';
|
|
7
7
|
|
|
8
|
-
import * as OnEachInteraction from './OnEachInteraction.js';
|
|
9
8
|
import * as OnEachLayoutShift from './OnEachLayoutShift.js';
|
|
10
9
|
import * as Spec from './spec/spec.js';
|
|
11
10
|
|
|
12
11
|
const {onLCP, onCLS, onINP} = WebVitals.Attribution;
|
|
13
|
-
const {onEachInteraction} = OnEachInteraction;
|
|
14
12
|
const {onEachLayoutShift} = OnEachLayoutShift;
|
|
15
13
|
|
|
16
14
|
declare const window: Window&{
|
|
@@ -184,30 +182,7 @@ function initialize(): void {
|
|
|
184
182
|
sendEventToDevTools(event);
|
|
185
183
|
}, {reportAllChanges: true});
|
|
186
184
|
|
|
187
|
-
|
|
188
|
-
// TODO(b/376777343): Remove this line when `interactionTargetElement` is removed from web-vitals.js
|
|
189
|
-
// The `metric` emitted in this callback is stored within web-vitals.js closures.
|
|
190
|
-
// This can lead to `interactionTargetElement` persisting in memory after it has been removed.
|
|
191
|
-
// We don't use `interactionTargetElement` here, and `onEachInteraction` will interaction
|
|
192
|
-
// elements separately so it is safe to remove here and prevent memory leaks.
|
|
193
|
-
metric.attribution.interactionTargetElement = undefined;
|
|
194
|
-
|
|
195
|
-
const event: Spec.InpChangeEvent = {
|
|
196
|
-
name: 'INP',
|
|
197
|
-
value: metric.value as Trace.Types.Timing.Milli,
|
|
198
|
-
phases: {
|
|
199
|
-
inputDelay: metric.attribution.inputDelay as Trace.Types.Timing.Milli,
|
|
200
|
-
processingDuration: metric.attribution.processingDuration as Trace.Types.Timing.Milli,
|
|
201
|
-
presentationDelay: metric.attribution.presentationDelay as Trace.Types.Timing.Milli,
|
|
202
|
-
},
|
|
203
|
-
startTime: metric.entries[0].startTime,
|
|
204
|
-
entryGroupId: metric.entries[0].interactionId as Spec.InteractionEntryGroupId,
|
|
205
|
-
interactionType: metric.attribution.interactionType,
|
|
206
|
-
};
|
|
207
|
-
sendEventToDevTools(event);
|
|
208
|
-
}, {reportAllChanges: true, durationThreshold: 0});
|
|
209
|
-
|
|
210
|
-
onEachInteraction(interaction => {
|
|
185
|
+
function onEachInteraction(interaction: WebVitals.INPMetricWithAttribution): void {
|
|
211
186
|
// Multiple `InteractionEntry` events can be emitted for the same `uniqueInteractionId`
|
|
212
187
|
// However, it is easier to combine these entries in the DevTools client rather than in
|
|
213
188
|
// this injected code.
|
|
@@ -228,11 +203,38 @@ function initialize(): void {
|
|
|
228
203
|
longAnimationFrameEntries: limitScripts(
|
|
229
204
|
interaction.attribution.longAnimationFrameEntries.slice(-Spec.LOAF_LIMIT).map(loaf => loaf.toJSON())),
|
|
230
205
|
};
|
|
231
|
-
const
|
|
232
|
-
if (
|
|
233
|
-
event.nodeIndex =
|
|
206
|
+
const target = interaction.attribution.interactionTarget;
|
|
207
|
+
if (target) {
|
|
208
|
+
event.nodeIndex = Number(target);
|
|
234
209
|
}
|
|
235
210
|
sendEventToDevTools(event);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
onINP(metric => {
|
|
214
|
+
const event: Spec.InpChangeEvent = {
|
|
215
|
+
name: 'INP',
|
|
216
|
+
value: metric.value as Trace.Types.Timing.Milli,
|
|
217
|
+
phases: {
|
|
218
|
+
inputDelay: metric.attribution.inputDelay as Trace.Types.Timing.Milli,
|
|
219
|
+
processingDuration: metric.attribution.processingDuration as Trace.Types.Timing.Milli,
|
|
220
|
+
presentationDelay: metric.attribution.presentationDelay as Trace.Types.Timing.Milli,
|
|
221
|
+
},
|
|
222
|
+
startTime: metric.entries[0].startTime,
|
|
223
|
+
entryGroupId: metric.entries[0].interactionId as Spec.InteractionEntryGroupId,
|
|
224
|
+
interactionType: metric.attribution.interactionType,
|
|
225
|
+
};
|
|
226
|
+
sendEventToDevTools(event);
|
|
227
|
+
}, {
|
|
228
|
+
reportAllChanges: true,
|
|
229
|
+
durationThreshold: 0,
|
|
230
|
+
onEachInteraction,
|
|
231
|
+
generateTarget(el) {
|
|
232
|
+
if (el) {
|
|
233
|
+
return String(establishNodeIndex(el));
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
return undefined;
|
|
237
|
+
},
|
|
236
238
|
});
|
|
237
239
|
|
|
238
240
|
onEachLayoutShift(layoutShift => {
|
|
@@ -7,9 +7,6 @@ import * as Host from '../../core/host/host.js';
|
|
|
7
7
|
import * as Platform from '../../core/platform/platform.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
9
|
import * as Protocol from '../../generated/protocol.js';
|
|
10
|
-
// TODO(crbug.com/442509324): remove UI dependency
|
|
11
|
-
// eslint-disable-next-line rulesdir/no-imports-in-directory
|
|
12
|
-
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
10
|
import * as Breakpoints from '../breakpoints/breakpoints.js';
|
|
14
11
|
import * as TextUtils from '../text_utils/text_utils.js';
|
|
15
12
|
import * as Workspace from '../workspace/workspace.js';
|
|
@@ -400,8 +397,7 @@ export class NetworkPersistenceManager extends Common.ObjectWrapper.ObjectWrappe
|
|
|
400
397
|
// No overrides folder, set it up
|
|
401
398
|
if (this.#shouldPromptSaveForOverridesDialog(uiSourceCode)) {
|
|
402
399
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.OverrideContentContextMenuSetup);
|
|
403
|
-
await new Promise<void>(
|
|
404
|
-
resolve => UI.InspectorView.InspectorView.instance().displaySelectOverrideFolderInfobar(resolve));
|
|
400
|
+
await new Promise<void>(resolve => this.dispatchEventToListeners(Events.LOCAL_OVERRIDES_REQUESTED, resolve));
|
|
405
401
|
await IsolatedFileSystemManager.instance().addFileSystem('overrides');
|
|
406
402
|
}
|
|
407
403
|
|
|
@@ -980,12 +976,14 @@ export const enum Events {
|
|
|
980
976
|
PROJECT_CHANGED = 'ProjectChanged',
|
|
981
977
|
REQUEST_FOR_HEADER_OVERRIDES_FILE_CHANGED = 'RequestsForHeaderOverridesFileChanged',
|
|
982
978
|
LOCAL_OVERRIDES_PROJECT_UPDATED = 'LocalOverridesProjectUpdated',
|
|
979
|
+
LOCAL_OVERRIDES_REQUESTED = 'LocalOverridesRequested',
|
|
983
980
|
}
|
|
984
981
|
|
|
985
982
|
export interface EventTypes {
|
|
986
983
|
[Events.PROJECT_CHANGED]: Workspace.Workspace.Project|null;
|
|
987
984
|
[Events.REQUEST_FOR_HEADER_OVERRIDES_FILE_CHANGED]: Workspace.UISourceCode.UISourceCode;
|
|
988
985
|
[Events.LOCAL_OVERRIDES_PROJECT_UPDATED]: boolean;
|
|
986
|
+
[Events.LOCAL_OVERRIDES_REQUESTED]: () => void;
|
|
989
987
|
}
|
|
990
988
|
|
|
991
989
|
export interface HeaderOverride {
|
|
@@ -6,14 +6,12 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as Host from '../../core/host/host.js';
|
|
7
7
|
import * as Platform from '../../core/platform/platform.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
|
-
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
10
9
|
import * as Bindings from '../bindings/bindings.js';
|
|
11
10
|
import * as BreakpointManager from '../breakpoints/breakpoints.js';
|
|
12
11
|
import * as TextUtils from '../text_utils/text_utils.js';
|
|
13
12
|
import * as Workspace from '../workspace/workspace.js';
|
|
14
13
|
|
|
15
14
|
import {Automapping, type AutomappingStatus} from './Automapping.js';
|
|
16
|
-
import {LinkDecorator} from './PersistenceUtils.js';
|
|
17
15
|
|
|
18
16
|
let persistenceInstance: PersistenceImpl;
|
|
19
17
|
|
|
@@ -33,9 +31,6 @@ export class PersistenceImpl extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
33
31
|
this.#breakpointManager = breakpointManager;
|
|
34
32
|
this.#breakpointManager.addUpdateBindingsCallback(this.#setupBindings.bind(this));
|
|
35
33
|
|
|
36
|
-
const linkDecorator = new LinkDecorator(this);
|
|
37
|
-
Components.Linkifier.Linkifier.setLinkDecorator(linkDecorator);
|
|
38
|
-
|
|
39
34
|
this.#mapping = new Automapping(this.#workspace, this.onStatusAdded.bind(this), this.onStatusRemoved.bind(this));
|
|
40
35
|
}
|
|
41
36
|
|
|
@@ -4,13 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
|
-
import * as SDK from '../../core/sdk/sdk.js';
|
|
8
|
-
import * as Workspace from '../../models/workspace/workspace.js';
|
|
9
|
-
// TODO(crbug.com/442509324): remove UI dependency
|
|
10
|
-
// eslint-disable-next-line rulesdir/no-imports-in-directory
|
|
11
|
-
import * as UI from '../../ui/legacy/legacy.js';
|
|
12
|
-
|
|
13
|
-
import type * as Persistence from './persistence.js';
|
|
14
7
|
|
|
15
8
|
const UIStrings = {
|
|
16
9
|
/**
|
|
@@ -50,15 +43,6 @@ const UIStrings = {
|
|
|
50
43
|
const str_ = i18n.i18n.registerUIStrings('models/persistence/persistence-meta.ts', UIStrings);
|
|
51
44
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
52
45
|
|
|
53
|
-
let loadedPersistenceModule: (typeof Persistence|undefined);
|
|
54
|
-
|
|
55
|
-
async function loadPersistenceModule(): Promise<typeof Persistence> {
|
|
56
|
-
if (!loadedPersistenceModule) {
|
|
57
|
-
loadedPersistenceModule = await import('./persistence.js');
|
|
58
|
-
}
|
|
59
|
-
return loadedPersistenceModule;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
46
|
Common.Settings.registerSettingExtension({
|
|
63
47
|
category: Common.Settings.SettingCategory.PERSISTENCE,
|
|
64
48
|
title: i18nLazyString(UIStrings.enableLocalOverrides),
|
|
@@ -83,18 +67,3 @@ Common.Settings.registerSettingExtension({
|
|
|
83
67
|
},
|
|
84
68
|
],
|
|
85
69
|
});
|
|
86
|
-
|
|
87
|
-
UI.ContextMenu.registerProvider({
|
|
88
|
-
contextTypes() {
|
|
89
|
-
return [
|
|
90
|
-
Workspace.UISourceCode.UISourceCode,
|
|
91
|
-
SDK.Resource.Resource,
|
|
92
|
-
SDK.NetworkRequest.NetworkRequest,
|
|
93
|
-
];
|
|
94
|
-
},
|
|
95
|
-
async loadProvider() {
|
|
96
|
-
const Persistence = await loadPersistenceModule();
|
|
97
|
-
return new Persistence.PersistenceActions.ContextMenuProvider();
|
|
98
|
-
},
|
|
99
|
-
experiment: undefined,
|
|
100
|
-
});
|
|
@@ -5,27 +5,21 @@
|
|
|
5
5
|
import * as Automapping from './Automapping.js';
|
|
6
6
|
import * as AutomaticFileSystemManager from './AutomaticFileSystemManager.js';
|
|
7
7
|
import * as AutomaticFileSystemWorkspaceBinding from './AutomaticFileSystemWorkspaceBinding.js';
|
|
8
|
-
import * as EditFileSystemView from './EditFileSystemView.js';
|
|
9
8
|
import * as FileSystemWorkspaceBinding from './FileSystemWorkspaceBinding.js';
|
|
10
9
|
import * as IsolatedFileSystem from './IsolatedFileSystem.js';
|
|
11
10
|
import * as IsolatedFileSystemManager from './IsolatedFileSystemManager.js';
|
|
12
11
|
import * as NetworkPersistenceManager from './NetworkPersistenceManager.js';
|
|
13
|
-
import * as PersistenceActions from './PersistenceActions.js';
|
|
14
12
|
import * as Persistence from './PersistenceImpl.js';
|
|
15
|
-
import * as PersistenceUtils from './PersistenceUtils.js';
|
|
16
13
|
import * as PlatformFileSystem from './PlatformFileSystem.js';
|
|
17
14
|
|
|
18
15
|
export {
|
|
19
16
|
Automapping,
|
|
20
17
|
AutomaticFileSystemManager,
|
|
21
18
|
AutomaticFileSystemWorkspaceBinding,
|
|
22
|
-
EditFileSystemView,
|
|
23
19
|
FileSystemWorkspaceBinding,
|
|
24
20
|
IsolatedFileSystem,
|
|
25
21
|
IsolatedFileSystemManager,
|
|
26
22
|
NetworkPersistenceManager,
|
|
27
23
|
Persistence,
|
|
28
|
-
PersistenceActions,
|
|
29
|
-
PersistenceUtils,
|
|
30
24
|
PlatformFileSystem,
|
|
31
25
|
};
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
|
+
import * as Root from '../../core/root/root.js';
|
|
6
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
7
8
|
import * as Protocol from '../../generated/protocol.js';
|
|
8
9
|
import * as Bindings from '../bindings/bindings.js';
|
|
@@ -48,16 +49,7 @@ scopeTree:
|
|
|
48
49
|
return null;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
if (!text) {
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const scopeTree = await SDK.ScopeTreeCache.scopeTreeForScript(script);
|
|
57
|
-
if (!scopeTree) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
return {scopeTree, text};
|
|
52
|
+
return await SDK.ScopeTreeCache.scopeTreeForScript(script);
|
|
61
53
|
};
|
|
62
54
|
|
|
63
55
|
/**
|
|
@@ -379,7 +371,9 @@ export const resolveScopeChain =
|
|
|
379
371
|
return scopeChain;
|
|
380
372
|
}
|
|
381
373
|
|
|
382
|
-
scopeChain =
|
|
374
|
+
scopeChain = Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.USE_SOURCE_MAP_SCOPES) ?
|
|
375
|
+
callFrame.script.sourceMap()?.resolveScopeChain(callFrame) :
|
|
376
|
+
null;
|
|
383
377
|
if (scopeChain) {
|
|
384
378
|
return scopeChain;
|
|
385
379
|
}
|
|
@@ -17,6 +17,15 @@ export interface RawFrame {
|
|
|
17
17
|
readonly columnNumber: number;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @returns whether the frame is a V8 builtin frame e.g. Array.map. Builtin frames
|
|
22
|
+
* have neither source position nor script or URL. They only have a name.
|
|
23
|
+
*/
|
|
24
|
+
export function isBuiltinFrame(rawFrame: RawFrame): boolean {
|
|
25
|
+
return rawFrame.lineNumber === -1 && rawFrame.columnNumber === -1 && !Boolean(rawFrame.scriptId) &&
|
|
26
|
+
!Boolean(rawFrame.url);
|
|
27
|
+
}
|
|
28
|
+
|
|
20
29
|
interface FrameNodeBase<ChildT, ParentT> {
|
|
21
30
|
readonly parent: ParentT;
|
|
22
31
|
readonly children: ChildT[];
|
|
@@ -50,7 +50,7 @@ export interface Trace {
|
|
|
50
50
|
}
|
|
51
51
|
export type ResourcePriority = ('VeryLow'|'Low'|'Medium'|'High'|'VeryHigh');
|
|
52
52
|
export type ResourceType = keyof typeof NetworkRequestTypes;
|
|
53
|
-
type InitiatorType = ('parser'|'script'|'preload'|'SignedExchange'|'preflight'|'other');
|
|
53
|
+
type InitiatorType = ('parser'|'script'|'preload'|'SignedExchange'|'preflight'|'FedCM'|'other');
|
|
54
54
|
export type ResourceTiming = Protocol.Network.ResourceTiming;
|
|
55
55
|
export interface CallStack {
|
|
56
56
|
callFrames: Array<{
|
|
@@ -122,6 +122,7 @@ export class AccessibilitySidebarView extends UI.ThrottledWidget.ThrottledWidget
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
override willHide(): void {
|
|
125
|
+
super.willHide();
|
|
125
126
|
SDK.TargetManager.TargetManager.instance().removeModelListener(
|
|
126
127
|
SDK.DOMModel.DOMModel, SDK.DOMModel.Events.AttrModified, this.onNodeChange, this);
|
|
127
128
|
SDK.TargetManager.TargetManager.instance().removeModelListener(
|