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
|
@@ -147,7 +147,7 @@ const LayerTreeOutlineBase: Common.ObjectWrapper.EventMixin<EventTypes, typeof U
|
|
|
147
147
|
|
|
148
148
|
export class LayerTreeOutline extends LayerTreeOutlineBase implements Common.EventTarget.EventTarget<EventTypes>,
|
|
149
149
|
LayerView {
|
|
150
|
-
|
|
150
|
+
#layerViewHost?: LayerViewHost;
|
|
151
151
|
private layerTree?: SDK.LayerTreeBase.LayerTreeBase|null;
|
|
152
152
|
private layerSnapshotMap?: Map<SDK.LayerTreeBase.Layer, SnapshotSelection>;
|
|
153
153
|
#layerCount = 0;
|
|
@@ -157,28 +157,50 @@ export class LayerTreeOutline extends LayerTreeOutlineBase implements Common.Eve
|
|
|
157
157
|
#view: View;
|
|
158
158
|
#hoveredLayer: SDK.LayerTreeBase.Layer|null = null;
|
|
159
159
|
|
|
160
|
-
constructor(layerViewHost
|
|
161
|
-
super();
|
|
160
|
+
constructor(layerViewHost?: LayerViewHost|HTMLElement, view: View = DEFAULT_VIEW) {
|
|
161
|
+
super(layerViewHost instanceof HTMLElement ? layerViewHost : undefined);
|
|
162
162
|
this.#view = view;
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
if (layerViewHost && !(layerViewHost instanceof HTMLElement)) {
|
|
164
|
+
this.layerViewHost = layerViewHost;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
get layerViewHost(): LayerViewHost|undefined {
|
|
169
|
+
return this.#layerViewHost;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
set layerViewHost(layerViewHost: LayerViewHost|undefined) {
|
|
173
|
+
if (this.#layerViewHost === layerViewHost) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (this.isShowing()) {
|
|
177
|
+
this.#layerViewHost?.showInternalLayersSetting().removeChangeListener(this.update, this);
|
|
178
|
+
}
|
|
179
|
+
this.#layerViewHost = layerViewHost;
|
|
180
|
+
if (this.#layerViewHost) {
|
|
181
|
+
this.#layerViewHost.registerView(this);
|
|
182
|
+
if (this.isShowing()) {
|
|
183
|
+
this.#layerViewHost.showInternalLayersSetting().addChangeListener(this.update, this);
|
|
184
|
+
this.update();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
165
187
|
}
|
|
166
188
|
|
|
167
189
|
override wasShown(): void {
|
|
168
190
|
super.wasShown();
|
|
169
|
-
this
|
|
191
|
+
this.#layerViewHost?.showInternalLayersSetting().addChangeListener(this.update, this);
|
|
170
192
|
this.update();
|
|
171
193
|
}
|
|
172
194
|
|
|
173
195
|
override willHide(): void {
|
|
174
|
-
this
|
|
196
|
+
this.#layerViewHost?.showInternalLayersSetting().removeChangeListener(this.update, this);
|
|
175
197
|
super.willHide();
|
|
176
198
|
}
|
|
177
199
|
|
|
178
200
|
override performUpdate(): void {
|
|
179
201
|
this.#view({
|
|
180
202
|
treeData: this.#treeData,
|
|
181
|
-
selectedLayer: this
|
|
203
|
+
selectedLayer: this.#layerViewHost?.selection()?.layer() || null,
|
|
182
204
|
hoveredLayer: this.#hoveredLayer,
|
|
183
205
|
layerCount: this.#layerCount,
|
|
184
206
|
totalLayerMemory: this.#totalLayerMemory,
|
|
@@ -218,7 +240,7 @@ export class LayerTreeOutline extends LayerTreeOutlineBase implements Common.Eve
|
|
|
218
240
|
let layerCount = 0;
|
|
219
241
|
let totalLayerMemory = 0;
|
|
220
242
|
|
|
221
|
-
const showInternalLayers = this
|
|
243
|
+
const showInternalLayers = this.#layerViewHost?.showInternalLayersSetting().get() ?? false;
|
|
222
244
|
let root: SDK.LayerTreeBase.Layer|null = null;
|
|
223
245
|
if (this.layerTree) {
|
|
224
246
|
if (!showInternalLayers) {
|
|
@@ -279,36 +301,36 @@ export class LayerTreeOutline extends LayerTreeOutlineBase implements Common.Eve
|
|
|
279
301
|
this.#totalLayerMemory = totalLayerMemory;
|
|
280
302
|
this.requestUpdate();
|
|
281
303
|
|
|
282
|
-
if (!this
|
|
304
|
+
if (!this.#layerViewHost?.selection() && this.layerTree && this.#treeData.length > 0) {
|
|
283
305
|
const elementToSelect = this.layerTree.contentRoot() || this.layerTree.root();
|
|
284
306
|
if (elementToSelect) {
|
|
285
|
-
this
|
|
307
|
+
this.#layerViewHost?.selectObject(new LayerSelection(elementToSelect));
|
|
286
308
|
}
|
|
287
309
|
}
|
|
288
310
|
}
|
|
289
311
|
|
|
290
312
|
private onHover(layer: SDK.LayerTreeBase.Layer|null): void {
|
|
291
|
-
this
|
|
313
|
+
this.#layerViewHost?.hoverObject(layer ? new LayerSelection(layer) : null);
|
|
292
314
|
}
|
|
293
315
|
|
|
294
316
|
private onSelect(layer: SDK.LayerTreeBase.Layer): void {
|
|
295
|
-
if (this
|
|
317
|
+
if (this.#layerViewHost?.selection()?.layer() === layer) {
|
|
296
318
|
return;
|
|
297
319
|
}
|
|
298
|
-
this
|
|
320
|
+
this.#layerViewHost?.selectObject(new LayerSelection(layer));
|
|
299
321
|
}
|
|
300
322
|
|
|
301
323
|
private onContextMenu(event: MouseEvent, layer: SDK.LayerTreeBase.Layer|null): void {
|
|
302
324
|
const selection = layer ? new LayerSelection(layer) : null;
|
|
303
325
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
304
|
-
this.layerSnapshotMap = this
|
|
305
|
-
if (layer && this.layerSnapshotMap
|
|
326
|
+
this.layerSnapshotMap = this.#layerViewHost?.getLayerSnapshotMap();
|
|
327
|
+
if (layer && this.layerSnapshotMap?.has(layer) && selection) {
|
|
306
328
|
contextMenu.defaultSection().appendItem(
|
|
307
329
|
i18nString(UIStrings.showPaintProfiler),
|
|
308
330
|
() => this.dispatchEventToListeners(Events.PAINT_PROFILER_REQUESTED, selection),
|
|
309
331
|
{jslogContext: 'layers.paint-profiler'});
|
|
310
332
|
}
|
|
311
|
-
this
|
|
333
|
+
this.#layerViewHost?.showContextMenu(contextMenu, selection);
|
|
312
334
|
}
|
|
313
335
|
}
|
|
314
336
|
|
|
@@ -149,7 +149,7 @@ const Layers3DViewBase: Common.ObjectWrapper.EventMixin<
|
|
|
149
149
|
|
|
150
150
|
export class Layers3DView extends Layers3DViewBase
|
|
151
151
|
implements LayerView {
|
|
152
|
-
|
|
152
|
+
#layerViewHost?: LayerViewHost;
|
|
153
153
|
private transformController: TransformController;
|
|
154
154
|
private lastSelection: Record<string, Selection|null>;
|
|
155
155
|
private layerTree: SDK.LayerTreeBase.LayerTreeBase|null;
|
|
@@ -180,12 +180,9 @@ export class Layers3DView extends Layers3DViewBase
|
|
|
180
180
|
#error?: 'missing-root' | 'webgl-disabled';
|
|
181
181
|
#canvasElement!: HTMLCanvasElement;
|
|
182
182
|
|
|
183
|
-
constructor(layerViewHost
|
|
184
|
-
super();
|
|
183
|
+
constructor(layerViewHost?: LayerViewHost|HTMLElement, view: View = DEFAULT_VIEW) {
|
|
184
|
+
super(layerViewHost instanceof HTMLElement ? layerViewHost : undefined);
|
|
185
185
|
this.#view = view;
|
|
186
|
-
|
|
187
|
-
this.layerViewHost = layerViewHost;
|
|
188
|
-
this.layerViewHost.registerView(this);
|
|
189
186
|
// Install transform controller, but still allow drag events to set focus on the element, which is needed
|
|
190
187
|
// to correctly listen for keyboard shortcuts.
|
|
191
188
|
this.transformController =
|
|
@@ -213,7 +210,31 @@ export class Layers3DView extends Layers3DViewBase
|
|
|
213
210
|
this.rects = [];
|
|
214
211
|
|
|
215
212
|
this.snapshotLayers = new Map();
|
|
216
|
-
|
|
213
|
+
if (layerViewHost && !(layerViewHost instanceof HTMLElement)) {
|
|
214
|
+
this.layerViewHost = layerViewHost;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
get layerViewHost(): LayerViewHost|undefined {
|
|
219
|
+
return this.#layerViewHost;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
set layerViewHost(layerViewHost: LayerViewHost|undefined) {
|
|
223
|
+
if (this.#layerViewHost === layerViewHost) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (this.isShowing()) {
|
|
227
|
+
this.#layerViewHost?.showInternalLayersSetting().removeChangeListener(this.updateData, this);
|
|
228
|
+
}
|
|
229
|
+
this.#layerViewHost = layerViewHost;
|
|
230
|
+
if (this.#layerViewHost) {
|
|
231
|
+
this.#layerViewHost.registerView(this);
|
|
232
|
+
this.#layerViewHost.setLayerSnapshotMap(this.snapshotLayers);
|
|
233
|
+
if (this.isShowing()) {
|
|
234
|
+
this.#layerViewHost.showInternalLayersSetting().addChangeListener(this.updateData, this);
|
|
235
|
+
this.updateData();
|
|
236
|
+
}
|
|
237
|
+
}
|
|
217
238
|
}
|
|
218
239
|
|
|
219
240
|
override performUpdate(): void {
|
|
@@ -267,7 +288,7 @@ export class Layers3DView extends Layers3DViewBase
|
|
|
267
288
|
this.showPaintsSetting.removeChangeListener(this.updatePaints, this);
|
|
268
289
|
this.showSlowScrollRectsSetting.removeChangeListener(this.updateData, this);
|
|
269
290
|
this.#chromeWindowSetting.removeChangeListener(this.updateData, this);
|
|
270
|
-
this
|
|
291
|
+
this.#layerViewHost?.showInternalLayersSetting().removeChangeListener(this.updateData, this);
|
|
271
292
|
this.textureManager.suspend();
|
|
272
293
|
super.willHide();
|
|
273
294
|
}
|
|
@@ -277,7 +298,7 @@ export class Layers3DView extends Layers3DViewBase
|
|
|
277
298
|
this.showPaintsSetting.addChangeListener(this.updatePaints, this);
|
|
278
299
|
this.showSlowScrollRectsSetting.addChangeListener(this.updateData, this);
|
|
279
300
|
this.#chromeWindowSetting.addChangeListener(this.updateData, this);
|
|
280
|
-
this
|
|
301
|
+
this.#layerViewHost?.showInternalLayersSetting().addChangeListener(this.updateData, this);
|
|
281
302
|
this.textureManager.resume();
|
|
282
303
|
this.performUpdate();
|
|
283
304
|
this.resizeCanvas();
|
|
@@ -509,7 +530,7 @@ export class Layers3DView extends Layers3DViewBase
|
|
|
509
530
|
private calculateDepthsAndVisibility(): void {
|
|
510
531
|
this.depthByLayerId = new Map();
|
|
511
532
|
let depth = 0;
|
|
512
|
-
const showInternalLayers = this
|
|
533
|
+
const showInternalLayers = this.#layerViewHost?.showInternalLayersSetting().get() ?? false;
|
|
513
534
|
if (!this.layerTree) {
|
|
514
535
|
return;
|
|
515
536
|
}
|
|
@@ -895,7 +916,7 @@ export class Layers3DView extends Layers3DViewBase
|
|
|
895
916
|
jslogContext: 'layers.paint-profiler',
|
|
896
917
|
});
|
|
897
918
|
}
|
|
898
|
-
this
|
|
919
|
+
this.#layerViewHost?.showContextMenu(contextMenu, selection);
|
|
899
920
|
}
|
|
900
921
|
|
|
901
922
|
private onMouseMove(event: Event): void {
|
|
@@ -903,7 +924,7 @@ export class Layers3DView extends Layers3DViewBase
|
|
|
903
924
|
if (mouseEvent.which) {
|
|
904
925
|
return;
|
|
905
926
|
}
|
|
906
|
-
this
|
|
927
|
+
this.#layerViewHost?.hoverObject(this.selectionFromEventPoint(event));
|
|
907
928
|
}
|
|
908
929
|
|
|
909
930
|
private onMouseDown(event: Event): void {
|
|
@@ -918,7 +939,7 @@ export class Layers3DView extends Layers3DViewBase
|
|
|
918
939
|
if (this.mouseDownX && Math.abs(mouseEvent.clientX - this.mouseDownX) < maxDistanceInPixels &&
|
|
919
940
|
Math.abs(mouseEvent.clientY - (this.mouseDownY || 0)) < maxDistanceInPixels) {
|
|
920
941
|
this.#canvasElement.focus();
|
|
921
|
-
this
|
|
942
|
+
this.#layerViewHost?.selectObject(this.selectionFromEventPoint(event));
|
|
922
943
|
}
|
|
923
944
|
delete this.mouseDownX;
|
|
924
945
|
delete this.mouseDownY;
|
|
@@ -14,7 +14,7 @@ table {
|
|
|
14
14
|
|
|
15
15
|
table td {
|
|
16
16
|
font: var(--sys-typescale-body4-regular);
|
|
17
|
-
line-height:
|
|
17
|
+
line-height: var(--sys-typescale-body4-line-height);
|
|
18
18
|
padding: var(--sys-size-3) var(--sys-size-5);
|
|
19
19
|
vertical-align: top;
|
|
20
20
|
}
|
|
@@ -22,7 +22,7 @@ table td {
|
|
|
22
22
|
table td:first-child {
|
|
23
23
|
color: var(--sys-color-on-surface-subtle);
|
|
24
24
|
font: var(--sys-typescale-body5-medium);
|
|
25
|
-
line-height:
|
|
25
|
+
line-height: var(--sys-typescale-body5-line-height);
|
|
26
26
|
white-space: nowrap;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -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;
|
|
@@ -4,23 +4,6 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
.tree-outline {
|
|
8
|
-
padding-left: 0;
|
|
9
|
-
color: var(--sys-color-token-subtle);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
li.storage-group-list-item {
|
|
13
|
-
padding: 10px var(--sys-size-5) var(--sys-size-4);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
li.storage-group-list-item:not(:first-child) {
|
|
17
|
-
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
li.storage-group-list-item::before {
|
|
21
|
-
display: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
7
|
.player-entry-row {
|
|
25
8
|
/* 28px icon-column/toolbar base (--sys-size-12) minus 2px compact
|
|
26
9
|
* row offset (--sys-size-2) = 26px, matching the 26px child cells
|
|
@@ -61,7 +44,6 @@ li.storage-group-list-item::before {
|
|
|
61
44
|
.player-entry-status-icon {
|
|
62
45
|
width: var(--sys-size-12);
|
|
63
46
|
min-width: var(--sys-size-12);
|
|
64
|
-
height: 26px;
|
|
65
47
|
border-right: var(--sys-size-1) solid var(--sys-color-divider);
|
|
66
48
|
overflow: hidden;
|
|
67
49
|
}
|
|
@@ -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, ' ')
|
|
@@ -17,11 +17,17 @@ import {RequestTimeRangeNameToColor} from './NetworkOverview.js';
|
|
|
17
17
|
import networkWaterfallColumnStyles from './networkWaterfallColumn.css.js';
|
|
18
18
|
import {RequestTimingView} from './RequestTimingView.js';
|
|
19
19
|
|
|
20
|
-
const {ref} = Directives;
|
|
20
|
+
const {ref, styleMap} = Directives;
|
|
21
21
|
|
|
22
22
|
const BAR_SPACING = 1;
|
|
23
23
|
|
|
24
24
|
export interface ViewInput {
|
|
25
|
+
/** Canvas width in CSS pixels. */
|
|
26
|
+
width: number;
|
|
27
|
+
/** Canvas height in CSS pixels. */
|
|
28
|
+
height: number;
|
|
29
|
+
/** Ratio between the canvas backing store size and its CSS size. */
|
|
30
|
+
pixelRatio: number;
|
|
25
31
|
onMouseMove: (offsetY: number, shiftKey: boolean) => void;
|
|
26
32
|
onMouseLeave: () => void;
|
|
27
33
|
onClick: (offsetY: number) => boolean;
|
|
@@ -34,11 +40,17 @@ export interface ViewOutput {
|
|
|
34
40
|
export type View = (input: ViewInput, output: ViewOutput, target: HTMLElement) => void;
|
|
35
41
|
|
|
36
42
|
export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
43
|
+
const width = Math.max(0, input.width);
|
|
44
|
+
const height = Math.max(0, input.height);
|
|
45
|
+
const pixelRatio = Math.max(0, input.pixelRatio);
|
|
37
46
|
// clang-format off
|
|
38
47
|
render(html`
|
|
39
48
|
<style>${networkWaterfallColumnStyles}</style>
|
|
40
49
|
<canvas
|
|
41
50
|
tabindex="-1"
|
|
51
|
+
width=${Math.round(width * pixelRatio)}
|
|
52
|
+
height=${Math.round(height * pixelRatio)}
|
|
53
|
+
style=${styleMap({width: `${width}px`, height: `${height}px`})}
|
|
42
54
|
@mousemove=${(event: MouseEvent) => input.onMouseMove(event.offsetY, event.shiftKey)}
|
|
43
55
|
@mouseleave=${input.onMouseLeave}
|
|
44
56
|
@click=${(event: MouseEvent) => {
|
|
@@ -137,6 +149,9 @@ export class NetworkWaterfallColumn extends UI.Widget.VBox {
|
|
|
137
149
|
|
|
138
150
|
override performUpdate(): void {
|
|
139
151
|
this.#view({
|
|
152
|
+
width: this.offsetWidth,
|
|
153
|
+
height: this.offsetHeight,
|
|
154
|
+
pixelRatio: window.devicePixelRatio,
|
|
140
155
|
onMouseMove: (offsetY, shiftKey) => this.setHoveredNode(this.getNodeFromPoint(offsetY), shiftKey),
|
|
141
156
|
onMouseLeave: () => this.setHoveredNode(null, false),
|
|
142
157
|
onClick: offsetY => this.setSelectedNode(this.getNodeFromPoint(offsetY)),
|
|
@@ -403,20 +418,14 @@ export class NetworkWaterfallColumn extends UI.Widget.VBox {
|
|
|
403
418
|
|
|
404
419
|
this.startTime = this.calculator.minimumBoundary();
|
|
405
420
|
this.endTime = this.calculator.maximumBoundary();
|
|
406
|
-
|
|
421
|
+
// Render synchronously, because the canvas must have its new size before
|
|
422
|
+
// we draw on it.
|
|
423
|
+
this.performUpdate();
|
|
407
424
|
this.resetPaths();
|
|
408
425
|
this.textLayers = [];
|
|
409
426
|
this.draw();
|
|
410
427
|
}
|
|
411
428
|
|
|
412
|
-
private resetCanvas(): void {
|
|
413
|
-
const ratio = window.devicePixelRatio;
|
|
414
|
-
this.canvas.width = this.offsetWidth * ratio;
|
|
415
|
-
this.canvas.height = this.offsetHeight * ratio;
|
|
416
|
-
this.canvas.style.width = this.offsetWidth + 'px';
|
|
417
|
-
this.canvas.style.height = this.offsetHeight + 'px';
|
|
418
|
-
}
|
|
419
|
-
|
|
420
429
|
override onResize(): void {
|
|
421
430
|
super.onResize();
|
|
422
431
|
this.calculateCanvasSize();
|
|
@@ -449,6 +458,9 @@ export class NetworkWaterfallColumn extends UI.Widget.VBox {
|
|
|
449
458
|
if (!context) {
|
|
450
459
|
return;
|
|
451
460
|
}
|
|
461
|
+
// The view only resizes the canvas (which implicitly clears it) when its
|
|
462
|
+
// dimensions change, so explicitly clear the bitmap and the drawing state.
|
|
463
|
+
context.reset();
|
|
452
464
|
context.save();
|
|
453
465
|
context.scale(window.devicePixelRatio, window.devicePixelRatio);
|
|
454
466
|
context.translate(0, this.headerHeight);
|