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
|
@@ -421,9 +421,9 @@ export class VariableRenderer extends VariableRendererBase {
|
|
|
421
421
|
|
|
422
422
|
const renderedFallback = match.fallback ? Renderer.render(match.fallback, context) : undefined;
|
|
423
423
|
|
|
424
|
-
const varCall = this.#treeElement?.getTracingTooltip(
|
|
425
|
-
|
|
426
|
-
const tooltipId = this.#treeElement
|
|
424
|
+
const varCall = this.#treeElement?.getTracingTooltip('var', match.node, this.#matchedStyles, this.#computedStyles,
|
|
425
|
+
this.#computedStyleExtraFields, context);
|
|
426
|
+
const tooltipId = getTooltipId(this.#treeElement, 'custom-property-var');
|
|
427
427
|
const tooltip = tooltipId ? {tooltipId} : undefined;
|
|
428
428
|
// clang-format off
|
|
429
429
|
const varSwatch = html`<span
|
|
@@ -494,7 +494,7 @@ export class VariableNameRenderer extends VariableNameRendererBase {
|
|
|
494
494
|
const onLinkActivate = (name: string): void =>
|
|
495
495
|
handleVarDefinitionActivate(declaration ?? name, this.#stylesContainer);
|
|
496
496
|
|
|
497
|
-
const tooltipId = this.#treeElement
|
|
497
|
+
const tooltipId = getTooltipId(this.#treeElement, 'custom-property-var');
|
|
498
498
|
const tooltip = tooltipId ? {tooltipId} : undefined;
|
|
499
499
|
// clang-format off
|
|
500
500
|
return html`<devtools-link-swatch class=css-var-link .data=${{
|
|
@@ -580,9 +580,9 @@ export class AttributeRenderer extends AttributeRendererBase {
|
|
|
580
580
|
|
|
581
581
|
const renderedFallback = match.fallback ? Renderer.render(match.fallback, context) : undefined;
|
|
582
582
|
|
|
583
|
-
const attrCall = this.#treeElement?.getTracingTooltip(
|
|
584
|
-
|
|
585
|
-
const tooltipId = attributeMissing ? undefined : this.#treeElement
|
|
583
|
+
const attrCall = this.#treeElement?.getTracingTooltip('attr', match.node, this.#matchedStyles, this.#computedStyles,
|
|
584
|
+
this.#computedStyleExtraFields, context);
|
|
585
|
+
const tooltipId = attributeMissing ? undefined : getTooltipId(this.#treeElement, 'custom-attribute');
|
|
586
586
|
const tooltip = tooltipId ? {tooltipId} : undefined;
|
|
587
587
|
// clang-format off
|
|
588
588
|
const varSwatch = html`<span
|
|
@@ -690,7 +690,7 @@ export class RelativeColorChannelRenderer extends RelativeColorChannelRendererBa
|
|
|
690
690
|
return evaluation;
|
|
691
691
|
}
|
|
692
692
|
|
|
693
|
-
const tooltipId = this.#treeElement
|
|
693
|
+
const tooltipId = getTooltipId(this.#treeElement, 'relative-color-channel');
|
|
694
694
|
if (!tooltipId) {
|
|
695
695
|
return html`<span>${match.text}</span>`;
|
|
696
696
|
}
|
|
@@ -1087,7 +1087,7 @@ export class ColorMixRenderer extends ColorMixRendererBase {
|
|
|
1087
1087
|
return html`${swatch}${contentChild}`;
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
-
const tooltipId = this.#treeElement
|
|
1090
|
+
const tooltipId = getTooltipId(this.#treeElement, 'color-mix');
|
|
1091
1091
|
if (!tooltipId) {
|
|
1092
1092
|
return html`${swatch}${contentChild}`;
|
|
1093
1093
|
}
|
|
@@ -1865,7 +1865,7 @@ export class LengthRenderer extends LengthRendererBase {
|
|
|
1865
1865
|
template,
|
|
1866
1866
|
asyncEvalCallback: () => this.getTooltipValue(match, context),
|
|
1867
1867
|
}));
|
|
1868
|
-
const tooltipId = this.#treeElement
|
|
1868
|
+
const tooltipId = getTooltipId(this.#treeElement, 'length');
|
|
1869
1869
|
if (evaluation || !tooltipId) {
|
|
1870
1870
|
return html`<span tabindex=-1>${evaluation ?? template}</span>`;
|
|
1871
1871
|
}
|
|
@@ -2396,6 +2396,35 @@ export class PositionTryRenderer extends PositionTryRendererBase {
|
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
2398
|
|
|
2399
|
+
// Returns an id for <devtools-tooltips> that's stable across re-rendering of property values but unique across
|
|
2400
|
+
// sections and across switches between different nodes.
|
|
2401
|
+
function getTooltipId(treeElement: StylePropertyTreeElement|null, key: string): string|undefined;
|
|
2402
|
+
function getTooltipId(tooltipIdFactory: Tooltips.Tooltip.IdFactory, key: string, property: SDK.CSSProperty.CSSProperty,
|
|
2403
|
+
shorthandName?: string): string;
|
|
2404
|
+
function getTooltipId(tooltipIdFactoryOrTreeElement: Tooltips.Tooltip.IdFactory|StylePropertyTreeElement|null,
|
|
2405
|
+
key: string, property?: SDK.CSSProperty.CSSProperty, shorthandName?: string): string|undefined {
|
|
2406
|
+
if (!tooltipIdFactoryOrTreeElement) {
|
|
2407
|
+
return undefined;
|
|
2408
|
+
}
|
|
2409
|
+
if (tooltipIdFactoryOrTreeElement instanceof StylePropertyTreeElement) {
|
|
2410
|
+
const treeElement = tooltipIdFactoryOrTreeElement;
|
|
2411
|
+
return getTooltipId(treeElement.tooltipIdFactory, key, treeElement.property, treeElement.getLonghand()?.name);
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
if (!property) {
|
|
2415
|
+
return undefined;
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
// Longhands expanded from a shorthand also count preceding occurrences of the shorthand.
|
|
2419
|
+
const propertyNameForCounting = shorthandName ?? property.name;
|
|
2420
|
+
const ownIndex = property.ownerStyle.allProperties().indexOf(property);
|
|
2421
|
+
const propertyCount = property.ownerStyle.allProperties().reduce<number>(
|
|
2422
|
+
(value, other, index) =>
|
|
2423
|
+
index < ownIndex && (other.name === property.name || other.name === propertyNameForCounting) ? value + 1 :
|
|
2424
|
+
value,
|
|
2425
|
+
0);
|
|
2426
|
+
return tooltipIdFactoryOrTreeElement.keyed(key, propertyCount);
|
|
2427
|
+
}
|
|
2399
2428
|
export function getPropertyRenderers(
|
|
2400
2429
|
propertyName: string, style: SDK.CSSStyleDeclaration.CSSStyleDeclaration, stylesContainer: StylesContainer,
|
|
2401
2430
|
matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles, treeElement: StylePropertyTreeElement|null,
|
|
@@ -2459,7 +2488,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
2459
2488
|
private computedStyleExtraFields: Protocol.CSS.ComputedStyleExtraFields|null = null;
|
|
2460
2489
|
private contextForTest!: Context|undefined;
|
|
2461
2490
|
#gridNames: Set<string>|undefined = undefined;
|
|
2462
|
-
|
|
2491
|
+
readonly tooltipIdFactory: Tooltips.Tooltip.IdFactory;
|
|
2463
2492
|
// The changes that renderers made to the text of the value since it was rendered. Only available if the value was
|
|
2464
2493
|
// parsed.
|
|
2465
2494
|
#edits: ValueUpdateTracking|undefined;
|
|
@@ -2484,6 +2513,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
2484
2513
|
this.selectable = false;
|
|
2485
2514
|
this.#stylesContainer = stylesContainer;
|
|
2486
2515
|
this.#parentSection = section;
|
|
2516
|
+
this.tooltipIdFactory = section.sectionTooltipIdFactory.subfactory('swatch-tooltip', this.name);
|
|
2487
2517
|
this.isShorthand = isShorthand;
|
|
2488
2518
|
this.newProperty = newProperty;
|
|
2489
2519
|
this.#lastCommittedProperty = {
|
|
@@ -2894,7 +2924,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
2894
2924
|
}
|
|
2895
2925
|
|
|
2896
2926
|
#updateTitle(): void {
|
|
2897
|
-
this
|
|
2927
|
+
this.tooltipIdFactory.clearKeys();
|
|
2898
2928
|
this.updateState();
|
|
2899
2929
|
if (this.isExpandable()) {
|
|
2900
2930
|
this.expandElement = createIcon('triangle-right', 'expand-icon');
|
|
@@ -2937,7 +2967,8 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
2937
2967
|
contents.variableName = this.property.name;
|
|
2938
2968
|
contents.value = this.#matchedStyles.computeCSSVariable(this.style, this.property.name)?.value;
|
|
2939
2969
|
contents.details = this.#stylesContainer.getRegisteredPropertyDetails(this.matchedStyles(), this.property.name);
|
|
2940
|
-
const tooltipId =
|
|
2970
|
+
const tooltipId =
|
|
2971
|
+
getTooltipId(this.tooltipIdFactory, 'custom-property-decl', this.property, this.getLonghand()?.name);
|
|
2941
2972
|
this.nameElement.setAttribute('aria-details', tooltipId);
|
|
2942
2973
|
const tooltip = new Tooltips.Tooltip.Tooltip(
|
|
2943
2974
|
{anchor: this.nameElement, variant: 'rich', id: tooltipId, jslogContext: 'elements.css-var'});
|
|
@@ -2951,7 +2982,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
2951
2982
|
} else if (Common.Settings.Settings.instance()
|
|
2952
2983
|
.resolve(SettingsUI.ElementsSettings.showCSSPropertyDocumentationOnHoverSettingDescriptor)
|
|
2953
2984
|
.get()) {
|
|
2954
|
-
const tooltipId = this.
|
|
2985
|
+
const tooltipId = getTooltipId(this.tooltipIdFactory, 'property-doc', this.property, this.getLonghand()?.name);
|
|
2955
2986
|
this.nameElement.setAttribute('aria-details', tooltipId);
|
|
2956
2987
|
const tooltip = new Tooltips.Tooltip.Tooltip({
|
|
2957
2988
|
anchor: this.nameElement,
|
|
@@ -3079,7 +3110,8 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
3079
3110
|
if (title === null) {
|
|
3080
3111
|
UI.Tooltip.Tooltip.install(exclamationElement, invalidMessage);
|
|
3081
3112
|
} else {
|
|
3082
|
-
const tooltipId =
|
|
3113
|
+
const tooltipId =
|
|
3114
|
+
getTooltipId(this.tooltipIdFactory, 'property-warning', this.property, this.getLonghand()?.name);
|
|
3083
3115
|
exclamationElement.setAttribute('aria-describedby', tooltipId);
|
|
3084
3116
|
const tooltip = new Tooltips.Tooltip.Tooltip({
|
|
3085
3117
|
anchor: exclamationElement,
|
|
@@ -3136,7 +3168,8 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
3136
3168
|
const shorthandPositionOffset = context.matchedResult.getComputedLonghandName(node);
|
|
3137
3169
|
const {property} = context;
|
|
3138
3170
|
const stylesContainer = this.stylesContainer();
|
|
3139
|
-
const tooltipId =
|
|
3171
|
+
const tooltipId =
|
|
3172
|
+
getTooltipId(this.tooltipIdFactory, `${functionName}-trace`, this.property, this.getLonghand()?.name);
|
|
3140
3173
|
// clang-format off
|
|
3141
3174
|
return html`
|
|
3142
3175
|
<span tabIndex=-1 class=tracing-anchor aria-details=${tooltipId}>${functionName.startsWith('--') ? this.#getLinkableFunction(functionName, matchedStyles, context.property) : functionName}</span>
|
|
@@ -3181,22 +3214,6 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
3181
3214
|
// clang-format on
|
|
3182
3215
|
}
|
|
3183
3216
|
|
|
3184
|
-
// Returns an id for <devtools-tooltips> that's stable across re-rendering of property values but unique across
|
|
3185
|
-
// sections and across switches between different nodes.
|
|
3186
|
-
getTooltipId(key: string): string {
|
|
3187
|
-
const sectionId = this.section().sectionTooltipIdPrefix;
|
|
3188
|
-
const tooltipKeyCount = this.#tooltipKeyCounts.get(key) ?? 0;
|
|
3189
|
-
this.#tooltipKeyCounts.set(key, tooltipKeyCount + 1);
|
|
3190
|
-
const propertyNameForCounting = this.getLonghand()?.name ?? this.name;
|
|
3191
|
-
const ownIndex = this.style.allProperties().indexOf(this.property);
|
|
3192
|
-
const propertyCount = this.style.allProperties().reduce<number>(
|
|
3193
|
-
(value, property, index) =>
|
|
3194
|
-
index < ownIndex && (property.name === this.name || property.name === propertyNameForCounting) ? value + 1 :
|
|
3195
|
-
value,
|
|
3196
|
-
0);
|
|
3197
|
-
return `swatch-tooltip-${sectionId}-${this.name}-${propertyCount}-${key}-${tooltipKeyCount}`;
|
|
3198
|
-
}
|
|
3199
|
-
|
|
3200
3217
|
updateAuthoringHint(): void {
|
|
3201
3218
|
this.listItemElement.classList.remove('inactive-property');
|
|
3202
3219
|
const existingElement = this.listItemElement.querySelector('.hint');
|
|
@@ -3232,7 +3249,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
3232
3249
|
wrapper.append(hintIcon);
|
|
3233
3250
|
this.listItemElement.append(wrapper);
|
|
3234
3251
|
this.listItemElement.classList.add('inactive-property');
|
|
3235
|
-
const tooltipId = this.
|
|
3252
|
+
const tooltipId = getTooltipId(this.tooltipIdFactory, 'css-hint', this.property, this.getLonghand()?.name);
|
|
3236
3253
|
hintIcon.setAttribute('aria-details', tooltipId);
|
|
3237
3254
|
const tooltip = new Tooltips.Tooltip.Tooltip(
|
|
3238
3255
|
{anchor: hintIcon, variant: 'rich', padding: 'large', id: tooltipId, jslogContext: 'elements.css-hint'});
|
|
@@ -3269,7 +3286,8 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
3269
3286
|
wrapper.append(hintIcon);
|
|
3270
3287
|
this.listItemElement.append(wrapper);
|
|
3271
3288
|
|
|
3272
|
-
const tooltipId =
|
|
3289
|
+
const tooltipId =
|
|
3290
|
+
getTooltipId(this.tooltipIdFactory, 'animation-override-hint', this.property, this.getLonghand()?.name);
|
|
3273
3291
|
hintIcon.setAttribute('aria-details', tooltipId);
|
|
3274
3292
|
|
|
3275
3293
|
const tooltip = new Tooltips.Tooltip.Tooltip({
|
|
@@ -11,13 +11,9 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.styles-element-classes-container {
|
|
14
|
-
display:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.styles-element-classes-pane devtools-checkbox {
|
|
20
|
-
margin-right: 15px;
|
|
14
|
+
display: grid;
|
|
15
|
+
column-gap: var(--sys-size-6);
|
|
16
|
+
grid-template-columns: repeat(2, 1fr);
|
|
21
17
|
}
|
|
22
18
|
|
|
23
19
|
.styles-element-classes-pane .title-container {
|
|
@@ -6,6 +6,7 @@ import '../../../ui/components/tooltips/tooltips.js';
|
|
|
6
6
|
import '../../../ui/legacy/components/inline_editor/inline_editor.js';
|
|
7
7
|
|
|
8
8
|
import * as SDK from '../../../core/sdk/sdk.js';
|
|
9
|
+
import type * as Tooltips from '../../../ui/components/tooltips/tooltips.js';
|
|
9
10
|
import type * as InlineEditor from '../../../ui/legacy/components/inline_editor/inline_editor.js';
|
|
10
11
|
import * as UI from '../../../ui/legacy/legacy.js';
|
|
11
12
|
import * as Lit from '../../../ui/lit/lit.js';
|
|
@@ -43,7 +44,7 @@ export interface ViewInput {
|
|
|
43
44
|
matchedStyles?: SDK.CSSMatchedStyles.CSSMatchedStyles;
|
|
44
45
|
style?: SDK.CSSStyleDeclaration.CSSStyleDeclaration;
|
|
45
46
|
containerNode?: SDK.DOMModel.DOMNode;
|
|
46
|
-
tooltipPrefix
|
|
47
|
+
tooltipPrefix?: Tooltips.Tooltip.IdFactory;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export type View = (input: ViewInput, output: undefined, target: HTMLElement|DocumentFragment) => void;
|
|
@@ -67,7 +68,8 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
67
68
|
input.onLinkActivate(variable ? variable.declaration : variableName);
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
|
-
const tooltipId =
|
|
71
|
+
const tooltipId =
|
|
72
|
+
input.tooltipPrefix ? input.tooltipPrefix.get(index, variableName) : `css-query-${index}-${variableName}`;
|
|
71
73
|
const tooltip = {tooltipId};
|
|
72
74
|
return html`
|
|
73
75
|
<devtools-link-swatch class="css-var-link" .data=${{
|
|
@@ -121,13 +123,12 @@ export class CSSQuery extends UI.Widget.Widget<ShadowRoot> {
|
|
|
121
123
|
#matchedStyles?: SDK.CSSMatchedStyles.CSSMatchedStyles;
|
|
122
124
|
#style?: SDK.CSSStyleDeclaration.CSSStyleDeclaration;
|
|
123
125
|
#containerNode?: SDK.DOMModel.DOMNode;
|
|
124
|
-
#tooltipPrefix
|
|
126
|
+
#tooltipPrefix?: Tooltips.Tooltip.IdFactory;
|
|
125
127
|
|
|
126
128
|
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
127
129
|
super(element, {useShadowDom: 'pure'});
|
|
128
130
|
this.#view = view;
|
|
129
131
|
}
|
|
130
|
-
|
|
131
132
|
set data(data: CSSQueryData) {
|
|
132
133
|
this.#queryPrefix = data.queryPrefix;
|
|
133
134
|
this.#queryName = data.queryName;
|
|
@@ -148,7 +149,7 @@ export class CSSQuery extends UI.Widget.Widget<ShadowRoot> {
|
|
|
148
149
|
matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles,
|
|
149
150
|
style: SDK.CSSStyleDeclaration.CSSStyleDeclaration,
|
|
150
151
|
containerNode: SDK.DOMModel.DOMNode,
|
|
151
|
-
tooltipPrefix:
|
|
152
|
+
tooltipPrefix: Tooltips.Tooltip.IdFactory,
|
|
152
153
|
): void {
|
|
153
154
|
this.#matchedStyles = matchedStyles;
|
|
154
155
|
this.#style = style;
|
|
@@ -65,12 +65,6 @@
|
|
|
65
65
|
text-overflow: clip;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
&.editing-sub-part {
|
|
69
|
-
padding: 3px var(--sys-size-4) var(--sys-size-5) 18px;
|
|
70
|
-
margin: calc(-1 * var(--sys-size-1)) calc(-1 * var(--sys-size-4)) calc(-1 * var(--sys-size-5));
|
|
71
|
-
text-overflow: clip;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
68
|
&.child-editing {
|
|
75
69
|
overflow-wrap: break-word !important; /* stylelint-disable-line declaration-no-important */
|
|
76
70
|
white-space: normal !important; /* stylelint-disable-line declaration-no-important */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright 2014 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 */
|
|
4
5
|
|
|
5
6
|
import * as Common from '../../core/common/common.js';
|
|
6
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
@@ -55,10 +55,6 @@
|
|
|
55
55
|
padding: var(--sys-size-6) var(--sys-size-8);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.wrapper.top {
|
|
59
|
-
border-radius: var(--sys-shape-corner-medium) var(--sys-shape-corner-medium) var(--sys-shape-corner-extra-small) var(--sys-shape-corner-extra-small);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
58
|
header {
|
|
63
59
|
display: flex;
|
|
64
60
|
flex-direction: row;
|
|
@@ -104,8 +100,6 @@
|
|
|
104
100
|
}
|
|
105
101
|
|
|
106
102
|
main {
|
|
107
|
-
--override-markdown-view-message-color: var(--sys-color-on-surface);
|
|
108
|
-
|
|
109
103
|
color: var(--sys-color-on-surface);
|
|
110
104
|
font-size: var(--sys-typescale-body4-size);
|
|
111
105
|
font-style: normal;
|
|
@@ -380,6 +374,7 @@
|
|
|
380
374
|
}
|
|
381
375
|
|
|
382
376
|
@scope (.insight-sources) {
|
|
377
|
+
/* stylelint-disable-next-line plugin/check_scope_selectors */
|
|
383
378
|
:root {
|
|
384
379
|
padding: 0;
|
|
385
380
|
margin: 0;
|
|
@@ -1,89 +1,131 @@
|
|
|
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
|
-
|
|
4
|
+
|
|
5
|
+
import '../../ui/components/request_link_icon/request_link_icon.js';
|
|
5
6
|
|
|
6
7
|
import * as Host from '../../core/host/host.js';
|
|
7
8
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
9
|
import type * as Platform from '../../core/platform/platform.js';
|
|
9
10
|
import type * as Protocol from '../../generated/protocol.js';
|
|
10
11
|
import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
|
12
|
+
import type * as Logs from '../../models/logs/logs.js';
|
|
13
|
+
import type * as RequestLinkIcon from '../../ui/components/request_link_icon/request_link_icon.js';
|
|
14
|
+
import {html, render} from '../../ui/lit/lit.js';
|
|
11
15
|
|
|
12
|
-
import {AffectedItem, AffectedResourcesView} from './AffectedResourcesView.js';
|
|
16
|
+
import {AffectedItem, AffectedResourcesView, type FrameCellData, renderFrameCell} from './AffectedResourcesView.js';
|
|
17
|
+
import type {IssueView} from './IssueView.js';
|
|
13
18
|
|
|
14
19
|
const UIStrings = {
|
|
15
20
|
/**
|
|
16
|
-
* @description Label in the Issues panel for the number of affected network
|
|
21
|
+
* @description Label in the Issues panel for the number of affected network
|
|
22
|
+
* requests.
|
|
17
23
|
*/
|
|
18
24
|
nRequests: '{n, plural, =1 {# request} other {# requests}}',
|
|
19
25
|
/**
|
|
20
|
-
* @description Column header in the Issues panel for network requests in the
|
|
26
|
+
* @description Column header in the Issues panel for network requests in the
|
|
27
|
+
* blocked-by-response affected resources table.
|
|
21
28
|
*/
|
|
22
29
|
requestC: 'Request',
|
|
23
30
|
/**
|
|
24
|
-
* @description Column header in the Issues panel for parent frames in the
|
|
31
|
+
* @description Column header in the Issues panel for parent frames in the
|
|
32
|
+
* blocked-by-response affected resources table.
|
|
25
33
|
*/
|
|
26
34
|
parentFrame: 'Parent frame',
|
|
27
35
|
/**
|
|
28
|
-
* @description Column header in the Issues panel for blocked resources in the
|
|
36
|
+
* @description Column header in the Issues panel for blocked resources in the
|
|
37
|
+
* blocked-by-response affected resources table.
|
|
29
38
|
*/
|
|
30
39
|
blockedResource: 'Blocked resource',
|
|
31
40
|
} as const;
|
|
32
41
|
const str_ = i18n.i18n.registerUIStrings('panels/issues/AffectedBlockedByResponseView.ts', UIStrings);
|
|
33
42
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
34
43
|
|
|
44
|
+
export type {FrameCellData};
|
|
45
|
+
|
|
46
|
+
export interface BlockedByResponseRow {
|
|
47
|
+
request: Protocol.Audits.AffectedRequest;
|
|
48
|
+
parentFrame?: FrameCellData;
|
|
49
|
+
blockedFrame?: FrameCellData;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface ViewInput {
|
|
53
|
+
rows: BlockedByResponseRow[];
|
|
54
|
+
requestResolver: Logs.RequestResolver.RequestResolver;
|
|
55
|
+
onRequestClick: () => void;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type View = (input: ViewInput, _output: undefined, target: HTMLElement) => void;
|
|
59
|
+
|
|
60
|
+
export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
61
|
+
// clang-format off
|
|
62
|
+
render(html`
|
|
63
|
+
<tr>
|
|
64
|
+
<td class="affected-resource-header">${i18nString(UIStrings.requestC)}</td>
|
|
65
|
+
<td class="affected-resource-header">${i18nString(UIStrings.parentFrame)}</td>
|
|
66
|
+
<td class="affected-resource-header">${i18nString(UIStrings.blockedResource)}</td>
|
|
67
|
+
</tr>
|
|
68
|
+
${input.rows.map(row => html`
|
|
69
|
+
<tr class="affected-resource-row">
|
|
70
|
+
<td class="affected-resource-cell">
|
|
71
|
+
<devtools-request-link-icon .data=${{
|
|
72
|
+
affectedRequest: row.request,
|
|
73
|
+
requestResolver: input.requestResolver,
|
|
74
|
+
displayURL: true,
|
|
75
|
+
additionalOnClickAction: input.onRequestClick,
|
|
76
|
+
} as RequestLinkIcon.RequestLinkIcon.RequestLinkIconData}></devtools-request-link-icon>
|
|
77
|
+
</td>
|
|
78
|
+
${renderFrameCell(row.parentFrame)}
|
|
79
|
+
${renderFrameCell(row.blockedFrame)}
|
|
80
|
+
</tr>
|
|
81
|
+
`)}
|
|
82
|
+
`, target);
|
|
83
|
+
// clang-format on
|
|
84
|
+
};
|
|
85
|
+
|
|
35
86
|
export class AffectedBlockedByResponseView extends AffectedResourcesView {
|
|
36
|
-
#
|
|
37
|
-
const header = document.createElement('tr');
|
|
38
|
-
this.appendColumnTitle(header, i18nString(UIStrings.requestC));
|
|
39
|
-
this.appendColumnTitle(header, i18nString(UIStrings.parentFrame));
|
|
40
|
-
this.appendColumnTitle(header, i18nString(UIStrings.blockedResource));
|
|
87
|
+
readonly #view: View;
|
|
41
88
|
|
|
42
|
-
|
|
89
|
+
constructor(parent: IssueView, issue: IssuesManager.IssueAggregator.AggregatedIssue, jslogContext: string,
|
|
90
|
+
view: View = DEFAULT_VIEW) {
|
|
91
|
+
super(parent, issue, jslogContext);
|
|
92
|
+
this.#view = view;
|
|
93
|
+
}
|
|
43
94
|
|
|
44
|
-
|
|
95
|
+
#appendDetails(details: Iterable<Protocol.Audits.BlockedByResponseIssueDetails>): void {
|
|
96
|
+
const rows: BlockedByResponseRow[] = [];
|
|
45
97
|
for (const detail of details) {
|
|
46
|
-
this.#
|
|
47
|
-
count++;
|
|
98
|
+
rows.push(this.#createDetailRow(detail));
|
|
48
99
|
}
|
|
49
|
-
this
|
|
100
|
+
this.#view({
|
|
101
|
+
rows,
|
|
102
|
+
requestResolver: this.requestResolver,
|
|
103
|
+
onRequestClick: () => {
|
|
104
|
+
Host.userMetrics.issuesPanelResourceOpened(IssuesManager.Issue.IssueCategory.CROSS_ORIGIN_EMBEDDER_POLICY,
|
|
105
|
+
AffectedItem.REQUEST);
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
undefined, this.affectedResources);
|
|
109
|
+
this.updateAffectedResourceCount(rows.length);
|
|
50
110
|
}
|
|
51
111
|
|
|
52
|
-
protected getResourceNameWithCount(count: number): Platform.UIString.LocalizedString {
|
|
112
|
+
protected override getResourceNameWithCount(count: number): Platform.UIString.LocalizedString {
|
|
53
113
|
return i18nString(UIStrings.nRequests, {n: count});
|
|
54
114
|
}
|
|
55
115
|
|
|
56
|
-
#
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
});
|
|
66
|
-
element.appendChild(requestCell);
|
|
67
|
-
|
|
68
|
-
if (details.parentFrame) {
|
|
69
|
-
const frameUrl = this.createFrameCell(details.parentFrame.frameId, this.issue.getCategory());
|
|
70
|
-
element.appendChild(frameUrl);
|
|
71
|
-
} else {
|
|
72
|
-
element.appendChild(document.createElement('td'));
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (details.blockedFrame) {
|
|
76
|
-
const frameUrl = this.createFrameCell(details.blockedFrame.frameId, this.issue.getCategory());
|
|
77
|
-
element.appendChild(frameUrl);
|
|
78
|
-
} else {
|
|
79
|
-
element.appendChild(document.createElement('td'));
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
this.affectedResources.appendChild(element);
|
|
116
|
+
#createDetailRow(details: Protocol.Audits.BlockedByResponseIssueDetails): BlockedByResponseRow {
|
|
117
|
+
const issueCategory = this.issue.getCategory();
|
|
118
|
+
return {
|
|
119
|
+
request: details.request,
|
|
120
|
+
parentFrame: details.parentFrame ? this.createFrameCellData(details.parentFrame.frameId, issueCategory) :
|
|
121
|
+
undefined,
|
|
122
|
+
blockedFrame: details.blockedFrame ? this.createFrameCellData(details.blockedFrame.frameId, issueCategory) :
|
|
123
|
+
undefined,
|
|
124
|
+
};
|
|
83
125
|
}
|
|
84
126
|
|
|
85
|
-
update(): void {
|
|
86
|
-
this.clear();
|
|
127
|
+
override update(): void {
|
|
128
|
+
this.requestResolver.clear();
|
|
87
129
|
this.#appendDetails(this.issue.getBlockedByResponseDetails());
|
|
88
130
|
}
|
|
89
131
|
}
|