chrome-devtools-frontend 1.0.1538523 → 1.0.1539972
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/eslint.config.mjs +1 -1
- package/front_end/core/common/Debouncer.ts +2 -2
- package/front_end/core/common/Gzip.ts +1 -1
- package/front_end/core/common/Throttler.ts +3 -3
- package/front_end/core/host/GdpClient.ts +4 -0
- package/front_end/core/protocol_client/CDPConnection.ts +12 -10
- package/front_end/core/protocol_client/DevToolsCDPConnection.ts +181 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +55 -249
- package/front_end/core/protocol_client/protocol_client.ts +2 -2
- package/front_end/core/sdk/ChildTargetManager.ts +5 -41
- package/front_end/core/sdk/Connections.ts +9 -58
- package/front_end/core/sdk/DOMModel.ts +1 -0
- package/front_end/core/sdk/DebuggerModel.ts +3 -16
- package/front_end/core/sdk/RehydratingConnection.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +4 -0
- package/front_end/core/sdk/Target.ts +3 -6
- package/front_end/core/sdk/TargetManager.ts +1 -2
- package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +13 -26
- package/front_end/entrypoints/node_app/{NodeConnectionsPanel.ts → app/NodeConnectionsPanel.ts} +8 -8
- package/front_end/entrypoints/node_app/{NodeMain.ts → app/NodeMain.ts} +12 -11
- package/front_end/entrypoints/node_app/app/app.ts +6 -0
- package/front_end/entrypoints/node_app/node_app.ts +4 -2
- package/front_end/generated/Deprecation.ts +8 -0
- package/front_end/generated/{InspectorBackendCommands.js → InspectorBackendCommands.ts} +18 -36
- package/front_end/generated/SupportedCSSProperties.js +50 -9
- package/front_end/generated/protocol.ts +2 -2
- package/front_end/models/ai_assistance/EvaluateAction.ts +88 -5
- package/front_end/models/ai_assistance/injected.ts +15 -2
- package/front_end/models/live-metrics/web-vitals-injected/README.md +1 -1
- package/front_end/models/trace/Styles.ts +1 -1
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +18 -3
- package/front_end/models/trace/types/TraceEvents.ts +19 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +49 -26
- package/front_end/panels/ai_assistance/PatchWidget.ts +22 -12
- package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -135
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +170 -0
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +4 -4
- package/front_end/panels/ai_assistance/components/chatView.css +0 -31
- package/front_end/panels/ai_assistance/components/disabledWidget.css +45 -0
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/application/components/FrameDetailsView.ts +1 -1
- package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +4 -4
- package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +2 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +123 -95
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
- package/front_end/panels/elements/NodeStackTraceWidget.ts +8 -2
- package/front_end/panels/elements/PropertiesWidget.ts +3 -2
- package/front_end/panels/event_listeners/EventListenersView.ts +9 -5
- package/front_end/panels/explain/components/ConsoleInsight.ts +2 -3
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +57 -33
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +12 -5
- package/front_end/panels/network/RequestInitiatorView.ts +1 -1
- package/front_end/panels/network/RequestPayloadView.ts +2 -1
- package/front_end/panels/network/RequestTimingView.ts +4 -2
- package/front_end/panels/network/components/EditableSpan.ts +1 -1
- package/front_end/panels/network/components/RequestHeadersView.ts +24 -17
- package/front_end/panels/protocol_monitor/JSONEditor.ts +2 -2
- package/front_end/panels/recorder/RecorderController.ts +6 -7
- package/front_end/panels/recorder/components/StepView.ts +1 -1
- package/front_end/panels/recorder/models/RecordingPlayer.ts +7 -6
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +4 -4
- package/front_end/panels/sources/BreakpointsView.ts +3 -3
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +4 -3
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
- package/front_end/panels/timeline/TimelineFlameChartView.ts +10 -10
- package/front_end/panels/timeline/TimelinePanel.ts +3 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +21 -24
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +9 -5
- package/front_end/panels/timeline/components/LiveMetricsView.ts +20 -9
- package/front_end/panels/timeline/components/MetricCard.ts +4 -2
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +3 -2
- package/front_end/panels/utils/utils.ts +4 -2
- package/front_end/services/puppeteer/PuppeteerConnection.ts +57 -53
- 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/Browser.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +29 -9
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +11 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +9 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +1 -0
- 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 +21 -0
- 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 +4 -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/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +11 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.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 +29 -27
- 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/common/CallbackRegistry.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +7 -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 +4 -0
- 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 +10 -4
- 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/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/es5-iife/puppeteer-core-browser.d.ts +14 -3
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +97 -43
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +29 -9
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +11 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +9 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +1 -0
- 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 +21 -0
- 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 +4 -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/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js +11 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.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 +30 -28
- 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/common/CallbackRegistry.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +7 -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/node/BrowserLauncher.d.ts +4 -0
- 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 +10 -4
- 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/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/types.d.ts +14 -3
- package/front_end/third_party/puppeteer/package/package.json +3 -3
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +4 -2
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +3 -1
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +8 -1
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +4 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +38 -10
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +8 -2
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +32 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/CdpSession.ts +2 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +15 -1
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +36 -43
- package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +7 -5
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +22 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/dialogs/ButtonDialog.ts +15 -5
- package/front_end/ui/components/expandable_list/ExpandableList.ts +1 -1
- package/front_end/ui/components/helpers/helpers.ts +0 -2
- package/front_end/ui/components/menus/Menu.ts +5 -3
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.docs.ts +22 -0
- package/front_end/ui/components/switch/Switch.docs.ts +38 -0
- package/front_end/ui/components/tooltips/Tooltip.ts +69 -45
- package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -2
- package/front_end/ui/legacy/SelectMenu.docs.ts +14 -0
- package/front_end/ui/legacy/Slider.docs.ts +49 -0
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +453 -347
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +77 -5
- package/front_end/ui/legacy/components/utils/Linkifier.ts +62 -3
- package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
- package/package.json +1 -1
- package/front_end/core/protocol_client/NodeURL.ts +0 -42
- package/front_end/third_party/puppeteer/package/src/templates/version.ts.tmpl +0 -4
- package/front_end/ui/components/docs/color_swatch/basic.html +0 -32
- package/front_end/ui/components/docs/color_swatch/basic.ts +0 -38
- package/front_end/ui/components/docs/color_swatch/change-color.html +0 -24
- package/front_end/ui/components/docs/color_swatch/change-color.ts +0 -28
- package/front_end/ui/components/docs/combo_box/basic.html +0 -20
- package/front_end/ui/components/docs/combo_box/basic.ts +0 -49
- package/front_end/ui/components/docs/computed_style_property/basic.html +0 -25
- package/front_end/ui/components/docs/computed_style_property/basic.ts +0 -19
- package/front_end/ui/components/docs/computed_style_property/traceable.html +0 -25
- package/front_end/ui/components/docs/computed_style_property/traceable.ts +0 -16
- package/front_end/ui/components/docs/computed_style_trace/basic.html +0 -25
- package/front_end/ui/components/docs/computed_style_trace/basic.ts +0 -24
- package/front_end/ui/components/docs/console_insight/basic.html +0 -28
- package/front_end/ui/components/docs/console_insight/basic.ts +0 -103
- package/front_end/ui/components/docs/console_insight/error.html +0 -28
- package/front_end/ui/components/docs/console_insight/error.ts +0 -33
- package/front_end/ui/components/docs/console_insight/loading.html +0 -28
- package/front_end/ui/components/docs/console_insight/loading.ts +0 -47
- package/front_end/ui/components/docs/elements_breadcrumbs/basic.html +0 -43
- package/front_end/ui/components/docs/elements_breadcrumbs/basic.ts +0 -54
- package/front_end/ui/components/docs/elements_breadcrumbs/helpers.ts +0 -29
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.html +0 -38
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.ts +0 -90
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll.html +0 -29
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll.ts +0 -62
- package/front_end/ui/components/docs/icon_button/basic.html +0 -34
- package/front_end/ui/components/docs/icon_button/basic.ts +0 -67
- package/front_end/ui/components/docs/issue_counter/basic.html +0 -35
- package/front_end/ui/components/docs/issue_counter/basic.ts +0 -34
- package/front_end/ui/components/docs/issue_link_icon/basic.html +0 -31
- package/front_end/ui/components/docs/issue_link_icon/basic.ts +0 -26
- package/front_end/ui/components/docs/legacy_color_invert/basic.html +0 -77
- package/front_end/ui/components/docs/legacy_color_invert/basic.ts +0 -98
- package/front_end/ui/components/docs/linear_memory_inspector/basic.html +0 -26
- package/front_end/ui/components/docs/linear_memory_inspector/basic.ts +0 -44
- package/front_end/ui/components/docs/menu/basic.html +0 -28
- package/front_end/ui/components/docs/menu/basic.ts +0 -66
- package/front_end/ui/components/docs/recorder_control_button/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_control_button/basic.ts +0 -15
- package/front_end/ui/components/docs/recorder_recording_list_view/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_recording_list_view/basic.ts +0 -26
- package/front_end/ui/components/docs/recorder_select_button/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_select_button/basic.ts +0 -81
- package/front_end/ui/components/docs/recorder_split_view/basic.html +0 -17
- package/front_end/ui/components/docs/recorder_split_view/basic.ts +0 -22
- package/front_end/ui/components/docs/request_link_icon/basic.html +0 -31
- package/front_end/ui/components/docs/request_link_icon/basic.ts +0 -21
- package/front_end/ui/components/docs/slider/basic.ts +0 -62
- package/front_end/ui/components/docs/style_property_editor/flex.html +0 -21
- package/front_end/ui/components/docs/style_property_editor/flex.ts +0 -52
- package/front_end/ui/components/docs/style_property_editor/grid.html +0 -22
- package/front_end/ui/components/docs/style_property_editor/grid.ts +0 -50
- package/front_end/ui/components/docs/style_property_editor/masonry.html +0 -21
- package/front_end/ui/components/docs/style_property_editor/masonry.ts +0 -50
- package/front_end/ui/components/docs/survey_link/basic.html +0 -20
- package/front_end/ui/components/docs/survey_link/basic.ts +0 -28
- package/front_end/ui/components/docs/switch/basic.ts +0 -51
- package/front_end/ui/components/docs/tree_outline/basic.html +0 -33
- package/front_end/ui/components/docs/tree_outline/basic.ts +0 -38
- package/front_end/ui/components/docs/tree_outline/custom-renderers.html +0 -32
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +0 -61
- package/front_end/ui/components/docs/tree_outline/lazy-children.html +0 -32
- package/front_end/ui/components/docs/tree_outline/lazy-children.ts +0 -91
- package/front_end/ui/components/docs/tree_outline/sample-data.ts +0 -67
- package/front_end/ui/components/helpers/directives.ts +0 -38
- /package/front_end/entrypoints/node_app/{nodeConnectionsPanel.css → app/nodeConnectionsPanel.css} +0 -0
|
@@ -39,6 +39,7 @@ import * as i18n from '../../../../core/i18n/i18n.js';
|
|
|
39
39
|
import * as Platform from '../../../../core/platform/platform.js';
|
|
40
40
|
import * as SDK from '../../../../core/sdk/sdk.js';
|
|
41
41
|
import type * as Protocol from '../../../../generated/protocol.js';
|
|
42
|
+
import * as StackTrace from '../../../../models/stack_trace/stack_trace.js';
|
|
42
43
|
import * as Workspace from '../../../../models/workspace/workspace.js';
|
|
43
44
|
import * as VisualLogging from '../../../visual_logging/visual_logging.js';
|
|
44
45
|
import * as UI from '../../legacy.js';
|
|
@@ -95,7 +96,8 @@ function populateContextMenu(link: Element, event: Event): void {
|
|
|
95
96
|
void contextMenu.show();
|
|
96
97
|
}
|
|
97
98
|
|
|
98
|
-
|
|
99
|
+
// TODO(crbug.com/456517732): remove when all usages of runtimeStackTrace are migrated.
|
|
100
|
+
export function buildStackTraceRowsForLegacyRuntimeStackTrace(
|
|
99
101
|
stackTrace: Protocol.Runtime.StackTrace,
|
|
100
102
|
target: SDK.Target.Target|null,
|
|
101
103
|
linkifier: Linkifier,
|
|
@@ -158,6 +160,63 @@ export function buildStackTraceRows(
|
|
|
158
160
|
return stackTraceRows;
|
|
159
161
|
}
|
|
160
162
|
|
|
163
|
+
export function buildStackTraceRows(
|
|
164
|
+
stackTrace: StackTrace.StackTrace.StackTrace,
|
|
165
|
+
target: SDK.Target.Target|null,
|
|
166
|
+
linkifier: Linkifier,
|
|
167
|
+
tabStops: boolean|undefined,
|
|
168
|
+
showColumnNumber?: boolean,
|
|
169
|
+
): Array<StackTraceRegularRow|StackTraceAsyncRow> {
|
|
170
|
+
const stackTraceRows: Array<StackTraceRegularRow|StackTraceAsyncRow> = [];
|
|
171
|
+
|
|
172
|
+
function buildStackTraceRowsHelper(
|
|
173
|
+
fragment: StackTrace.StackTrace.Fragment|StackTrace.StackTrace.AsyncFragment,
|
|
174
|
+
previousFragment: StackTrace.StackTrace.Fragment|undefined = undefined): void {
|
|
175
|
+
let asyncRow: StackTraceAsyncRow|null = null;
|
|
176
|
+
const isAsync = 'description' in fragment;
|
|
177
|
+
if (previousFragment && isAsync) {
|
|
178
|
+
asyncRow = {
|
|
179
|
+
asyncDescription: UI.UIUtils.asyncStackTraceLabel(
|
|
180
|
+
fragment.description, previousFragment.frames.map(f => ({functionName: f.name ?? ''}))),
|
|
181
|
+
};
|
|
182
|
+
stackTraceRows.push(asyncRow);
|
|
183
|
+
}
|
|
184
|
+
let previousStackFrameWasBreakpointCondition = false;
|
|
185
|
+
for (const frame of fragment.frames) {
|
|
186
|
+
const functionName = UI.UIUtils.beautifyFunctionName(frame.name ?? '');
|
|
187
|
+
const link = linkifier.maybeLinkifyStackTraceFrame(target, frame, {
|
|
188
|
+
showColumnNumber,
|
|
189
|
+
tabStop: Boolean(tabStops),
|
|
190
|
+
inlineFrameIndex: 0,
|
|
191
|
+
revealBreakpoint: previousStackFrameWasBreakpointCondition,
|
|
192
|
+
});
|
|
193
|
+
if (link) {
|
|
194
|
+
link.setAttribute('jslog', `${VisualLogging.link('stack-trace').track({click: true})}`);
|
|
195
|
+
link.addEventListener('contextmenu', populateContextMenu.bind(null, link));
|
|
196
|
+
|
|
197
|
+
if (!link.textContent) {
|
|
198
|
+
link.textContent = i18nString(UIStrings.unknownSource);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
stackTraceRows.push({functionName, link});
|
|
202
|
+
previousStackFrameWasBreakpointCondition = [
|
|
203
|
+
SDK.DebuggerModel.COND_BREAKPOINT_SOURCE_URL,
|
|
204
|
+
SDK.DebuggerModel.LOGPOINT_SOURCE_URL,
|
|
205
|
+
].includes(frame.url ?? '');
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
buildStackTraceRowsHelper(stackTrace.syncFragment);
|
|
210
|
+
let previousFragment = stackTrace.syncFragment;
|
|
211
|
+
for (const asyncFragment of stackTrace.asyncFragments) {
|
|
212
|
+
if (asyncFragment.frames.length) {
|
|
213
|
+
buildStackTraceRowsHelper(asyncFragment, previousFragment);
|
|
214
|
+
}
|
|
215
|
+
previousFragment = asyncFragment;
|
|
216
|
+
}
|
|
217
|
+
return stackTraceRows;
|
|
218
|
+
}
|
|
219
|
+
|
|
161
220
|
function renderStackTraceTable(
|
|
162
221
|
container: Element, parent: Element,
|
|
163
222
|
stackTraceRows: Array<StackTraceRegularRow|StackTraceAsyncRow>): HTMLElement[] {
|
|
@@ -224,7 +283,9 @@ function renderStackTraceTable(
|
|
|
224
283
|
}
|
|
225
284
|
|
|
226
285
|
export interface Options {
|
|
227
|
-
|
|
286
|
+
// TODO(crbug.com/456517732): remove when all usages of runtimeStackTrace are migrated.
|
|
287
|
+
runtimeStackTrace?: Protocol.Runtime.StackTrace;
|
|
288
|
+
stackTrace?: StackTrace.StackTrace.StackTrace;
|
|
228
289
|
tabStops?: boolean;
|
|
229
290
|
// Whether the width of stack trace preview
|
|
230
291
|
// is constrained to its container or whether
|
|
@@ -269,6 +330,8 @@ export class StackTracePreviewContent extends UI.Widget.Widget {
|
|
|
269
330
|
this.#table = this.contentElement.createChild('table', 'stack-preview-container');
|
|
270
331
|
this.#table.classList.toggle('width-constrained', this.#options.widthConstrained ?? false);
|
|
271
332
|
|
|
333
|
+
this.#options.stackTrace?.addEventListener(StackTrace.StackTrace.Events.UPDATED, this.performUpdate.bind(this));
|
|
334
|
+
|
|
272
335
|
this.performUpdate();
|
|
273
336
|
}
|
|
274
337
|
|
|
@@ -277,10 +340,19 @@ export class StackTracePreviewContent extends UI.Widget.Widget {
|
|
|
277
340
|
return;
|
|
278
341
|
}
|
|
279
342
|
|
|
280
|
-
const {stackTrace, tabStops} = this.#options;
|
|
343
|
+
const {runtimeStackTrace, stackTrace, tabStops} = this.#options;
|
|
344
|
+
|
|
345
|
+
if (stackTrace) {
|
|
346
|
+
const stackTraceRows = buildStackTraceRows(
|
|
347
|
+
stackTrace, this.#target ?? null, this.#linkifier, tabStops, this.#options.showColumnNumber);
|
|
348
|
+
this.#links = renderStackTraceTable(this.#table, this.element, stackTraceRows);
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// TODO(crbug.com/456517732): remove when all usages of runtimeStackTrace are migrated.
|
|
281
353
|
const updateCallback = renderStackTraceTable.bind(null, this.#table, this.element);
|
|
282
|
-
const stackTraceRows =
|
|
283
|
-
|
|
354
|
+
const stackTraceRows = buildStackTraceRowsForLegacyRuntimeStackTrace(
|
|
355
|
+
runtimeStackTrace ?? {callFrames: []}, this.#target ?? null, this.#linkifier, tabStops, updateCallback,
|
|
284
356
|
this.#options.showColumnNumber);
|
|
285
357
|
this.#links = renderStackTraceTable(this.#table, this.element, stackTraceRows);
|
|
286
358
|
}
|
|
@@ -12,6 +12,7 @@ import * as SDK from '../../../../core/sdk/sdk.js';
|
|
|
12
12
|
import type * as Protocol from '../../../../generated/protocol.js';
|
|
13
13
|
import * as Bindings from '../../../../models/bindings/bindings.js';
|
|
14
14
|
import * as Breakpoints from '../../../../models/breakpoints/breakpoints.js';
|
|
15
|
+
import type * as StackTrace from '../../../../models/stack_trace/stack_trace.js';
|
|
15
16
|
import * as TextUtils from '../../../../models/text_utils/text_utils.js';
|
|
16
17
|
import type * as Trace from '../../../../models/trace/trace.js';
|
|
17
18
|
import * as Workspace from '../../../../models/workspace/workspace.js';
|
|
@@ -341,6 +342,53 @@ export class Linkifier extends Common.ObjectWrapper.ObjectWrapper<EventTypes> im
|
|
|
341
342
|
callFrame.url as Platform.DevToolsPath.UrlString, callFrame.lineNumber, linkifyOptions);
|
|
342
343
|
}
|
|
343
344
|
|
|
345
|
+
maybeLinkifyStackTraceFrame(
|
|
346
|
+
target: SDK.Target.Target|null, frame: StackTrace.StackTrace.Frame, options?: LinkifyOptions): HTMLElement|null {
|
|
347
|
+
let fallbackAnchor: HTMLElement|null = null;
|
|
348
|
+
const linkifyURLOptions: LinkifyURLOptions = {
|
|
349
|
+
...options,
|
|
350
|
+
lineNumber: frame.line,
|
|
351
|
+
maxLength: this.maxLength,
|
|
352
|
+
columnNumber: frame.column,
|
|
353
|
+
showColumnNumber: Boolean(options?.showColumnNumber),
|
|
354
|
+
className: options?.className,
|
|
355
|
+
tabStop: options?.tabStop,
|
|
356
|
+
inlineFrameIndex: options?.inlineFrameIndex ?? 0,
|
|
357
|
+
userMetric: options?.userMetric,
|
|
358
|
+
jslogContext: options?.jslogContext || 'script-location',
|
|
359
|
+
omitOrigin: options?.omitOrigin,
|
|
360
|
+
};
|
|
361
|
+
const {className = ''} = linkifyURLOptions;
|
|
362
|
+
if (frame.url) {
|
|
363
|
+
fallbackAnchor = Linkifier.linkifyURL(frame.url as Platform.DevToolsPath.UrlString, linkifyURLOptions);
|
|
364
|
+
}
|
|
365
|
+
if (!target || target.isDisposed()) {
|
|
366
|
+
return fallbackAnchor;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
const createLinkOptions: CreateLinkOptions = {
|
|
370
|
+
tabStop: options?.tabStop,
|
|
371
|
+
jslogContext: 'script-location',
|
|
372
|
+
};
|
|
373
|
+
const {link, linkInfo} = Linkifier.createLink(
|
|
374
|
+
fallbackAnchor?.textContent ? fallbackAnchor.textContent : '', className, createLinkOptions);
|
|
375
|
+
linkInfo.enableDecorator = this.useLinkDecorator;
|
|
376
|
+
linkInfo.fallback = fallbackAnchor;
|
|
377
|
+
linkInfo.userMetric = options?.userMetric;
|
|
378
|
+
|
|
379
|
+
const linkDisplayOptions: LinkDisplayOptions = {
|
|
380
|
+
showColumnNumber: linkifyURLOptions.showColumnNumber ?? false,
|
|
381
|
+
revealBreakpoint: options?.revealBreakpoint,
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
const uiLocation = frame.uiSourceCode?.uiLocation(frame.line, frame.column) ?? null;
|
|
385
|
+
this.updateAnchorFromUILocation(link, linkDisplayOptions, uiLocation);
|
|
386
|
+
|
|
387
|
+
const anchors = (this.anchorsByTarget.get(target) as Element[]);
|
|
388
|
+
anchors.push(link);
|
|
389
|
+
return link;
|
|
390
|
+
}
|
|
391
|
+
|
|
344
392
|
linkifyStackTraceTopFrame(target: SDK.Target.Target|null, stackTrace: Protocol.Runtime.StackTrace): HTMLElement {
|
|
345
393
|
console.assert(stackTrace.callFrames.length > 0);
|
|
346
394
|
|
|
@@ -459,6 +507,20 @@ export class Linkifier extends Common.ObjectWrapper.ObjectWrapper<EventTypes> im
|
|
|
459
507
|
return;
|
|
460
508
|
}
|
|
461
509
|
|
|
510
|
+
this.#anchorUpdaters.set(anchor, function(this: Linkifier, anchor: HTMLElement) {
|
|
511
|
+
void this.updateAnchor(anchor, options, liveLocation);
|
|
512
|
+
});
|
|
513
|
+
this.updateAnchorFromUILocation(anchor, options, uiLocation);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
private updateAnchorFromUILocation(
|
|
517
|
+
anchor: HTMLElement, options: LinkDisplayOptions, uiLocation: Workspace.UISourceCode.UILocation|null): void {
|
|
518
|
+
if (!uiLocation) {
|
|
519
|
+
anchor.classList.add('invalid-link');
|
|
520
|
+
anchor.removeAttribute('role');
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
|
|
462
524
|
Linkifier.bindUILocation(anchor, uiLocation);
|
|
463
525
|
if (options.revealBreakpoint) {
|
|
464
526
|
Linkifier.bindBreakpoint(anchor, uiLocation);
|
|
@@ -466,9 +528,6 @@ export class Linkifier extends Common.ObjectWrapper.ObjectWrapper<EventTypes> im
|
|
|
466
528
|
|
|
467
529
|
const text = uiLocation.linkText(true /* skipTrim */, options.showColumnNumber);
|
|
468
530
|
Linkifier.setTrimmedText(anchor, text, this.maxLength);
|
|
469
|
-
this.#anchorUpdaters.set(anchor, function(this: Linkifier, anchor: HTMLElement) {
|
|
470
|
-
void this.updateAnchor(anchor, options, liveLocation);
|
|
471
|
-
});
|
|
472
531
|
|
|
473
532
|
let titleText: string = uiLocation.uiSourceCode.url();
|
|
474
533
|
if (uiLocation.uiSourceCode.mimeType() === 'application/wasm') {
|
|
@@ -809,6 +809,10 @@ export const knownContextValues = new Set([
|
|
|
809
809
|
'column-rule',
|
|
810
810
|
'column-rule-break',
|
|
811
811
|
'column-rule-color',
|
|
812
|
+
'column-rule-edge-end-outset',
|
|
813
|
+
'column-rule-edge-start-outset',
|
|
814
|
+
'column-rule-interior-end-outset',
|
|
815
|
+
'column-rule-interior-start-outset',
|
|
812
816
|
'column-rule-outset',
|
|
813
817
|
'column-rule-style',
|
|
814
818
|
'column-rule-visibility-items',
|
|
@@ -3163,6 +3167,10 @@ export const knownContextValues = new Set([
|
|
|
3163
3167
|
'row-rule',
|
|
3164
3168
|
'row-rule-break',
|
|
3165
3169
|
'row-rule-color',
|
|
3170
|
+
'row-rule-edge-end-outset',
|
|
3171
|
+
'row-rule-edge-start-outset',
|
|
3172
|
+
'row-rule-interior-end-outset',
|
|
3173
|
+
'row-rule-interior-start-outset',
|
|
3166
3174
|
'row-rule-outset',
|
|
3167
3175
|
'row-rule-style',
|
|
3168
3176
|
'row-rule-visibility-items',
|
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// Copyright 2018 The Chromium Authors
|
|
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 Common from '../common/common.js';
|
|
6
|
-
import * as Host from '../host/host.js';
|
|
7
|
-
import type * as Platform from '../platform/platform.js';
|
|
8
|
-
|
|
9
|
-
export class NodeURL {
|
|
10
|
-
static patch(object: {
|
|
11
|
-
url?: string,
|
|
12
|
-
}): void {
|
|
13
|
-
process(object, '');
|
|
14
|
-
|
|
15
|
-
function process(object: {url?: string}, path: string): void {
|
|
16
|
-
if (object.url && NodeURL.isPlatformPath(object.url, Host.Platform.isWin())) {
|
|
17
|
-
// object.url can be of both types: RawPathString and UrlString
|
|
18
|
-
object.url = Common.ParsedURL.ParsedURL.rawPathToUrlString(object.url as Platform.DevToolsPath.RawPathString);
|
|
19
|
-
}
|
|
20
|
-
for (const entry of Object.entries(object)) {
|
|
21
|
-
const key = entry[0];
|
|
22
|
-
const value = entry[1];
|
|
23
|
-
const entryPath = path + '.' + key;
|
|
24
|
-
if (entryPath !== '.result.result.value' && value !== null && typeof value === 'object') {
|
|
25
|
-
process(
|
|
26
|
-
(value as {
|
|
27
|
-
url: string,
|
|
28
|
-
}),
|
|
29
|
-
entryPath);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
static isPlatformPath(fileSystemPath: string, isWindows: boolean): boolean {
|
|
36
|
-
if (isWindows) {
|
|
37
|
-
const re = /^([a-z]:[\/\\]|\\\\)/i;
|
|
38
|
-
return re.test(fileSystemPath);
|
|
39
|
-
}
|
|
40
|
-
return fileSystemPath.length ? fileSystemPath[0] === '/' : false;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Color Swatch example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-wrap: wrap;
|
|
16
|
-
margin: 0;
|
|
17
|
-
padding: 0;
|
|
18
|
-
}
|
|
19
|
-
#container > li {
|
|
20
|
-
padding: .5rem;
|
|
21
|
-
border: 1px solid;
|
|
22
|
-
margin: 0 .5rem;
|
|
23
|
-
list-style: none;
|
|
24
|
-
}
|
|
25
|
-
</style>
|
|
26
|
-
</head>
|
|
27
|
-
<body>
|
|
28
|
-
<ul id="container">
|
|
29
|
-
</ul>
|
|
30
|
-
<script type="module" src="./basic.js"></script>
|
|
31
|
-
</body>
|
|
32
|
-
</html>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors
|
|
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 Common from '../../../../core/common/common.js';
|
|
6
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
7
|
-
import * as InlineEditor from '../../../legacy/components/inline_editor/inline_editor.js';
|
|
8
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
9
|
-
|
|
10
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
11
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
12
|
-
|
|
13
|
-
function appendExample(swatch: InlineEditor.ColorSwatch.ColorSwatch): void {
|
|
14
|
-
const li = document.createElement('li');
|
|
15
|
-
li.appendChild(swatch);
|
|
16
|
-
document.querySelector('#container')?.appendChild(li);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Simple
|
|
20
|
-
let component = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
21
|
-
component.renderColor(Common.Color.parse('#f06') as Common.Color.Color);
|
|
22
|
-
appendExample(component);
|
|
23
|
-
|
|
24
|
-
// No text next to the swatch
|
|
25
|
-
component = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
26
|
-
component.renderColor(Common.Color.parse('gold') as Common.Color.Color);
|
|
27
|
-
let content = document.createElement('span');
|
|
28
|
-
content.textContent = '';
|
|
29
|
-
component.appendChild(content);
|
|
30
|
-
appendExample(component);
|
|
31
|
-
|
|
32
|
-
// Custom content
|
|
33
|
-
component = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
34
|
-
component.renderColor(Common.Color.parse('rebeccapurple') as Common.Color.Color);
|
|
35
|
-
content = document.createElement('span');
|
|
36
|
-
content.textContent = 'custom content';
|
|
37
|
-
component.appendChild(content);
|
|
38
|
-
appendExample(component);
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Color Swatch picker example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#picker {
|
|
14
|
-
visibility: hidden;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
<body>
|
|
19
|
-
<div id="container">
|
|
20
|
-
<input type="color" id="picker">
|
|
21
|
-
</div>
|
|
22
|
-
<script type="module" src="./change-color.js"></script>
|
|
23
|
-
</body>
|
|
24
|
-
</html>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors
|
|
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 Common from '../../../../core/common/common.js';
|
|
6
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
7
|
-
import * as InlineEditor from '../../../legacy/components/inline_editor/inline_editor.js';
|
|
8
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
9
|
-
|
|
10
|
-
const container = document.querySelector('#container');
|
|
11
|
-
const picker = document.querySelector<HTMLInputElement>('#picker');
|
|
12
|
-
|
|
13
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
14
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
15
|
-
|
|
16
|
-
const component = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
17
|
-
document.getElementById('container')?.appendChild(component);
|
|
18
|
-
component.renderColor(Common.Color.parse('#f06') as Common.Color.Color);
|
|
19
|
-
container?.insertBefore(component, picker);
|
|
20
|
-
|
|
21
|
-
picker?.addEventListener('input', e => {
|
|
22
|
-
const color = Common.Color.parse((e.target as HTMLInputElement).value);
|
|
23
|
-
if (color) {
|
|
24
|
-
component.renderColor(color);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
component.addEventListener(InlineEditor.ColorSwatch.ClickEvent.eventName, () => picker?.click());
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2025 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Basic ComboBox example</title>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
|
|
15
|
-
<div id="container">
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<script type="module" src="./basic.js"></script>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Chromium Authors
|
|
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 UI from '../../../legacy/legacy.js';
|
|
6
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
7
|
-
|
|
8
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
9
|
-
function comboBoxExample({tabIndex, disabled}: {
|
|
10
|
-
tabIndex: number,
|
|
11
|
-
disabled: boolean,
|
|
12
|
-
}): HTMLElement {
|
|
13
|
-
const example = document.createElement('div');
|
|
14
|
-
example.style.marginTop = '20px';
|
|
15
|
-
const disabledExplanation = document.createElement('div');
|
|
16
|
-
const tabbableExplanation = document.createElement('div');
|
|
17
|
-
const component = UI.UIUtils.createSelect('Select an option', ['Hamster', 'Mouse', 'Cat']);
|
|
18
|
-
component.disabled = disabled;
|
|
19
|
-
component.tabIndex = tabIndex;
|
|
20
|
-
disabledExplanation.textContent = `is disabled? ${component.disabled}`;
|
|
21
|
-
tabbableExplanation.textContent = `is tabbable? ${component.tabIndex >= 0}`;
|
|
22
|
-
|
|
23
|
-
example.appendChild(component);
|
|
24
|
-
example.appendChild(disabledExplanation);
|
|
25
|
-
example.appendChild(tabbableExplanation);
|
|
26
|
-
return example;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function init(): void {
|
|
30
|
-
const container = document.getElementById('container');
|
|
31
|
-
if (!container) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
container.style.padding = '42px 42px';
|
|
36
|
-
container.style.margin = '42px 42px';
|
|
37
|
-
container.style.border = '1px solid rgb(0 0 0 / 20%)';
|
|
38
|
-
|
|
39
|
-
// Basic
|
|
40
|
-
container.appendChild(comboBoxExample({tabIndex: 0, disabled: false}));
|
|
41
|
-
|
|
42
|
-
// Not tab reachable
|
|
43
|
-
container.appendChild(comboBoxExample({tabIndex: -1, disabled: false}));
|
|
44
|
-
|
|
45
|
-
// Disabled
|
|
46
|
-
container.appendChild(comboBoxExample({tabIndex: 0, disabled: true}));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
init();
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>inherited Computed Style Property example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
width: 80%;
|
|
15
|
-
border: 1px solid black;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="container">
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<script type="module" src="./basic.js"></script>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Copyright 2020 The Chromium Authors
|
|
3
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
// found in the LICENSE file.
|
|
5
|
-
|
|
6
|
-
import * as Elements from '../../../../panels/elements/components/components.js';
|
|
7
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
8
|
-
|
|
9
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
10
|
-
|
|
11
|
-
const component = new Elements.ComputedStyleProperty.ComputedStyleProperty();
|
|
12
|
-
|
|
13
|
-
document.getElementById('container')?.appendChild(component);
|
|
14
|
-
component.innerHTML = `
|
|
15
|
-
<span slot="name">display</span>
|
|
16
|
-
<span slot="value">block</span>
|
|
17
|
-
`;
|
|
18
|
-
component.traceable = false;
|
|
19
|
-
component.inherited = true;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>traceable Computed Style Property example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
width: 80%;
|
|
15
|
-
border: 1px solid black;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="container">
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<script type="module" src="./traceable.js"></script>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Copyright 2020 The Chromium Authors
|
|
3
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
// found in the LICENSE file.
|
|
5
|
-
|
|
6
|
-
import * as Elements from '../../../../panels/elements/components/components.js';
|
|
7
|
-
|
|
8
|
-
const component = new Elements.ComputedStyleProperty.ComputedStyleProperty();
|
|
9
|
-
|
|
10
|
-
document.getElementById('container')?.appendChild(component);
|
|
11
|
-
component.innerHTML = `
|
|
12
|
-
<span slot="name">display</span>
|
|
13
|
-
<span slot="value">grid</span>
|
|
14
|
-
`;
|
|
15
|
-
component.traceable = true;
|
|
16
|
-
component.inherited = false;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>basic Computed Style Trace example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
width: 80%;
|
|
15
|
-
border: 1px solid black;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="container">
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<script type="module" src="./basic.js"></script>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors
|
|
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 Elements from '../../../../panels/elements/components/components.js';
|
|
6
|
-
|
|
7
|
-
const component = new Elements.ComputedStyleTrace.ComputedStyleTrace();
|
|
8
|
-
|
|
9
|
-
const traceValue = document.createElement('span');
|
|
10
|
-
traceValue.textContent = 'block';
|
|
11
|
-
traceValue.slot = 'trace-value';
|
|
12
|
-
component.appendChild(traceValue);
|
|
13
|
-
|
|
14
|
-
const traceLink = document.createElement('span');
|
|
15
|
-
traceLink.textContent = 'user agent stylesheet';
|
|
16
|
-
traceLink.slot = 'trace-link';
|
|
17
|
-
component.appendChild(traceLink);
|
|
18
|
-
|
|
19
|
-
document.getElementById('container')?.appendChild(component);
|
|
20
|
-
component.data = {
|
|
21
|
-
selector: 'body',
|
|
22
|
-
active: true,
|
|
23
|
-
onNavigateToSource: () => {},
|
|
24
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2023 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Basic Console Insight example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
border: 1px solid;
|
|
16
|
-
width: 600px;
|
|
17
|
-
margin: 1em;
|
|
18
|
-
padding: 1em;
|
|
19
|
-
background-color: aqua;
|
|
20
|
-
}
|
|
21
|
-
</style>
|
|
22
|
-
</head>
|
|
23
|
-
<body>
|
|
24
|
-
<div id="container"></div>
|
|
25
|
-
|
|
26
|
-
<script type="module" src="./basic.js"></script>
|
|
27
|
-
</body>
|
|
28
|
-
</html>
|