chrome-devtools-frontend 1.0.1616061 → 1.0.1621064
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/AUTHORS +1 -0
- package/docs/checklist/README.md +8 -7
- package/eslint.config.mjs +7 -0
- package/front_end/core/common/Object.ts +11 -2
- package/front_end/core/dom_extension/DOMExtension.ts +11 -8
- package/front_end/core/host/AidaClient.ts +8 -0
- package/front_end/core/host/AidaGcaTranslation.ts +1 -0
- package/front_end/core/host/UserMetrics.ts +0 -1
- package/front_end/core/platform/api/HostRuntime.ts +2 -2
- package/front_end/core/platform/browser/HostRuntime.ts +4 -2
- package/front_end/core/platform/node/HostRuntime.ts +2 -2
- package/front_end/core/root/ExperimentNames.ts +0 -1
- package/front_end/core/sdk/NetworkManager.ts +30 -4
- package/front_end/core/sdk/NetworkRequest.ts +2 -10
- package/front_end/core/sdk/Resource.ts +2 -1
- package/front_end/core/sdk/ServerSentEventsProtocol.ts +1 -1
- package/front_end/core/sdk/TraceObject.ts +7 -2
- package/front_end/entrypoint_template.html +1 -2
- package/front_end/entrypoints/greendev_floaty/FloatyEntrypoint.ts +119 -15
- package/front_end/entrypoints/greendev_floaty/greendev_floaty.ts +0 -2
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +43 -33
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +2 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotWorkerDispatcher.ts +9 -6
- package/front_end/entrypoints/main/MainImpl.ts +0 -2
- package/front_end/generated/InspectorBackendCommands.ts +8 -7
- package/front_end/generated/SupportedCSSProperties.js +119 -100
- package/front_end/generated/protocol-mapping.d.ts +1 -9
- package/front_end/generated/protocol-proxy-api.d.ts +1 -9
- package/front_end/generated/protocol.ts +24 -1
- package/front_end/legacy/legacy-defs.d.ts +1 -1
- package/front_end/models/ai_assistance/AiConversation.ts +1 -0
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +39 -0
- package/front_end/models/ai_assistance/agents/AiAgent.ts +2 -0
- package/front_end/models/ai_assistance/agents/ConversationSummaryAgent.ts +28 -16
- package/front_end/models/ai_assistance/agents/GreenDevAgent.ts +512 -0
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +112 -145
- package/front_end/models/ai_assistance/agents/README.md +0 -5
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +9 -16
- package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +19 -1
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +48 -13
- package/front_end/models/bindings/SymbolizedError.ts +95 -8
- package/front_end/models/emulation/DeviceModeModel.ts +42 -13
- package/front_end/models/emulation/EmulatedDevices.ts +1 -1
- package/front_end/models/issues_manager/IssuesManager.ts +13 -6
- package/front_end/models/issues_manager/IssuesManagerEvents.ts +1 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +2 -2
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +1 -0
- package/front_end/models/stack_trace/DetailedErrorStackParser.ts +49 -10
- package/front_end/models/stack_trace/ErrorStackParser.ts +18 -0
- package/front_end/models/stack_trace/StackTraceModel.ts +5 -1
- package/front_end/models/text_utils/ContentData.ts +71 -10
- package/front_end/models/trace/types/File.ts +8 -1
- package/front_end/models/web_mcp/WebMCPModel.ts +22 -0
- package/front_end/models/workspace/UISourceCode.ts +4 -4
- package/front_end/panels/accessibility/ARIAAttributesView.ts +4 -4
- package/front_end/panels/accessibility/AccessibilitySubPane.ts +3 -2
- package/front_end/panels/accessibility/SourceOrderView.ts +4 -4
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatInput.ts +66 -0
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +144 -21
- package/front_end/panels/ai_assistance/components/ChatView.ts +43 -8
- package/front_end/panels/ai_assistance/components/ExportForAgentsDialog.ts +1 -0
- package/front_end/panels/ai_assistance/components/WalkthroughUtils.ts +74 -0
- package/front_end/panels/ai_assistance/components/WalkthroughView.ts +34 -5
- package/front_end/panels/ai_assistance/components/chatMessage.css +11 -0
- package/front_end/panels/ai_assistance/components/walkthroughView.css +7 -0
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +1 -1
- package/front_end/panels/application/CookieItemsView.ts +8 -9
- package/front_end/panels/application/DOMStorageItemsView.ts +3 -3
- package/front_end/panels/application/DeviceBoundSessionsModel.ts +7 -0
- package/front_end/panels/application/DeviceBoundSessionsTreeElement.ts +21 -0
- package/front_end/panels/application/DeviceBoundSessionsView.ts +2 -2
- package/front_end/panels/application/ExtensionStorageItemsView.ts +1 -1
- package/front_end/panels/application/KeyValueStorageItemsView.ts +32 -14
- package/front_end/panels/application/ResourcesPanel.ts +5 -5
- package/front_end/panels/application/StorageItemsToolbar.ts +0 -19
- package/front_end/panels/application/WebMCPView.ts +285 -86
- package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +4 -4
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +4 -4
- package/front_end/panels/application/webMCPView.css +261 -182
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +9 -5
- package/front_end/panels/changes/ChangesSidebar.ts +2 -2
- package/front_end/panels/changes/ChangesView.ts +9 -14
- package/front_end/panels/console/ConsolePanel.ts +10 -3
- package/front_end/panels/console/ConsoleSidebar.ts +5 -5
- package/front_end/panels/console/ConsoleView.ts +11 -4
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -19
- package/front_end/panels/coverage/CoverageView.ts +4 -5
- package/front_end/panels/elements/ElementsPanel.ts +9 -12
- package/front_end/panels/elements/ElementsSidebarPane.ts +4 -5
- package/front_end/panels/elements/ElementsTreeElement.ts +61 -0
- package/front_end/panels/elements/ElementsTreeOutline.ts +46 -0
- package/front_end/panels/elements/LayersWidget.ts +2 -2
- package/front_end/panels/elements/MetricsSidebarPane.ts +5 -4
- package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +11 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +4 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +19 -20
- package/front_end/panels/elements/components/ElementsBreadcrumbsUtils.ts +29 -29
- package/front_end/panels/elements/components/QueryContainer.ts +5 -6
- package/front_end/panels/elements/components/components.ts +0 -2
- package/front_end/panels/emulation/MediaQueryInspector.ts +4 -7
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +4 -7
- package/front_end/panels/layer_viewer/Layers3DView.ts +2 -2
- package/front_end/panels/lighthouse/LighthouseStartView.ts +2 -2
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +47 -66
- package/front_end/panels/network/NetworkConfigView.ts +11 -11
- package/front_end/panels/network/RequestConditionsDrawer.ts +6 -4
- package/front_end/panels/network/RequestCookiesView.ts +2 -2
- package/front_end/panels/network/RequestDeviceBoundSessionsView.ts +2 -2
- package/front_end/panels/network/RequestHeadersView.ts +2 -2
- package/front_end/panels/network/components/DirectSocketConnectionView.ts +4 -5
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +6 -9
- package/front_end/panels/profiler/HeapProfileView.ts +29 -4
- package/front_end/panels/profiler/ProfilesPanel.ts +1 -1
- package/front_end/panels/protocol_monitor/JSONEditor.css +8 -1
- package/front_end/panels/protocol_monitor/JSONEditor.ts +7 -2
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +6 -4
- package/front_end/panels/recorder/components/ControlButton.ts +4 -4
- package/front_end/panels/recorder/components/StepView.ts +6 -6
- package/front_end/panels/search/SearchView.ts +4 -7
- package/front_end/panels/sources/DebuggerPausedMessage.ts +18 -22
- package/front_end/panels/sources/SourcesView.ts +1 -1
- package/front_end/panels/sources/TabbedEditorContainer.ts +2 -2
- package/front_end/panels/sources/ThreadsSidebarPane.ts +2 -4
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +24 -20
- package/front_end/panels/timeline/StatusDialog.ts +5 -8
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +10 -0
- package/front_end/panels/timeline/TimelineLoader.ts +3 -4
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +2 -2
- package/front_end/panels/timeline/components/TimelineRangeSummaryView.ts +2 -0
- package/front_end/panels/timeline/components/TimelineSummary.ts +9 -1
- package/front_end/panels/timeline/components/timelineSummary.css +4 -0
- package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +2 -2
- package/front_end/panels/timeline/thirdPartyTreeView.css +8 -1
- package/front_end/panels/web_audio/WebAudioView.ts +5 -4
- package/front_end/panels/whats_new/ReleaseNoteText.ts +9 -9
- package/front_end/panels/whats_new/resources/WNDT.md +9 -6
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +41 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.d.ts +13 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.js +21 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +5 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js +52 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +25 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/third_party/urlpattern-polyfill/urlpattern-polyfill.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/third_party/urlpattern-polyfill/urlpattern-polyfill.js +853 -0
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +91 -11
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +1046 -33
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +41 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.d.ts +13 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.js +21 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +5 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js +52 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +25 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/third_party/urlpattern-polyfill/urlpattern-polyfill.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/third_party/urlpattern-polyfill/urlpattern-polyfill.js +805 -0
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +91 -11
- package/front_end/third_party/puppeteer/package/package.json +3 -2
- package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +53 -11
- package/front_end/third_party/puppeteer/package/src/api/Extension.ts +29 -1
- package/front_end/third_party/puppeteer/package/src/bidi/ElementHandle.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/cdp/ElementHandle.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Extension.ts +9 -2
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +59 -0
- package/front_end/third_party/puppeteer/package/src/cdp/WebMCP.ts +6 -1
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +26 -0
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +0 -1
- package/front_end/third_party/puppeteer/package/src/revisions.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +2 -1
- package/front_end/third_party/web-vitals/README.chromium +2 -2
- package/front_end/third_party/web-vitals/package/README.md +21 -10
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onCLS.js +2 -4
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.js +1 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.d.ts +4 -0
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +44 -39
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +25 -19
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.js +1 -2
- package/front_end/third_party/web-vitals/package/dist/modules/lib/doubleRAF.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getActivationStart.js +1 -2
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getLoadState.js +16 -18
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.js +2 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/observe.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/interactionCountPolyfill.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/interactionCountPolyfill.js +1 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/whenActivated.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/whenIdleOrHidden.js +11 -7
- package/front_end/third_party/web-vitals/package/dist/modules/onCLS.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/types/inp.d.ts +4 -0
- package/front_end/third_party/web-vitals/package/dist/modules/types.d.ts +1 -2
- package/front_end/third_party/web-vitals/package/dist/modules/types.js +0 -1
- package/front_end/third_party/web-vitals/package/package.json +24 -27
- package/front_end/third_party/web-vitals/package/src/attribution/onCLS.ts +2 -7
- package/front_end/third_party/web-vitals/package/src/attribution/onFCP.ts +1 -2
- package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +49 -43
- package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +27 -24
- package/front_end/third_party/web-vitals/package/src/attribution/onTTFB.ts +1 -2
- package/front_end/third_party/web-vitals/package/src/lib/doubleRAF.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/getActivationStart.ts +1 -2
- package/front_end/third_party/web-vitals/package/src/lib/getLoadState.ts +21 -20
- package/front_end/third_party/web-vitals/package/src/lib/getVisibilityWatcher.ts +2 -3
- package/front_end/third_party/web-vitals/package/src/lib/observe.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/polyfills/interactionCountPolyfill.ts +2 -4
- package/front_end/third_party/web-vitals/package/src/lib/whenActivated.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/whenIdleOrHidden.ts +13 -7
- package/front_end/third_party/web-vitals/package/src/onCLS.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/types/inp.ts +4 -0
- package/front_end/third_party/web-vitals/package/src/types.ts +1 -2
- package/front_end/third_party/web-vitals/patches/0001-Add-onEachInteraction-to-onINP-options.patch +13 -74
- package/front_end/third_party/web-vitals/rebuild.sh +3 -3
- package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +0 -1
- package/front_end/ui/components/icon_button/iconButton.css +1 -0
- package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +6 -6
- package/front_end/ui/components/lists/list.css +4 -0
- package/front_end/ui/legacy/Dialog.ts +21 -2
- package/front_end/ui/legacy/SoftContextMenu.ts +3 -3
- package/front_end/ui/legacy/SplitWidget.ts +9 -9
- package/front_end/ui/legacy/TabbedPane.ts +12 -12
- package/front_end/ui/legacy/View.ts +24 -22
- package/front_end/ui/legacy/ViewManager.ts +12 -12
- package/front_end/ui/legacy/ViewRegistration.ts +2 -2
- package/front_end/ui/legacy/Widget.ts +165 -119
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +10 -5
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +9 -6
- package/front_end/ui/legacy/components/utils/Linkifier.ts +37 -11
- package/front_end/ui/legacy/components/utils/jsUtils.css +1 -0
- package/front_end/ui/legacy/inspectorCommon.css +0 -6
- package/front_end/ui/lit/render.ts +11 -9
- package/front_end/ui/visual_logging/KnownContextValues.ts +36 -0
- package/package.json +1 -1
- package/front_end/Images/src/dots-circle.svg +0 -10
- package/front_end/panels/elements/components/Helper.ts +0 -35
- package/front_end/third_party/web-vitals/package/dist/modules/types/polyfills.d.ts +0 -4
- package/front_end/third_party/web-vitals/package/dist/modules/types/polyfills.js +0 -16
- package/front_end/third_party/web-vitals/package/src/types/polyfills.ts +0 -24
|
@@ -420,10 +420,10 @@ export const generatedProperties = [
|
|
|
420
420
|
"column-height",
|
|
421
421
|
"column-rule-break",
|
|
422
422
|
"column-rule-color",
|
|
423
|
-
"column-rule-
|
|
424
|
-
"column-rule-
|
|
425
|
-
"column-rule-
|
|
426
|
-
"column-rule-
|
|
423
|
+
"column-rule-inset-cap-end",
|
|
424
|
+
"column-rule-inset-cap-start",
|
|
425
|
+
"column-rule-inset-junction-end",
|
|
426
|
+
"column-rule-inset-junction-start",
|
|
427
427
|
"column-rule-style",
|
|
428
428
|
"column-rule-visibility-items",
|
|
429
429
|
"column-rule-width",
|
|
@@ -653,10 +653,10 @@ export const generatedProperties = [
|
|
|
653
653
|
"row-gap",
|
|
654
654
|
"row-rule-break",
|
|
655
655
|
"row-rule-color",
|
|
656
|
-
"row-rule-
|
|
657
|
-
"row-rule-
|
|
658
|
-
"row-rule-
|
|
659
|
-
"row-rule-
|
|
656
|
+
"row-rule-inset-cap-end",
|
|
657
|
+
"row-rule-inset-cap-start",
|
|
658
|
+
"row-rule-inset-junction-end",
|
|
659
|
+
"row-rule-inset-junction-start",
|
|
660
660
|
"row-rule-style",
|
|
661
661
|
"row-rule-visibility-items",
|
|
662
662
|
"row-rule-width",
|
|
@@ -731,6 +731,7 @@ export const generatedProperties = [
|
|
|
731
731
|
"text-decoration-color",
|
|
732
732
|
"text-decoration-line",
|
|
733
733
|
"text-decoration-skip-ink",
|
|
734
|
+
"text-decoration-skip-spaces",
|
|
734
735
|
"text-decoration-style",
|
|
735
736
|
"text-decoration-thickness",
|
|
736
737
|
"text-emphasis-color",
|
|
@@ -1743,68 +1744,68 @@ export const generatedProperties = [
|
|
|
1743
1744
|
},
|
|
1744
1745
|
{
|
|
1745
1746
|
"longhands": [
|
|
1746
|
-
"column-rule-
|
|
1747
|
-
"column-rule-
|
|
1747
|
+
"column-rule-inset-cap-start",
|
|
1748
|
+
"column-rule-inset-cap-end",
|
|
1749
|
+
"column-rule-inset-junction-start",
|
|
1750
|
+
"column-rule-inset-junction-end"
|
|
1748
1751
|
],
|
|
1749
|
-
"name": "column-rule-
|
|
1752
|
+
"name": "column-rule-inset"
|
|
1750
1753
|
},
|
|
1751
1754
|
{
|
|
1752
|
-
"
|
|
1753
|
-
|
|
1754
|
-
"
|
|
1755
|
+
"longhands": [
|
|
1756
|
+
"column-rule-inset-cap-start",
|
|
1757
|
+
"column-rule-inset-cap-end"
|
|
1755
1758
|
],
|
|
1756
|
-
"name": "column-rule-
|
|
1759
|
+
"name": "column-rule-inset-cap"
|
|
1757
1760
|
},
|
|
1758
1761
|
{
|
|
1759
1762
|
"inherited": false,
|
|
1760
1763
|
"keywords": [
|
|
1761
1764
|
"overlap-join"
|
|
1762
1765
|
],
|
|
1763
|
-
"name": "column-rule-
|
|
1766
|
+
"name": "column-rule-inset-cap-end"
|
|
1764
1767
|
},
|
|
1765
1768
|
{
|
|
1766
|
-
"
|
|
1767
|
-
|
|
1768
|
-
"
|
|
1769
|
-
"column-rule-interior-inset-start",
|
|
1770
|
-
"column-rule-interior-inset-end"
|
|
1769
|
+
"inherited": false,
|
|
1770
|
+
"keywords": [
|
|
1771
|
+
"overlap-join"
|
|
1771
1772
|
],
|
|
1772
|
-
"name": "column-rule-inset"
|
|
1773
|
+
"name": "column-rule-inset-cap-start"
|
|
1773
1774
|
},
|
|
1774
1775
|
{
|
|
1775
1776
|
"longhands": [
|
|
1776
|
-
"column-rule-
|
|
1777
|
-
"column-rule-
|
|
1777
|
+
"column-rule-inset-cap-end",
|
|
1778
|
+
"column-rule-inset-junction-end"
|
|
1778
1779
|
],
|
|
1779
1780
|
"name": "column-rule-inset-end"
|
|
1780
1781
|
},
|
|
1781
1782
|
{
|
|
1782
1783
|
"longhands": [
|
|
1783
|
-
"column-rule-
|
|
1784
|
-
"column-rule-
|
|
1785
|
-
],
|
|
1786
|
-
"name": "column-rule-inset-start"
|
|
1787
|
-
},
|
|
1788
|
-
{
|
|
1789
|
-
"longhands": [
|
|
1790
|
-
"column-rule-interior-inset-start",
|
|
1791
|
-
"column-rule-interior-inset-end"
|
|
1784
|
+
"column-rule-inset-junction-start",
|
|
1785
|
+
"column-rule-inset-junction-end"
|
|
1792
1786
|
],
|
|
1793
|
-
"name": "column-rule-
|
|
1787
|
+
"name": "column-rule-inset-junction"
|
|
1794
1788
|
},
|
|
1795
1789
|
{
|
|
1796
1790
|
"inherited": false,
|
|
1797
1791
|
"keywords": [
|
|
1798
1792
|
"overlap-join"
|
|
1799
1793
|
],
|
|
1800
|
-
"name": "column-rule-
|
|
1794
|
+
"name": "column-rule-inset-junction-end"
|
|
1801
1795
|
},
|
|
1802
1796
|
{
|
|
1803
1797
|
"inherited": false,
|
|
1804
1798
|
"keywords": [
|
|
1805
1799
|
"overlap-join"
|
|
1806
1800
|
],
|
|
1807
|
-
"name": "column-rule-
|
|
1801
|
+
"name": "column-rule-inset-junction-start"
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
"longhands": [
|
|
1805
|
+
"column-rule-inset-cap-start",
|
|
1806
|
+
"column-rule-inset-junction-start"
|
|
1807
|
+
],
|
|
1808
|
+
"name": "column-rule-inset-start"
|
|
1808
1809
|
},
|
|
1809
1810
|
{
|
|
1810
1811
|
"keywords": [
|
|
@@ -3839,68 +3840,68 @@ export const generatedProperties = [
|
|
|
3839
3840
|
},
|
|
3840
3841
|
{
|
|
3841
3842
|
"longhands": [
|
|
3842
|
-
"row-rule-
|
|
3843
|
-
"row-rule-
|
|
3843
|
+
"row-rule-inset-cap-start",
|
|
3844
|
+
"row-rule-inset-cap-end",
|
|
3845
|
+
"row-rule-inset-junction-start",
|
|
3846
|
+
"row-rule-inset-junction-end"
|
|
3844
3847
|
],
|
|
3845
|
-
"name": "row-rule-
|
|
3848
|
+
"name": "row-rule-inset"
|
|
3846
3849
|
},
|
|
3847
3850
|
{
|
|
3848
|
-
"
|
|
3849
|
-
|
|
3850
|
-
"
|
|
3851
|
+
"longhands": [
|
|
3852
|
+
"row-rule-inset-cap-start",
|
|
3853
|
+
"row-rule-inset-cap-end"
|
|
3851
3854
|
],
|
|
3852
|
-
"name": "row-rule-
|
|
3855
|
+
"name": "row-rule-inset-cap"
|
|
3853
3856
|
},
|
|
3854
3857
|
{
|
|
3855
3858
|
"inherited": false,
|
|
3856
3859
|
"keywords": [
|
|
3857
3860
|
"overlap-join"
|
|
3858
3861
|
],
|
|
3859
|
-
"name": "row-rule-
|
|
3862
|
+
"name": "row-rule-inset-cap-end"
|
|
3860
3863
|
},
|
|
3861
3864
|
{
|
|
3862
|
-
"
|
|
3863
|
-
|
|
3864
|
-
"
|
|
3865
|
-
"row-rule-interior-inset-start",
|
|
3866
|
-
"row-rule-interior-inset-end"
|
|
3865
|
+
"inherited": false,
|
|
3866
|
+
"keywords": [
|
|
3867
|
+
"overlap-join"
|
|
3867
3868
|
],
|
|
3868
|
-
"name": "row-rule-inset"
|
|
3869
|
+
"name": "row-rule-inset-cap-start"
|
|
3869
3870
|
},
|
|
3870
3871
|
{
|
|
3871
3872
|
"longhands": [
|
|
3872
|
-
"row-rule-
|
|
3873
|
-
"row-rule-
|
|
3873
|
+
"row-rule-inset-cap-end",
|
|
3874
|
+
"row-rule-inset-junction-end"
|
|
3874
3875
|
],
|
|
3875
3876
|
"name": "row-rule-inset-end"
|
|
3876
3877
|
},
|
|
3877
3878
|
{
|
|
3878
3879
|
"longhands": [
|
|
3879
|
-
"row-rule-
|
|
3880
|
-
"row-rule-
|
|
3880
|
+
"row-rule-inset-junction-start",
|
|
3881
|
+
"row-rule-inset-junction-end"
|
|
3881
3882
|
],
|
|
3882
|
-
"name": "row-rule-inset-
|
|
3883
|
-
},
|
|
3884
|
-
{
|
|
3885
|
-
"longhands": [
|
|
3886
|
-
"row-rule-interior-inset-start",
|
|
3887
|
-
"row-rule-interior-inset-end"
|
|
3888
|
-
],
|
|
3889
|
-
"name": "row-rule-interior-inset"
|
|
3883
|
+
"name": "row-rule-inset-junction"
|
|
3890
3884
|
},
|
|
3891
3885
|
{
|
|
3892
3886
|
"inherited": false,
|
|
3893
3887
|
"keywords": [
|
|
3894
3888
|
"overlap-join"
|
|
3895
3889
|
],
|
|
3896
|
-
"name": "row-rule-
|
|
3890
|
+
"name": "row-rule-inset-junction-end"
|
|
3897
3891
|
},
|
|
3898
3892
|
{
|
|
3899
3893
|
"inherited": false,
|
|
3900
3894
|
"keywords": [
|
|
3901
3895
|
"overlap-join"
|
|
3902
3896
|
],
|
|
3903
|
-
"name": "row-rule-
|
|
3897
|
+
"name": "row-rule-inset-junction-start"
|
|
3898
|
+
},
|
|
3899
|
+
{
|
|
3900
|
+
"longhands": [
|
|
3901
|
+
"row-rule-inset-cap-start",
|
|
3902
|
+
"row-rule-inset-junction-start"
|
|
3903
|
+
],
|
|
3904
|
+
"name": "row-rule-inset-start"
|
|
3904
3905
|
},
|
|
3905
3906
|
{
|
|
3906
3907
|
"keywords": [
|
|
@@ -3988,52 +3989,52 @@ export const generatedProperties = [
|
|
|
3988
3989
|
},
|
|
3989
3990
|
{
|
|
3990
3991
|
"longhands": [
|
|
3991
|
-
"row-rule-
|
|
3992
|
-
"row-rule-
|
|
3993
|
-
"
|
|
3994
|
-
"
|
|
3992
|
+
"row-rule-inset-cap-start",
|
|
3993
|
+
"row-rule-inset-cap-end",
|
|
3994
|
+
"row-rule-inset-junction-start",
|
|
3995
|
+
"row-rule-inset-junction-end",
|
|
3996
|
+
"column-rule-inset-cap-start",
|
|
3997
|
+
"column-rule-inset-cap-end",
|
|
3998
|
+
"column-rule-inset-junction-start",
|
|
3999
|
+
"column-rule-inset-junction-end"
|
|
3995
4000
|
],
|
|
3996
|
-
"name": "rule-
|
|
4001
|
+
"name": "rule-inset"
|
|
3997
4002
|
},
|
|
3998
4003
|
{
|
|
3999
4004
|
"longhands": [
|
|
4000
|
-
"row-rule-
|
|
4001
|
-
"row-rule-
|
|
4002
|
-
"
|
|
4003
|
-
"
|
|
4004
|
-
"column-rule-edge-inset-start",
|
|
4005
|
-
"column-rule-edge-inset-end",
|
|
4006
|
-
"column-rule-interior-inset-start",
|
|
4007
|
-
"column-rule-interior-inset-end"
|
|
4005
|
+
"row-rule-inset-cap-start",
|
|
4006
|
+
"row-rule-inset-cap-end",
|
|
4007
|
+
"column-rule-inset-cap-start",
|
|
4008
|
+
"column-rule-inset-cap-end"
|
|
4008
4009
|
],
|
|
4009
|
-
"name": "rule-inset"
|
|
4010
|
+
"name": "rule-inset-cap"
|
|
4010
4011
|
},
|
|
4011
4012
|
{
|
|
4012
4013
|
"longhands": [
|
|
4013
|
-
"column-rule-
|
|
4014
|
-
"column-rule-
|
|
4015
|
-
"row-rule-
|
|
4016
|
-
"row-rule-
|
|
4014
|
+
"column-rule-inset-cap-end",
|
|
4015
|
+
"column-rule-inset-junction-end",
|
|
4016
|
+
"row-rule-inset-cap-end",
|
|
4017
|
+
"row-rule-inset-junction-end"
|
|
4017
4018
|
],
|
|
4018
4019
|
"name": "rule-inset-end"
|
|
4019
4020
|
},
|
|
4020
4021
|
{
|
|
4021
4022
|
"longhands": [
|
|
4022
|
-
"
|
|
4023
|
-
"
|
|
4024
|
-
"
|
|
4025
|
-
"
|
|
4023
|
+
"row-rule-inset-junction-start",
|
|
4024
|
+
"row-rule-inset-junction-end",
|
|
4025
|
+
"column-rule-inset-junction-start",
|
|
4026
|
+
"column-rule-inset-junction-end"
|
|
4026
4027
|
],
|
|
4027
|
-
"name": "rule-inset-
|
|
4028
|
+
"name": "rule-inset-junction"
|
|
4028
4029
|
},
|
|
4029
4030
|
{
|
|
4030
4031
|
"longhands": [
|
|
4031
|
-
"
|
|
4032
|
-
"
|
|
4033
|
-
"
|
|
4034
|
-
"
|
|
4032
|
+
"column-rule-inset-cap-start",
|
|
4033
|
+
"column-rule-inset-junction-start",
|
|
4034
|
+
"row-rule-inset-cap-start",
|
|
4035
|
+
"row-rule-inset-junction-start"
|
|
4035
4036
|
],
|
|
4036
|
-
"name": "rule-
|
|
4037
|
+
"name": "rule-inset-start"
|
|
4037
4038
|
},
|
|
4038
4039
|
{
|
|
4039
4040
|
"inherited": false,
|
|
@@ -4528,6 +4529,16 @@ export const generatedProperties = [
|
|
|
4528
4529
|
],
|
|
4529
4530
|
"name": "text-decoration-skip-ink"
|
|
4530
4531
|
},
|
|
4532
|
+
{
|
|
4533
|
+
"inherited": true,
|
|
4534
|
+
"keywords": [
|
|
4535
|
+
"none",
|
|
4536
|
+
"start",
|
|
4537
|
+
"end",
|
|
4538
|
+
"all"
|
|
4539
|
+
],
|
|
4540
|
+
"name": "text-decoration-skip-spaces"
|
|
4541
|
+
},
|
|
4531
4542
|
{
|
|
4532
4543
|
"keywords": [
|
|
4533
4544
|
"solid",
|
|
@@ -5643,22 +5654,22 @@ export const generatedPropertyValues = {
|
|
|
5643
5654
|
"currentcolor"
|
|
5644
5655
|
]
|
|
5645
5656
|
},
|
|
5646
|
-
"column-rule-
|
|
5657
|
+
"column-rule-inset-cap-end": {
|
|
5647
5658
|
"values": [
|
|
5648
5659
|
"overlap-join"
|
|
5649
5660
|
]
|
|
5650
5661
|
},
|
|
5651
|
-
"column-rule-
|
|
5662
|
+
"column-rule-inset-cap-start": {
|
|
5652
5663
|
"values": [
|
|
5653
5664
|
"overlap-join"
|
|
5654
5665
|
]
|
|
5655
5666
|
},
|
|
5656
|
-
"column-rule-
|
|
5667
|
+
"column-rule-inset-junction-end": {
|
|
5657
5668
|
"values": [
|
|
5658
5669
|
"overlap-join"
|
|
5659
5670
|
]
|
|
5660
5671
|
},
|
|
5661
|
-
"column-rule-
|
|
5672
|
+
"column-rule-inset-junction-start": {
|
|
5662
5673
|
"values": [
|
|
5663
5674
|
"overlap-join"
|
|
5664
5675
|
]
|
|
@@ -6814,22 +6825,22 @@ export const generatedPropertyValues = {
|
|
|
6814
6825
|
"currentcolor"
|
|
6815
6826
|
]
|
|
6816
6827
|
},
|
|
6817
|
-
"row-rule-
|
|
6828
|
+
"row-rule-inset-cap-end": {
|
|
6818
6829
|
"values": [
|
|
6819
6830
|
"overlap-join"
|
|
6820
6831
|
]
|
|
6821
6832
|
},
|
|
6822
|
-
"row-rule-
|
|
6833
|
+
"row-rule-inset-cap-start": {
|
|
6823
6834
|
"values": [
|
|
6824
6835
|
"overlap-join"
|
|
6825
6836
|
]
|
|
6826
6837
|
},
|
|
6827
|
-
"row-rule-
|
|
6838
|
+
"row-rule-inset-junction-end": {
|
|
6828
6839
|
"values": [
|
|
6829
6840
|
"overlap-join"
|
|
6830
6841
|
]
|
|
6831
6842
|
},
|
|
6832
|
-
"row-rule-
|
|
6843
|
+
"row-rule-inset-junction-start": {
|
|
6833
6844
|
"values": [
|
|
6834
6845
|
"overlap-join"
|
|
6835
6846
|
]
|
|
@@ -7136,6 +7147,14 @@ export const generatedPropertyValues = {
|
|
|
7136
7147
|
"all"
|
|
7137
7148
|
]
|
|
7138
7149
|
},
|
|
7150
|
+
"text-decoration-skip-spaces": {
|
|
7151
|
+
"values": [
|
|
7152
|
+
"none",
|
|
7153
|
+
"start",
|
|
7154
|
+
"end",
|
|
7155
|
+
"all"
|
|
7156
|
+
]
|
|
7157
|
+
},
|
|
7139
7158
|
"text-decoration-style": {
|
|
7140
7159
|
"values": [
|
|
7141
7160
|
"solid",
|
|
@@ -2846,8 +2846,6 @@ export namespace ProtocolMapping {
|
|
|
2846
2846
|
};
|
|
2847
2847
|
/**
|
|
2848
2848
|
* Runs an extension default action.
|
|
2849
|
-
* Available if the client is connected using the --remote-debugging-pipe
|
|
2850
|
-
* flag and the --enable-unsafe-extension-debugging flag is set.
|
|
2851
2849
|
*/
|
|
2852
2850
|
'Extensions.triggerAction': {
|
|
2853
2851
|
paramsType: [Protocol.Extensions.TriggerActionRequest];
|
|
@@ -2856,9 +2854,7 @@ export namespace ProtocolMapping {
|
|
|
2856
2854
|
/**
|
|
2857
2855
|
* Installs an unpacked extension from the filesystem similar to
|
|
2858
2856
|
* --load-extension CLI flags. Returns extension ID once the extension
|
|
2859
|
-
* has been installed.
|
|
2860
|
-
* --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
|
|
2861
|
-
* flag is set.
|
|
2857
|
+
* has been installed.
|
|
2862
2858
|
*/
|
|
2863
2859
|
'Extensions.loadUnpacked': {
|
|
2864
2860
|
paramsType: [Protocol.Extensions.LoadUnpackedRequest];
|
|
@@ -2866,8 +2862,6 @@ export namespace ProtocolMapping {
|
|
|
2866
2862
|
};
|
|
2867
2863
|
/**
|
|
2868
2864
|
* Gets a list of all unpacked extensions.
|
|
2869
|
-
* Available if the client is connected using the --remote-debugging-pipe flag
|
|
2870
|
-
* and the --enable-unsafe-extension-debugging flag is set.
|
|
2871
2865
|
*/
|
|
2872
2866
|
'Extensions.getExtensions': {
|
|
2873
2867
|
paramsType: [];
|
|
@@ -2875,8 +2869,6 @@ export namespace ProtocolMapping {
|
|
|
2875
2869
|
};
|
|
2876
2870
|
/**
|
|
2877
2871
|
* Uninstalls an unpacked extension (others not supported) from the profile.
|
|
2878
|
-
* Available if the client is connected using the --remote-debugging-pipe flag
|
|
2879
|
-
* and the --enable-unsafe-extension-debugging.
|
|
2880
2872
|
*/
|
|
2881
2873
|
'Extensions.uninstall': {
|
|
2882
2874
|
paramsType: [Protocol.Extensions.UninstallRequest];
|
|
@@ -1921,31 +1921,23 @@ declare namespace ProtocolProxyApi {
|
|
|
1921
1921
|
export interface ExtensionsApi {
|
|
1922
1922
|
/**
|
|
1923
1923
|
* Runs an extension default action.
|
|
1924
|
-
* Available if the client is connected using the --remote-debugging-pipe
|
|
1925
|
-
* flag and the --enable-unsafe-extension-debugging flag is set.
|
|
1926
1924
|
*/
|
|
1927
1925
|
invoke_triggerAction(params: Protocol.Extensions.TriggerActionRequest): Promise<Protocol.ProtocolResponseWithError>;
|
|
1928
1926
|
|
|
1929
1927
|
/**
|
|
1930
1928
|
* Installs an unpacked extension from the filesystem similar to
|
|
1931
1929
|
* --load-extension CLI flags. Returns extension ID once the extension
|
|
1932
|
-
* has been installed.
|
|
1933
|
-
* --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
|
|
1934
|
-
* flag is set.
|
|
1930
|
+
* has been installed.
|
|
1935
1931
|
*/
|
|
1936
1932
|
invoke_loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<Protocol.Extensions.LoadUnpackedResponse>;
|
|
1937
1933
|
|
|
1938
1934
|
/**
|
|
1939
1935
|
* Gets a list of all unpacked extensions.
|
|
1940
|
-
* Available if the client is connected using the --remote-debugging-pipe flag
|
|
1941
|
-
* and the --enable-unsafe-extension-debugging flag is set.
|
|
1942
1936
|
*/
|
|
1943
1937
|
invoke_getExtensions(): Promise<Protocol.Extensions.GetExtensionsResponse>;
|
|
1944
1938
|
|
|
1945
1939
|
/**
|
|
1946
1940
|
* Uninstalls an unpacked extension (others not supported) from the profile.
|
|
1947
|
-
* Available if the client is connected using the --remote-debugging-pipe flag
|
|
1948
|
-
* and the --enable-unsafe-extension-debugging.
|
|
1949
1941
|
*/
|
|
1950
1942
|
invoke_uninstall(params: Protocol.Extensions.UninstallRequest): Promise<Protocol.ProtocolResponseWithError>;
|
|
1951
1943
|
|
|
@@ -15381,6 +15381,7 @@ export namespace Page {
|
|
|
15381
15381
|
EmbedderExtensionMessaging = 'EmbedderExtensionMessaging',
|
|
15382
15382
|
EmbedderExtensionMessagingForOpenPort = 'EmbedderExtensionMessagingForOpenPort',
|
|
15383
15383
|
EmbedderExtensionSentMessageToCachedFrame = 'EmbedderExtensionSentMessageToCachedFrame',
|
|
15384
|
+
EmbedderExtensionFrame = 'EmbedderExtensionFrame',
|
|
15384
15385
|
RequestedByWebViewClient = 'RequestedByWebViewClient',
|
|
15385
15386
|
PostMessageByWebViewClient = 'PostMessageByWebViewClient',
|
|
15386
15387
|
CacheControlNoStoreDeviceBoundSessionTerminated = 'CacheControlNoStoreDeviceBoundSessionTerminated',
|
|
@@ -19040,6 +19041,10 @@ export namespace Target {
|
|
|
19040
19041
|
* Whether the target has an attached client.
|
|
19041
19042
|
*/
|
|
19042
19043
|
attached: boolean;
|
|
19044
|
+
/**
|
|
19045
|
+
* Id of the parent target, if any. For example, "iframe" target may have a "page" parent.
|
|
19046
|
+
*/
|
|
19047
|
+
parentId?: TargetID;
|
|
19043
19048
|
/**
|
|
19044
19049
|
* Opener target Id
|
|
19045
19050
|
*/
|
|
@@ -20317,6 +20322,10 @@ export namespace WebMCP {
|
|
|
20317
20322
|
* A hint indicating that the tool does not modify any state.
|
|
20318
20323
|
*/
|
|
20319
20324
|
readOnly?: boolean;
|
|
20325
|
+
/**
|
|
20326
|
+
* A hint indicating that the tool output may contain untrusted content, ex: UGC, 3rd party data.
|
|
20327
|
+
*/
|
|
20328
|
+
untrustedContent?: boolean;
|
|
20320
20329
|
/**
|
|
20321
20330
|
* If the declarative tool was declared with the autosubmit attribute.
|
|
20322
20331
|
*/
|
|
@@ -20366,6 +20375,20 @@ export namespace WebMCP {
|
|
|
20366
20375
|
stackTrace?: Runtime.StackTrace;
|
|
20367
20376
|
}
|
|
20368
20377
|
|
|
20378
|
+
/**
|
|
20379
|
+
* Definition of a tool that was removed.
|
|
20380
|
+
*/
|
|
20381
|
+
export interface RemovedTool {
|
|
20382
|
+
/**
|
|
20383
|
+
* Tool name.
|
|
20384
|
+
*/
|
|
20385
|
+
name: string;
|
|
20386
|
+
/**
|
|
20387
|
+
* Frame identifier associated with the tool registration.
|
|
20388
|
+
*/
|
|
20389
|
+
frameId: Page.FrameId;
|
|
20390
|
+
}
|
|
20391
|
+
|
|
20369
20392
|
export interface InvokeToolRequest {
|
|
20370
20393
|
/**
|
|
20371
20394
|
* Frame in which to invoke the tool.
|
|
@@ -20412,7 +20435,7 @@ export namespace WebMCP {
|
|
|
20412
20435
|
/**
|
|
20413
20436
|
* Array of tools that were removed.
|
|
20414
20437
|
*/
|
|
20415
|
-
tools:
|
|
20438
|
+
tools: RemovedTool[];
|
|
20416
20439
|
}
|
|
20417
20440
|
|
|
20418
20441
|
/**
|
|
@@ -61,7 +61,6 @@ interface Element {
|
|
|
61
61
|
createChild<K extends keyof HTMLElementTagNameMap>(tagName: K, className?: string): HTMLElementTagNameMap[K];
|
|
62
62
|
hasFocus(): boolean;
|
|
63
63
|
positionAt(x: (number|undefined), y: (number|undefined), relativeTo?: Element): void;
|
|
64
|
-
removeChildren(): void;
|
|
65
64
|
scrollIntoViewIfNeeded(center?: boolean): void;
|
|
66
65
|
}
|
|
67
66
|
|
|
@@ -86,6 +85,7 @@ interface Node {
|
|
|
86
85
|
isSelfOrDescendant(node: Node|null): boolean;
|
|
87
86
|
parentElementOrShadowHost(): Element|null;
|
|
88
87
|
parentNodeOrShadowHost(): Node|null;
|
|
88
|
+
removeChildren(): void;
|
|
89
89
|
setTextContentTruncatedIfNeeded(text: unknown, placeholder?: string): boolean;
|
|
90
90
|
traverseNextNode(stayWithin?: Node): Node|null;
|
|
91
91
|
traversePreviousNode(stayWithin?: Node): Node|null;
|
|
@@ -269,6 +269,7 @@ export class AiConversation {
|
|
|
269
269
|
this.history.push(item);
|
|
270
270
|
await AiHistoryStorage.instance().upsertHistoryEntry(this.serialize());
|
|
271
271
|
if (item.type === ResponseType.USER_QUERY) {
|
|
272
|
+
void AiHistoryStorage.instance().addRecentPrompt(item.query);
|
|
272
273
|
if (item.imageId && item.imageInput && 'inlineData' in item.imageInput) {
|
|
273
274
|
const inlineData = item.imageInput.inlineData;
|
|
274
275
|
await AiHistoryStorage.instance().upsertImage({
|
|
@@ -37,6 +37,8 @@ export interface SerializedImage {
|
|
|
37
37
|
let instance: AiHistoryStorage|null = null;
|
|
38
38
|
|
|
39
39
|
const DEFAULT_MAX_STORAGE_SIZE = 50 * 1024 * 1024;
|
|
40
|
+
export const MAX_RECENT_PROMPTS_COUNT = 20;
|
|
41
|
+
export const RECENT_PROMPTS_SIZE_LIMIT = 100 * 1024;
|
|
40
42
|
|
|
41
43
|
export const enum Events {
|
|
42
44
|
HISTORY_DELETED = 'AiHistoryDeleted',
|
|
@@ -49,6 +51,7 @@ export interface EventTypes {
|
|
|
49
51
|
export class AiHistoryStorage extends Common.ObjectWrapper.ObjectWrapper<EventTypes> {
|
|
50
52
|
#historySetting: Common.Settings.Setting<SerializedConversation[]>;
|
|
51
53
|
#imageHistorySettings: Common.Settings.Setting<SerializedImage[]>;
|
|
54
|
+
#recentPromptsSetting: Common.Settings.Setting<string[]>;
|
|
52
55
|
#mutex = new Common.Mutex.Mutex();
|
|
53
56
|
#maxStorageSize: number;
|
|
54
57
|
|
|
@@ -59,12 +62,47 @@ export class AiHistoryStorage extends Common.ObjectWrapper.ObjectWrapper<EventTy
|
|
|
59
62
|
'ai-assistance-history-images',
|
|
60
63
|
[],
|
|
61
64
|
);
|
|
65
|
+
this.#recentPromptsSetting = Common.Settings.Settings.instance().createSetting('ai-assistance-recent-prompts', []);
|
|
62
66
|
this.#maxStorageSize = maxStorageSize;
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
clearForTest(): void {
|
|
66
70
|
this.#historySetting.set([]);
|
|
67
71
|
this.#imageHistorySettings.set([]);
|
|
72
|
+
this.#recentPromptsSetting.set([]);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async addRecentPrompt(prompt: string): Promise<void> {
|
|
76
|
+
if (!prompt.trim()) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const release = await this.#mutex.acquire();
|
|
80
|
+
try {
|
|
81
|
+
const recentPrompts = await this.#recentPromptsSetting.forceGet();
|
|
82
|
+
const updatedPrompts = [prompt, ...recentPrompts.filter(p => p !== prompt)];
|
|
83
|
+
|
|
84
|
+
const promptsToBeStored: string[] = [];
|
|
85
|
+
let currentStorageSize = 0;
|
|
86
|
+
|
|
87
|
+
for (const p of updatedPrompts) {
|
|
88
|
+
if (promptsToBeStored.length >= MAX_RECENT_PROMPTS_COUNT) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
if (currentStorageSize + p.length > RECENT_PROMPTS_SIZE_LIMIT) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
currentStorageSize += p.length;
|
|
95
|
+
promptsToBeStored.push(p);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
this.#recentPromptsSetting.set(promptsToBeStored);
|
|
99
|
+
} finally {
|
|
100
|
+
release();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
getRecentPrompts(): string[] {
|
|
105
|
+
return structuredClone(this.#recentPromptsSetting.get());
|
|
68
106
|
}
|
|
69
107
|
|
|
70
108
|
async upsertHistoryEntry(agentEntry: SerializedConversation): Promise<void> {
|
|
@@ -145,6 +183,7 @@ export class AiHistoryStorage extends Common.ObjectWrapper.ObjectWrapper<EventTy
|
|
|
145
183
|
try {
|
|
146
184
|
this.#historySetting.set([]);
|
|
147
185
|
this.#imageHistorySettings.set([]);
|
|
186
|
+
this.#recentPromptsSetting.set([]);
|
|
148
187
|
} finally {
|
|
149
188
|
release();
|
|
150
189
|
this.dispatchEventToListeners(Events.HISTORY_DELETED);
|
|
@@ -463,6 +463,8 @@ export abstract class AiAgent<T> {
|
|
|
463
463
|
}
|
|
464
464
|
const enableAidaFunctionCalling = declarations.length;
|
|
465
465
|
const userTier = Host.AidaClient.convertToUserTierEnum(this.userTier);
|
|
466
|
+
const clientFeatureName = Host.AidaClient.getClientFeatureName(this.clientFeature);
|
|
467
|
+
debugLog(`Client ${clientFeatureName} running with userTier ${this.userTier}`);
|
|
466
468
|
const preamble = userTier === Host.AidaClient.UserTier.TESTERS ? this.preamble : undefined;
|
|
467
469
|
const facts = Array.from(this.#facts);
|
|
468
470
|
const request: Host.AidaClient.DoConversationRequest = {
|