chrome-devtools-frontend 1.0.1738725 → 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/.stylelintrc.json +3 -1
- package/eslint.config.mjs +127 -0
- package/front_end/application_tokens.css +0 -30
- package/front_end/core/sdk/SourceMap.ts +30 -3
- package/front_end/core/sdk/SourceMapRangeMappings.ts +57 -0
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +5 -9
- package/front_end/generated/SupportedCSSProperties.ts +16 -0
- 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/panels/ai_assistance/components/chatView.css +0 -180
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +66 -3
- package/front_end/panels/application/components/backForwardCacheView.css +1 -1
- package/front_end/panels/application/resourcesPanel.css +0 -48
- package/front_end/panels/console/consoleView.css +1 -1
- 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/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/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 +7 -0
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
- 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/mobile_throttling/throttlingSettingsTab.css +2 -2
- package/front_end/panels/network/NetworkLogView.ts +9 -2
- package/front_end/panels/network/RequestTimingView.ts +16 -2
- package/front_end/panels/network/networkConfigView.css +2 -2
- package/front_end/panels/network/networkLogView.css +2 -15
- package/front_end/panels/network/networkPanel.css +0 -2
- package/front_end/panels/network/networkTimingTable.css +11 -26
- package/front_end/panels/profiler/profilesPanel.css +0 -11
- 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/search/searchView.css +1 -1
- package/front_end/panels/sensors/SensorsView.ts +6 -21
- package/front_end/panels/sources/breakpointsView.css +3 -2
- package/front_end/panels/sources/sourcesView.css +2 -1
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +18 -5
- 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/TimelineMiniMap.ts +132 -54
- 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/interactionBreakdown.css +1 -0
- package/front_end/panels/timeline/components/networkRequestDetails.css +1 -0
- 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/timelineDetailsView.css +2 -2
- package/front_end/panels/webauthn/webauthnPane.css +1 -1
- 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/components/diff_view/diffView.css +0 -2
- 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/components/object_ui/ObjectPropertiesSection.ts +34 -20
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +41 -14
- package/front_end/ui/legacy/components/source_frame/imageView.css +2 -2
- package/front_end/ui/legacy/filter.css +6 -2
- package/front_end/ui/legacy/inspectorCommon.css +1 -53
- package/front_end/ui/legacy/listWidget.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +0 -8
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
- package/inspector_overlay/tool_highlight.css +0 -7
- package/inspector_overlay/tool_highlight.ts +0 -1
- package/package.json +1 -1
|
@@ -1,78 +1,152 @@
|
|
|
1
1
|
// Copyright 2021 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 * as Host from '../../core/host/host.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|
|
8
|
+
import * as SDK from '../../core/sdk/sdk.js';
|
|
8
9
|
import * as Protocol from '../../generated/protocol.js';
|
|
9
10
|
import type * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
|
11
|
+
import * as UI from '../../ui/legacy/legacy.js';
|
|
12
|
+
import {html, type LitTemplate, nothing, render} from '../../ui/lit/lit.js';
|
|
13
|
+
import * as PanelsCommon from '../common/common.js';
|
|
10
14
|
|
|
11
|
-
import {AffectedResourcesView} from './AffectedResourcesView.js';
|
|
15
|
+
import {AffectedItem, AffectedResourcesView, type FrameCellData, renderFrameCell} from './AffectedResourcesView.js';
|
|
16
|
+
import type {IssueView} from './IssueView.js';
|
|
17
|
+
|
|
18
|
+
const {widget} = UI.Widget;
|
|
19
|
+
|
|
20
|
+
export type {FrameCellData};
|
|
12
21
|
|
|
13
22
|
const UIStrings = {
|
|
14
23
|
/**
|
|
15
|
-
* @description Label in the Issues panel for the number of affected resources
|
|
24
|
+
* @description Label in the Issues panel for the number of affected resources
|
|
25
|
+
* in the generic issue affected resources table.
|
|
16
26
|
*/
|
|
17
27
|
nResources: '{n, plural, =1 {# resource} other {# resources}}',
|
|
18
28
|
/**
|
|
19
|
-
* @description Column header in the Issues panel for frames in the generic
|
|
29
|
+
* @description Column header in the Issues panel for frames in the generic
|
|
30
|
+
* issue affected resources table.
|
|
20
31
|
*/
|
|
21
32
|
frameId: 'Frame',
|
|
22
33
|
/**
|
|
23
|
-
* @description Link text in the Issues panel for the violating DOM node in
|
|
34
|
+
* @description Link text in the Issues panel for the violating DOM node in
|
|
35
|
+
* the generic issue affected resources table.
|
|
24
36
|
*/
|
|
25
37
|
violatingNode: 'Violating node',
|
|
38
|
+
/**
|
|
39
|
+
* @description Fallback text in the Issues panel when an HTML element is
|
|
40
|
+
* unavailable in the affected resources table.
|
|
41
|
+
*/
|
|
42
|
+
unavailable: 'Unavailable',
|
|
26
43
|
} as const;
|
|
27
44
|
|
|
28
45
|
const str_ = i18n.i18n.registerUIStrings('panels/issues/GenericIssueDetailsView.ts', UIStrings);
|
|
29
46
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
30
47
|
|
|
48
|
+
export interface ElementCellData {
|
|
49
|
+
nodeName: string;
|
|
50
|
+
// Resolved in the presenter; `undefined` when the issue has no target.
|
|
51
|
+
deferredNode?: SDK.DOMModel.DeferredDOMNode;
|
|
52
|
+
onElementClick: () => void;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface GenericIssueRow {
|
|
56
|
+
frame?: FrameCellData;
|
|
57
|
+
element?: ElementCellData;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface ViewInput {
|
|
61
|
+
showFrameHeader: boolean;
|
|
62
|
+
rows: GenericIssueRow[];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type View = (input: ViewInput, _output: undefined, target: HTMLElement) => void;
|
|
66
|
+
|
|
67
|
+
export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
68
|
+
const renderElementCell = (element: ElementCellData): LitTemplate => {
|
|
69
|
+
const {deferredNode} = element;
|
|
70
|
+
if (!deferredNode) {
|
|
71
|
+
return html`<td>${element.nodeName || i18nString(UIStrings.unavailable)}</td>`;
|
|
72
|
+
}
|
|
73
|
+
// clang-format off
|
|
74
|
+
return html`
|
|
75
|
+
<td class="affected-resource-element devtools-link">
|
|
76
|
+
${widget(PanelsCommon.DOMLinkifier.DeferredDOMNodeLink, {
|
|
77
|
+
deferredNode,
|
|
78
|
+
options: {textContent: element.nodeName || undefined, onClick: element.onElementClick},
|
|
79
|
+
})}
|
|
80
|
+
</td>
|
|
81
|
+
`;
|
|
82
|
+
// clang-format on
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// clang-format off
|
|
86
|
+
render(html`
|
|
87
|
+
${input.showFrameHeader ? html`
|
|
88
|
+
<tr>
|
|
89
|
+
<td class="affected-resource-header">${i18nString(UIStrings.frameId)}</td>
|
|
90
|
+
</tr>
|
|
91
|
+
` : nothing}
|
|
92
|
+
${input.rows.map(row => html`
|
|
93
|
+
<tr class="affected-resource-directive">
|
|
94
|
+
${row.frame ? renderFrameCell(row.frame) : nothing}
|
|
95
|
+
${row.element ? renderElementCell(row.element) : nothing}
|
|
96
|
+
</tr>
|
|
97
|
+
`)}
|
|
98
|
+
`, target);
|
|
99
|
+
// clang-format on
|
|
100
|
+
};
|
|
101
|
+
|
|
31
102
|
export class GenericIssueDetailsView extends AffectedResourcesView {
|
|
32
|
-
|
|
103
|
+
readonly #view: View;
|
|
104
|
+
|
|
105
|
+
constructor(parent: IssueView, issue: IssuesManager.IssueAggregator.AggregatedIssue, jslogContext: string,
|
|
106
|
+
view: View = DEFAULT_VIEW) {
|
|
107
|
+
super(parent, issue, jslogContext);
|
|
108
|
+
this.#view = view;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
protected override getResourceNameWithCount(count: number): Platform.UIString.LocalizedString {
|
|
33
112
|
return i18nString(UIStrings.nResources, {n: count});
|
|
34
113
|
}
|
|
35
114
|
|
|
36
115
|
#appendDetails(genericIssues: ReadonlySet<IssuesManager.GenericIssue.GenericIssue>): void {
|
|
37
|
-
const header = document.createElement('tr');
|
|
38
|
-
|
|
39
116
|
const sampleIssueDetails = genericIssues.values().next().value?.details();
|
|
40
|
-
|
|
41
|
-
this.appendColumnTitle(header, i18nString(UIStrings.frameId));
|
|
42
|
-
}
|
|
117
|
+
const showFrameHeader = Boolean(sampleIssueDetails?.frameId);
|
|
43
118
|
|
|
44
119
|
// Only some `GenericIssueDetails` have information for the 'affected
|
|
45
|
-
// resources' view. We'll count them and only call `#
|
|
120
|
+
// resources' view. We'll count them and only call `#createDetailRow` for
|
|
46
121
|
// those. `updateAffectedResourceCount` will hide the section if the
|
|
47
122
|
// count is zero.
|
|
48
|
-
|
|
49
|
-
let count = 0;
|
|
123
|
+
const rows: GenericIssueRow[] = [];
|
|
50
124
|
for (const genericIssue of genericIssues) {
|
|
51
125
|
const hasAffectedResource = genericIssue.details().frameId || genericIssue.details().violatingNodeId;
|
|
52
126
|
if (hasAffectedResource) {
|
|
53
|
-
|
|
54
|
-
void this.#appendDetail(genericIssue);
|
|
127
|
+
rows.push(this.#createDetailRow(genericIssue));
|
|
55
128
|
}
|
|
56
129
|
}
|
|
57
|
-
this.
|
|
130
|
+
this.#view({showFrameHeader, rows}, undefined, this.affectedResources);
|
|
131
|
+
this.updateAffectedResourceCount(rows.length);
|
|
58
132
|
}
|
|
59
133
|
|
|
60
|
-
|
|
61
|
-
const element = document.createElement('tr');
|
|
62
|
-
element.classList.add('affected-resource-directive');
|
|
63
|
-
|
|
134
|
+
#createDetailRow(genericIssue: IssuesManager.GenericIssue.GenericIssue): GenericIssueRow {
|
|
64
135
|
const details = genericIssue.details();
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
136
|
+
const category = genericIssue.getCategory();
|
|
137
|
+
const frame = details.frameId ? this.createFrameCellData(details.frameId, category) : undefined;
|
|
138
|
+
let element: ElementCellData|undefined;
|
|
68
139
|
if (details.violatingNodeId) {
|
|
69
|
-
const target = genericIssue.model()?.target()
|
|
70
|
-
element
|
|
71
|
-
|
|
72
|
-
|
|
140
|
+
const target = genericIssue.model()?.target();
|
|
141
|
+
element = {
|
|
142
|
+
nodeName: this.#violatingNodeIdName(details.errorType),
|
|
143
|
+
deferredNode: target ? new SDK.DOMModel.DeferredDOMNode(target, details.violatingNodeId) : undefined,
|
|
144
|
+
onElementClick: () => {
|
|
145
|
+
Host.userMetrics.issuesPanelResourceOpened(category, AffectedItem.ELEMENT);
|
|
146
|
+
},
|
|
147
|
+
};
|
|
73
148
|
}
|
|
74
|
-
|
|
75
|
-
this.affectedResources.appendChild(element);
|
|
149
|
+
return {frame, element};
|
|
76
150
|
}
|
|
77
151
|
|
|
78
152
|
#violatingNodeIdName(errorType: Protocol.Audits.GenericIssueErrorType): Platform.UIString.LocalizedString {
|
|
@@ -86,12 +160,18 @@ export class GenericIssueDetailsView extends AffectedResourcesView {
|
|
|
86
160
|
}
|
|
87
161
|
}
|
|
88
162
|
|
|
89
|
-
|
|
90
|
-
this.clear();
|
|
163
|
+
override clear(): void {
|
|
164
|
+
this.requestResolver.clear();
|
|
165
|
+
this.#view({showFrameHeader: false, rows: []}, undefined, this.affectedResources);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
override update(): void {
|
|
169
|
+
this.requestResolver.clear();
|
|
91
170
|
const issues = this.issue.getGenericIssues();
|
|
92
171
|
if (issues.size > 0) {
|
|
93
172
|
this.#appendDetails(issues);
|
|
94
173
|
} else {
|
|
174
|
+
this.#view({showFrameHeader: false, rows: []}, undefined, this.affectedResources);
|
|
95
175
|
this.updateAffectedResourceCount(0);
|
|
96
176
|
}
|
|
97
177
|
}
|
|
@@ -7,6 +7,7 @@ import * as AffectedElementsView from './AffectedElementsView.js';
|
|
|
7
7
|
import * as AffectedLazyLoadImagesView from './AffectedLazyLoadImagesView.js';
|
|
8
8
|
import * as AffectedMetadataAllowedSitesView from './AffectedMetadataAllowedSitesView.js';
|
|
9
9
|
import * as AffectedSelectivePermissionsInterventionView from './AffectedSelectivePermissionsInterventionView.js';
|
|
10
|
+
import * as GenericIssueDetailsView from './GenericIssueDetailsView.js';
|
|
10
11
|
import * as IssueRevealer from './IssueRevealer.js';
|
|
11
12
|
import * as IssuesPane from './IssuesPane.js';
|
|
12
13
|
import * as IssueView from './IssueView.js';
|
|
@@ -17,6 +18,7 @@ export {
|
|
|
17
18
|
AffectedLazyLoadImagesView,
|
|
18
19
|
AffectedMetadataAllowedSitesView,
|
|
19
20
|
AffectedSelectivePermissionsInterventionView,
|
|
21
|
+
GenericIssueDetailsView,
|
|
20
22
|
IssueRevealer,
|
|
21
23
|
IssuesPane,
|
|
22
24
|
IssueView,
|
|
@@ -440,6 +440,13 @@ devtools-icon.network-panel {
|
|
|
440
440
|
height: var(--sys-size-7);
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
+
devtools-button.elements-panel {
|
|
444
|
+
margin-right: var(--sys-size-3);
|
|
445
|
+
vertical-align: sub;
|
|
446
|
+
|
|
447
|
+
--override-button-icon-color: var(--icon-link);
|
|
448
|
+
}
|
|
449
|
+
|
|
443
450
|
@media (forced-colors: active) {
|
|
444
451
|
.title {
|
|
445
452
|
color: ButtonText;
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
.lh-root {
|
|
8
|
-
--report-menu-width: 0;
|
|
9
|
-
|
|
10
8
|
user-select: text;
|
|
11
9
|
}
|
|
12
10
|
/* for View Trace button */
|
|
@@ -15,13 +13,6 @@
|
|
|
15
13
|
position: relative;
|
|
16
14
|
}
|
|
17
15
|
|
|
18
|
-
/** `window.opener` is null for windows opened from DevTools. This breaks
|
|
19
|
-
the LH viewer app, so disable this feature. */
|
|
20
|
-
|
|
21
|
-
.lh-tools--viewer {
|
|
22
|
-
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
23
|
-
}
|
|
24
|
-
|
|
25
16
|
.lighthouse-settings-pane {
|
|
26
17
|
flex: none;
|
|
27
18
|
background-color: var(--sys-color-cdt-base-container);
|
package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
border: var(--sys-size-1) solid var(--sys-color-divider);
|
|
15
15
|
background-color: var(--sys-color-cdt-base-container);
|
|
16
16
|
overflow: hidden;
|
|
17
|
-
width:
|
|
17
|
+
width: var(--sys-size-31);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.settings-toolbar {
|
|
21
|
-
min-height:
|
|
21
|
+
min-height: var(--sys-size-11);
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-wrap: nowrap;
|
|
24
24
|
justify-content: space-between;
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.conditions-list-text:last-child {
|
|
73
|
-
flex-basis:
|
|
73
|
+
flex-basis: var(--sys-size-19);
|
|
74
74
|
text-align: left;
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
.conditions-list-separator {
|
|
92
92
|
flex: 0 0 var(--sys-size-1);
|
|
93
93
|
background-color: var(--sys-color-divider);
|
|
94
|
-
height:
|
|
94
|
+
height: var(--sys-size-13);
|
|
95
95
|
margin: 0 var(--sys-size-3);
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -2601,7 +2601,14 @@ export class NetworkLogView extends NetworkLogViewBase implements
|
|
|
2601
2601
|
Replace \ with \\ first because it is an escape character for certain
|
|
2602
2602
|
conditions in both parsers.
|
|
2603
2603
|
|
|
2604
|
-
Replace all " with
|
|
2604
|
+
Replace all " with "" so that a quote in the value cannot end the
|
|
2605
|
+
quoted argument in either shell. After caret escaping it becomes
|
|
2606
|
+
^"^". cmd.exe strips the carets, and inside a quoted argument the
|
|
2607
|
+
MS Crt parser reads "" as a literal " and stays in quoted mode.
|
|
2608
|
+
PowerShell treats neither ^ nor \ as an escape: it sees the string
|
|
2609
|
+
close and immediately reopen around a bare ^, so the value stays a
|
|
2610
|
+
single argument and its text stays quoted. With \" PowerShell would
|
|
2611
|
+
end the string at the quote and run whatever follows a ; or |.
|
|
2605
2612
|
|
|
2606
2613
|
Then escape all characters we are not sure about with ^ to ensure it
|
|
2607
2614
|
gets to MS Crt parser safely.
|
|
@@ -2625,7 +2632,7 @@ export class NetworkLogView extends NetworkLogViewBase implements
|
|
|
2625
2632
|
const encapsChars = '^"';
|
|
2626
2633
|
return encapsChars +
|
|
2627
2634
|
str.replace(/\\/g, '\\\\')
|
|
2628
|
-
.replace(/"/g, '
|
|
2635
|
+
.replace(/"/g, '""')
|
|
2629
2636
|
.replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;*]/g, '^$&')
|
|
2630
2637
|
.replace(/%(?=[a-zA-Z0-9_])/g, '%^')
|
|
2631
2638
|
.replace(/[^ -~\r\n]/g, ' ')
|
|
@@ -653,6 +653,13 @@ export class RequestTimingView extends UI.Widget.VBox {
|
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
set request(request: SDK.NetworkRequest.NetworkRequest) {
|
|
656
|
+
if (this.#request === request) {
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
if (this.isShowing()) {
|
|
660
|
+
this.#request?.removeEventListener(SDK.NetworkRequest.Events.TIMING_CHANGED, this.requestUpdate, this);
|
|
661
|
+
this.#request?.removeEventListener(SDK.NetworkRequest.Events.FINISHED_LOADING, this.requestUpdate, this);
|
|
662
|
+
}
|
|
656
663
|
this.#request = request;
|
|
657
664
|
if (this.isShowing()) {
|
|
658
665
|
this.#request.addEventListener(SDK.NetworkRequest.Events.TIMING_CHANGED, this.requestUpdate, this);
|
|
@@ -662,6 +669,13 @@ export class RequestTimingView extends UI.Widget.VBox {
|
|
|
662
669
|
}
|
|
663
670
|
|
|
664
671
|
set calculator(calculator: NetworkTimeCalculator.NetworkTimeCalculator) {
|
|
672
|
+
if (this.#calculator === calculator) {
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
if (this.isShowing()) {
|
|
676
|
+
this.#calculator?.removeEventListener(NetworkTimeCalculator.Events.BOUNDARIES_CHANGED, this.#boundaryChanged,
|
|
677
|
+
this);
|
|
678
|
+
}
|
|
665
679
|
this.#calculator = calculator;
|
|
666
680
|
if (this.isShowing()) {
|
|
667
681
|
this.#calculator.addEventListener(NetworkTimeCalculator.Events.BOUNDARIES_CHANGED, this.#boundaryChanged, this);
|
|
@@ -685,8 +699,8 @@ export class RequestTimingView extends UI.Widget.VBox {
|
|
|
685
699
|
}
|
|
686
700
|
|
|
687
701
|
#boundaryChanged(): void {
|
|
688
|
-
const minimumBoundary = this
|
|
689
|
-
if (minimumBoundary !== this.#lastMinimumBoundary) {
|
|
702
|
+
const minimumBoundary = this.#calculator?.minimumBoundary();
|
|
703
|
+
if (minimumBoundary !== undefined && minimumBoundary !== this.#lastMinimumBoundary) {
|
|
690
704
|
this.#lastMinimumBoundary = minimumBoundary;
|
|
691
705
|
this.requestUpdate();
|
|
692
706
|
}
|
|
@@ -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;
|
|
@@ -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 {
|
|
@@ -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
|
|
|
@@ -124,17 +124,6 @@
|
|
|
124
124
|
flex: 0 0 var(--sys-size-19) !important; /* stylelint-disable-line declaration-no-important */
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.empty-landing-page {
|
|
128
|
-
position: absolute;
|
|
129
|
-
background-color: var(--sys-color-cdt-base-container);
|
|
130
|
-
justify-content: center;
|
|
131
|
-
align-items: center;
|
|
132
|
-
overflow: auto;
|
|
133
|
-
font-size: var(--sys-typescale-body1-size);
|
|
134
|
-
color: var(--sys-color-token-subtle);
|
|
135
|
-
padding: 50px;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
127
|
@media (forced-colors: active) {
|
|
139
128
|
.profile-view .data-grid tr:hover td:not(.bottom-filler-td) {
|
|
140
129
|
background: Highlight;
|
|
@@ -36,7 +36,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: unknown, target: HTMLEle
|
|
|
36
36
|
<div class="icon ${shape}"></div>
|
|
37
37
|
<div class="label">${label}</div>
|
|
38
38
|
</button>
|
|
39
|
-
`, target, {container: {
|
|
39
|
+
`, target, {container: {classes: ['flex-none']}});
|
|
40
40
|
// clang-format on
|
|
41
41
|
};
|
|
42
42
|
|
|
@@ -524,6 +524,25 @@ function renderReplayOrAbortButton(input: ViewInput): Lit.LitTemplate {
|
|
|
524
524
|
|
|
525
525
|
function renderSections(input: ViewInput): Lit.LitTemplate {
|
|
526
526
|
const codeToggleTitle = input.showCodeView ? i18nString(UIStrings.hideCode) : i18nString(UIStrings.showCode);
|
|
527
|
+
/**
|
|
528
|
+
* Returns the state of the step or section that is rendered right before the
|
|
529
|
+
* given section (`stepIndex` is -1) or the given step of the section.
|
|
530
|
+
*/
|
|
531
|
+
const getPreviousState = (sectionIndex: number, stepIndex: number): State|undefined => {
|
|
532
|
+
const section = input.sections[sectionIndex];
|
|
533
|
+
if (stepIndex > 0) {
|
|
534
|
+
return input.getStepState(section.steps[stepIndex - 1]);
|
|
535
|
+
}
|
|
536
|
+
if (stepIndex === 0) {
|
|
537
|
+
return input.getSectionState(section);
|
|
538
|
+
}
|
|
539
|
+
const previousSection = input.sections[sectionIndex - 1];
|
|
540
|
+
if (!previousSection) {
|
|
541
|
+
return undefined;
|
|
542
|
+
}
|
|
543
|
+
const lastStep = previousSection.steps.at(-1);
|
|
544
|
+
return lastStep ? input.getStepState(lastStep) : input.getSectionState(previousSection);
|
|
545
|
+
};
|
|
527
546
|
// clang-format off
|
|
528
547
|
return html`
|
|
529
548
|
<div class="sections">
|
|
@@ -564,6 +583,7 @@ function renderSections(input: ViewInput): Lit.LitTemplate {
|
|
|
564
583
|
isLastSection:
|
|
565
584
|
i === input.sections.length - 1 &&
|
|
566
585
|
section.steps.length === 0,
|
|
586
|
+
isAfterError: getPreviousState(i, -1) === State.ERROR,
|
|
567
587
|
isSelected:
|
|
568
588
|
input.selectedStep === (section.causingStep || null),
|
|
569
589
|
sectionIndex: i,
|
|
@@ -585,7 +605,7 @@ function renderSections(input: ViewInput): Lit.LitTemplate {
|
|
|
585
605
|
onAttributeRequested: input.onAttributeRequested,
|
|
586
606
|
onCopyStep: input.onCopyStep,
|
|
587
607
|
})}
|
|
588
|
-
${section.steps.map(step => {
|
|
608
|
+
${section.steps.map((step, j) => {
|
|
589
609
|
const stepIndex = input.recording.steps.indexOf(step);
|
|
590
610
|
return html`
|
|
591
611
|
<devtools-widget
|
|
@@ -596,6 +616,7 @@ function renderSections(input: ViewInput): Lit.LitTemplate {
|
|
|
596
616
|
isFirstSection: false,
|
|
597
617
|
isLastSection:
|
|
598
618
|
i === input.sections.length - 1 && input.recording.steps[input.recording.steps.length - 1] === step,
|
|
619
|
+
isAfterError: getPreviousState(i, j) === State.ERROR,
|
|
599
620
|
isStartOfGroup: false,
|
|
600
621
|
isEndOfGroup: section.steps[section.steps.length - 1] === step,
|
|
601
622
|
stepIndex,
|