chrome-devtools-frontend 1.0.1526203 → 1.0.1528866
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/i18n/i18nImpl.ts +5 -0
- package/front_end/core/protocol_client/protocol_client.ts +1 -1
- package/front_end/core/root/Runtime.ts +28 -4
- package/front_end/core/sdk/CSSMatchedStyles.ts +50 -7
- package/front_end/core/sdk/CSSRule.ts +35 -6
- package/front_end/core/sdk/ChildTargetManager.ts +2 -0
- 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 +214 -31
- 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 +37 -11
- package/front_end/core/sdk/SourceMapManager.ts +13 -2
- package/front_end/core/sdk/SourceMapScopesInfo.ts +17 -0
- 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 +20 -25
- package/front_end/generated/InspectorBackendCommands.js +4 -3
- package/front_end/generated/protocol-mapping.d.ts +3 -1
- package/front_end/generated/protocol-proxy-api.d.ts +3 -1
- package/front_end/generated/protocol.ts +17 -3
- package/front_end/models/ai_assistance/BuiltInAi.ts +111 -0
- 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 +23 -27
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +31 -29
- package/front_end/models/persistence/EditFileSystemView.ts +1 -0
- 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/panels/console/ConsoleInsightTeaser.ts +106 -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 +27 -0
- package/front_end/panels/{explain → console}/PromptBuilder.ts +12 -7
- package/front_end/panels/console/console.ts +6 -0
- package/front_end/panels/console/consoleInsightTeaser.css +55 -0
- package/front_end/panels/coverage/CoverageListView.ts +141 -277
- package/front_end/panels/coverage/CoverageView.ts +330 -324
- 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 +1 -2
- package/front_end/panels/explain/components/ConsoleInsight.ts +14 -12
- 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 +12 -19
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +27 -43
- 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 +111 -85
- 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 +2 -1
- 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/panels/settings/WorkspaceSettingsTab.ts +2 -0
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +2 -2
- 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/panels/sources/UISourceCodeFrame.ts +17 -2
- 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/web_audio/WebAudioView.ts +1 -0
- package/front_end/third_party/chromium/README.chromium +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/buttons/Button.ts +1 -1
- 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/EmptyWidget.ts +11 -1
- package/front_end/ui/legacy/InspectorView.ts +2 -0
- 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/Toolbar.ts +25 -4
- package/front_end/ui/legacy/UIUtils.ts +28 -13
- package/front_end/ui/legacy/ViewManager.ts +1 -0
- package/front_end/ui/legacy/Widget.ts +5 -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/data_grid/DataGridElement.ts +1 -1
- 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 +9 -8
- package/front_end/ui/visual_logging/KnownContextValues.ts +17 -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
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// Copyright 2025 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
import * as Root from '../../core/root/root.js';
|
|
6
|
+
|
|
7
|
+
let builtInAiInstance: BuiltInAi|undefined;
|
|
8
|
+
let availability = '';
|
|
9
|
+
|
|
10
|
+
const RESPONSE_SCHEMA = {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
header: {type: 'string', maxLength: 60, description: 'Label for the console message which is being analyzed'},
|
|
14
|
+
// No hard `maxLength` for `explanation`. This would often result in responses which are cut off in the middle of a
|
|
15
|
+
// sentence. Instead provide a soft `maxLength` via the prompt.
|
|
16
|
+
explanation: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'Actual explanation of the console message being analyzed',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
required: ['header', 'explanation'],
|
|
22
|
+
additionalProperties: false,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
interface LanguageModel {
|
|
26
|
+
promptStreaming: (arg0: string, opts?: {
|
|
27
|
+
responseConstraint: Object,
|
|
28
|
+
signal?: AbortSignal,
|
|
29
|
+
}) => AsyncGenerator<string>;
|
|
30
|
+
clone: () => LanguageModel;
|
|
31
|
+
destroy: () => void;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class BuiltInAi {
|
|
35
|
+
#consoleInsightsSession: LanguageModel;
|
|
36
|
+
|
|
37
|
+
static async isAvailable(): Promise<boolean> {
|
|
38
|
+
if (!Root.Runtime.hostConfig.devToolsAiPromptApi?.enabled) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
// @ts-expect-error
|
|
42
|
+
availability = await window.LanguageModel.availability({expectedOutputs: [{type: 'text', languages: ['en']}]});
|
|
43
|
+
return availability === 'available';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
static cachedIsAvailable(): boolean {
|
|
47
|
+
return availability === 'available';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
private constructor(consoleInsightsSession: LanguageModel) {
|
|
51
|
+
this.#consoleInsightsSession = consoleInsightsSession;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
static async instance(): Promise<BuiltInAi|undefined> {
|
|
55
|
+
if (builtInAiInstance === undefined) {
|
|
56
|
+
if (!(await BuiltInAi.isAvailable())) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
// @ts-expect-error
|
|
60
|
+
const consoleInsightsSession = await window.LanguageModel.create({
|
|
61
|
+
initialPrompts: [{
|
|
62
|
+
role: 'system',
|
|
63
|
+
content: `
|
|
64
|
+
You are an expert web developer. Your goal is to help a human web developer who
|
|
65
|
+
is using Chrome DevTools to debug a web site or web app. The Chrome DevTools
|
|
66
|
+
console is showing a message which is either an error or a warning. Please help
|
|
67
|
+
the user understand the problematic console message.
|
|
68
|
+
|
|
69
|
+
Your instructions are as follows:
|
|
70
|
+
- Explain the reason why the error or warning is showing up.
|
|
71
|
+
- The explanation has a maximum length of 200 characters. Anything beyond this
|
|
72
|
+
length will be cut off. Make sure that your explanation is at most 200 characters long.
|
|
73
|
+
- Your explanation should not end in the middle of a sentence.
|
|
74
|
+
- Your explanation should consist of a single paragraph only. Do not include any
|
|
75
|
+
headings or code blocks. Only write a single paragraph of text.
|
|
76
|
+
- Your response should be concise and to the point. Avoid lengthy explanations
|
|
77
|
+
or unnecessary details.
|
|
78
|
+
`
|
|
79
|
+
}],
|
|
80
|
+
expectedInputs: [{
|
|
81
|
+
type: 'text',
|
|
82
|
+
languages: ['en'],
|
|
83
|
+
}],
|
|
84
|
+
expectedOutputs: [{
|
|
85
|
+
type: 'text',
|
|
86
|
+
languages: ['en'],
|
|
87
|
+
}],
|
|
88
|
+
}) as LanguageModel;
|
|
89
|
+
builtInAiInstance = new BuiltInAi(consoleInsightsSession);
|
|
90
|
+
}
|
|
91
|
+
return builtInAiInstance;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
static removeInstance(): void {
|
|
95
|
+
builtInAiInstance = undefined;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
async * getConsoleInsight(prompt: string, abortController: AbortController): AsyncGenerator<string> {
|
|
99
|
+
// Clone the session to start a fresh conversation for each answer. Otherwise
|
|
100
|
+
// previous dialog would pollute the context resulting in worse answers.
|
|
101
|
+
const session = await this.#consoleInsightsSession.clone();
|
|
102
|
+
const stream = session.promptStreaming(prompt, {
|
|
103
|
+
signal: abortController.signal,
|
|
104
|
+
responseConstraint: RESPONSE_SCHEMA,
|
|
105
|
+
});
|
|
106
|
+
for await (const chunk of stream) {
|
|
107
|
+
yield chunk;
|
|
108
|
+
}
|
|
109
|
+
session.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -2,27 +2,56 @@
|
|
|
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
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
5
|
+
import * as AgentProject from './AgentProject.js';
|
|
6
|
+
import * as AiAgent from './agents/AiAgent.js';
|
|
7
|
+
import * as FileAgent from './agents/FileAgent.js';
|
|
8
|
+
import * as NetworkAgent from './agents/NetworkAgent.js';
|
|
9
|
+
import * as PatchAgent from './agents/PatchAgent.js';
|
|
10
|
+
import * as PerformanceAgent from './agents/PerformanceAgent.js';
|
|
11
|
+
import * as PerformanceAnnotationsAgent from './agents/PerformanceAnnotationsAgent.js';
|
|
12
|
+
import * as StylingAgent from './agents/StylingAgent.js';
|
|
13
|
+
import * as AiHistoryStorage from './AiHistoryStorage.js';
|
|
14
|
+
import * as AiUtils from './AiUtils.js';
|
|
15
|
+
import * as BuiltInAi from './BuiltInAi.js';
|
|
16
|
+
import * as ChangeManager from './ChangeManager.js';
|
|
17
|
+
import * as ConversationHandler from './ConversationHandler.js';
|
|
18
|
+
import * as FileFormatter from './data_formatters/FileFormatter.js';
|
|
19
|
+
import * as NetworkRequestFormatter from './data_formatters/NetworkRequestFormatter.js';
|
|
20
|
+
import * as PerformanceInsightFormatter from './data_formatters/PerformanceInsightFormatter.js';
|
|
21
|
+
import * as PerformanceTraceFormatter from './data_formatters/PerformanceTraceFormatter.js';
|
|
22
|
+
import * as UnitFormatters from './data_formatters/UnitFormatters.js';
|
|
23
|
+
import * as Debug from './debug.js';
|
|
24
|
+
import * as EvaluateAction from './EvaluateAction.js';
|
|
25
|
+
import * as ExtensionScope from './ExtensionScope.js';
|
|
26
|
+
import * as Injected from './injected.js';
|
|
27
|
+
import * as AICallTree from './performance/AICallTree.js';
|
|
28
|
+
import * as AIContext from './performance/AIContext.js';
|
|
29
|
+
import * as AIQueries from './performance/AIQueries.js';
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
AgentProject,
|
|
33
|
+
AiAgent,
|
|
34
|
+
AICallTree,
|
|
35
|
+
AIContext,
|
|
36
|
+
AiHistoryStorage,
|
|
37
|
+
AIQueries,
|
|
38
|
+
AiUtils,
|
|
39
|
+
BuiltInAi,
|
|
40
|
+
ChangeManager,
|
|
41
|
+
ConversationHandler,
|
|
42
|
+
Debug,
|
|
43
|
+
EvaluateAction,
|
|
44
|
+
ExtensionScope,
|
|
45
|
+
FileAgent,
|
|
46
|
+
FileFormatter,
|
|
47
|
+
Injected,
|
|
48
|
+
NetworkAgent,
|
|
49
|
+
NetworkRequestFormatter,
|
|
50
|
+
PatchAgent,
|
|
51
|
+
PerformanceAgent,
|
|
52
|
+
PerformanceAnnotationsAgent,
|
|
53
|
+
PerformanceInsightFormatter,
|
|
54
|
+
PerformanceTraceFormatter,
|
|
55
|
+
StylingAgent,
|
|
56
|
+
UnitFormatters,
|
|
57
|
+
};
|
package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt
CHANGED
|
@@ -346,6 +346,51 @@ Layout shifts in this cluster:
|
|
|
346
346
|
- https://web.dev/articles/optimize-cls
|
|
347
347
|
=== end content
|
|
348
348
|
|
|
349
|
+
Title: PerformanceInsightFormatter CLS includes iframe root causes
|
|
350
|
+
Content:
|
|
351
|
+
## Insight Title: Layout shift culprits
|
|
352
|
+
|
|
353
|
+
## Insight Summary:
|
|
354
|
+
Cumulative Layout Shifts (CLS) is a measure of the largest burst of layout shifts for every unexpected layout shift that occurs during the lifecycle of a page. This is a Core Web Vital and the thresholds for categorizing a score are:
|
|
355
|
+
- Good: 0.1 or less
|
|
356
|
+
- Needs improvement: more than 0.1 and less than or equal to 0.25
|
|
357
|
+
- Bad: over 0.25
|
|
358
|
+
|
|
359
|
+
## Detailed analysis:
|
|
360
|
+
The worst layout shift cluster was the cluster that started at 2,712 ms and ended at 3,913 ms, with a duration of 1,200 ms.
|
|
361
|
+
The score for this cluster is 0.0832.
|
|
362
|
+
|
|
363
|
+
Layout shifts in this cluster:
|
|
364
|
+
### Layout shift 1:
|
|
365
|
+
- Impacted elements:
|
|
366
|
+
- DIV class='max-w-6xl mx-auto bg-white shadow-lg min-h-screen relative z-[99999]'
|
|
367
|
+
- BUTTON class='text-gray-700 hover:text-red-600 w-6 h-6 flex items-center justify-center'
|
|
368
|
+
- #text
|
|
369
|
+
|
|
370
|
+
- Start time: 2,712 ms
|
|
371
|
+
- Score: 0.0832
|
|
372
|
+
- Potential root causes:
|
|
373
|
+
- An iframe (id: D12A05FC36C4D90C7826DDD3E9D7035B, url: https://astro-news-1026410574114.us-central1.run.app/ads/fireplace-ad-top.html was injected into the page)
|
|
374
|
+
- An iframe (id: 8CDF5BC2F8AD1DCF04A38398E95671FC, url: https://astro-news-1026410574114.us-central1.run.app/ads/fireplace-ad-right.html was injected into the page)
|
|
375
|
+
- An iframe (id: 022F4D6C4B361B315A1A7C18B98AA9C4, url: https://astro-news-1026410574114.us-central1.run.app/ads/fireplace-ad-left.html was injected into the page)
|
|
376
|
+
### Layout shift 2:
|
|
377
|
+
- Impacted elements:
|
|
378
|
+
- #text
|
|
379
|
+
- A class='button'
|
|
380
|
+
|
|
381
|
+
- Start time: 2,913 ms
|
|
382
|
+
- Score: 0.0000
|
|
383
|
+
- Potential root causes:
|
|
384
|
+
- A font that was loaded over the network: https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2 (eventKey: s-11464, ts: 153867214727).
|
|
385
|
+
|
|
386
|
+
## Estimated savings: none
|
|
387
|
+
|
|
388
|
+
## External resources:
|
|
389
|
+
- https://developer.chrome.com/docs/performance/insights/cls-culprit
|
|
390
|
+
- https://web.dev/articles/cls
|
|
391
|
+
- https://web.dev/articles/optimize-cls
|
|
392
|
+
=== end content
|
|
393
|
+
|
|
349
394
|
Title: PerformanceInsightFormatter CLS serializes correctly when there are no layout shifts
|
|
350
395
|
Content:
|
|
351
396
|
## Insight Title: Layout shift culprits
|
|
@@ -383,50 +428,110 @@ The score for this cluster is 0.0140.
|
|
|
383
428
|
|
|
384
429
|
Layout shifts in this cluster:
|
|
385
430
|
### Layout shift 1:
|
|
431
|
+
- Impacted elements:
|
|
432
|
+
- P
|
|
433
|
+
- P
|
|
434
|
+
- P
|
|
435
|
+
|
|
386
436
|
- Start time: 60 ms
|
|
387
437
|
- Score: 0.0012
|
|
388
438
|
- No potential root causes identified
|
|
389
439
|
### Layout shift 2:
|
|
440
|
+
- Impacted elements:
|
|
441
|
+
- P
|
|
442
|
+
- P
|
|
443
|
+
- P
|
|
444
|
+
|
|
390
445
|
- Start time: 76 ms
|
|
391
446
|
- Score: 0.0012
|
|
392
447
|
- No potential root causes identified
|
|
393
448
|
### Layout shift 3:
|
|
449
|
+
- Impacted elements:
|
|
450
|
+
- P
|
|
451
|
+
- P
|
|
452
|
+
- P
|
|
453
|
+
|
|
394
454
|
- Start time: 93 ms
|
|
395
455
|
- Score: 0.0012
|
|
396
456
|
- No potential root causes identified
|
|
397
457
|
### Layout shift 4:
|
|
458
|
+
- Impacted elements:
|
|
459
|
+
- P
|
|
460
|
+
- P
|
|
461
|
+
- P
|
|
462
|
+
|
|
398
463
|
- Start time: 110 ms
|
|
399
464
|
- Score: 0.0012
|
|
400
465
|
- No potential root causes identified
|
|
401
466
|
### Layout shift 5:
|
|
467
|
+
- Impacted elements:
|
|
468
|
+
- P
|
|
469
|
+
- P
|
|
470
|
+
- P
|
|
471
|
+
|
|
402
472
|
- Start time: 126 ms
|
|
403
473
|
- Score: 0.0012
|
|
404
474
|
- No potential root causes identified
|
|
405
475
|
### Layout shift 6:
|
|
476
|
+
- Impacted elements:
|
|
477
|
+
- P
|
|
478
|
+
- P
|
|
479
|
+
- P
|
|
480
|
+
|
|
406
481
|
- Start time: 143 ms
|
|
407
482
|
- Score: 0.0012
|
|
408
483
|
- No potential root causes identified
|
|
409
484
|
### Layout shift 7:
|
|
485
|
+
- Impacted elements:
|
|
486
|
+
- P
|
|
487
|
+
- P
|
|
488
|
+
- P
|
|
489
|
+
|
|
410
490
|
- Start time: 160 ms
|
|
411
491
|
- Score: 0.0012
|
|
412
492
|
- No potential root causes identified
|
|
413
493
|
### Layout shift 8:
|
|
494
|
+
- Impacted elements:
|
|
495
|
+
- P
|
|
496
|
+
- P
|
|
497
|
+
- P
|
|
498
|
+
|
|
414
499
|
- Start time: 176 ms
|
|
415
500
|
- Score: 0.0012
|
|
416
501
|
- No potential root causes identified
|
|
417
502
|
### Layout shift 9:
|
|
503
|
+
- Impacted elements:
|
|
504
|
+
- P
|
|
505
|
+
- P
|
|
506
|
+
- P
|
|
507
|
+
|
|
418
508
|
- Start time: 193 ms
|
|
419
509
|
- Score: 0.0012
|
|
420
510
|
- No potential root causes identified
|
|
421
511
|
### Layout shift 10:
|
|
512
|
+
- Impacted elements:
|
|
513
|
+
- P
|
|
514
|
+
- P
|
|
515
|
+
- P
|
|
516
|
+
|
|
422
517
|
- Start time: 210 ms
|
|
423
518
|
- Score: 0.0012
|
|
424
519
|
- No potential root causes identified
|
|
425
520
|
### Layout shift 11:
|
|
521
|
+
- Impacted elements:
|
|
522
|
+
- P
|
|
523
|
+
- P
|
|
524
|
+
- P
|
|
525
|
+
|
|
426
526
|
- Start time: 226 ms
|
|
427
527
|
- Score: 0.0012
|
|
428
528
|
- No potential root causes identified
|
|
429
529
|
### Layout shift 12:
|
|
530
|
+
- Impacted elements:
|
|
531
|
+
- P
|
|
532
|
+
- P
|
|
533
|
+
- P
|
|
534
|
+
|
|
430
535
|
- Start time: 243 ms
|
|
431
536
|
- Score: 0.0012
|
|
432
537
|
- Potential root causes:
|
|
@@ -280,7 +280,12 @@ export class PerformanceInsightFormatter {
|
|
|
280
280
|
'- No potential root causes identified';
|
|
281
281
|
|
|
282
282
|
const startTime = Trace.Helpers.Timing.microToMilli(Trace.Types.Timing.Micro(shift.ts - baseTime));
|
|
283
|
-
|
|
283
|
+
|
|
284
|
+
const impactedNodeNames =
|
|
285
|
+
shift.rawSourceEvent.args.data?.impacted_nodes?.map(n => n.debug_name).filter(name => name !== undefined) ?? [];
|
|
286
|
+
const impactedNodeText =
|
|
287
|
+
impactedNodeNames.length ? `\n- Impacted elements:\n - ${impactedNodeNames.join('\n - ')}\n` : '';
|
|
288
|
+
return `### Layout shift ${index + 1}:${impactedNodeText}
|
|
284
289
|
- Start time: ${millis(startTime)}
|
|
285
290
|
- Score: ${shift.args.data?.weighted_score_delta.toFixed(4)}
|
|
286
291
|
${rootCauseText}`;
|
|
@@ -76,6 +76,7 @@ export class ExtensionView extends UI.Widget.Widget {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
override willHide(): void {
|
|
79
|
+
super.willHide();
|
|
79
80
|
if (typeof this.#frameIndex === 'number') {
|
|
80
81
|
this.#server.notifyViewHidden(this.#id);
|
|
81
82
|
}
|
|
@@ -104,10 +105,12 @@ export class ExtensionNotifierView extends UI.Widget.VBox {
|
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
override wasShown(): void {
|
|
108
|
+
super.wasShown();
|
|
107
109
|
this.server.notifyViewShown(this.id);
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
override willHide(): void {
|
|
113
|
+
super.willHide();
|
|
111
114
|
this.server.notifyViewHidden(this.id);
|
|
112
115
|
}
|
|
113
116
|
}
|
|
@@ -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"]]
|