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,119 +4,121 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
7
|
+
@scope to (devtools-widget > *) {
|
|
8
|
+
.title-section {
|
|
9
|
+
padding: var(--sys-size-8) 0 var(--sys-size-11);
|
|
10
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.title-section-header {
|
|
14
|
+
padding-left: var(--sys-size-8);
|
|
15
|
+
padding-bottom: 10px;
|
|
16
|
+
font-size: var(--sys-typescale-body2-size);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:scope,
|
|
20
|
+
.security-origin-view {
|
|
21
|
+
overflow: hidden scroll;
|
|
22
|
+
display: block;
|
|
23
|
+
user-select: text;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.origin-view-section {
|
|
27
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
28
|
+
padding: var(--sys-size-6) var(--sys-size-4) var(--sys-size-6) var(--sys-size-11);
|
|
29
|
+
font-size: var(--sys-typescale-body4-size);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.origin-view-notes {
|
|
33
|
+
margin-top: var(--sys-size-2);
|
|
34
|
+
color: var(--sys-color-token-subtle);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.origin-view-section-notes {
|
|
38
|
+
margin-top: var(--sys-size-4);
|
|
39
|
+
color: var(--sys-color-token-subtle);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.origin-display {
|
|
43
|
+
font-size: var(--sys-typescale-body4-size);
|
|
44
|
+
padding-left: var(--sys-size-8);
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.title-section > .view-network-button {
|
|
50
|
+
padding: var(--sys-size-4) 0 0 var(--sys-size-8);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.origin-display devtools-icon {
|
|
54
|
+
width: var(--sys-size-8);
|
|
55
|
+
height: var(--sys-size-8);
|
|
56
|
+
margin-right: var(--sys-size-6);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.origin-view-section-title {
|
|
60
|
+
margin-top: var(--sys-size-3);
|
|
61
|
+
margin-bottom: var(--sys-size-3);
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.details-table {
|
|
66
|
+
border-spacing: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.details-table-row {
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
line-height: var(--sys-size-10);
|
|
73
|
+
vertical-align: top;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.details-table-row > td {
|
|
77
|
+
padding: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.details-table-row > td:first-child {
|
|
81
|
+
color: var(--sys-color-token-subtle);
|
|
82
|
+
width: calc(var(--sys-size-21) + 1em); /* 128px label column + 1em right padding */
|
|
83
|
+
text-align: right;
|
|
84
|
+
padding-right: 1em;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.details-table-row > td:nth-child(2) {
|
|
88
|
+
white-space: normal;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.sct-details .details-table .details-table-row:last-child td:last-child {
|
|
92
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
93
|
+
padding-bottom: var(--sys-size-5);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.sct-details .details-table:last-child .details-table-row:last-child td:last-child {
|
|
97
|
+
border-bottom: none;
|
|
98
|
+
padding-bottom: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.details-toggle {
|
|
102
|
+
margin-left: 126px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.details-table .empty-san {
|
|
106
|
+
color: var(--sys-color-state-disabled);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.details-table .san-entry {
|
|
110
|
+
display: block;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.truncated-san .truncated-entry {
|
|
114
|
+
display: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.origin-view-section:last-child {
|
|
118
|
+
border-bottom: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.devtools-link {
|
|
122
|
+
display: inline-flex;
|
|
123
|
+
}
|
|
122
124
|
}
|
|
@@ -184,55 +184,7 @@ export interface LocationDialogInput {
|
|
|
184
184
|
onValidateErrors: (errors: LocationValidationErrors) => void;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
export function renderEditorView(controls: EditorInputControls, errors?: LocationDialogInput['errors']
|
|
188
|
-
isDialog = false): LitTemplate {
|
|
189
|
-
if (!isDialog) {
|
|
190
|
-
// clang-format off
|
|
191
|
-
return html`
|
|
192
|
-
<div class="locations-edit-row">
|
|
193
|
-
<div class="locations-list-text locations-list-title">${i18nString(UIStrings.locationName)}</div>
|
|
194
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
195
|
-
<div class="locations-list-text">${i18nString(UIStrings.lat)}</div>
|
|
196
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
197
|
-
<div class="locations-list-text">${i18nString(UIStrings.long)}</div>
|
|
198
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
199
|
-
<div class="locations-list-text">${i18nString(UIStrings.timezoneId)}</div>
|
|
200
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
201
|
-
<div class="locations-list-text">${i18nString(UIStrings.locale)}</div>
|
|
202
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
203
|
-
<div class="locations-list-text">${i18nString(UIStrings.accuracy)}</div>
|
|
204
|
-
</div>
|
|
205
|
-
<div class="locations-edit-row">
|
|
206
|
-
<div class="locations-list-text locations-list-title locations-input-container">${controls.titleInput}</div>
|
|
207
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
208
|
-
<div class="locations-list-text locations-input-container">${controls.latInput}</div>
|
|
209
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
210
|
-
<div class="locations-list-text locations-list-text-longitude locations-input-container">${controls.longInput}</div>
|
|
211
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
212
|
-
<div class="locations-list-text locations-input-container">${controls.timezoneIdInput}</div>
|
|
213
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
214
|
-
<div class="locations-list-text locations-input-container">${controls.localeInput}</div>
|
|
215
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
216
|
-
<div class="locations-list-text locations-input-container">${controls.accuracyInput}</div>
|
|
217
|
-
</div>
|
|
218
|
-
${errors ? html`
|
|
219
|
-
<div class="locations-edit-row locations-error-row" role="alert">
|
|
220
|
-
<div class="locations-list-text locations-list-title locations-error-cell">${errors.title ?? nothing}</div>
|
|
221
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
222
|
-
<div class="locations-list-text locations-error-cell">${errors.lat ?? nothing}</div>
|
|
223
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
224
|
-
<div class="locations-list-text locations-list-text-longitude locations-error-cell">${errors.long ?? nothing}</div>
|
|
225
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
226
|
-
<div class="locations-list-text locations-error-cell">${errors.timezoneId ?? nothing}</div>
|
|
227
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
228
|
-
<div class="locations-list-text locations-error-cell">${errors.locale ?? nothing}</div>
|
|
229
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
230
|
-
<div class="locations-list-text locations-error-cell">${errors.accuracy ?? nothing}</div>
|
|
231
|
-
</div>
|
|
232
|
-
` : nothing}`;
|
|
233
|
-
// clang-format on
|
|
234
|
-
}
|
|
235
|
-
|
|
187
|
+
export function renderEditorView(controls: EditorInputControls, errors?: LocationDialogInput['errors']): LitTemplate {
|
|
236
188
|
// clang-format off
|
|
237
189
|
return html`
|
|
238
190
|
<div class="editor-grid">
|
|
@@ -351,7 +303,7 @@ export function renderLocationDialog(input: LocationDialogInput): LitTemplate {
|
|
|
351
303
|
aria-label=${i18nString(UIStrings.close)}>
|
|
352
304
|
</devtools-button>
|
|
353
305
|
</div>
|
|
354
|
-
${renderEditorView(editorControls, input.errors
|
|
306
|
+
${renderEditorView(editorControls, input.errors)}
|
|
355
307
|
<div class="dialog-buttons">
|
|
356
308
|
<devtools-button
|
|
357
309
|
class="save-button"
|
|
@@ -187,6 +187,7 @@ const UIStrings = {
|
|
|
187
187
|
} as const;
|
|
188
188
|
const str_ = i18n.i18n.registerUIStrings('panels/sensors/SensorsView.ts', UIStrings);
|
|
189
189
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
190
|
+
const {live} = Directives;
|
|
190
191
|
|
|
191
192
|
export class SensorsView extends UI.Widget.VBox {
|
|
192
193
|
readonly #locationSetting: Common.Settings.Setting<string>;
|
|
@@ -313,19 +314,18 @@ export class SensorsView extends UI.Widget.VBox {
|
|
|
313
314
|
this.locationSelectElement = el as HTMLSelectElement;
|
|
314
315
|
}
|
|
315
316
|
})}
|
|
316
|
-
.selectedIndex=${selectedIndex}
|
|
317
317
|
@change=${this.#locationSelectChanged.bind(this)}
|
|
318
318
|
jslog=${VisualLogging.dropDown().track({change: true})}
|
|
319
319
|
>
|
|
320
|
-
<option value=${NonPresetOptions.NoOverride} jslog=${VisualLogging.item('no-override')}>${i18nString(UIStrings.noOverride)}</option>
|
|
320
|
+
<option value=${NonPresetOptions.NoOverride} .selected=${live(selectedIndex === 0)} jslog=${VisualLogging.item('no-override')}>${i18nString(UIStrings.noOverride)}</option>
|
|
321
321
|
<optgroup label=${i18nString(UIStrings.overrides)}>
|
|
322
|
-
${customLocations.map(customLocation => html`
|
|
323
|
-
<option value=${JSON.stringify(customLocation)} jslog=${VisualLogging.item('custom')}>${customLocation.title}</option>
|
|
322
|
+
${customLocations.map((customLocation, i) => html`
|
|
323
|
+
<option value=${JSON.stringify(customLocation)} .selected=${live(selectedIndex === i + 1)} jslog=${VisualLogging.item('custom')}>${customLocation.title}</option>
|
|
324
324
|
`)}
|
|
325
325
|
</optgroup>
|
|
326
|
-
<option value=${NonPresetOptions.Custom} jslog=${VisualLogging.item('other')}>${i18nString(UIStrings.other)}</option>
|
|
326
|
+
<option value=${NonPresetOptions.Custom} .selected=${live(selectedIndex === customLocations.length + 1)} jslog=${VisualLogging.item('other')}>${i18nString(UIStrings.other)}</option>
|
|
327
327
|
<optgroup label=${i18nString(UIStrings.error)}>
|
|
328
|
-
<option value=${NonPresetOptions.Unavailable} jslog=${VisualLogging.item('unavailable')}>${i18nString(UIStrings.locationUnavailable)}</option>
|
|
328
|
+
<option value=${NonPresetOptions.Unavailable} .selected=${live(selectedIndex === customLocations.length + 2)} jslog=${VisualLogging.item('unavailable')}>${i18nString(UIStrings.locationUnavailable)}</option>
|
|
329
329
|
</optgroup>
|
|
330
330
|
</select>
|
|
331
331
|
<devtools-button
|
|
@@ -1092,25 +1092,10 @@ export const enum DeviceOrientationModificationSource {
|
|
|
1092
1092
|
SELECT_PRESET = 'selectPreset',
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
|
-
export const PressureOptions = {
|
|
1096
|
-
NoOverride: 'no-override',
|
|
1097
|
-
Nominal: 'nominal',
|
|
1098
|
-
Fair: 'fair',
|
|
1099
|
-
Serious: 'serious',
|
|
1100
|
-
Critical: 'critical',
|
|
1101
|
-
};
|
|
1102
|
-
|
|
1103
1095
|
export const NonPresetOptions = {
|
|
1104
1096
|
NoOverride: 'noOverride',
|
|
1105
1097
|
Custom: 'custom',
|
|
1106
1098
|
Unavailable: 'unavailable',
|
|
1107
1099
|
};
|
|
1108
1100
|
|
|
1109
|
-
export class ShowActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
1110
|
-
handleAction(_context: UI.Context.Context, _actionId: string): boolean {
|
|
1111
|
-
void UI.ViewManager.ViewManager.instance().showView('sensors');
|
|
1112
|
-
return true;
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
1101
|
export const ShiftDragOrientationSpeed = 16;
|
|
@@ -30,7 +30,7 @@ devtools-list.locations-list,
|
|
|
30
30
|
.locations-list-text {
|
|
31
31
|
white-space: nowrap;
|
|
32
32
|
text-overflow: ellipsis;
|
|
33
|
-
flex-basis:
|
|
33
|
+
flex-basis: var(--sys-size-24);
|
|
34
34
|
user-select: none;
|
|
35
35
|
color: var(--sys-color-on-surface);
|
|
36
36
|
position: relative;
|
|
@@ -55,26 +55,6 @@ devtools-list.locations-list,
|
|
|
55
55
|
margin: 0 var(--sys-size-3);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.locations-list-separator-invisible {
|
|
59
|
-
visibility: hidden;
|
|
60
|
-
height: 100% !important; /* stylelint-disable-line declaration-no-important */
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.locations-edit-row {
|
|
64
|
-
display: flex;
|
|
65
|
-
flex-direction: row;
|
|
66
|
-
margin: var(--sys-size-4) 5px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.locations-edit-row input {
|
|
70
|
-
width: 100%;
|
|
71
|
-
text-align: inherit;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.locations-input-container {
|
|
75
|
-
padding: var(--sys-size-1);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
58
|
.settings-card-container-wrapper {
|
|
79
59
|
scrollbar-gutter: stable;
|
|
80
60
|
padding: var(--sys-size-8) 0;
|
|
@@ -660,8 +660,7 @@ export class AISettingsTab extends UI.Widget.VBox {
|
|
|
660
660
|
|
|
661
661
|
if (!this.#aiAssistanceSetting.unavailable) {
|
|
662
662
|
const aiAssistanceData: AiSettingParams = {
|
|
663
|
-
settingName: i18n.i18n.lockedString(
|
|
664
|
-
'AI assistance'),
|
|
663
|
+
settingName: i18n.i18n.lockedString('AI assistance'),
|
|
665
664
|
setting: this.#aiAssistanceSetting,
|
|
666
665
|
disabledReasons: this.#mapSettingDisabledReasons(this.#aiAssistanceSetting.disabledReasons),
|
|
667
666
|
iconName: AiAssistanceModel.AiUtils.getIconName(),
|
|
@@ -99,6 +99,7 @@ export const SETTINGS_SCREEN_DEFAULT_VIEW: SettingsScreenView = (
|
|
|
99
99
|
// clang-format off
|
|
100
100
|
render(
|
|
101
101
|
html`
|
|
102
|
+
<style>${settingsScreenStyles}</style>
|
|
102
103
|
<devtools-tabbed-pane
|
|
103
104
|
vertical
|
|
104
105
|
?focus-header=${input.focusTabHeader}
|
|
@@ -142,7 +143,6 @@ export class SettingsScreen extends UI.Widget.VBox implements UI.View.ViewLocati
|
|
|
142
143
|
constructor(view: SettingsScreenView = SETTINGS_SCREEN_DEFAULT_VIEW) {
|
|
143
144
|
super({useShadowDom: true});
|
|
144
145
|
this.#view = view;
|
|
145
|
-
this.registerRequiredCSS(settingsScreenStyles);
|
|
146
146
|
|
|
147
147
|
this.appendApplicableItems(UI.ViewManager.ViewLocationValues.SETTINGS_VIEW);
|
|
148
148
|
const keyBindsView = this.#views.find(v => v.viewId() === 'keybinds');
|
|
@@ -258,6 +258,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
258
258
|
|
|
259
259
|
#items: Item[] = [];
|
|
260
260
|
#focusedItem: Item|null = null;
|
|
261
|
+
#pendingAutoActivation = false;
|
|
261
262
|
#showIgnoreListed = false;
|
|
262
263
|
#showIgnoreListMessage = false;
|
|
263
264
|
#ignoreListCheckboxChecked = false;
|
|
@@ -354,6 +355,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
354
355
|
this.#showIgnoreListMessage = false;
|
|
355
356
|
this.#items = [];
|
|
356
357
|
this.#focusedItem = null;
|
|
358
|
+
this.#pendingAutoActivation = false;
|
|
357
359
|
UI.Context.Context.instance().setFlavor(StackTrace.StackTrace.DebuggableFrameFlavor, null);
|
|
358
360
|
return;
|
|
359
361
|
}
|
|
@@ -389,10 +391,13 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
389
391
|
|
|
390
392
|
if (this.maxAsyncStackChainDepth === defaultMaxAsyncStackChainDepth) {
|
|
391
393
|
this.#focusedItem = this.#firstVisibleItem() ?? (this.#items[0] ?? null);
|
|
392
|
-
|
|
394
|
+
const itemToActivate = this.#itemToAutoActivate();
|
|
395
|
+
if (itemToActivate &&
|
|
393
396
|
(UI.Context.Context.instance().flavor(QuickSourceView) ||
|
|
394
397
|
UI.Context.Context.instance().flavor(SourcesPanel))) {
|
|
395
|
-
this.activateItem(
|
|
398
|
+
this.activateItem(itemToActivate);
|
|
399
|
+
} else {
|
|
400
|
+
this.#pendingAutoActivation = Boolean(itemToActivate);
|
|
396
401
|
}
|
|
397
402
|
} else {
|
|
398
403
|
const activeItem = this.activeCallFrameItem();
|
|
@@ -401,6 +406,11 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
401
406
|
}
|
|
402
407
|
}
|
|
403
408
|
|
|
409
|
+
#itemToAutoActivate(): Item|null {
|
|
410
|
+
return this.#items.find(item => Boolean(item.frame) && this.#isItemVisible(item)) ??
|
|
411
|
+
this.#items.find(item => Boolean(item.frame)) ?? null;
|
|
412
|
+
}
|
|
413
|
+
|
|
404
414
|
#isItemVisible(item: Item|null): boolean {
|
|
405
415
|
if (!item || !this.#items.includes(item)) {
|
|
406
416
|
return false;
|
|
@@ -413,8 +423,9 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
413
423
|
}
|
|
414
424
|
|
|
415
425
|
#updateIgnoreListState(): void {
|
|
416
|
-
const
|
|
417
|
-
const
|
|
426
|
+
const nonHeaderItems = this.#items.filter(item => !item.isAsyncHeader);
|
|
427
|
+
const hasIgnoreListed = nonHeaderItems.some(item => item.isIgnoreListed);
|
|
428
|
+
const allIgnoreListed = nonHeaderItems.length > 0 && nonHeaderItems.every(item => item.isIgnoreListed);
|
|
418
429
|
|
|
419
430
|
if (allIgnoreListed) {
|
|
420
431
|
this.#showIgnoreListed = true;
|
|
@@ -426,6 +437,16 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
426
437
|
}
|
|
427
438
|
|
|
428
439
|
override performUpdate(): void {
|
|
440
|
+
if (this.#pendingAutoActivation &&
|
|
441
|
+
(UI.Context.Context.instance().flavor(QuickSourceView) || UI.Context.Context.instance().flavor(SourcesPanel))) {
|
|
442
|
+
const itemToActivate = this.#itemToAutoActivate();
|
|
443
|
+
if (itemToActivate) {
|
|
444
|
+
this.activateItem(itemToActivate);
|
|
445
|
+
} else {
|
|
446
|
+
this.#pendingAutoActivation = false;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
429
450
|
const viewInput: ViewInput = {
|
|
430
451
|
showIgnoreListMessage: this.#showIgnoreListMessage,
|
|
431
452
|
showIgnoreListedChecked: this.#ignoreListCheckboxChecked,
|
|
@@ -540,11 +561,12 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
540
561
|
}
|
|
541
562
|
|
|
542
563
|
private activateItem(item: Item): void {
|
|
564
|
+
this.#pendingAutoActivation = false;
|
|
543
565
|
const uiLocation = item.uiLocation;
|
|
544
566
|
if (!uiLocation) {
|
|
545
567
|
return;
|
|
546
568
|
}
|
|
547
|
-
if (this.#
|
|
569
|
+
if (this.#isItemVisible(item)) {
|
|
548
570
|
this.#focusedItem = item;
|
|
549
571
|
}
|
|
550
572
|
const debuggerCallFrame = item.frame;
|
|
@@ -556,7 +578,6 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
556
578
|
} else {
|
|
557
579
|
void Common.Revealer.reveal(uiLocation);
|
|
558
580
|
}
|
|
559
|
-
this.requestUpdate();
|
|
560
581
|
}
|
|
561
582
|
|
|
562
583
|
activeCallFrameItem(): Item|null {
|
|
@@ -593,6 +614,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
593
614
|
const newItem = this.#items[i];
|
|
594
615
|
if (newItem.frame) {
|
|
595
616
|
this.activateItem(newItem);
|
|
617
|
+
this.requestUpdate();
|
|
596
618
|
break;
|
|
597
619
|
}
|
|
598
620
|
}
|
|
@@ -605,6 +627,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
605
627
|
const newItem = this.#items[i];
|
|
606
628
|
if (newItem.frame) {
|
|
607
629
|
this.activateItem(newItem);
|
|
630
|
+
this.requestUpdate();
|
|
608
631
|
break;
|
|
609
632
|
}
|
|
610
633
|
}
|
|
@@ -671,6 +694,8 @@ export class Item {
|
|
|
671
694
|
const description = UI.UIUtils.asyncFragmentLabel(stackTrace, fragment);
|
|
672
695
|
const item = new Item(description);
|
|
673
696
|
item.isAsyncHeader = true;
|
|
697
|
+
item.isIgnoreListed =
|
|
698
|
+
fragment.frames.length > 0 && fragment.frames.every(frame => Boolean(frame.uiSourceCode?.isIgnoreListed()));
|
|
674
699
|
return item;
|
|
675
700
|
}
|
|
676
701
|
|