chrome-devtools-frontend 1.0.1736236 → 1.0.1739869
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +1 -1
- package/.agents/skills/version-control/SKILL.md +63 -11
- package/.stylelintrc.json +3 -1
- package/docs/devtools-protocol.md +3 -1
- package/eslint.config.mjs +127 -6
- package/front_end/application_tokens.css +0 -30
- package/front_end/core/host/AidaClient.ts +14 -36
- package/front_end/core/host/AidaGcaTranslation.ts +8 -5
- package/front_end/core/root/Runtime.ts +0 -5
- package/front_end/core/sdk/SourceMap.ts +30 -3
- package/front_end/core/sdk/SourceMapRangeMappings.ts +57 -0
- package/front_end/design_system_tokens.css +1 -0
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +5 -9
- package/front_end/entrypoints/main/GlobalAiButton.ts +2 -9
- package/front_end/entrypoints/main/MainImpl.ts +0 -4
- package/front_end/generated/SupportedCSSProperties.ts +24 -23
- package/front_end/models/ai-utils/AiUtils.ts +1 -5
- package/front_end/models/ai_assistance/agents/AiAgent.ts +2 -18
- package/front_end/models/ai_assistance/contexts/FileContext.ts +1 -2
- package/front_end/models/ai_assistance/tools/ListSources.ts +3 -1
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +0 -6
- package/front_end/models/javascript_metadata/NativeFunctions.ts +9 -5
- package/front_end/models/trace/EventsSerializer.ts +0 -8
- package/front_end/models/trace/extras/TraceFilter.ts +16 -8
- package/front_end/models/trace/extras/TraceTree.ts +104 -67
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +0 -5
- package/front_end/models/trace/handlers/RendererHandler.ts +7 -6
- package/front_end/models/trace/handlers/SamplesHandler.ts +1 -1
- package/front_end/models/trace/helpers/Extensions.ts +1 -3
- package/front_end/models/trace/helpers/SamplesIntegrator.ts +155 -87
- package/front_end/models/trace/helpers/Trace.ts +15 -12
- package/front_end/models/trace/helpers/TreeHelpers.ts +38 -10
- package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -3
- package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +19 -4
- package/front_end/models/workspace/UISourceCode.ts +30 -8
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -7
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +15 -34
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -16
- package/front_end/panels/ai_assistance/components/chatView.css +0 -212
- package/front_end/panels/ai_assistance/components/walkthroughView.css +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/animation/animationTimeline.css +5 -3
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +66 -3
- package/front_end/panels/application/PrivateVerificationTokensView.ts +114 -26
- package/front_end/panels/application/ResourcesPanel.ts +1 -0
- package/front_end/panels/application/backgroundServiceView.css +2 -2
- package/front_end/panels/application/components/backForwardCacheView.css +1 -1
- package/front_end/panels/application/components/permissionsPolicySection.css +0 -4
- package/front_end/panels/application/frameDetailsReportView.css +0 -7
- package/front_end/panels/application/indexedDBViews.css +3 -3
- package/front_end/panels/application/privateVerificationTokensView.css +6 -0
- package/front_end/panels/application/resourcesPanel.css +0 -48
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +1 -1
- package/front_end/panels/application/serviceWorkersView.css +2 -2
- package/front_end/panels/comments/CommentsPane.ts +1 -1
- package/front_end/panels/comments/commentsPane.css +1 -1
- package/front_end/panels/common/common.ts +0 -1
- package/front_end/panels/console/ConsoleView.ts +11 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +5 -1
- package/front_end/panels/console/consolePinPane.css +1 -1
- package/front_end/panels/console/consoleView.css +6 -5
- package/front_end/panels/elements/DOMTreeWidget.ts +47 -5
- package/front_end/panels/elements/StylePropertiesSection.ts +4 -9
- package/front_end/panels/elements/StylePropertyTreeElement.ts +52 -34
- package/front_end/panels/elements/classesPaneWidget.css +3 -7
- package/front_end/panels/elements/components/CSSQuery.ts +6 -5
- package/front_end/panels/elements/layoutPane.css +0 -1
- package/front_end/panels/elements/metricsSidebarPane.css +2 -2
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +0 -6
- package/front_end/panels/elements/stylesSidebarPane.css +0 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -0
- package/front_end/panels/emulation/deviceModeView.css +0 -1
- package/front_end/panels/explain/components/consoleInsight.css +1 -6
- package/front_end/panels/issues/AffectedBlockedByResponseView.ts +88 -46
- package/front_end/panels/issues/AffectedHeavyAdView.ts +72 -43
- package/front_end/panels/issues/AffectedResourcesView.ts +81 -13
- package/front_end/panels/issues/GenericIssueDetailsView.ts +112 -32
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/issues/issuesTree.css +9 -2
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +34 -17
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +39 -17
- package/front_end/panels/layer_viewer/Layers3DView.ts +34 -13
- package/front_end/panels/layer_viewer/layerDetailsView.css +2 -2
- package/front_end/panels/layer_viewer/layers3DView.css +0 -4
- package/front_end/panels/lighthouse/lighthousePanel.css +0 -9
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +2 -2
- package/front_end/panels/media/playerListView.css +0 -18
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +2 -2
- package/front_end/panels/network/NetworkLogView.ts +9 -2
- package/front_end/panels/network/NetworkWaterfallColumn.ts +22 -10
- package/front_end/panels/network/RequestPreviewView.ts +182 -63
- package/front_end/panels/network/RequestTimingView.ts +16 -2
- package/front_end/panels/network/SignedExchangeInfoView.ts +242 -158
- package/front_end/panels/network/networkConfigView.css +3 -3
- package/front_end/panels/network/networkLogView.css +4 -16
- package/front_end/panels/network/networkPanel.css +0 -7
- package/front_end/panels/network/networkTimingTable.css +12 -27
- package/front_end/panels/network/signedExchangeInfoView.css +12 -8
- package/front_end/panels/performance_monitor/performanceMonitor.css +2 -2
- package/front_end/panels/profiler/IsolateSelector.ts +31 -10
- package/front_end/panels/profiler/profilesPanel.css +0 -19
- package/front_end/panels/protocol_monitor/JSONEditor.css +1 -1
- package/front_end/panels/recorder/ControlButton.ts +1 -1
- package/front_end/panels/recorder/RecordingView.ts +22 -1
- package/front_end/panels/recorder/StepView.ts +26 -1
- package/front_end/panels/recorder/TimelineSection.ts +22 -6
- package/front_end/panels/recorder/controlButton.css +2 -9
- package/front_end/panels/recorder/recorderPanel.css +0 -1
- package/front_end/panels/recorder/recordingView.css +32 -32
- package/front_end/panels/recorder/replaySection.css +2 -0
- package/front_end/panels/recorder/stepView.css +18 -14
- package/front_end/panels/recorder/timelineSection.css +60 -84
- package/front_end/panels/screencast/screencastView.css +2 -2
- package/front_end/panels/search/searchView.css +1 -1
- package/front_end/panels/security/SecurityPanel.ts +474 -418
- package/front_end/panels/security/SecurityPanelSidebar.ts +68 -48
- package/front_end/panels/security/lockIcon.css +52 -50
- package/front_end/panels/security/mainView.css +149 -145
- package/front_end/panels/security/originView.css +117 -115
- package/front_end/panels/sensors/LocationsSettingsTab.ts +2 -50
- package/front_end/panels/sensors/SensorsView.ts +6 -21
- package/front_end/panels/sensors/locationsSettingsTab.css +1 -21
- package/front_end/panels/settings/AISettingsTab.ts +1 -2
- package/front_end/panels/settings/SettingsScreen.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +31 -6
- package/front_end/panels/sources/NavigatorView.ts +105 -31
- package/front_end/panels/sources/breakpointsView.css +5 -3
- package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
- package/front_end/panels/sources/sourcesView.css +2 -1
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +18 -5
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +1 -0
- package/front_end/panels/timeline/TimelineController.ts +30 -26
- package/front_end/panels/timeline/TimelineDetailsView.ts +10 -9
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -16
- package/front_end/panels/timeline/TimelineLayersView.ts +108 -46
- package/front_end/panels/timeline/TimelineMiniMap.ts +132 -54
- package/front_end/panels/timeline/TimelinePanel.ts +4 -2
- package/front_end/panels/timeline/TimelineTreeView.ts +25 -9
- package/front_end/panels/timeline/components/DetailsView.ts +7 -14
- package/front_end/panels/timeline/components/NetworkTrackWidget.ts +5 -1
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +1 -1
- package/front_end/panels/timeline/components/interactionBreakdown.css +1 -0
- package/front_end/panels/timeline/components/networkRequestDetails.css +2 -1
- package/front_end/panels/timeline/components/networkTrackWidget.css +1 -1
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -0
- package/front_end/panels/timeline/docs/profile_calls.md +7 -9
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +0 -7
- package/front_end/panels/timeline/timelineDetailsView.css +2 -2
- package/front_end/panels/web_audio/webAudio.css +1 -2
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/panels/webauthn/webauthnPane.css +1 -1
- package/front_end/panels/whats_new/ReleaseNoteText.ts +6 -6
- package/front_end/panels/whats_new/resources/WNDT.md +6 -6
- package/front_end/third_party/axe-core/README.chromium +2 -3
- 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/es5-iife/puppeteer-core-browser.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +907 -588
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +119 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +120 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts +16 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts +26 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +23 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +21 -14
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +158 -67
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js +28 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js +19 -11
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +17 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js +62 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts +29 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js +60 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +9 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js +24 -9
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js +16 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts +6 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js +37 -20
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js +10 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js +18 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js +24 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js +6 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js +30 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js +12 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js +40 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts +23 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js +37 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js +74 -16
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +34 -23
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts +10 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js +94 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js +29 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js +6 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +34 -15
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +11 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +10 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/decorators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/package.json +10 -8
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +118 -0
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +119 -0
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +25 -2
- package/front_end/third_party/puppeteer/package/src/api/HTTPResponse.ts +28 -0
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +65 -38
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +27 -7
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +43 -7
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +38 -8
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +27 -12
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +19 -6
- package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +72 -5
- package/front_end/third_party/puppeteer/package/src/bidi/NetworkEvents.ts +82 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +37 -13
- package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +26 -14
- package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +43 -22
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +21 -1
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +27 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -4
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +31 -6
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +18 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +48 -0
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +58 -5
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +94 -14
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +50 -28
- package/front_end/third_party/puppeteer/package/src/cdp/ResponseBodyStream.ts +106 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +38 -3
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +6 -5
- package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +17 -8
- package/front_end/third_party/puppeteer/package/src/common/util.ts +32 -15
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +21 -13
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/decorators.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +2 -0
- package/front_end/ui/comments/CommentAnchorResolver.ts +45 -4
- package/front_end/ui/comments/CommentOverlayManager.ts +45 -12
- package/front_end/ui/components/buttons/FloatingButton.ts +2 -6
- package/front_end/ui/components/buttons/button.css +2 -2
- package/front_end/ui/components/buttons/floatingButton.css +0 -44
- package/front_end/ui/components/diff_view/diffView.css +0 -2
- package/front_end/ui/components/icon_button/iconButton.css +1 -1
- package/front_end/ui/components/markdown_view/markdownView.css +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +29 -0
- package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +7 -5
- package/front_end/ui/legacy/InspectorDrawerView.ts +1 -0
- package/front_end/ui/legacy/InspectorView.ts +5 -1
- package/front_end/ui/legacy/PopoverHelper.ts +1 -0
- package/front_end/ui/legacy/RootView.ts +9 -3
- package/front_end/ui/legacy/SplitWidget.ts +1 -0
- package/front_end/ui/legacy/Treeoutline.ts +9 -0
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +130 -137
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -1
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +7 -6
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +34 -20
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +43 -14
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +2 -2
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -10
- package/front_end/ui/legacy/components/source_frame/imageView.css +2 -2
- package/front_end/ui/legacy/filter.css +7 -3
- package/front_end/ui/legacy/infobar.css +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +3 -55
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +3 -3
- package/front_end/ui/legacy/listWidget.css +3 -8
- package/front_end/ui/legacy/softDropDownButton.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +2 -9
- package/front_end/ui/legacy/treeoutline.css +3 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +134 -0
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/inspector_overlay/tool_highlight.css +0 -7
- package/inspector_overlay/tool_highlight.ts +0 -1
- package/package.json +1 -1
- package/front_end/Images/geminiInDevTools.png +0 -0
- package/front_end/Images/geminiInDevTools_2x.png +0 -0
- package/front_end/generated/InspectorBackendCommands.ts +0 -1690
- package/front_end/generated/protocol-mapping.d.ts +0 -5986
- package/front_end/generated/protocol-proxy-api.d.ts +0 -5452
- package/front_end/generated/protocol.ts +0 -23364
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +0 -193
- package/front_end/panels/common/geminiRebrandPromoDialog.css +0 -47
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import '../../ui/kit/kit.js';
|
|
5
6
|
import '../../ui/legacy/components/data_grid/data_grid.js';
|
|
6
7
|
|
|
7
8
|
import * as Common from '../../core/common/common.js';
|
|
@@ -9,6 +10,7 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
9
10
|
import * as Platform from '../../core/platform/platform.js';
|
|
10
11
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
11
12
|
import type * as Protocol from '../../generated/protocol.js';
|
|
13
|
+
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
12
14
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
15
|
import {Directives, html, render, type TemplateResult} from '../../ui/lit/lit.js';
|
|
14
16
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
@@ -34,6 +36,14 @@ const UIStrings = {
|
|
|
34
36
|
* @description Empty state message when no private verification tokens match the current origin.
|
|
35
37
|
*/
|
|
36
38
|
noPrivateVerificationTokens: 'No private verification tokens for this origin',
|
|
39
|
+
/**
|
|
40
|
+
* @description Text to clear everything.
|
|
41
|
+
*/
|
|
42
|
+
clearAll: 'Clear all',
|
|
43
|
+
/**
|
|
44
|
+
* @description Tooltip text that appears when hovering over the delete button in the toolbar.
|
|
45
|
+
*/
|
|
46
|
+
deleteSelected: 'Delete selected',
|
|
37
47
|
/**
|
|
38
48
|
* @description Column header for Token ID.
|
|
39
49
|
*/
|
|
@@ -80,6 +90,11 @@ export interface TokenRow {
|
|
|
80
90
|
|
|
81
91
|
export interface ViewInput {
|
|
82
92
|
tokens: TokenRow[];
|
|
93
|
+
selectedTokenId: string|null;
|
|
94
|
+
onSelect: (tokenId: string) => void;
|
|
95
|
+
onDeselect: () => void;
|
|
96
|
+
onDeleteAll: () => void;
|
|
97
|
+
onDeleteToken: (tokenId: string) => void;
|
|
83
98
|
}
|
|
84
99
|
|
|
85
100
|
function renderView(input: ViewInput): TemplateResult {
|
|
@@ -87,9 +102,27 @@ function renderView(input: ViewInput): TemplateResult {
|
|
|
87
102
|
// clang-format off
|
|
88
103
|
return html`
|
|
89
104
|
<div class="pvt-view" jslog=${VisualLogging.pane('private-verification-tokens')}>
|
|
105
|
+
<devtools-toolbar class="pvt-toolbar" jslog=${VisualLogging.toolbar()}>
|
|
106
|
+
<devtools-button class="clear-all-button"
|
|
107
|
+
.disabled=${!hasTokens}
|
|
108
|
+
.iconName=${'clear'}
|
|
109
|
+
.jslogContext=${'clear-all'}
|
|
110
|
+
.title=${i18nString(UIStrings.clearAll)}
|
|
111
|
+
.variant=${Buttons.Button.Variant.TOOLBAR}
|
|
112
|
+
@click=${input.onDeleteAll}></devtools-button>
|
|
113
|
+
<devtools-button class="delete-selected-button"
|
|
114
|
+
.disabled=${!input.selectedTokenId}
|
|
115
|
+
.iconName=${'bin'}
|
|
116
|
+
.jslogContext=${'delete-selected'}
|
|
117
|
+
.title=${i18nString(UIStrings.deleteSelected)}
|
|
118
|
+
.variant=${Buttons.Button.Variant.TOOLBAR}
|
|
119
|
+
@click=${() => input.selectedTokenId && input.onDeleteToken(input.selectedTokenId)}>
|
|
120
|
+
</devtools-button>
|
|
121
|
+
</devtools-toolbar>
|
|
90
122
|
<div class="table-container">
|
|
91
123
|
${hasTokens ? html`
|
|
92
|
-
<devtools-data-grid striped inline
|
|
124
|
+
<devtools-data-grid striped inline deletable
|
|
125
|
+
@deselect=${input.onDeselect}>
|
|
93
126
|
<table>
|
|
94
127
|
<tr>
|
|
95
128
|
<th id="issuer" weight="6" sortable>${i18nString(UIStrings.issuer)}</th>
|
|
@@ -103,7 +136,9 @@ function renderView(input: ViewInput): TemplateResult {
|
|
|
103
136
|
<th id="token" weight="2">${i18nString(UIStrings.tokenPayload)}</th>
|
|
104
137
|
</tr>
|
|
105
138
|
${repeat(input.tokens, token => token.id, token => html`
|
|
106
|
-
<tr
|
|
139
|
+
<tr ?selected=${input.selectedTokenId === token.id}
|
|
140
|
+
@select=${() => input.onSelect(token.id)}
|
|
141
|
+
@delete=${() => input.onDeleteToken(token.id)}>
|
|
107
142
|
<td>${token.issuerOrigin}</td>
|
|
108
143
|
<td>${token.isIssuer}</td>
|
|
109
144
|
<td>${token.isRedeemer}</td>
|
|
@@ -141,6 +176,9 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
141
176
|
export class PrivateVerificationTokensView extends UI.Widget.VBox implements
|
|
142
177
|
SDK.TargetManager.SDKModelObserver<SDK.PrivateVerificationTokensModel.PrivateVerificationTokensModel> {
|
|
143
178
|
#model: SDK.PrivateVerificationTokensModel.PrivateVerificationTokensModel|null = null;
|
|
179
|
+
#tokens: TokenRow[] = [];
|
|
180
|
+
#fetchGeneration = 0;
|
|
181
|
+
#selectedTokenId: string|null = null;
|
|
144
182
|
#view: View;
|
|
145
183
|
|
|
146
184
|
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
@@ -153,20 +191,23 @@ export class PrivateVerificationTokensView extends UI.Widget.VBox implements
|
|
|
153
191
|
const targetManager = SDK.TargetManager.TargetManager.instance();
|
|
154
192
|
targetManager.observeModels(SDK.PrivateVerificationTokensModel.PrivateVerificationTokensModel, this,
|
|
155
193
|
{scoped: true});
|
|
156
|
-
targetManager.addEventListener(SDK.TargetManager.Events.INSPECTED_URL_CHANGED, this
|
|
194
|
+
targetManager.addEventListener(SDK.TargetManager.Events.INSPECTED_URL_CHANGED, this.#onTokensChanged, this);
|
|
157
195
|
targetManager.addModelListener(SDK.SecurityOriginManager.SecurityOriginManager,
|
|
158
|
-
SDK.SecurityOriginManager.Events.MainSecurityOriginChanged, this
|
|
159
|
-
{scoped: true});
|
|
160
|
-
|
|
196
|
+
SDK.SecurityOriginManager.Events.MainSecurityOriginChanged, this.#onTokensChanged,
|
|
197
|
+
this, {scoped: true});
|
|
198
|
+
// modelAdded() already triggers a refresh when a model is available.
|
|
199
|
+
if (!this.#model) {
|
|
200
|
+
this.#onTokensChanged();
|
|
201
|
+
}
|
|
161
202
|
}
|
|
162
203
|
|
|
163
204
|
override willHide(): void {
|
|
164
205
|
super.willHide();
|
|
165
206
|
const targetManager = SDK.TargetManager.TargetManager.instance();
|
|
166
207
|
targetManager.unobserveModels(SDK.PrivateVerificationTokensModel.PrivateVerificationTokensModel, this);
|
|
167
|
-
targetManager.removeEventListener(SDK.TargetManager.Events.INSPECTED_URL_CHANGED, this
|
|
208
|
+
targetManager.removeEventListener(SDK.TargetManager.Events.INSPECTED_URL_CHANGED, this.#onTokensChanged, this);
|
|
168
209
|
targetManager.removeModelListener(SDK.SecurityOriginManager.SecurityOriginManager,
|
|
169
|
-
SDK.SecurityOriginManager.Events.MainSecurityOriginChanged, this
|
|
210
|
+
SDK.SecurityOriginManager.Events.MainSecurityOriginChanged, this.#onTokensChanged,
|
|
170
211
|
this);
|
|
171
212
|
if (this.#model) {
|
|
172
213
|
this.modelRemoved(this.#model);
|
|
@@ -182,8 +223,8 @@ export class PrivateVerificationTokensView extends UI.Widget.VBox implements
|
|
|
182
223
|
}
|
|
183
224
|
this.#model = model;
|
|
184
225
|
model.setTracking(true);
|
|
185
|
-
model.addEventListener(SDK.PrivateVerificationTokensModel.Events.TOKENS_UPDATED, this
|
|
186
|
-
this
|
|
226
|
+
model.addEventListener(SDK.PrivateVerificationTokensModel.Events.TOKENS_UPDATED, this.#onTokensChanged, this);
|
|
227
|
+
this.#onTokensChanged();
|
|
187
228
|
}
|
|
188
229
|
|
|
189
230
|
modelRemoved(model: SDK.PrivateVerificationTokensModel.PrivateVerificationTokensModel): void {
|
|
@@ -191,30 +232,77 @@ export class PrivateVerificationTokensView extends UI.Widget.VBox implements
|
|
|
191
232
|
return;
|
|
192
233
|
}
|
|
193
234
|
model.setTracking(false);
|
|
194
|
-
model.removeEventListener(SDK.PrivateVerificationTokensModel.Events.TOKENS_UPDATED, this
|
|
235
|
+
model.removeEventListener(SDK.PrivateVerificationTokensModel.Events.TOKENS_UPDATED, this.#onTokensChanged, this);
|
|
195
236
|
this.#model = null;
|
|
237
|
+
this.#onTokensChanged();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
#onTokensChanged(): void {
|
|
241
|
+
void this.#refreshTokens();
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Fetches tokens from the backend and caches them, so that local view state
|
|
246
|
+
* changes (such as selection) re-render without additional CDP round-trips.
|
|
247
|
+
* Responses from superseded fetches are discarded.
|
|
248
|
+
*/
|
|
249
|
+
async #refreshTokens(): Promise<void> {
|
|
250
|
+
const generation = ++this.#fetchGeneration;
|
|
251
|
+
const tokens = await this.#fetchTokens();
|
|
252
|
+
if (generation !== this.#fetchGeneration) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
this.#tokens = tokens;
|
|
256
|
+
if (this.#selectedTokenId && !tokens.some(token => token.id === this.#selectedTokenId)) {
|
|
257
|
+
this.#selectedTokenId = null;
|
|
258
|
+
}
|
|
259
|
+
this.requestUpdate();
|
|
196
260
|
}
|
|
197
261
|
|
|
198
|
-
|
|
262
|
+
async #fetchTokens(): Promise<TokenRow[]> {
|
|
199
263
|
const model = this.#model;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
// requested while the CDP calls were in flight.
|
|
207
|
-
if (signal?.aborted || this.#model !== model) {
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
tokens = toTokenRows(rawTokens, configs, currentOrigin);
|
|
211
|
-
}
|
|
264
|
+
if (!model) {
|
|
265
|
+
return [];
|
|
266
|
+
}
|
|
267
|
+
const currentOrigin = getInspectedOrigin(model.target());
|
|
268
|
+
if (!currentOrigin) {
|
|
269
|
+
return [];
|
|
212
270
|
}
|
|
271
|
+
const [rawTokens, configs] = await Promise.all([model.getTokens(), model.getIssuerConfigs()]);
|
|
272
|
+
return toTokenRows(rawTokens, configs, currentOrigin);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
override performUpdate(): void {
|
|
276
|
+
this.#view({
|
|
277
|
+
tokens: this.#tokens,
|
|
278
|
+
selectedTokenId: this.#selectedTokenId,
|
|
279
|
+
onSelect: tokenId => {
|
|
280
|
+
this.#selectedTokenId = tokenId;
|
|
281
|
+
this.requestUpdate();
|
|
282
|
+
},
|
|
283
|
+
onDeselect: () => {
|
|
284
|
+
this.#selectedTokenId = null;
|
|
285
|
+
this.requestUpdate();
|
|
286
|
+
},
|
|
287
|
+
onDeleteAll: () => void this.#clearAllTokensHandler(),
|
|
288
|
+
onDeleteToken: tokenId => void this.#deleteTokenHandler(tokenId),
|
|
289
|
+
},
|
|
290
|
+
undefined, this.contentElement);
|
|
291
|
+
}
|
|
213
292
|
|
|
214
|
-
|
|
293
|
+
async #clearAllTokensHandler(): Promise<void> {
|
|
294
|
+
const model = this.#model;
|
|
295
|
+
if (!model) {
|
|
215
296
|
return;
|
|
216
297
|
}
|
|
217
|
-
this.#
|
|
298
|
+
const issuers = new Set(this.#tokens.map(token => token.issuerOrigin));
|
|
299
|
+
await Promise.all([...issuers].map(issuerOrigin => model.clearTokens(issuerOrigin)));
|
|
300
|
+
await this.#refreshTokens();
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
async #deleteTokenHandler(tokenId: string): Promise<void> {
|
|
304
|
+
await this.#model?.deleteToken(tokenId);
|
|
305
|
+
await this.#refreshTokens();
|
|
218
306
|
}
|
|
219
307
|
}
|
|
220
308
|
|
|
@@ -100,13 +100,6 @@ devtools-button.help-button {
|
|
|
100
100
|
font-weight: bold;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.inline-icon {
|
|
104
|
-
margin-bottom: -5px;
|
|
105
|
-
width: 18px;
|
|
106
|
-
height: 18px;
|
|
107
|
-
vertical-align: baseline;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
103
|
@media (forced-colors: active) {
|
|
111
104
|
.link,
|
|
112
105
|
.devtools-link {
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.object-store-summary-bar {
|
|
50
|
-
flex: 0 0
|
|
51
|
-
line-height:
|
|
52
|
-
padding-left:
|
|
50
|
+
flex: 0 0 var(--sys-size-11);
|
|
51
|
+
line-height: var(--sys-size-11);
|
|
52
|
+
padding-left: var(--sys-size-3);
|
|
53
53
|
background-color: var(--sys-color-cdt-base-container);
|
|
54
54
|
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
55
55
|
white-space: nowrap;
|
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.pvt-toolbar {
|
|
23
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
24
|
+
background-color: var(--sys-color-cdt-base-container);
|
|
25
|
+
flex: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
.table-container {
|
|
23
29
|
display: flex;
|
|
24
30
|
flex-direction: column;
|
|
@@ -65,54 +65,6 @@
|
|
|
65
65
|
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.database-query-group-messages {
|
|
69
|
-
overflow-y: auto;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.database-query-prompt-container {
|
|
73
|
-
position: relative;
|
|
74
|
-
padding: var(--sys-size-1) var(--sys-size-10) var(--sys-size-1) var(--sys-size-11);
|
|
75
|
-
min-height: var(--sys-size-8);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.database-query-prompt {
|
|
79
|
-
white-space: pre-wrap;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.database-query-prompt-container .prompt-icon {
|
|
83
|
-
top: var(--sys-size-4);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.database-user-query {
|
|
87
|
-
position: relative;
|
|
88
|
-
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
89
|
-
padding: var(--sys-size-1) var(--sys-size-10) var(--sys-size-1) var(--sys-size-11);
|
|
90
|
-
min-height: var(--sys-size-8);
|
|
91
|
-
flex-shrink: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.database-user-query:focus-visible {
|
|
95
|
-
background-color: var(--sys-color-state-focus-highlight);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.database-query-text {
|
|
99
|
-
color: var(--sys-color-primary-bright);
|
|
100
|
-
user-select: text;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.database-query-result {
|
|
104
|
-
position: relative;
|
|
105
|
-
padding: var(--sys-size-1) var(--sys-size-10);
|
|
106
|
-
min-height: var(--sys-size-8);
|
|
107
|
-
margin-left: calc(-1 * var(--sys-size-10));
|
|
108
|
-
padding-right: 0;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.database-query-result.error {
|
|
112
|
-
color: var(--sys-color-token-property-special);
|
|
113
|
-
user-select: text;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
68
|
.resources-sidebar {
|
|
117
69
|
padding: 0;
|
|
118
70
|
overflow-x: auto;
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
table.service-worker-update-timing-table > tbody > tr.service-worker-update-timing-table-header > td {
|
|
103
|
-
border-top:
|
|
103
|
+
border-top: var(--sys-size-3) solid transparent;
|
|
104
104
|
color: var(--sys-color-token-subtle);
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
display: flex;
|
|
93
93
|
flex: auto;
|
|
94
94
|
margin-right: var(--sys-size-3);
|
|
95
|
-
max-width:
|
|
95
|
+
max-width: var(--sys-size-32);
|
|
96
96
|
min-width: var(--sys-size-19);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.report-field-value-filename,
|
|
100
100
|
.service-worker-client-string {
|
|
101
|
-
max-width:
|
|
101
|
+
max-width: var(--sys-size-32);
|
|
102
102
|
overflow: hidden;
|
|
103
103
|
text-overflow: ellipsis;
|
|
104
104
|
}
|
|
@@ -55,7 +55,7 @@ const UIStrings = {
|
|
|
55
55
|
/**
|
|
56
56
|
* @description Button text for sending comments to the agent.
|
|
57
57
|
*/
|
|
58
|
-
sendToAgent: 'Send to
|
|
58
|
+
sendToAgent: 'Send to agent',
|
|
59
59
|
/**
|
|
60
60
|
* @description Status text shown next to a spinner when a comment thread is being processed by the agent.
|
|
61
61
|
*/
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
list-style: none;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
/* Extra space between the Send to
|
|
121
|
+
/* Extra space between the Send to agent footer and the sent comments separator. */
|
|
122
122
|
.comments-sent-section {
|
|
123
123
|
margin-top: var(--sys-size-11);
|
|
124
124
|
/*
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
export {GdpSignUpDialog} from './GdpSignUpDialog.js';
|
|
6
|
-
export {GeminiRebrandPromoDialog} from './GeminiRebrandPromoDialog.js';
|
|
7
6
|
export * as AiCodeCompletionSummaryToolbar from './AiCodeCompletionSummaryToolbar.js';
|
|
8
7
|
export * from './BadgeNotification.js';
|
|
9
8
|
export * as CPUThrottlingOption from './CPUThrottlingOption.js';
|
|
@@ -187,10 +187,15 @@ const UIStrings = {
|
|
|
187
187
|
* @description Text to save content as a specific file type.
|
|
188
188
|
*/
|
|
189
189
|
saveAs: 'Save as…',
|
|
190
|
+
/**
|
|
191
|
+
* @description A context menu item in the Console view of the Console panel. Copies the message
|
|
192
|
+
* the user right-clicked to the clipboard.
|
|
193
|
+
*/
|
|
194
|
+
copyMessage: 'Copy message',
|
|
190
195
|
/**
|
|
191
196
|
* @description Text to copy console log to clipboard.
|
|
192
197
|
*/
|
|
193
|
-
copyConsole: 'Copy
|
|
198
|
+
copyConsole: 'Copy all messages',
|
|
194
199
|
/**
|
|
195
200
|
* @description A context menu item in the Console view of the Console panel.
|
|
196
201
|
*/
|
|
@@ -1351,6 +1356,11 @@ export class ConsoleView extends UI.Widget.VBox implements
|
|
|
1351
1356
|
this.viewport.copyWithStyles.bind(this.viewport),
|
|
1352
1357
|
{jslogContext: 'copy-visible-styled-selection'});
|
|
1353
1358
|
}
|
|
1359
|
+
if (consoleViewMessage) {
|
|
1360
|
+
contextMenu.clipboardSection().appendItem(i18nString(UIStrings.copyMessage), () => {
|
|
1361
|
+
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(consoleViewMessage.toString());
|
|
1362
|
+
}, {jslogContext: 'copy-message'});
|
|
1363
|
+
}
|
|
1354
1364
|
|
|
1355
1365
|
if (consoleMessage) {
|
|
1356
1366
|
const request = Logs.NetworkLog.NetworkLog.requestForConsoleMessage(consoleMessage);
|
|
@@ -1861,9 +1861,13 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
1861
1861
|
return this.message.messageText;
|
|
1862
1862
|
}
|
|
1863
1863
|
|
|
1864
|
+
toString(): string {
|
|
1865
|
+
return Components.Linkifier.Linkifier.untruncatedTextContent(this.contentElement());
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1864
1868
|
toExportString(): string {
|
|
1865
1869
|
const lines = [];
|
|
1866
|
-
const messageContent =
|
|
1870
|
+
const messageContent = this.toString();
|
|
1867
1871
|
for (let i = 0; i < this.repeatCount(); ++i) {
|
|
1868
1872
|
lines.push(messageContent);
|
|
1869
1873
|
}
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
.message-level-icon,
|
|
126
126
|
.command-result-icon {
|
|
127
127
|
position: absolute;
|
|
128
|
-
left: -
|
|
128
|
+
left: calc(-1 * var(--sys-size-9));
|
|
129
129
|
top: var(--sys-size-2);
|
|
130
130
|
user-select: none;
|
|
131
131
|
}
|
|
@@ -307,14 +307,15 @@
|
|
|
307
307
|
|
|
308
308
|
.console-message-wrapper .nesting-level-marker + .console-message::after {
|
|
309
309
|
position: absolute;
|
|
310
|
-
left
|
|
310
|
+
/* 24px (--sys-size-11) .console-message left margin + 6px (--sys-size-4) pseudo-element width */
|
|
311
|
+
left: calc(-1 * (var(--sys-size-11) + var(--sys-size-4)));
|
|
311
312
|
top: 0;
|
|
312
313
|
width: var(--sys-size-4);
|
|
313
314
|
height: 100%;
|
|
314
315
|
box-sizing: border-box;
|
|
315
316
|
background-color: var(--sys-color-surface-yellow);
|
|
316
|
-
border-top-left-radius:
|
|
317
|
-
border-bottom-left-radius:
|
|
317
|
+
border-top-left-radius: var(--sys-shape-corner-extra-small);
|
|
318
|
+
border-bottom-left-radius: var(--sys-shape-corner-extra-small);
|
|
318
319
|
content: "";
|
|
319
320
|
}
|
|
320
321
|
|
|
@@ -337,7 +338,7 @@
|
|
|
337
338
|
display: inline-block;
|
|
338
339
|
overflow-wrap: break-word;
|
|
339
340
|
max-width: 100%;
|
|
340
|
-
margin-top: -1
|
|
341
|
+
margin-top: calc(-1 * var(--sys-size-1));
|
|
341
342
|
}
|
|
342
343
|
|
|
343
344
|
/* Console content is rendered in "Noto Sans Mono" on Linux, which has a
|
|
@@ -66,6 +66,15 @@ import {getElementIssueDetails} from './ElementIssueUtils.js';
|
|
|
66
66
|
import {ImagePreviewPopover} from './ImagePreviewPopover.js';
|
|
67
67
|
|
|
68
68
|
const {html, nothing, render, Directives: {classMap, ifDefined, repeat, styleMap}} = Lit;
|
|
69
|
+
const {clonedRef} = UI.UIUtils;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Scrolls the rendered row of the highlighted node into view. The function has a
|
|
73
|
+
* stable identity, so that `clonedRef` calls it once per row that it is attached to.
|
|
74
|
+
*/
|
|
75
|
+
const scrollHighlightedRowIntoView = (element: Element|undefined): void => {
|
|
76
|
+
element?.scrollIntoViewIfNeeded(/* center= */ true);
|
|
77
|
+
};
|
|
69
78
|
|
|
70
79
|
const UIStrings = {
|
|
71
80
|
/**
|
|
@@ -747,6 +756,7 @@ export const DEFAULT_VIEW: View = (input: ViewInput, _output: undefined, target:
|
|
|
747
756
|
data-target-id=${ifDefined(node.domModel().target().id())}
|
|
748
757
|
selectable=${input.selectEnabled ? 'true' : 'false'}
|
|
749
758
|
?selected=${isSelected && !input.selectedClosingTag}
|
|
759
|
+
${input.currentHighlightedNode === node ? clonedRef(scrollHighlightedRowIntoView) : nothing}
|
|
750
760
|
class=${classes}
|
|
751
761
|
style=${styleMap({'--indent': `${computeLeftIndent(depth, isExpandable)}px`})}
|
|
752
762
|
?open=${hasChildren && isExpanded && !isEditingAsHTML}
|
|
@@ -1451,11 +1461,28 @@ export class DOMTreeWidget extends UI.Widget.Widget {
|
|
|
1451
1461
|
|
|
1452
1462
|
#highlightNode(event: Common.EventTarget.EventTargetEvent<SDK.DOMModel.DOMNode>): void {
|
|
1453
1463
|
void this.#highlightThrottler.schedule(() => {
|
|
1454
|
-
|
|
1464
|
+
const node = this.#resolveInlinedTextNode(event.data);
|
|
1465
|
+
// The view expands the ancestors of the highlighted node. Raise the
|
|
1466
|
+
// children limits so that the node is not paginated away.
|
|
1467
|
+
if (node) {
|
|
1468
|
+
for (let child = node, ancestor = node.parentNode; ancestor; child = ancestor, ancestor = ancestor.parentNode) {
|
|
1469
|
+
this.#ensureChildVisible(ancestor, child);
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
this.#currentHighlightedNode = node;
|
|
1455
1473
|
this.requestUpdate();
|
|
1456
1474
|
});
|
|
1457
1475
|
}
|
|
1458
1476
|
|
|
1477
|
+
/** Short text nodes render inline in the row of their parent node. */
|
|
1478
|
+
#resolveInlinedTextNode(node: SDK.DOMModel.DOMNode|null): SDK.DOMModel.DOMNode|null {
|
|
1479
|
+
if (node?.nodeType() === Node.TEXT_NODE && node.parentNode &&
|
|
1480
|
+
(!nodeHasVisibleChildren(node.parentNode, this) || !getVisibleChildren(node.parentNode, this).includes(node))) {
|
|
1481
|
+
return node.parentNode;
|
|
1482
|
+
}
|
|
1483
|
+
return node;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1459
1486
|
#onInspectModeWillBeToggled(): void {
|
|
1460
1487
|
this.#clearHighlightedNode();
|
|
1461
1488
|
this.performUpdate();
|
|
@@ -1466,6 +1493,12 @@ export class DOMTreeWidget extends UI.Widget.Widget {
|
|
|
1466
1493
|
this.#currentHighlightedNode = null;
|
|
1467
1494
|
}
|
|
1468
1495
|
|
|
1496
|
+
/** True if the view expands `node` only because it is an ancestor of the highlighted node. */
|
|
1497
|
+
#isExpandedOnlyForHighlight(node: SDK.DOMModel.DOMNode): boolean {
|
|
1498
|
+
const highlightedNode = this.#currentHighlightedNode;
|
|
1499
|
+
return highlightedNode !== null && !this.#expandedNodes.has(node) && isAncestorOf(node, highlightedNode);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1469
1502
|
selectDOMNode(node: SDK.DOMModel.DOMNode|SDK.DOMModel.AdoptedStyleSheet|null, focus?: boolean,
|
|
1470
1503
|
isClosingTag?: boolean): void {
|
|
1471
1504
|
this.#imagePreviewPopover?.hide();
|
|
@@ -1475,10 +1508,7 @@ export class DOMTreeWidget extends UI.Widget.Widget {
|
|
|
1475
1508
|
return;
|
|
1476
1509
|
}
|
|
1477
1510
|
this.#selectedAdoptedStyleSheet = null;
|
|
1478
|
-
|
|
1479
|
-
(!nodeHasVisibleChildren(node.parentNode, this) || !getVisibleChildren(node.parentNode, this).includes(node))) {
|
|
1480
|
-
node = node.parentNode;
|
|
1481
|
-
}
|
|
1511
|
+
node = this.#resolveInlinedTextNode(node);
|
|
1482
1512
|
if (node) {
|
|
1483
1513
|
const ancestors: SDK.DOMModel.DOMNode[] = [];
|
|
1484
1514
|
for (let current: (SDK.DOMModel.DOMNode|null) = node.parentNode; current; current = current.parentNode) {
|
|
@@ -1829,6 +1859,18 @@ export class DOMTreeWidget extends UI.Widget.Widget {
|
|
|
1829
1859
|
void this.expandRecursively(node);
|
|
1830
1860
|
return;
|
|
1831
1861
|
}
|
|
1862
|
+
if (expanded && this.#isExpandedOnlyForHighlight(node)) {
|
|
1863
|
+
// The tree reports the expansion that the view requested for the
|
|
1864
|
+
// highlighted node. Do not persist it, so that the node collapses
|
|
1865
|
+
// again when the highlight clears.
|
|
1866
|
+
return;
|
|
1867
|
+
}
|
|
1868
|
+
if (!expanded && !this.#expandedNodes.has(node)) {
|
|
1869
|
+
// The tree reports a collapse that the view requested itself, e.g.
|
|
1870
|
+
// for the ancestors of a previous highlight. The collapse must not
|
|
1871
|
+
// clear the current highlight.
|
|
1872
|
+
return;
|
|
1873
|
+
}
|
|
1832
1874
|
this.setNodeExpanded(node, expanded);
|
|
1833
1875
|
},
|
|
1834
1876
|
onContextMenu: (node: SDK.DOMModel.DOMNode, event: MouseEvent) => {
|
|
@@ -191,9 +191,7 @@ export class StylePropertiesSection {
|
|
|
191
191
|
|
|
192
192
|
#customHeaderText: string|undefined;
|
|
193
193
|
readonly #specificityTooltips: HTMLSpanElement;
|
|
194
|
-
|
|
195
|
-
static #nextSectionTooltipIdPrefix = 0;
|
|
196
|
-
readonly sectionTooltipIdPrefix: number = StylePropertiesSection.#nextSectionTooltipIdPrefix++;
|
|
194
|
+
readonly sectionTooltipIdFactory: Tooltips.Tooltip.IdFactory = new Tooltips.Tooltip.IdFactory();
|
|
197
195
|
|
|
198
196
|
private ghostStyleTreeElements: GhostStylePropertyTreeElement[] = [];
|
|
199
197
|
#activeAiSuggestion?: ActiveAiSuggestion;
|
|
@@ -1113,7 +1111,7 @@ export class StylePropertiesSection {
|
|
|
1113
1111
|
jslogContext: 'container-query',
|
|
1114
1112
|
};
|
|
1115
1113
|
if (style) {
|
|
1116
|
-
const tooltipPrefix =
|
|
1114
|
+
const tooltipPrefix = this.sectionTooltipIdFactory.subfactory('container', this.nestingLevel);
|
|
1117
1115
|
void containerQuery.getContainerForNode(this.matchedStyles.node().id).then(container => {
|
|
1118
1116
|
if (container) {
|
|
1119
1117
|
containerQueryElement.parseStyleQueries(this.matchedStyles, style, container.containerNode, tooltipPrefix);
|
|
@@ -1547,10 +1545,6 @@ export class StylePropertiesSection {
|
|
|
1547
1545
|
this.markSelectorHighlights();
|
|
1548
1546
|
}
|
|
1549
1547
|
|
|
1550
|
-
static getNextSpecificityTooltipId(): string {
|
|
1551
|
-
return `specificity-tooltip-${this.#nextSpecificityTooltipId++}`;
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
1548
|
renderSelectors(
|
|
1555
1549
|
selectors: Array<{text: string, specificity?: Protocol.CSS.Specificity}>, matchingSelectors: boolean[],
|
|
1556
1550
|
elementToSelectorIndex: WeakMap<Element, number>): void {
|
|
@@ -1567,7 +1561,8 @@ export class StylePropertiesSection {
|
|
|
1567
1561
|
if (i > 0) {
|
|
1568
1562
|
targetElement.append(', ');
|
|
1569
1563
|
}
|
|
1570
|
-
const specificityTooltipId =
|
|
1564
|
+
const specificityTooltipId =
|
|
1565
|
+
selector.specificity ? this.sectionTooltipIdFactory.keyed('specificity-tooltip') : null;
|
|
1571
1566
|
const span = targetElement.createChild('span', 'simple-selector');
|
|
1572
1567
|
span.classList.toggle('selector-matches', matchingSelectors[i]);
|
|
1573
1568
|
elementToSelectorIndex.set(span, i);
|