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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
|
-
import * as Root from '../../core/root/root.js';
|
|
7
|
+
import type * as Root from '../../core/root/root.js';
|
|
8
8
|
import * as AiAssistanceModel from '../../models/ai-utils/ai-utils.js';
|
|
9
9
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
10
10
|
import * as SettingUIRegistration from '../../ui/settings/settings.js';
|
|
@@ -35,28 +35,10 @@ const UIStrings = {
|
|
|
35
35
|
* the current context.
|
|
36
36
|
*/
|
|
37
37
|
debugWithAi: 'Debug with AI',
|
|
38
|
-
/**
|
|
39
|
-
* @description The title of the command menu action for showing the Gemini panel.
|
|
40
|
-
*/
|
|
41
|
-
showGemini: 'Show `Gemini`',
|
|
42
|
-
/**
|
|
43
|
-
* @description The setting title to enable the Gemini via the settings tab.
|
|
44
|
-
*/
|
|
45
|
-
enableGemini: 'Enable `Gemini`',
|
|
46
|
-
/**
|
|
47
|
-
* @description Text of a context menu item to redirect to the Gemini panel with the current context.
|
|
48
|
-
*/
|
|
49
|
-
debugWithGemini: 'Debug with `Gemini`',
|
|
50
38
|
} as const;
|
|
51
39
|
|
|
52
40
|
const str_ = i18n.i18n.registerUIStrings('panels/ai_assistance/ai_assistance-meta.ts', UIStrings);
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
// Host config is initialized after this module executes, so need to lazily select the string.
|
|
56
|
-
function i18nAiBrandedString(gemini: string, assistance: string) {
|
|
57
|
-
// eslint-disable-next-line @devtools/l10n-i18nString-call-only-with-uistrings
|
|
58
|
-
return () => Root.Runtime.hostConfig.devToolsGeminiRebranding?.enabled ? i18nString(gemini) : i18nString(assistance);
|
|
59
|
-
}
|
|
41
|
+
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
60
42
|
|
|
61
43
|
function isGeoRestricted(config?: Root.Runtime.HostConfig): boolean {
|
|
62
44
|
return config?.aidaAvailability?.blockedByGeo === true;
|
|
@@ -103,9 +85,8 @@ function isAnyFeatureAvailable(config?: Root.Runtime.HostConfig): boolean {
|
|
|
103
85
|
UI.ViewManager.registerViewExtension({
|
|
104
86
|
location: UI.ViewManager.ViewLocationValues.DRAWER_VIEW,
|
|
105
87
|
id: 'freestyler',
|
|
106
|
-
commandPrompt:
|
|
107
|
-
title: (
|
|
108
|
-
i18nString(UIStrings.aiAssistance),
|
|
88
|
+
commandPrompt: i18nLazyString(UIStrings.showAiAssistance),
|
|
89
|
+
title: i18nLazyString(UIStrings.aiAssistance),
|
|
109
90
|
order: 10,
|
|
110
91
|
persistence: UI.ViewManager.ViewPersistence.CLOSEABLE,
|
|
111
92
|
hasToolbar: false,
|
|
@@ -118,7 +99,7 @@ UI.ViewManager.registerViewExtension({
|
|
|
118
99
|
|
|
119
100
|
SettingUIRegistration.SettingUIRegistration.register(AiAssistanceModel.AiUtils.aiAssistanceEnabledSettingDescriptor, {
|
|
120
101
|
category: Common.Settings.SettingCategory.AI,
|
|
121
|
-
title:
|
|
102
|
+
title: i18nLazyString(UIStrings.enableAiAssistance),
|
|
122
103
|
});
|
|
123
104
|
|
|
124
105
|
UI.ActionRegistration.registerActionExtension({
|
|
@@ -127,7 +108,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
127
108
|
return [];
|
|
128
109
|
},
|
|
129
110
|
category: UI.ActionRegistration.ActionCategory.GLOBAL,
|
|
130
|
-
title:
|
|
111
|
+
title: i18nLazyString(UIStrings.debugWithAi),
|
|
131
112
|
configurableBindings: false,
|
|
132
113
|
async loadActionDelegate() {
|
|
133
114
|
const AiAssistance = await loadAiAssistanceModule();
|
|
@@ -142,7 +123,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
142
123
|
return [];
|
|
143
124
|
},
|
|
144
125
|
category: UI.ActionRegistration.ActionCategory.GLOBAL,
|
|
145
|
-
title:
|
|
126
|
+
title: i18nLazyString(UIStrings.debugWithAi),
|
|
146
127
|
configurableBindings: false,
|
|
147
128
|
async loadActionDelegate() {
|
|
148
129
|
const AiAssistance = await loadAiAssistanceModule();
|
|
@@ -158,7 +139,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
158
139
|
return [];
|
|
159
140
|
},
|
|
160
141
|
category: UI.ActionRegistration.ActionCategory.GLOBAL,
|
|
161
|
-
title:
|
|
142
|
+
title: i18nLazyString(UIStrings.debugWithAi),
|
|
162
143
|
configurableBindings: false,
|
|
163
144
|
async loadActionDelegate() {
|
|
164
145
|
const AiAssistance = await loadAiAssistanceModule();
|
|
@@ -174,7 +155,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
174
155
|
return [];
|
|
175
156
|
},
|
|
176
157
|
category: UI.ActionRegistration.ActionCategory.GLOBAL,
|
|
177
|
-
title:
|
|
158
|
+
title: i18nLazyString(UIStrings.debugWithAi),
|
|
178
159
|
configurableBindings: false,
|
|
179
160
|
async loadActionDelegate() {
|
|
180
161
|
const AiAssistance = await loadAiAssistanceModule();
|
|
@@ -190,7 +171,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
190
171
|
return [];
|
|
191
172
|
},
|
|
192
173
|
category: UI.ActionRegistration.ActionCategory.GLOBAL,
|
|
193
|
-
title:
|
|
174
|
+
title: i18nLazyString(UIStrings.debugWithAi),
|
|
194
175
|
configurableBindings: false,
|
|
195
176
|
async loadActionDelegate() {
|
|
196
177
|
const AiAssistance = await loadAiAssistanceModule();
|
|
@@ -206,7 +187,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
206
187
|
return [];
|
|
207
188
|
},
|
|
208
189
|
category: UI.ActionRegistration.ActionCategory.GLOBAL,
|
|
209
|
-
title:
|
|
190
|
+
title: i18nLazyString(UIStrings.debugWithAi),
|
|
210
191
|
configurableBindings: false,
|
|
211
192
|
async loadActionDelegate() {
|
|
212
193
|
const AiAssistance = await loadAiAssistanceModule();
|
|
@@ -222,7 +203,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
222
203
|
return [];
|
|
223
204
|
},
|
|
224
205
|
category: UI.ActionRegistration.ActionCategory.GLOBAL,
|
|
225
|
-
title:
|
|
206
|
+
title: i18nLazyString(UIStrings.debugWithAi),
|
|
226
207
|
configurableBindings: false,
|
|
227
208
|
async loadActionDelegate() {
|
|
228
209
|
const AiAssistance = await loadAiAssistanceModule();
|
|
@@ -237,7 +218,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
237
218
|
return [];
|
|
238
219
|
},
|
|
239
220
|
category: UI.ActionRegistration.ActionCategory.GLOBAL,
|
|
240
|
-
title:
|
|
221
|
+
title: i18nLazyString(UIStrings.debugWithAi),
|
|
241
222
|
configurableBindings: false,
|
|
242
223
|
async loadActionDelegate() {
|
|
243
224
|
const AiAssistance = await loadAiAssistanceModule();
|
|
@@ -252,7 +233,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
252
233
|
return [];
|
|
253
234
|
},
|
|
254
235
|
category: UI.ActionRegistration.ActionCategory.GLOBAL,
|
|
255
|
-
title:
|
|
236
|
+
title: i18nLazyString(UIStrings.debugWithAi),
|
|
256
237
|
configurableBindings: false,
|
|
257
238
|
async loadActionDelegate() {
|
|
258
239
|
const AiAssistance = await loadAiAssistanceModule();
|
|
@@ -268,7 +249,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
268
249
|
return [];
|
|
269
250
|
},
|
|
270
251
|
category: UI.ActionRegistration.ActionCategory.GLOBAL,
|
|
271
|
-
title:
|
|
252
|
+
title: i18nLazyString(UIStrings.debugWithAi),
|
|
272
253
|
configurableBindings: false,
|
|
273
254
|
async loadActionDelegate() {
|
|
274
255
|
const AiAssistance = await loadAiAssistanceModule();
|
|
@@ -44,10 +44,6 @@ const UIStringsNotTranslate = {
|
|
|
44
44
|
* @description Text for the empty state of the AI assistance panel.
|
|
45
45
|
*/
|
|
46
46
|
emptyStateText: 'How can I help you?',
|
|
47
|
-
/**
|
|
48
|
-
* @description Text for the empty state of the Gemini panel.
|
|
49
|
-
*/
|
|
50
|
-
emptyStateTextGemini: 'Where should we start?',
|
|
51
47
|
} as const;
|
|
52
48
|
|
|
53
49
|
const lockedString = i18n.i18n.lockedString;
|
|
@@ -134,11 +130,6 @@ function findStepAwaitingApproval(messages: Message[]): Step|undefined {
|
|
|
134
130
|
}
|
|
135
131
|
|
|
136
132
|
const DEFAULT_VIEW: View = (input, output, target) => {
|
|
137
|
-
const chatUiClasses = classMap({
|
|
138
|
-
'chat-ui': true,
|
|
139
|
-
gemini: AiAssistanceModel.AiUtils.isGeminiBranding(),
|
|
140
|
-
});
|
|
141
|
-
|
|
142
133
|
const awaitingApprovalStep = findStepAwaitingApproval(input.messages);
|
|
143
134
|
|
|
144
135
|
const inputWidgetClasses = classMap({
|
|
@@ -151,7 +142,7 @@ const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
151
142
|
render(html`
|
|
152
143
|
<style>${chatViewStyles}</style>
|
|
153
144
|
<style>${permissionPromptStyles}</style>
|
|
154
|
-
<div class
|
|
145
|
+
<div class="chat-ui">
|
|
155
146
|
<main @scroll=${input.handleScroll} ${ref(element => { output.mainElement = element as HTMLElement; } )}>
|
|
156
147
|
${input.messages.length > 0 ? html`
|
|
157
148
|
<div class="messages-container" ${ref(input.handleMessageContainerRef)}>
|
|
@@ -187,12 +178,7 @@ const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
187
178
|
name="smart-assistant"
|
|
188
179
|
></devtools-icon>
|
|
189
180
|
</div>
|
|
190
|
-
|
|
191
|
-
html`
|
|
192
|
-
<h1 class='greeting'>Hello</h1>
|
|
193
|
-
<p class='cta'>${lockedString(UIStringsNotTranslate.emptyStateTextGemini)}</p>
|
|
194
|
-
` : html`<h1>${lockedString(UIStringsNotTranslate.emptyStateText)}</h1>`
|
|
195
|
-
}
|
|
181
|
+
<h1>${lockedString(UIStringsNotTranslate.emptyStateText)}</h1>
|
|
196
182
|
</div>
|
|
197
183
|
<div class="empty-state-content">
|
|
198
184
|
${input.emptyStateSuggestions.map(({title, jslogContext}) => {
|
|
@@ -29,12 +29,6 @@
|
|
|
29
29
|
container-name: --chat-ui-container;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.chat-cancel-context-button {
|
|
33
|
-
padding-bottom: 3px;
|
|
34
|
-
padding-right: var(--sys-size-3);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
32
|
.messages-container {
|
|
39
33
|
flex-grow: 1;
|
|
40
34
|
width: 100%;
|
|
@@ -50,10 +44,6 @@
|
|
|
50
44
|
}
|
|
51
45
|
}
|
|
52
46
|
|
|
53
|
-
.select-an-element-text {
|
|
54
|
-
margin-left: var(--sys-size-2);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
47
|
main {
|
|
58
48
|
overflow: hidden auto;
|
|
59
49
|
display: flex;
|
|
@@ -133,208 +123,6 @@ main {
|
|
|
133
123
|
}
|
|
134
124
|
}
|
|
135
125
|
|
|
136
|
-
.gemini {
|
|
137
|
-
.empty-state-container {
|
|
138
|
-
padding: var(--sys-size-8);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.empty-state-container .icon {
|
|
142
|
-
display: none;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.empty-state-container .header {
|
|
146
|
-
align-items: flex-start;
|
|
147
|
-
line-height: var(--sys-size-4);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.empty-state-content {
|
|
151
|
-
align-items: flex-start
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.empty-state-container .greeting {
|
|
155
|
-
font-size: var(--sys-size-10);
|
|
156
|
-
color: var(--sys-color-primary);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.empty-state-container .cta {
|
|
160
|
-
font-size: var(--sys-size-10);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
main {
|
|
164
|
-
align-items: flex-start;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.change-summary {
|
|
169
|
-
background-color: var(--sys-color-surface3);
|
|
170
|
-
border-radius: var(--sys-shape-corner-medium-small);
|
|
171
|
-
position: relative;
|
|
172
|
-
margin: 0 var(--sys-size-5) var(--sys-size-7) var(--sys-size-5);
|
|
173
|
-
padding: 0 var(--sys-size-5);
|
|
174
|
-
|
|
175
|
-
&.saved-to-disk {
|
|
176
|
-
pointer-events: none;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
& .header-container {
|
|
180
|
-
display: flex;
|
|
181
|
-
align-items: center;
|
|
182
|
-
gap: var(--sys-size-3);
|
|
183
|
-
height: var(--sys-size-14);
|
|
184
|
-
padding-left: var(--sys-size-3);
|
|
185
|
-
|
|
186
|
-
devtools-spinner {
|
|
187
|
-
width: var(--sys-size-6);
|
|
188
|
-
height: var(--sys-size-6);
|
|
189
|
-
margin-left: var(--sys-size-3);
|
|
190
|
-
margin-right: var(--sys-size-3);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
& devtools-icon.summary-badge {
|
|
194
|
-
width: var(--sys-size-8);
|
|
195
|
-
height: var(--sys-size-8);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
& .green-bright-icon {
|
|
199
|
-
color: var(--sys-color-green-bright);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
& .on-tonal-icon {
|
|
203
|
-
color: var(--sys-color-on-tonal-container);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
& .header-text {
|
|
207
|
-
font: var(--sys-typescale-body4);
|
|
208
|
-
color: var(--sys-color-on-surface);
|
|
209
|
-
white-space: nowrap;
|
|
210
|
-
overflow-x: hidden;
|
|
211
|
-
text-overflow: ellipsis;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
& .arrow {
|
|
215
|
-
margin-left: auto;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
&::marker {
|
|
219
|
-
content: '';
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
&:not(.saved-to-disk, &[open]):hover::after {
|
|
224
|
-
content: '';
|
|
225
|
-
height: 100%;
|
|
226
|
-
width: 100%;
|
|
227
|
-
border-radius: inherit;
|
|
228
|
-
position: absolute;
|
|
229
|
-
top: 0;
|
|
230
|
-
left: 0;
|
|
231
|
-
pointer-events: none;
|
|
232
|
-
background-color: var(--sys-color-state-hover-on-subtle);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
&[open]:not(.saved-to-disk) {
|
|
236
|
-
&::details-content {
|
|
237
|
-
height: fit-content;
|
|
238
|
-
padding: var(--sys-size-2) 0;
|
|
239
|
-
border-radius: inherit;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
summary .arrow {
|
|
243
|
-
transform: rotate(180deg);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
devtools-code-block {
|
|
248
|
-
margin-bottom: var(--sys-size-5);
|
|
249
|
-
|
|
250
|
-
--code-block-background-color: var(--sys-color-surface1);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.error-container {
|
|
254
|
-
display: flex;
|
|
255
|
-
align-items: center;
|
|
256
|
-
gap: var(--sys-size-3);
|
|
257
|
-
color: var(--sys-color-error);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.footer {
|
|
261
|
-
display: flex;
|
|
262
|
-
flex-flow: row wrap;
|
|
263
|
-
justify-content: space-between;
|
|
264
|
-
margin: var(--sys-size-5) 0 var(--sys-size-5) var(--sys-size-2);
|
|
265
|
-
gap: var(--sys-size-6) var(--sys-size-5);
|
|
266
|
-
|
|
267
|
-
.disclaimer-link {
|
|
268
|
-
align-self: center;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.left-side {
|
|
272
|
-
flex-grow: 1;
|
|
273
|
-
display: flex;
|
|
274
|
-
align-self: center;
|
|
275
|
-
gap: var(--sys-size-3);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.save-or-discard-buttons {
|
|
279
|
-
flex-grow: 1;
|
|
280
|
-
display: flex;
|
|
281
|
-
justify-content: flex-end;
|
|
282
|
-
gap: var(--sys-size-3);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.change-workspace {
|
|
286
|
-
display: flex;
|
|
287
|
-
flex-direction: row;
|
|
288
|
-
align-items: center;
|
|
289
|
-
gap: var(--sys-size-3);
|
|
290
|
-
min-width: var(--sys-size-22);
|
|
291
|
-
flex: 1 1 40%;
|
|
292
|
-
|
|
293
|
-
.folder-name {
|
|
294
|
-
white-space: nowrap;
|
|
295
|
-
overflow-x: hidden;
|
|
296
|
-
text-overflow: ellipsis;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.loading-text-container {
|
|
301
|
-
margin-right: var(--sys-size-3);
|
|
302
|
-
display: flex;
|
|
303
|
-
justify-content: center;
|
|
304
|
-
align-items: center;
|
|
305
|
-
gap: var(--sys-size-3);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.apply-to-workspace-container {
|
|
309
|
-
display: flex;
|
|
310
|
-
align-items: center;
|
|
311
|
-
gap: var(--sys-size-3);
|
|
312
|
-
min-width: fit-content;
|
|
313
|
-
justify-content: flex-end;
|
|
314
|
-
flex-grow: 1;
|
|
315
|
-
flex-shrink: 1;
|
|
316
|
-
|
|
317
|
-
devtools-icon {
|
|
318
|
-
/* var(--sys-size-8) is too small and var(--sys-size-9) is too big. */
|
|
319
|
-
width: 18px;
|
|
320
|
-
height: 18px;
|
|
321
|
-
margin-left: var(--sys-size-2);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
@keyframes reveal {
|
|
328
|
-
0%,
|
|
329
|
-
99% {
|
|
330
|
-
opacity: 100%;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
100% {
|
|
334
|
-
opacity: 0%;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
126
|
.sticky {
|
|
339
127
|
position: sticky;
|
|
340
128
|
bottom: 0;
|
|
@@ -106,7 +106,7 @@ const {render, html, Directives: {classMap}} = Lit;
|
|
|
106
106
|
const nodeUIsByNode = new WeakMap<SDK.DOMModel.DOMNode, NodeUI>();
|
|
107
107
|
|
|
108
108
|
const MIN_TIMELINE_CONTROLS_WIDTH = 120;
|
|
109
|
-
const DEFAULT_TIMELINE_CONTROLS_WIDTH =
|
|
109
|
+
const DEFAULT_TIMELINE_CONTROLS_WIDTH = 144;
|
|
110
110
|
const MAX_TIMELINE_CONTROLS_WIDTH = 720;
|
|
111
111
|
|
|
112
112
|
const ANIMATION_EXPLANATION_URL =
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:host {
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
|
|
10
|
-
--timeline-controls-width:
|
|
10
|
+
--timeline-controls-width: var(--sys-size-22);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
:host(.suspended) :is(
|
|
@@ -419,7 +419,7 @@ text.animation-timeline-grid-label {
|
|
|
419
419
|
.animation-paused::after {
|
|
420
420
|
content: '';
|
|
421
421
|
background: var(--sys-color-cdt-base-container);
|
|
422
|
-
width:
|
|
422
|
+
width: var(--sys-size-4);
|
|
423
423
|
height: var(--sys-size-9);
|
|
424
424
|
border-radius: var(--sys-size-2);
|
|
425
425
|
margin: var(--sys-size-2);
|
|
@@ -542,7 +542,9 @@ text.animation-timeline-grid-label {
|
|
|
542
542
|
width: var(--sys-size-4);
|
|
543
543
|
height: 100%;
|
|
544
544
|
left: var(--timeline-controls-width);
|
|
545
|
-
top
|
|
545
|
+
/* Position below the 28px top toolbar (--sys-size-12), 48px preview
|
|
546
|
+
buffer (--sys-size-16), and 28px timeline header (--sys-size-12). */
|
|
547
|
+
top: calc(2 * var(--sys-size-12) + var(--sys-size-16));
|
|
546
548
|
z-index: 3;
|
|
547
549
|
/* We put this a bit to the left of the line to allow dragging
|
|
548
550
|
the delay point of the keyframes */
|
|
@@ -119,6 +119,7 @@ export class ExpandableApplicationPanelTreeElement extends ApplicationPanelTreeE
|
|
|
119
119
|
protected emptyCategoryHeadline: string;
|
|
120
120
|
protected categoryDescription: string;
|
|
121
121
|
protected readonly settingsKey: string;
|
|
122
|
+
private wasDescendantSelected = false;
|
|
122
123
|
|
|
123
124
|
constructor(
|
|
124
125
|
resourcesPanel: ResourcesPanel, categoryName: string, emptyCategoryHeadline: string, categoryDescription: string,
|
|
@@ -164,22 +165,84 @@ export class ExpandableApplicationPanelTreeElement extends ApplicationPanelTreeE
|
|
|
164
165
|
this.categoryLink = link;
|
|
165
166
|
}
|
|
166
167
|
|
|
168
|
+
override select(omitFocus?: boolean, selectedByUser?: boolean): boolean {
|
|
169
|
+
if (this.selected && selectedByUser && !this.expanded && this.childCount() > 0) {
|
|
170
|
+
this.expand();
|
|
171
|
+
const childToSelect = this.findChildToAutoSelect();
|
|
172
|
+
if (childToSelect) {
|
|
173
|
+
childToSelect.select(omitFocus, true);
|
|
174
|
+
}
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const previousSelected = this.treeOutline?.selectedTreeElement ?? null;
|
|
179
|
+
this.wasDescendantSelected = Boolean(previousSelected?.hasAncestor(this));
|
|
180
|
+
try {
|
|
181
|
+
return super.select(omitFocus, selectedByUser);
|
|
182
|
+
} finally {
|
|
183
|
+
this.wasDescendantSelected = false;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
167
187
|
override onselect(selectedByUser: boolean|undefined): boolean {
|
|
168
188
|
super.onselect(selectedByUser);
|
|
189
|
+
if (selectedByUser && !this.wasDescendantSelected && this.childCount() > 0) {
|
|
190
|
+
if (!this.expanded) {
|
|
191
|
+
this.expand();
|
|
192
|
+
}
|
|
193
|
+
const childToSelect = this.findChildToAutoSelect();
|
|
194
|
+
if (childToSelect) {
|
|
195
|
+
childToSelect.select(/* omitFocus= */ false, /* selectedByUser= */ true);
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
169
199
|
this.updateCategoryView();
|
|
170
200
|
const item = this.createGenericStorageAiContext();
|
|
171
201
|
UI.Context.Context.instance().setFlavor(AiAssistance.StorageItem.StorageItem, item);
|
|
172
202
|
return false;
|
|
173
203
|
}
|
|
174
204
|
|
|
205
|
+
private isOriginStorageCategory(): boolean {
|
|
206
|
+
return this.settingsKey === 'cookies' || this.settingsKey === 'local-storage' ||
|
|
207
|
+
this.settingsKey === 'session-storage';
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
private getMainPageOrigin(): string {
|
|
211
|
+
const target = SDK.TargetManager.TargetManager.instance().primaryPageTarget();
|
|
212
|
+
if (!target) {
|
|
213
|
+
return '';
|
|
214
|
+
}
|
|
215
|
+
const mainFrame = target.model(SDK.ResourceTreeModel.ResourceTreeModel)?.mainFrame;
|
|
216
|
+
const url = mainFrame?.unreachableUrl() || mainFrame?.url || target.inspectedURL();
|
|
217
|
+
return url ? Common.ParsedURL.ParsedURL.extractOrigin(url) : '';
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
private findChildToAutoSelect(): UI.TreeOutline.TreeElement|null {
|
|
221
|
+
if (!this.isOriginStorageCategory()) {
|
|
222
|
+
return null;
|
|
223
|
+
}
|
|
224
|
+
const selectableChildren = this.children().filter(child => child.selectable && !child.isExpandable());
|
|
225
|
+
if (selectableChildren.length === 0) {
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
const mainPageOrigin = this.getMainPageOrigin();
|
|
229
|
+
if (mainPageOrigin) {
|
|
230
|
+
const matchingChild = selectableChildren.find(child => child.titleAsText() === mainPageOrigin);
|
|
231
|
+
if (matchingChild) {
|
|
232
|
+
return matchingChild;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return selectableChildren.length === 1 ? selectableChildren[0] : null;
|
|
236
|
+
}
|
|
237
|
+
|
|
175
238
|
private updateCategoryView(): void {
|
|
176
239
|
const headline = this.childCount() === 0 ? this.emptyCategoryHeadline : this.categoryName;
|
|
177
240
|
this.resourcesPanel.showCategoryView(this.categoryName, headline, this.categoryDescription, this.categoryLink);
|
|
178
241
|
}
|
|
179
242
|
|
|
180
|
-
override appendChild(
|
|
181
|
-
|
|
182
|
-
|
|
243
|
+
override appendChild(child: UI.TreeOutline.TreeElement,
|
|
244
|
+
comparator?: ((arg0: UI.TreeOutline.TreeElement, arg1: UI.TreeOutline.TreeElement) => number)|
|
|
245
|
+
undefined): void {
|
|
183
246
|
super.appendChild(child, comparator);
|
|
184
247
|
// Only update if relevant (changing from 0 to 1 child).
|
|
185
248
|
if (this.selected && this.childCount() === 1) {
|