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
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
// Copyright 2018 The Chromium Authors
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
-
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
5
4
|
|
|
5
|
+
import '../../ui/kit/kit.js';
|
|
6
|
+
|
|
7
|
+
import * as Common from '../../core/common/common.js';
|
|
6
8
|
import * as Host from '../../core/host/host.js';
|
|
7
9
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
10
|
import type * as SDK from '../../core/sdk/sdk.js';
|
|
9
11
|
import * as Protocol from '../../generated/protocol.js';
|
|
10
|
-
import {Icon, Link} from '../../ui/kit/kit.js';
|
|
11
|
-
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
12
12
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
|
+
import {Directives, html, type LitTemplate, nothing, render} from '../../ui/lit/lit.js';
|
|
13
14
|
|
|
14
15
|
import signedExchangeInfoTreeStyles from './signedExchangeInfoTree.css.js';
|
|
15
16
|
import signedExchangeInfoViewStyles from './signedExchangeInfoView.css.js';
|
|
16
17
|
|
|
18
|
+
const {classMap} = Directives;
|
|
19
|
+
|
|
17
20
|
const UIStrings = {
|
|
18
21
|
/**
|
|
19
22
|
* @description Text for errors
|
|
@@ -102,178 +105,259 @@ const UIStrings = {
|
|
|
102
105
|
} as const;
|
|
103
106
|
const str_ = i18n.i18n.registerUIStrings('panels/network/SignedExchangeInfoView.ts', UIStrings);
|
|
104
107
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
105
|
-
export
|
|
106
|
-
|
|
108
|
+
export interface ViewInput {
|
|
109
|
+
errors: string[];
|
|
110
|
+
header: {
|
|
111
|
+
requestUrl: string,
|
|
112
|
+
hasRedirectDestination: boolean,
|
|
113
|
+
responseCode: string,
|
|
114
|
+
headerIntegrity: string,
|
|
115
|
+
responseHeaders: Array<{name: string, value: string}>,
|
|
116
|
+
signatures: Array<{
|
|
117
|
+
label: string,
|
|
118
|
+
signature: string,
|
|
119
|
+
hasSignatureError: boolean,
|
|
120
|
+
hasCertUrlError: boolean,
|
|
121
|
+
integrity: string,
|
|
122
|
+
hasIntegrityError: boolean,
|
|
123
|
+
hasCertSha256Error: boolean,
|
|
124
|
+
validityUrl: string,
|
|
125
|
+
hasValidityUrlError: boolean,
|
|
126
|
+
date: string,
|
|
127
|
+
expires: string,
|
|
128
|
+
hasTimestampsError: boolean,
|
|
129
|
+
certUrl?: string,
|
|
130
|
+
certificates?: string[],
|
|
131
|
+
certSha256?: string,
|
|
132
|
+
}>,
|
|
133
|
+
}|null;
|
|
134
|
+
securityDetails: {
|
|
135
|
+
subjectName: string,
|
|
136
|
+
validFrom: string,
|
|
137
|
+
validUntil: string,
|
|
138
|
+
issuer: string,
|
|
139
|
+
}|null;
|
|
140
|
+
onViewRequest: () => void;
|
|
141
|
+
onViewCertificate: (certificates: string[]) => void;
|
|
142
|
+
}
|
|
107
143
|
|
|
108
|
-
|
|
109
|
-
super(element);
|
|
110
|
-
this.registerRequiredCSS(signedExchangeInfoViewStyles);
|
|
111
|
-
console.assert(request.signedExchangeInfo() !== null);
|
|
112
|
-
const signedExchangeInfo = (request.signedExchangeInfo() as Protocol.Network.SignedExchangeInfo);
|
|
144
|
+
export type View = (input: ViewInput|null, output: undefined, target: HTMLElement) => void;
|
|
113
145
|
|
|
114
|
-
|
|
146
|
+
export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
147
|
+
if (!input) {
|
|
148
|
+
render(nothing, target);
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const {formatHeader, formatHeaderForHexData} = SignedExchangeInfoView;
|
|
152
|
+
const renderLeaf = (content: LitTemplate): LitTemplate =>
|
|
153
|
+
html`<li role="treeitem" selectable="false">${content}</li>`;
|
|
154
|
+
const renderCategory = (title: LitTemplate|string, children: LitTemplate|LitTemplate[]): LitTemplate => html`
|
|
155
|
+
<li role="treeitem" toggle-on-click open selectable="false">
|
|
156
|
+
${title}
|
|
157
|
+
<ul role="group">${children}</ul>
|
|
158
|
+
</li>`;
|
|
115
159
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
160
|
+
// clang-format off
|
|
161
|
+
render(
|
|
162
|
+
html`
|
|
163
|
+
<style>${signedExchangeInfoViewStyles}</style>
|
|
164
|
+
<devtools-tree dense class="signed-exchange-info-tree" .template=${html`
|
|
165
|
+
<style>${signedExchangeInfoTreeStyles}</style>
|
|
166
|
+
<ul role="tree">
|
|
167
|
+
${input.errors.length ? renderCategory(
|
|
168
|
+
i18nString(UIStrings.errors),
|
|
169
|
+
input.errors.map(errorMessage => renderLeaf(html`
|
|
170
|
+
<devtools-icon name="cross-circle-filled" class="prompt-icon small"></devtools-icon><div
|
|
171
|
+
class="error-log">${errorMessage}</div>`)),
|
|
172
|
+
) : nothing}
|
|
173
|
+
${renderCategory(
|
|
174
|
+
html`<div class="header-name">${i18nString(UIStrings.signedHttpExchange)}</div><devtools-link
|
|
175
|
+
href="https://github.com/WICG/webpackage"
|
|
176
|
+
class="header-toggle devtools-link"
|
|
177
|
+
jslogcontext="learn-more">${i18nString(UIStrings.learnmore)}</devtools-link>`,
|
|
178
|
+
input.header ? html`
|
|
179
|
+
${renderLeaf(html`${formatHeader(i18nString(UIStrings.requestUrl), input.header.requestUrl)}${
|
|
180
|
+
input.header.hasRedirectDestination ? html`<devtools-link
|
|
181
|
+
class="header-toggle devtools-link"
|
|
182
|
+
jslogcontext="redirect-destination-request"
|
|
183
|
+
@click=${input.onViewRequest}>${i18n.i18n.lockedString('View request')}</devtools-link>` : nothing}`)}
|
|
184
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.responseCode), input.header.responseCode))}
|
|
185
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.headerIntegrityHash), input.header.headerIntegrity))}
|
|
186
|
+
<li role="treeitem" open selectable="false">
|
|
187
|
+
${formatHeader(i18nString(UIStrings.responseHeaders), '')}
|
|
188
|
+
${input.header.responseHeaders.length ? html`
|
|
189
|
+
<ul role="group">
|
|
190
|
+
${input.header.responseHeaders.map(header => renderLeaf(formatHeader(header.name, header.value)))}
|
|
191
|
+
</ul>
|
|
192
|
+
` : nothing}
|
|
193
|
+
</li>
|
|
194
|
+
` : nothing,
|
|
195
|
+
)}
|
|
196
|
+
${(input.header?.signatures ?? []).map(signature => renderCategory(
|
|
197
|
+
i18nString(UIStrings.signature),
|
|
198
|
+
html`
|
|
199
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.label), signature.label))}
|
|
200
|
+
${renderLeaf(formatHeaderForHexData(i18nString(UIStrings.signature), signature.signature, signature.hasSignatureError))}
|
|
201
|
+
${signature.certUrl ? renderLeaf(html`
|
|
202
|
+
${formatHeader(i18nString(UIStrings.certificateUrl), signature.certUrl, signature.hasCertUrlError)}${
|
|
203
|
+
signature.certificates ? html`<devtools-link
|
|
204
|
+
class="devtools-link header-toggle"
|
|
205
|
+
jslogcontext="view-certificate"
|
|
206
|
+
@click=${() => input.onViewCertificate(signature.certificates ?? [])}>${
|
|
207
|
+
i18nString(UIStrings.viewCertificate)}</devtools-link>` : nothing}`) : nothing}
|
|
208
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.integrity), signature.integrity, signature.hasIntegrityError))}
|
|
209
|
+
${signature.certSha256 ? renderLeaf(formatHeaderForHexData(
|
|
210
|
+
i18nString(UIStrings.certificateSha), signature.certSha256, signature.hasCertSha256Error)) : nothing}
|
|
211
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.validityUrl), signature.validityUrl, signature.hasValidityUrlError))}
|
|
212
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.date), signature.date, signature.hasTimestampsError))}
|
|
213
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.expires), signature.expires, signature.hasTimestampsError))}
|
|
214
|
+
`,
|
|
215
|
+
))}
|
|
216
|
+
${input.securityDetails ? renderCategory(
|
|
217
|
+
i18nString(UIStrings.certificate),
|
|
218
|
+
html`
|
|
219
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.subject), input.securityDetails.subjectName))}
|
|
220
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.validFrom), input.securityDetails.validFrom))}
|
|
221
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.validUntil), input.securityDetails.validUntil))}
|
|
222
|
+
${renderLeaf(formatHeader(i18nString(UIStrings.issuer), input.securityDetails.issuer))}
|
|
223
|
+
`,
|
|
224
|
+
) : nothing}
|
|
225
|
+
</ul>
|
|
226
|
+
`}></devtools-tree>
|
|
227
|
+
`,
|
|
228
|
+
target,
|
|
229
|
+
{container: {classes: ['signed-exchange-info-view']}},
|
|
230
|
+
);
|
|
231
|
+
// clang-format on
|
|
232
|
+
};
|
|
123
233
|
|
|
124
|
-
|
|
234
|
+
export class SignedExchangeInfoView extends UI.Widget.VBox {
|
|
235
|
+
#request?: SDK.NetworkRequest.NetworkRequest;
|
|
236
|
+
readonly #view: View;
|
|
125
237
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
errorFieldSet = new Set();
|
|
140
|
-
errorFieldSetMap.set(error.signatureIndex, errorFieldSet);
|
|
141
|
-
}
|
|
142
|
-
errorFieldSet.add(error.errorField);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
238
|
+
constructor(
|
|
239
|
+
requestOrElement?: SDK.NetworkRequest.NetworkRequest|HTMLElement,
|
|
240
|
+
elementOrView?: HTMLElement|View,
|
|
241
|
+
view: View = DEFAULT_VIEW,
|
|
242
|
+
) {
|
|
243
|
+
super(
|
|
244
|
+
requestOrElement instanceof HTMLElement ? requestOrElement :
|
|
245
|
+
elementOrView instanceof HTMLElement ? elementOrView :
|
|
246
|
+
undefined,
|
|
247
|
+
);
|
|
248
|
+
this.#view = typeof elementOrView === 'function' ? elementOrView : view;
|
|
249
|
+
if (requestOrElement && !(requestOrElement instanceof HTMLElement)) {
|
|
250
|
+
this.#request = requestOrElement;
|
|
145
251
|
}
|
|
252
|
+
}
|
|
146
253
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
'https://github.com/WICG/webpackage', i18nString(UIStrings.learnmore), 'header-toggle', 'learn-more');
|
|
151
|
-
titleElement.appendChild(learnMoreNode);
|
|
152
|
-
const headerCategory = new Category(root, titleElement);
|
|
153
|
-
if (signedExchangeInfo.header) {
|
|
154
|
-
const header = signedExchangeInfo.header;
|
|
155
|
-
const redirectDestination = request.redirectDestination();
|
|
156
|
-
const requestURLElement = this.formatHeader(i18nString(UIStrings.requestUrl), header.requestUrl);
|
|
157
|
-
if (redirectDestination) {
|
|
158
|
-
const viewRequestLink = Components.Linkifier.Linkifier.linkifyRevealable(
|
|
159
|
-
redirectDestination, 'View request', undefined, undefined, undefined, 'redirect-destination-request');
|
|
160
|
-
viewRequestLink.classList.add('header-toggle');
|
|
161
|
-
requestURLElement.appendChild(viewRequestLink);
|
|
162
|
-
}
|
|
163
|
-
headerCategory.createLeaf(requestURLElement);
|
|
164
|
-
headerCategory.createLeaf(this.formatHeader(i18nString(UIStrings.responseCode), String(header.responseCode)));
|
|
165
|
-
headerCategory.createLeaf(this.formatHeader(i18nString(UIStrings.headerIntegrityHash), header.headerIntegrity));
|
|
166
|
-
|
|
167
|
-
this.responseHeadersItem =
|
|
168
|
-
headerCategory.createLeaf(this.formatHeader(i18nString(UIStrings.responseHeaders), ''));
|
|
169
|
-
const responseHeaders = header.responseHeaders;
|
|
170
|
-
for (const name in responseHeaders) {
|
|
171
|
-
const headerTreeElement = new UI.TreeOutline.TreeElement(this.formatHeader(name, responseHeaders[name]));
|
|
172
|
-
headerTreeElement.selectable = false;
|
|
173
|
-
this.responseHeadersItem.appendChild(headerTreeElement);
|
|
174
|
-
}
|
|
175
|
-
this.responseHeadersItem.expand();
|
|
176
|
-
|
|
177
|
-
for (let i = 0; i < header.signatures.length; ++i) {
|
|
178
|
-
const errorFieldSet = errorFieldSetMap.get(i) || new Set();
|
|
179
|
-
const signature = header.signatures[i];
|
|
180
|
-
const signatureCategory = new Category(root, i18nString(UIStrings.signature));
|
|
181
|
-
signatureCategory.createLeaf(this.formatHeader(i18nString(UIStrings.label), signature.label));
|
|
182
|
-
signatureCategory.createLeaf(this.formatHeaderForHexData(
|
|
183
|
-
i18nString(UIStrings.signature), signature.signature,
|
|
184
|
-
errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureSig)));
|
|
254
|
+
get request(): SDK.NetworkRequest.NetworkRequest|undefined {
|
|
255
|
+
return this.#request;
|
|
256
|
+
}
|
|
185
257
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureCertUrl));
|
|
190
|
-
if (signature.certificates) {
|
|
191
|
-
const viewCertLink = certURLElement.createChild('span', 'devtools-link header-toggle');
|
|
192
|
-
viewCertLink.textContent = i18nString(UIStrings.viewCertificate);
|
|
193
|
-
viewCertLink.addEventListener(
|
|
194
|
-
'click',
|
|
195
|
-
Host.InspectorFrontendHost.InspectorFrontendHostInstance.showCertificateViewer.bind(
|
|
196
|
-
null, signature.certificates),
|
|
197
|
-
false);
|
|
198
|
-
}
|
|
199
|
-
signatureCategory.createLeaf(certURLElement);
|
|
200
|
-
}
|
|
201
|
-
signatureCategory.createLeaf(this.formatHeader(
|
|
202
|
-
i18nString(UIStrings.integrity), signature.integrity,
|
|
203
|
-
errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureIntegrity)));
|
|
204
|
-
if (signature.certSha256) {
|
|
205
|
-
signatureCategory.createLeaf(this.formatHeaderForHexData(
|
|
206
|
-
i18nString(UIStrings.certificateSha), signature.certSha256,
|
|
207
|
-
errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureCertSha256)));
|
|
208
|
-
}
|
|
209
|
-
signatureCategory.createLeaf(this.formatHeader(
|
|
210
|
-
i18nString(UIStrings.validityUrl), signature.validityUrl,
|
|
211
|
-
errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureValidityUrl)));
|
|
212
|
-
signatureCategory.createLeaf().title = this.formatHeader(
|
|
213
|
-
i18nString(UIStrings.date), new Date(1000 * signature.date).toUTCString(),
|
|
214
|
-
errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureTimestamps));
|
|
215
|
-
signatureCategory.createLeaf().title = this.formatHeader(
|
|
216
|
-
i18nString(UIStrings.expires), new Date(1000 * signature.expires).toUTCString(),
|
|
217
|
-
errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureTimestamps));
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
if (signedExchangeInfo.securityDetails) {
|
|
221
|
-
const securityDetails = signedExchangeInfo.securityDetails;
|
|
222
|
-
const securityCategory = new Category(root, i18nString(UIStrings.certificate));
|
|
223
|
-
securityCategory.createLeaf(this.formatHeader(i18nString(UIStrings.subject), securityDetails.subjectName));
|
|
224
|
-
securityCategory.createLeaf(
|
|
225
|
-
this.formatHeader(i18nString(UIStrings.validFrom), new Date(1000 * securityDetails.validFrom).toUTCString()));
|
|
226
|
-
securityCategory.createLeaf(
|
|
227
|
-
this.formatHeader(i18nString(UIStrings.validUntil), new Date(1000 * securityDetails.validTo).toUTCString()));
|
|
228
|
-
securityCategory.createLeaf(this.formatHeader(i18nString(UIStrings.issuer), securityDetails.issuer));
|
|
258
|
+
set request(request: SDK.NetworkRequest.NetworkRequest|undefined) {
|
|
259
|
+
if (this.#request === request) {
|
|
260
|
+
return;
|
|
229
261
|
}
|
|
262
|
+
this.#request = request;
|
|
263
|
+
this.requestUpdate();
|
|
230
264
|
}
|
|
231
265
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
nameElement.textContent = name + ': ';
|
|
236
|
-
fragment.createChild('span', 'header-separator');
|
|
237
|
-
const valueElement = fragment.createChild('div', 'header-value source-code');
|
|
238
|
-
valueElement.textContent = value;
|
|
239
|
-
if (highlighted) {
|
|
240
|
-
nameElement.classList.add('error-field');
|
|
241
|
-
valueElement.classList.add('error-field');
|
|
242
|
-
}
|
|
243
|
-
return fragment;
|
|
266
|
+
override wasShown(): void {
|
|
267
|
+
super.wasShown();
|
|
268
|
+
this.requestUpdate();
|
|
244
269
|
}
|
|
245
270
|
|
|
246
|
-
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
const valueElement = fragment.createChild('div', 'header-value source-code hex-data');
|
|
252
|
-
valueElement.textContent = value.replace(/(.{2})/g, '$1 ');
|
|
253
|
-
if (highlighted) {
|
|
254
|
-
nameElement.classList.add('error-field');
|
|
255
|
-
valueElement.classList.add('error-field');
|
|
271
|
+
override performUpdate(): void {
|
|
272
|
+
const signedExchangeInfo = this.#request?.signedExchangeInfo();
|
|
273
|
+
if (!this.#request || !signedExchangeInfo) {
|
|
274
|
+
this.#view(null, undefined, this.contentElement);
|
|
275
|
+
return;
|
|
256
276
|
}
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
}
|
|
277
|
+
const request = this.#request;
|
|
260
278
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
279
|
+
const errorFieldSetMap = new Map<number|undefined, Set<string>>();
|
|
280
|
+
const errors: string[] = [];
|
|
281
|
+
for (const error of signedExchangeInfo.errors ?? []) {
|
|
282
|
+
errors.push(error.message);
|
|
283
|
+
if (error.errorField) {
|
|
284
|
+
const errorFieldSet = errorFieldSetMap.get(error.signatureIndex) ?? new Set<string>();
|
|
285
|
+
errorFieldSet.add(error.errorField);
|
|
286
|
+
errorFieldSetMap.set(error.signatureIndex, errorFieldSet);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
const headerInfo = signedExchangeInfo.header ? {
|
|
291
|
+
requestUrl: signedExchangeInfo.header.requestUrl,
|
|
292
|
+
hasRedirectDestination: Boolean(request.redirectDestination()),
|
|
293
|
+
responseCode: String(signedExchangeInfo.header.responseCode),
|
|
294
|
+
headerIntegrity: signedExchangeInfo.header.headerIntegrity,
|
|
295
|
+
responseHeaders:
|
|
296
|
+
Object.entries(signedExchangeInfo.header.responseHeaders).map(([name, value]) => ({name, value})),
|
|
297
|
+
signatures: signedExchangeInfo.header.signatures.map((signature, i) => {
|
|
298
|
+
const errorFieldSet = errorFieldSetMap.get(i) ?? new Set<string>();
|
|
299
|
+
return {
|
|
300
|
+
label: signature.label,
|
|
301
|
+
signature: signature.signature,
|
|
302
|
+
hasSignatureError: errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureSig),
|
|
303
|
+
certUrl: signature.certUrl,
|
|
304
|
+
hasCertUrlError: errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureCertUrl),
|
|
305
|
+
certificates: signature.certificates,
|
|
306
|
+
integrity: signature.integrity,
|
|
307
|
+
hasIntegrityError: errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureIntegrity),
|
|
308
|
+
certSha256: signature.certSha256,
|
|
309
|
+
hasCertSha256Error: errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureCertSha256),
|
|
310
|
+
validityUrl: signature.validityUrl,
|
|
311
|
+
hasValidityUrlError: errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureValidityUrl),
|
|
312
|
+
date: new Date(1000 * signature.date).toUTCString(),
|
|
313
|
+
expires: new Date(1000 * signature.expires).toUTCString(),
|
|
314
|
+
hasTimestampsError: errorFieldSet.has(Protocol.Network.SignedExchangeErrorField.SignatureTimestamps),
|
|
315
|
+
};
|
|
316
|
+
}),
|
|
317
|
+
} :
|
|
318
|
+
null;
|
|
319
|
+
|
|
320
|
+
const securityDetails = signedExchangeInfo.securityDetails ? {
|
|
321
|
+
subjectName: signedExchangeInfo.securityDetails.subjectName,
|
|
322
|
+
validFrom: new Date(1000 * signedExchangeInfo.securityDetails.validFrom).toUTCString(),
|
|
323
|
+
validUntil: new Date(1000 * signedExchangeInfo.securityDetails.validTo).toUTCString(),
|
|
324
|
+
issuer: signedExchangeInfo.securityDetails.issuer,
|
|
325
|
+
} :
|
|
326
|
+
null;
|
|
327
|
+
|
|
328
|
+
this.#view(
|
|
329
|
+
{
|
|
330
|
+
errors,
|
|
331
|
+
header: headerInfo,
|
|
332
|
+
securityDetails,
|
|
333
|
+
onViewRequest: () => {
|
|
334
|
+
const redirectDestination = request.redirectDestination();
|
|
335
|
+
if (redirectDestination) {
|
|
336
|
+
void Common.Revealer.reveal(redirectDestination);
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
onViewCertificate: (certificates: string[]) =>
|
|
340
|
+
Host.InspectorFrontendHost.InspectorFrontendHostInstance.showCertificateViewer(certificates),
|
|
341
|
+
},
|
|
342
|
+
undefined,
|
|
343
|
+
this.contentElement,
|
|
344
|
+
);
|
|
345
|
+
}
|
|
264
346
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
347
|
+
static formatHeader(name: string, value: string, highlighted?: boolean): LitTemplate {
|
|
348
|
+
// clang-format off
|
|
349
|
+
return html`<div class=${classMap({'header-name': true, 'error-field': Boolean(highlighted)})}>${name}: </div><span
|
|
350
|
+
class="header-separator"></span><div
|
|
351
|
+
class=${classMap({'header-value': true, 'source-code': true, 'error-field': Boolean(highlighted)})}>${value}</div>`;
|
|
352
|
+
// clang-format on
|
|
271
353
|
}
|
|
272
354
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
355
|
+
static formatHeaderForHexData(name: string, value: string, highlighted?: boolean): LitTemplate {
|
|
356
|
+
// clang-format off
|
|
357
|
+
return html`<div class=${classMap({'header-name': true, 'error-field': Boolean(highlighted)})}>${name}: </div><span
|
|
358
|
+
class="header-separator"></span><div
|
|
359
|
+
class=${classMap({'header-value': true, 'source-code': true, 'hex-data': true, 'error-field': Boolean(highlighted)})}>${
|
|
360
|
+
value.replace(/(.{2})/g, '$1 ')}</div>`;
|
|
361
|
+
// clang-format on
|
|
278
362
|
}
|
|
279
363
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
.network-config-group {
|
|
13
13
|
display: flex;
|
|
14
|
-
padding-bottom:
|
|
14
|
+
padding-bottom: var(--sys-size-5);
|
|
15
15
|
flex-wrap: wrap;
|
|
16
16
|
flex: 0 0 auto;
|
|
17
|
-
min-height:
|
|
17
|
+
min-height: var(--sys-size-12);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.network-config-title {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
.user-agent-client-hints-form {
|
|
109
109
|
display: block;
|
|
110
110
|
margin-top: var(--sys-size-7);
|
|
111
|
-
width: min(100%,
|
|
111
|
+
width: min(100%, var(--sys-size-32));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.status-text {
|
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.network-log-grid.data-grid.small td {
|
|
63
|
-
|
|
63
|
+
/* 20px (--sys-size-9) base row + 1px (--sys-size-1) .icon top margin. */
|
|
64
|
+
height: calc(var(--sys-size-9) + var(--sys-size-1));
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
.network-log-grid.data-grid th {
|
|
@@ -110,10 +111,6 @@
|
|
|
110
111
|
color: var(--sys-color-token-subtle);
|
|
111
112
|
}
|
|
112
113
|
|
|
113
|
-
.network-badge {
|
|
114
|
-
margin-right: var(--sys-size-3);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
114
|
.status-column .devtools-link {
|
|
118
115
|
color: inherit;
|
|
119
116
|
}
|
|
@@ -320,12 +317,6 @@ td.time-column {
|
|
|
320
317
|
z-index: 0;
|
|
321
318
|
}
|
|
322
319
|
|
|
323
|
-
.network-log-grid.data-grid span.separator-in-cell {
|
|
324
|
-
user-select: none;
|
|
325
|
-
min-width: 1ex;
|
|
326
|
-
display: inline-block;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
320
|
.network-status-pane {
|
|
330
321
|
position: absolute;
|
|
331
322
|
inset: 0;
|
|
@@ -388,10 +379,6 @@ td.time-column {
|
|
|
388
379
|
vertical-align: baseline;
|
|
389
380
|
}
|
|
390
381
|
|
|
391
|
-
.network-frame-group-badge {
|
|
392
|
-
margin-right: var(--sys-size-3);
|
|
393
|
-
}
|
|
394
|
-
|
|
395
382
|
.network-override-marker {
|
|
396
383
|
position: relative;
|
|
397
384
|
float: left;
|
|
@@ -406,7 +393,8 @@ td.time-column {
|
|
|
406
393
|
outline: var(--sys-size-1) solid var(--icon-gap-toolbar);
|
|
407
394
|
left: var(--sys-size-5);
|
|
408
395
|
position: absolute;
|
|
409
|
-
|
|
396
|
+
/* 16px (.network-log-grid.data-grid.small .icon height) minus 6px (dot height). */
|
|
397
|
+
top: calc(var(--sys-size-8) - var(--sys-size-4));
|
|
410
398
|
z-index: 1;
|
|
411
399
|
}
|
|
412
400
|
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
--network-grid-focus-selected-color-has-error: var(--sys-color-surface-error);
|
|
49
49
|
--network-grid-focus-selected-color-has-warning: var(--sys-color-surface-yellow);
|
|
50
50
|
--network-grid-from-frame-color: var(--ref-palette-cyan95);
|
|
51
|
-
--network-grid-is-product-color: var(--ref-palette-yellow95);
|
|
52
51
|
--network-frame-divider-color: var(--ref-palette-yellow60);
|
|
53
52
|
}
|
|
54
53
|
|
|
@@ -57,7 +56,6 @@
|
|
|
57
56
|
--network-grid-initiator-path-color: var(--ref-palette-green40);
|
|
58
57
|
--network-grid-initiated-path-color: var(--ref-palette-error20);
|
|
59
58
|
--network-grid-from-frame-color: var(--ref-palette-neutral50);
|
|
60
|
-
--network-grid-is-product-color: var(--ref-palette-neutral70);
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
.network-details-view {
|
|
@@ -73,11 +71,6 @@
|
|
|
73
71
|
background: var(--sys-color-cdt-base-container);
|
|
74
72
|
}
|
|
75
73
|
|
|
76
|
-
.network-item-preview-toolbar {
|
|
77
|
-
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
78
|
-
background-color: var(--sys-color-surface1);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
74
|
.resource-timing-view {
|
|
82
75
|
display: block;
|
|
83
76
|
margin: var(--sys-size-4);
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
.network-timing-table-header td,
|
|
24
24
|
.network-timing-footer td {
|
|
25
|
-
border-top:
|
|
25
|
+
border-top: var(--sys-size-5) solid transparent;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.network-timing-table-header td {
|
|
@@ -88,18 +88,15 @@ table.network-timing-table > tr:not(.network-timing-table-header, .network-timin
|
|
|
88
88
|
border: var(--sys-size-1) solid var(--sys-color-token-subtle);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.network-timing-bar.blocking
|
|
92
|
-
.-theme-preserve {
|
|
91
|
+
.network-timing-bar.blocking {
|
|
93
92
|
background-color: var(--network-waterfall-blocking); /* stylelint-disable-line plugin/use_theme_colors */
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
.network-timing-bar.proxy
|
|
97
|
-
.-theme-preserve {
|
|
95
|
+
.network-timing-bar.proxy {
|
|
98
96
|
background-color: var(--override-network-overview-proxy);
|
|
99
97
|
}
|
|
100
98
|
|
|
101
|
-
.network-timing-bar.dns
|
|
102
|
-
.-theme-preserve {
|
|
99
|
+
.network-timing-bar.dns {
|
|
103
100
|
background-color: var(--sys-color-cyan);
|
|
104
101
|
}
|
|
105
102
|
|
|
@@ -107,18 +104,15 @@ table.network-timing-table > tr:not(.network-timing-table-header, .network-timin
|
|
|
107
104
|
.network-timing-bar.serviceworker,
|
|
108
105
|
.network-timing-bar.serviceworker-preparation,
|
|
109
106
|
.network-timing-bar.serviceworker-routerevaluation,
|
|
110
|
-
.network-timing-bar.serviceworker-cachelookup
|
|
111
|
-
.-theme-preserve {
|
|
107
|
+
.network-timing-bar.serviceworker-cachelookup {
|
|
112
108
|
background-color: var(--network-overview-service-worker); /* stylelint-disable-line plugin/use_theme_colors */
|
|
113
109
|
}
|
|
114
110
|
|
|
115
|
-
.network-timing-bar.ssl
|
|
116
|
-
.-theme-preserve {
|
|
111
|
+
.network-timing-bar.ssl {
|
|
117
112
|
background-color: var(--network-overview-ssl); /* stylelint-disable-line plugin/use_theme_colors */
|
|
118
113
|
}
|
|
119
114
|
|
|
120
|
-
.network-timing-bar.serviceworker-respondwith
|
|
121
|
-
.-theme-preserve {
|
|
115
|
+
.network-timing-bar.serviceworker-respondwith {
|
|
122
116
|
background-color: var(--network-overview-service-worker-respond-with); /* stylelint-disable-line plugin/use_theme_colors */
|
|
123
117
|
}
|
|
124
118
|
|
|
@@ -162,10 +156,6 @@ tr:has([aria-expanded="true"].network-fetch-timing-bar-clickable) ~ .network-fet
|
|
|
162
156
|
display: none;
|
|
163
157
|
}
|
|
164
158
|
|
|
165
|
-
.network-fetch-timing-bar-details-expanded {
|
|
166
|
-
display: block;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
159
|
.network-fetch-timing-bar-details,
|
|
170
160
|
.router-evaluation-timing-bar-details {
|
|
171
161
|
padding-left: var(--sys-size-5);
|
|
@@ -176,13 +166,11 @@ tr:has([aria-expanded="true"].network-fetch-timing-bar-clickable) ~ .network-fet
|
|
|
176
166
|
width: max-content;
|
|
177
167
|
}
|
|
178
168
|
|
|
179
|
-
.network-timing-bar.sending
|
|
180
|
-
.-theme-preserve {
|
|
169
|
+
.network-timing-bar.sending {
|
|
181
170
|
background-color: var(--override-network-overview-sending);
|
|
182
171
|
}
|
|
183
172
|
|
|
184
|
-
.network-timing-bar.waiting
|
|
185
|
-
.-theme-preserve {
|
|
173
|
+
.network-timing-bar.waiting {
|
|
186
174
|
background-color: var(--network-overview-waiting); /* stylelint-disable-line plugin/use_theme_colors */
|
|
187
175
|
}
|
|
188
176
|
|
|
@@ -199,13 +187,11 @@ td.throttled {
|
|
|
199
187
|
}
|
|
200
188
|
|
|
201
189
|
.network-timing-bar.receiving,
|
|
202
|
-
.network-timing-bar.receiving-push
|
|
203
|
-
.-theme-preserve {
|
|
190
|
+
.network-timing-bar.receiving-push {
|
|
204
191
|
background-color: var(--network-overview-receiving); /* stylelint-disable-line plugin/use_theme_colors */
|
|
205
192
|
}
|
|
206
193
|
|
|
207
|
-
.network-timing-bar.push
|
|
208
|
-
.-theme-preserve {
|
|
194
|
+
.network-timing-bar.push {
|
|
209
195
|
background-color: var(--network-overview-push); /* stylelint-disable-line plugin/use_theme_colors */
|
|
210
196
|
}
|
|
211
197
|
|
|
@@ -250,8 +236,7 @@ tr.synthetic {
|
|
|
250
236
|
.network-timing-bar.receiving,
|
|
251
237
|
.network-timing-bar.receiving-push,
|
|
252
238
|
.network-timing-bar.push,
|
|
253
|
-
.network-timing-bar.server-timing
|
|
254
|
-
.-theme-preserve {
|
|
239
|
+
.network-timing-bar.server-timing {
|
|
255
240
|
forced-color-adjust: none;
|
|
256
241
|
}
|
|
257
242
|
|