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,6 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
import {TokenIterator} from './SourceMap.js';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* The subset of a `SourceMapEntry` that a range mapping needs in order to interpolate:
|
|
9
|
+
* where the range starts in the generated code, and which original position that start
|
|
10
|
+
* maps to.
|
|
11
|
+
*/
|
|
12
|
+
export interface RangeMappingStart {
|
|
13
|
+
lineNumber: number;
|
|
14
|
+
columnNumber: number;
|
|
15
|
+
sourceLineNumber: number;
|
|
16
|
+
sourceColumnNumber: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface Position {
|
|
20
|
+
lineNumber: number;
|
|
21
|
+
columnNumber: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
7
24
|
/**
|
|
8
25
|
* Implements decoding of the `rangeMappings` field of the "range mappings" proposal.
|
|
9
26
|
*
|
|
@@ -41,3 +58,43 @@ export function decodeRangeMappings(encodedRangeMappings: string): number[][] {
|
|
|
41
58
|
|
|
42
59
|
return rangeMappings;
|
|
43
60
|
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Maps a position covered by a range mapping to its original position.
|
|
64
|
+
*
|
|
65
|
+
* Every character following the range mapping's start maps to the original code character
|
|
66
|
+
* by character, so the offset from the start carries over. Newlines are part of that: once
|
|
67
|
+
* a line boundary is crossed, both sides restart at column 0 and only the line offset
|
|
68
|
+
* applies.
|
|
69
|
+
*
|
|
70
|
+
* @param rangeMapping where the covering range mapping starts.
|
|
71
|
+
* @param lineNumber line of the position in the generated code.
|
|
72
|
+
* @param columnNumber column of the position in the generated code.
|
|
73
|
+
*/
|
|
74
|
+
export function interpolateOriginalPosition(rangeMapping: RangeMappingStart, lineNumber: number,
|
|
75
|
+
columnNumber: number): Position {
|
|
76
|
+
const lineOffset = lineNumber - rangeMapping.lineNumber;
|
|
77
|
+
return {
|
|
78
|
+
lineNumber: rangeMapping.sourceLineNumber + lineOffset,
|
|
79
|
+
columnNumber: lineOffset === 0 ? rangeMapping.sourceColumnNumber + (columnNumber - rangeMapping.columnNumber) :
|
|
80
|
+
columnNumber,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The inverse of {@link interpolateOriginalPosition}: maps an original position covered by
|
|
86
|
+
* a range mapping back to its position in the generated code.
|
|
87
|
+
*
|
|
88
|
+
* @param rangeMapping where the covering range mapping starts.
|
|
89
|
+
* @param lineNumber line of the position in the original code.
|
|
90
|
+
* @param columnNumber column of the position in the original code.
|
|
91
|
+
*/
|
|
92
|
+
export function interpolateGeneratedPosition(rangeMapping: RangeMappingStart, lineNumber: number,
|
|
93
|
+
columnNumber: number): Position {
|
|
94
|
+
const lineOffset = lineNumber - rangeMapping.sourceLineNumber;
|
|
95
|
+
return {
|
|
96
|
+
lineNumber: rangeMapping.lineNumber + lineOffset,
|
|
97
|
+
columnNumber: lineOffset === 0 ? rangeMapping.columnNumber + (columnNumber - rangeMapping.sourceColumnNumber) :
|
|
98
|
+
columnNumber,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -737,6 +737,7 @@
|
|
|
737
737
|
--sys-typescale-body1-line-height: 24px;
|
|
738
738
|
--sys-typescale-body2-line-height: 20px;
|
|
739
739
|
--sys-typescale-body3-line-height: 20px;
|
|
740
|
+
--sys-typescale-body3-5-line-height: 18px;
|
|
740
741
|
--sys-typescale-body4-line-height: 16px;
|
|
741
742
|
--sys-typescale-body5-line-height: 16px;
|
|
742
743
|
--sys-typescale-label-line-height: 9px;
|
|
@@ -321,9 +321,6 @@ export class JavaScriptFormatter {
|
|
|
321
321
|
if (AT.keyword(token, 'while')) {
|
|
322
322
|
return blockBody ? 'sts' : 'n<ts';
|
|
323
323
|
}
|
|
324
|
-
if (AT.punctuator(token, ';')) {
|
|
325
|
-
return 'tn';
|
|
326
|
-
}
|
|
327
324
|
} else if (nodeType === 'ClassBody') {
|
|
328
325
|
if (AT.punctuator(token, '{')) {
|
|
329
326
|
return 'stn>';
|
|
@@ -434,13 +431,12 @@ export class JavaScriptFormatter {
|
|
|
434
431
|
return '<';
|
|
435
432
|
}
|
|
436
433
|
}
|
|
437
|
-
} else if (
|
|
438
|
-
|
|
439
|
-
|
|
434
|
+
} else if (nodeType === 'BreakStatement' || nodeType === 'ContinueStatement' || nodeType === 'ThrowStatement' ||
|
|
435
|
+
nodeType === 'ReturnStatement' || nodeType === 'ExpressionStatement' ||
|
|
436
|
+
nodeType === 'DoWhileStatement') {
|
|
440
437
|
return 'n';
|
|
441
|
-
} else if (
|
|
442
|
-
|
|
443
|
-
nodeType === 'ExportDefaultDeclaration' || nodeType === 'ExportNamedDeclaration') {
|
|
438
|
+
} else if (nodeType === 'ImportDeclaration' || nodeType === 'ExportAllDeclaration' ||
|
|
439
|
+
nodeType === 'ExportDefaultDeclaration' || nodeType === 'ExportNamedDeclaration') {
|
|
444
440
|
return 'n';
|
|
445
441
|
}
|
|
446
442
|
return '';
|
|
@@ -23,10 +23,6 @@ const UIStrings = {
|
|
|
23
23
|
* @description Tooltip for the AI assistance button in the main DevTools toolbar.
|
|
24
24
|
*/
|
|
25
25
|
openAiAssistance: 'Open AI assistance panel',
|
|
26
|
-
/**
|
|
27
|
-
* @description Tooltip for the Gemini button in the main DevTools toolbar.
|
|
28
|
-
*/
|
|
29
|
-
openGemini: 'Open `Gemini` panel',
|
|
30
26
|
} as const;
|
|
31
27
|
const str_ = i18n.i18n.registerUIStrings('entrypoints/main/GlobalAiButton.ts', UIStrings);
|
|
32
28
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -60,18 +56,15 @@ export const DEFAULT_VIEW = (input: ViewInput, output: undefined, target: HTMLEl
|
|
|
60
56
|
expanded: inPromotionState,
|
|
61
57
|
});
|
|
62
58
|
|
|
63
|
-
const strings = AIAssistance.AiUtils.isGeminiBranding() ?
|
|
64
|
-
{title: i18nString(UIStrings.openGemini), label: i18n.i18n.lockedString('Gemini')} :
|
|
65
|
-
{title: i18nString(UIStrings.openAiAssistance), label: i18nString(UIStrings.aiAssistance)};
|
|
66
59
|
const icon = AIAssistance.AiUtils.getIconName();
|
|
67
60
|
|
|
68
61
|
// clang-format off
|
|
69
62
|
render(html`
|
|
70
63
|
<style>${globalAiButtonStyles}</style>
|
|
71
64
|
<div class="global-ai-button-container">
|
|
72
|
-
<button class=${classes} @click=${input.onClick} title=${
|
|
65
|
+
<button class=${classes} @click=${input.onClick} title=${i18nString(UIStrings.openAiAssistance)} jslog=${VisualLogging.action().track({click: true}).context('global-ai-button')}>
|
|
73
66
|
<devtools-icon name=${icon}></devtools-icon>
|
|
74
|
-
<span class="button-text">${` ${
|
|
67
|
+
<span class="button-text">${` ${i18nString(UIStrings.aiAssistance)}`}</span>
|
|
75
68
|
</button>
|
|
76
69
|
</div>
|
|
77
70
|
`, target);
|
|
@@ -498,10 +498,6 @@ export class MainImpl {
|
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
if (Root.Runtime.hostConfig.devToolsGeminiRebranding?.enabled) {
|
|
502
|
-
await PanelCommon.GeminiRebrandPromoDialog.maybeShow();
|
|
503
|
-
}
|
|
504
|
-
|
|
505
501
|
MainImpl.timeEnd('Main._createAppUI');
|
|
506
502
|
|
|
507
503
|
const appProvider = UI.AppProvider.getRegisteredAppProviders()[0];
|
|
@@ -440,6 +440,7 @@ export const generatedProperties: CSSProperty[] = [
|
|
|
440
440
|
"animation-fill-mode",
|
|
441
441
|
"animation-iteration-count",
|
|
442
442
|
"animation-name",
|
|
443
|
+
"animation-navigation-behavior",
|
|
443
444
|
"animation-play-state",
|
|
444
445
|
"animation-range-end",
|
|
445
446
|
"animation-range-start",
|
|
@@ -995,6 +996,15 @@ export const generatedProperties: CSSProperty[] = [
|
|
|
995
996
|
],
|
|
996
997
|
"name": "animation-name"
|
|
997
998
|
},
|
|
999
|
+
{
|
|
1000
|
+
"keywords": [
|
|
1001
|
+
"abrupt",
|
|
1002
|
+
"continuous"
|
|
1003
|
+
],
|
|
1004
|
+
"name": "animation-navigation-behavior",
|
|
1005
|
+
"runtime_flag": "CSSAnimationNavigationBehavior",
|
|
1006
|
+
"runtime_flag_status": "experimental"
|
|
1007
|
+
},
|
|
998
1008
|
{
|
|
999
1009
|
"keywords": [
|
|
1000
1010
|
"running",
|
|
@@ -4681,9 +4691,6 @@ export const generatedProperties: CSSProperty[] = [
|
|
|
4681
4691
|
"grid-rows",
|
|
4682
4692
|
"grid-columns",
|
|
4683
4693
|
"grid-order",
|
|
4684
|
-
"grid-lanes-flow",
|
|
4685
|
-
"grid-lanes-track",
|
|
4686
|
-
"grid-lanes-order",
|
|
4687
4694
|
"source-order"
|
|
4688
4695
|
],
|
|
4689
4696
|
"name": "reading-flow"
|
|
@@ -4865,9 +4872,7 @@ export const generatedProperties: CSSProperty[] = [
|
|
|
4865
4872
|
"none",
|
|
4866
4873
|
"spaces"
|
|
4867
4874
|
],
|
|
4868
|
-
"name": "ruby-overhang"
|
|
4869
|
-
"runtime_flag": "CSSRubyOverhang",
|
|
4870
|
-
"runtime_flag_status": "stable"
|
|
4875
|
+
"name": "ruby-overhang"
|
|
4871
4876
|
},
|
|
4872
4877
|
{
|
|
4873
4878
|
"inherited": true,
|
|
@@ -5163,8 +5168,7 @@ export const generatedProperties: CSSProperty[] = [
|
|
|
5163
5168
|
{
|
|
5164
5169
|
"keywords": [
|
|
5165
5170
|
"normal",
|
|
5166
|
-
"always"
|
|
5167
|
-
"before"
|
|
5171
|
+
"always"
|
|
5168
5172
|
],
|
|
5169
5173
|
"name": "scroll-snap-stop"
|
|
5170
5174
|
},
|
|
@@ -5411,8 +5415,7 @@ export const generatedProperties: CSSProperty[] = [
|
|
|
5411
5415
|
"-webkit-right",
|
|
5412
5416
|
"-webkit-center",
|
|
5413
5417
|
"start",
|
|
5414
|
-
"end"
|
|
5415
|
-
"match-parent"
|
|
5418
|
+
"end"
|
|
5416
5419
|
],
|
|
5417
5420
|
"name": "text-align"
|
|
5418
5421
|
},
|
|
@@ -5434,8 +5437,7 @@ export const generatedProperties: CSSProperty[] = [
|
|
|
5434
5437
|
"left",
|
|
5435
5438
|
"right",
|
|
5436
5439
|
"center",
|
|
5437
|
-
"justify"
|
|
5438
|
-
"match-parent"
|
|
5440
|
+
"justify"
|
|
5439
5441
|
],
|
|
5440
5442
|
"name": "text-align-last"
|
|
5441
5443
|
},
|
|
@@ -5530,8 +5532,7 @@ export const generatedProperties: CSSProperty[] = [
|
|
|
5530
5532
|
"inherited": true,
|
|
5531
5533
|
"keywords": [
|
|
5532
5534
|
"none",
|
|
5533
|
-
"auto"
|
|
5534
|
-
"all"
|
|
5535
|
+
"auto"
|
|
5535
5536
|
],
|
|
5536
5537
|
"name": "text-decoration-skip-ink"
|
|
5537
5538
|
},
|
|
@@ -5965,8 +5966,7 @@ export const generatedProperties: CSSProperty[] = [
|
|
|
5965
5966
|
"auto",
|
|
5966
5967
|
"none",
|
|
5967
5968
|
"text",
|
|
5968
|
-
"all"
|
|
5969
|
-
"contain"
|
|
5969
|
+
"all"
|
|
5970
5970
|
],
|
|
5971
5971
|
"name": "user-select"
|
|
5972
5972
|
},
|
|
@@ -6404,6 +6404,12 @@ export const generatedPropertyValues: Record<string, CSSPropertyValue> = {
|
|
|
6404
6404
|
"none"
|
|
6405
6405
|
]
|
|
6406
6406
|
},
|
|
6407
|
+
"animation-navigation-behavior": {
|
|
6408
|
+
"values": [
|
|
6409
|
+
"abrupt",
|
|
6410
|
+
"continuous"
|
|
6411
|
+
]
|
|
6412
|
+
},
|
|
6407
6413
|
"animation-play-state": {
|
|
6408
6414
|
"values": [
|
|
6409
6415
|
"running",
|
|
@@ -8454,9 +8460,6 @@ export const generatedPropertyValues: Record<string, CSSPropertyValue> = {
|
|
|
8454
8460
|
"grid-rows",
|
|
8455
8461
|
"grid-columns",
|
|
8456
8462
|
"grid-order",
|
|
8457
|
-
"grid-lanes-flow",
|
|
8458
|
-
"grid-lanes-track",
|
|
8459
|
-
"grid-lanes-order",
|
|
8460
8463
|
"source-order"
|
|
8461
8464
|
]
|
|
8462
8465
|
},
|
|
@@ -8664,8 +8667,7 @@ export const generatedPropertyValues: Record<string, CSSPropertyValue> = {
|
|
|
8664
8667
|
"scroll-snap-stop": {
|
|
8665
8668
|
"values": [
|
|
8666
8669
|
"normal",
|
|
8667
|
-
"always"
|
|
8668
|
-
"before"
|
|
8670
|
+
"always"
|
|
8669
8671
|
]
|
|
8670
8672
|
},
|
|
8671
8673
|
"scroll-snap-type": {
|
|
@@ -8860,8 +8862,7 @@ export const generatedPropertyValues: Record<string, CSSPropertyValue> = {
|
|
|
8860
8862
|
"text-decoration-skip-ink": {
|
|
8861
8863
|
"values": [
|
|
8862
8864
|
"none",
|
|
8863
|
-
"auto"
|
|
8864
|
-
"all"
|
|
8865
|
+
"auto"
|
|
8865
8866
|
]
|
|
8866
8867
|
},
|
|
8867
8868
|
"text-decoration-skip-spaces": {
|
|
@@ -127,10 +127,6 @@ export const aiAssistanceV2OptInChangeDialogSeenSettingDescriptor: Common.Settin
|
|
|
127
127
|
defaultValue: false,
|
|
128
128
|
};
|
|
129
129
|
|
|
130
|
-
export function isGeminiBranding(): boolean {
|
|
131
|
-
return !!Root.Runtime.hostConfig.devToolsGeminiRebranding?.enabled;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
130
|
export function isNaturalLanguageInterfaceEnabled(): boolean {
|
|
135
131
|
return Boolean(Root.Runtime.hostConfig.devToolsAiNaturalLanguageInterface?.enabled);
|
|
136
132
|
}
|
|
@@ -199,7 +195,7 @@ export function getDisabledReasons(aidaAvailability: Host.AidaClient.AidaAccessP
|
|
|
199
195
|
}
|
|
200
196
|
|
|
201
197
|
export function getIconName(): string {
|
|
202
|
-
return
|
|
198
|
+
return 'smart-assistant';
|
|
203
199
|
}
|
|
204
200
|
|
|
205
201
|
export interface OneShotPromptRequest {
|
|
@@ -807,14 +807,7 @@ export abstract class AiAgent<T> {
|
|
|
807
807
|
|
|
808
808
|
constructor(opts: AgentOptions) {
|
|
809
809
|
this.#aidaClient = opts.aidaClient;
|
|
810
|
-
|
|
811
|
-
// Disable logging for now.
|
|
812
|
-
// For context, see b/454563259#comment35.
|
|
813
|
-
// We should be able to remove this ~end of April.
|
|
814
|
-
if (Root.Runtime.hostConfig.devToolsGeminiRebranding?.enabled) {
|
|
815
|
-
serverSideLoggingAllowed = false;
|
|
816
|
-
}
|
|
817
|
-
this.#serverSideLoggingActive = serverSideLoggingAllowed;
|
|
810
|
+
this.#serverSideLoggingActive = opts.serverSideLoggingAllowed ?? false;
|
|
818
811
|
this.#sessionId = opts.sessionId ?? crypto.randomUUID();
|
|
819
812
|
this.confirmSideEffect = opts.confirmSideEffectForTest ?? (() => Promise.withResolvers());
|
|
820
813
|
this.#history = opts.history ?? [];
|
|
@@ -1602,20 +1595,11 @@ export abstract class AiAgent<T> {
|
|
|
1602
1595
|
|
|
1603
1596
|
const requestTimestamp = Math.floor(Date.now() * 1000);
|
|
1604
1597
|
for await (aidaResponse of this.#aidaClient.doConversation(request, options)) {
|
|
1605
|
-
if (aidaResponse.functionCalls?.length) {
|
|
1606
|
-
yield {
|
|
1607
|
-
rpcId,
|
|
1608
|
-
functionCalls: aidaResponse.functionCalls,
|
|
1609
|
-
completed: true,
|
|
1610
|
-
text: aidaResponse.explanation,
|
|
1611
|
-
};
|
|
1612
|
-
break;
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
1598
|
rpcId = aidaResponse.metadata.rpcGlobalId ?? rpcId;
|
|
1616
1599
|
yield {
|
|
1617
1600
|
rpcId,
|
|
1618
1601
|
text: aidaResponse.explanation,
|
|
1602
|
+
functionCalls: aidaResponse.functionCalls,
|
|
1619
1603
|
completed: aidaResponse.completed,
|
|
1620
1604
|
};
|
|
1621
1605
|
}
|
|
@@ -21,8 +21,7 @@ export class FileContext extends ConversationContext<Workspace.UISourceCode.UISo
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Returns the security origin of the
|
|
25
|
-
* back to the origin derived from the file URL.
|
|
24
|
+
* Returns the security origin of the workspace file.
|
|
26
25
|
*/
|
|
27
26
|
override getOrigin(): SDK.SecurityOrigin.SecurityOrigin {
|
|
28
27
|
return this.#file.securityOrigin();
|
|
@@ -73,7 +73,9 @@ export class ListSourcesTool implements
|
|
|
73
73
|
if (uiSourceCode.isIgnoreListed()) {
|
|
74
74
|
continue;
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
// A source map on an allowed page can still point to cross-origin URLs,
|
|
77
|
+
// so a file's origin may differ from its project's origin.
|
|
78
|
+
if (!isOriginAllowedByLock(originLock, uiSourceCode.securityOrigin())) {
|
|
77
79
|
continue;
|
|
78
80
|
}
|
|
79
81
|
|
|
@@ -59,12 +59,6 @@ export class AiCodeGeneration {
|
|
|
59
59
|
constructor(opts: Options) {
|
|
60
60
|
this.#aidaClient = opts.aidaClient;
|
|
61
61
|
this.#serverSideLoggingEnabled = opts.serverSideLoggingEnabled ?? false;
|
|
62
|
-
// Disable logging for now.
|
|
63
|
-
// For context, see b/454563259#comment35.
|
|
64
|
-
// We should be able to remove this ~end of April.
|
|
65
|
-
if (Root.Runtime.hostConfig.devToolsGeminiRebranding?.enabled) {
|
|
66
|
-
this.#serverSideLoggingEnabled = false;
|
|
67
|
-
}
|
|
68
62
|
}
|
|
69
63
|
|
|
70
64
|
#buildRequest(
|
|
@@ -227,7 +227,7 @@ export const NativeFunctions: readonly NativeFunctionValue[] = [
|
|
|
227
227
|
{
|
|
228
228
|
name: "create",
|
|
229
229
|
signatures: [["?options"]],
|
|
230
|
-
receivers: ["CredentialsContainer","DecisionModel"
|
|
230
|
+
receivers: ["CredentialsContainer","DecisionModel"]
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
name: "defineProperty",
|
|
@@ -8317,10 +8317,6 @@ export const NativeFunctions: readonly NativeFunctionValue[] = [
|
|
|
8317
8317
|
name: "LanguageModelToolError",
|
|
8318
8318
|
signatures: [["init"]]
|
|
8319
8319
|
},
|
|
8320
|
-
{
|
|
8321
|
-
name: "embed",
|
|
8322
|
-
signatures: [["input","?options"]]
|
|
8323
|
-
},
|
|
8324
8320
|
{
|
|
8325
8321
|
name: "setPrivateToken",
|
|
8326
8322
|
signatures: [["privateToken"]]
|
|
@@ -8501,6 +8497,10 @@ export const NativeFunctions: readonly NativeFunctionValue[] = [
|
|
|
8501
8497
|
name: "resumeTool",
|
|
8502
8498
|
signatures: [["token","callback"]]
|
|
8503
8499
|
},
|
|
8500
|
+
{
|
|
8501
|
+
name: "waitForToolsUntil",
|
|
8502
|
+
signatures: [["promise"]]
|
|
8503
|
+
},
|
|
8504
8504
|
{
|
|
8505
8505
|
name: "TaskController",
|
|
8506
8506
|
signatures: [["?init"]]
|
|
@@ -8521,6 +8521,10 @@ export const NativeFunctions: readonly NativeFunctionValue[] = [
|
|
|
8521
8521
|
name: "removeProcessingInstruction",
|
|
8522
8522
|
signatures: [["pi"]]
|
|
8523
8523
|
},
|
|
8524
|
+
{
|
|
8525
|
+
name: "setJavascriptURLs",
|
|
8526
|
+
signatures: [["allow"]]
|
|
8527
|
+
},
|
|
8524
8528
|
{
|
|
8525
8529
|
name: "ResizeObserver",
|
|
8526
8530
|
signatures: [["callback"]]
|
|
@@ -7,8 +7,6 @@ import type {ParsedTrace} from './ModelImpl.js';
|
|
|
7
7
|
import * as Types from './types/types.js';
|
|
8
8
|
|
|
9
9
|
export class EventsSerializer {
|
|
10
|
-
#modifiedProfileCallByKey = new Map<Types.File.ProfileCallKeyValues, Types.Events.SyntheticProfileCall>();
|
|
11
|
-
|
|
12
10
|
keyForEvent(event: Types.Events.Event): Types.File.SerializableKey|null {
|
|
13
11
|
if (Types.Events.isProfileCall(event)) {
|
|
14
12
|
return `${Types.File.EventKeyType.PROFILE_CALL}-${event.pid}-${event.tid}-${
|
|
@@ -116,10 +114,6 @@ export class EventsSerializer {
|
|
|
116
114
|
|
|
117
115
|
#getModifiedProfileCallByKeyValues(key: Types.File.ProfileCallKeyValues,
|
|
118
116
|
parsedTrace: ParsedTrace): Types.Events.SyntheticProfileCall {
|
|
119
|
-
const cacheResult = this.#modifiedProfileCallByKey.get(key);
|
|
120
|
-
if (cacheResult) {
|
|
121
|
-
return cacheResult;
|
|
122
|
-
}
|
|
123
117
|
const profileCallsInThread =
|
|
124
118
|
parsedTrace.data.Renderer.processes.get(key.processID)?.threads.get(key.threadID)?.profileCalls;
|
|
125
119
|
if (!profileCallsInThread) {
|
|
@@ -132,8 +126,6 @@ export class EventsSerializer {
|
|
|
132
126
|
if (!match) {
|
|
133
127
|
throw new Error(`Unknown profile call serializable key: ${(JSON.stringify(key))}`);
|
|
134
128
|
}
|
|
135
|
-
// Cache to avoid looking up in subsequent calls.
|
|
136
|
-
this.#modifiedProfileCallByKey.set(key, match);
|
|
137
129
|
return match;
|
|
138
130
|
}
|
|
139
131
|
}
|
|
@@ -10,6 +10,9 @@ export abstract class TraceFilter {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export class VisibleEventsFilter extends TraceFilter {
|
|
13
|
+
// Real traces contain ~15 distinct category strings; memoizing the substring
|
|
14
|
+
// checks avoids scanning event.cat on every event in hot tree-build loops.
|
|
15
|
+
static #categoryToEventName = new Map<string, Types.Events.Name|null>();
|
|
13
16
|
private readonly visibleTypes: Set<string>;
|
|
14
17
|
constructor(visibleTypes: string[]) {
|
|
15
18
|
super();
|
|
@@ -24,15 +27,20 @@ export class VisibleEventsFilter extends TraceFilter {
|
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
static eventType(event: Types.Events.Event): Types.Events.Name {
|
|
27
|
-
|
|
28
|
-
if (
|
|
29
|
-
|
|
30
|
+
let type = VisibleEventsFilter.#categoryToEventName.get(event.cat);
|
|
31
|
+
if (type === undefined) {
|
|
32
|
+
if (event.cat.includes('blink.console')) {
|
|
33
|
+
type = Types.Events.Name.CONSOLE_TIME;
|
|
34
|
+
} else if (event.cat.includes('blink.user_timing')) {
|
|
35
|
+
type = Types.Events.Name.USER_TIMING;
|
|
36
|
+
} else {
|
|
37
|
+
type = null;
|
|
38
|
+
}
|
|
39
|
+
if (VisibleEventsFilter.#categoryToEventName.size < 256) {
|
|
40
|
+
VisibleEventsFilter.#categoryToEventName.set(event.cat, type);
|
|
41
|
+
}
|
|
30
42
|
}
|
|
31
|
-
|
|
32
|
-
if (event.cat.includes('blink.user_timing')) {
|
|
33
|
-
return Types.Events.Name.USER_TIMING;
|
|
34
|
-
}
|
|
35
|
-
return event.name as Types.Events.Name;
|
|
43
|
+
return type ?? (event.name as Types.Events.Name);
|
|
36
44
|
}
|
|
37
45
|
}
|
|
38
46
|
|