chrome-devtools-frontend 1.0.1738725 → 1.0.1742811
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-accessibility-and-semantic-html.md +1 -1
- package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +44 -7
- package/.agents/rules/ui-and-widgets/ui-lit-declarative-templates-and-directives.md +1 -1
- package/.agents/rules/ui-and-widgets/ui-view-output-and-callback-contracts.md +2 -2
- package/.agents/rules/ui-and-widgets/ui-widget-dom-and-listener-lifecycle.md +1 -1
- package/.agents/skills/code-review/SKILL.md +23 -6
- package/.agents/skills/devtools-verification/SKILL.md +2 -1
- package/.agents/skills/migrate-chromium-test/SKILL.md +1 -0
- package/.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md +27 -11
- package/.agents/skills/ui-eng-vision-orchestrator/SKILL.md +41 -23
- package/.agents/skills/ui-eng-vision-test-scaffolder/SKILL.md +12 -7
- package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +3 -0
- package/.agents/skills/ui-widgets/SKILL.md +22 -7
- package/.agents/skills/version-control/SKILL.md +10 -1
- package/.agents/skills/visual-regression-audit/SKILL.md +88 -0
- package/.gitallowed +2 -1
- package/.stylelintignore +1 -0
- package/.stylelintrc.json +5 -1
- package/AUTHORS +1 -0
- package/DIR_METADATA +2 -1
- package/PRESUBMIT_test.py +143 -0
- package/config/owner/INFRA_OWNERS +0 -1
- package/docs/contributing/infrastructure.md +2 -2
- package/docs/ui_engineering.md +14 -4
- package/eslint.config.mjs +119 -9
- package/front_end/application_tokens.css +0 -65
- package/front_end/core/host/AidaClient.ts +1 -1
- package/front_end/core/host/AidaClientTypes.ts +2 -0
- package/front_end/core/host/AidaErrors.ts +3 -3
- package/front_end/core/host/AidaGcaTranslation.ts +39 -0
- package/front_end/core/host/GcaClient.ts +32 -20
- package/front_end/core/host/GcaTypes.ts +4 -2
- package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
- package/front_end/core/i18n/DevToolsLocale.ts +0 -1
- package/front_end/core/sdk/DebuggerModel.ts +25 -13
- package/front_end/core/sdk/PreloadingModel.ts +2 -2
- package/front_end/core/sdk/RehydratingConnection.ts +59 -30
- package/front_end/core/sdk/SourceMap.ts +30 -3
- package/front_end/core/sdk/SourceMapRangeMappings.ts +57 -0
- package/front_end/core/sdk/StorageKeyManager.ts +0 -1
- package/front_end/core/sdk/Target.ts +6 -0
- package/front_end/core/sdk/TargetManager.ts +10 -4
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +5 -9
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +12 -2
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +159 -52
- package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +77 -25
- package/front_end/entrypoints/main/MainImpl.ts +32 -15
- package/front_end/models/ai_assistance/AiAgent2.ts +95 -46
- package/front_end/models/ai_assistance/AiConversation.ts +1 -1
- package/front_end/models/ai_assistance/agents/AiAgent.ts +9 -2
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +3 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +5 -4
- package/front_end/models/ai_assistance/performance/AICallTree.ts +7 -9
- package/front_end/models/ai_assistance/performance/AIQueries.ts +4 -8
- package/front_end/models/ai_assistance/skills/SkillRegistry.ts +11 -1
- package/front_end/models/ai_assistance/skills/lighthouse.md +1 -0
- package/front_end/models/ai_assistance/skills/network.md +3 -4
- package/front_end/models/ai_assistance/skills/sources.md +1 -2
- package/front_end/models/ai_assistance/skills/styling.md +3 -4
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +11 -3
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +84 -23
- package/front_end/models/ai_assistance/tools/ListSources.ts +41 -13
- package/front_end/models/badges/Badge.ts +0 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +1 -1
- package/front_end/models/breakpoints/BreakpointManager.ts +2 -4
- package/front_end/models/breakpoints/RecurringPauseDetector.ts +140 -0
- package/front_end/models/breakpoints/breakpoints.ts +2 -1
- package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +2 -2
- package/front_end/models/persistence/Automapping.ts +0 -1
- package/front_end/models/trace/Processor.ts +16 -7
- package/front_end/models/trace/README.md +17 -1
- package/front_end/models/trace/extras/ThirdParties.ts +4 -6
- package/front_end/models/trace/extras/TraceFilter.ts +16 -8
- package/front_end/models/trace/extras/TraceTree.ts +159 -125
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +0 -5
- package/front_end/models/trace/handlers/MetaHandler.ts +3 -0
- 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/handlers/types.ts +15 -0
- 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 +19 -14
- 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/trace/lantern/simulation/Simulator.ts +4 -1
- package/front_end/models/web_mcp/WebMCPModel.ts +19 -9
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +30 -3
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +2 -4
- package/front_end/panels/ai_assistance/components/chatMessage.css +1 -22
- package/front_end/panels/ai_assistance/components/chatView.css +0 -180
- package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -19
- package/front_end/panels/ai_assistance/components/optInChangeDialog.css +1 -1
- package/front_end/panels/ai_assistance/components/walkthroughView.css +0 -13
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +3 -2
- package/front_end/panels/animation/AnimationTimeline.ts +5 -3
- package/front_end/panels/animation/animationTimeline.css +10 -8
- package/front_end/panels/application/ApplicationPanelSidebar.ts +14 -11
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +66 -3
- package/front_end/panels/application/ReportingApiView.ts +0 -1
- package/front_end/panels/application/SubAppsView.ts +0 -1
- package/front_end/panels/application/WebMCPTreeElement.ts +3 -6
- package/front_end/panels/application/WebMCPView.ts +30 -0
- package/front_end/panels/application/components/ReportsGrid.ts +0 -1
- package/front_end/panels/application/components/backForwardCacheView.css +1 -8
- package/front_end/panels/application/components/permissionsPolicySection.css +2 -2
- package/front_end/panels/application/components/protocolHandlersView.css +46 -39
- package/front_end/panels/application/components/trustTokensView.css +0 -4
- package/front_end/panels/application/cookieItemsView.css +0 -7
- package/front_end/panels/application/indexedDBViews.css +0 -6
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +0 -2
- package/front_end/panels/application/preloading/components/PreloadingString.ts +0 -1
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +4 -5
- package/front_end/panels/application/preloading/components/preloadingGrid.css +0 -9
- package/front_end/panels/application/resourcesPanel.css +0 -48
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -9
- package/front_end/panels/application/serviceWorkersView.css +5 -4
- package/front_end/panels/application/storageView.css +0 -5
- package/front_end/panels/application/webMCPView.css +17 -0
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +15 -20
- package/front_end/panels/changes/changesView.css +0 -5
- package/front_end/panels/common/ExtensionServer.ts +80 -10
- package/front_end/panels/console/ConsolePanel.ts +92 -18
- package/front_end/panels/console/consoleContextSelector.css +1 -8
- package/front_end/panels/console/consoleInsightTeaser.css +10 -17
- package/front_end/panels/console/consolePinPane.css +3 -1
- package/front_end/panels/console/consoleView.css +14 -18
- package/front_end/panels/coverage/coverageListView.css +0 -4
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +0 -22
- package/front_end/panels/css_overview/cssOverviewStartView.css +0 -43
- package/front_end/panels/developer_resources/developerResourcesListView.css +0 -4
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +52 -45
- package/front_end/panels/elements/LayoutPane.ts +1 -3
- package/front_end/panels/elements/PropertiesWidget.ts +26 -8
- package/front_end/panels/elements/PropertyRenderer.ts +45 -21
- package/front_end/panels/elements/StandaloneStylesContainer.ts +6 -7
- package/front_end/panels/elements/StyleEditorWidget.ts +110 -63
- package/front_end/panels/elements/StylePropertiesSection.ts +18 -14
- package/front_end/panels/elements/StylePropertyTreeElement.ts +556 -527
- package/front_end/panels/elements/StylesContainer.ts +5 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +12 -15
- package/front_end/panels/elements/classesPaneWidget.css +3 -7
- package/front_end/panels/elements/components/CSSQuery.ts +6 -5
- package/front_end/panels/elements/components/CSSVariableValueView.ts +17 -4
- package/front_end/panels/elements/components/StylePropertyEditor.ts +178 -140
- package/front_end/panels/elements/components/cssQuery.css +1 -1
- package/front_end/panels/elements/components/stylePropertyEditor.css +60 -56
- package/front_end/panels/elements/layoutPane.css +2 -2
- package/front_end/panels/elements/metricsSidebarPane.css +7 -8
- package/front_end/panels/elements/platformFontsWidget.css +1 -1
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +1 -12
- package/front_end/panels/elements/stylesSidebarPane.css +3 -5
- package/front_end/panels/emulation/deviceModeView.css +1 -1
- package/front_end/panels/event_listeners/EventListenersView.ts +9 -2
- package/front_end/panels/event_listeners/eventListenersView.css +1 -1
- package/front_end/panels/explain/components/consoleInsight.css +1 -7
- 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 +13 -43
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
- package/front_end/panels/layer_viewer/paintProfiler.css +4 -3
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +1 -6
- package/front_end/panels/lighthouse/lighthousePanel.css +0 -9
- package/front_end/panels/lighthouse/lighthouseStartView.css +5 -16
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +0 -1
- package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +1 -1
- package/front_end/panels/media/playerListView.css +1 -2
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +4 -4
- package/front_end/panels/network/NetworkLogView.ts +603 -582
- package/front_end/panels/network/RequestCookiesView.ts +0 -1
- package/front_end/panels/network/RequestTimingView.ts +16 -2
- package/front_end/panels/network/networkConfigView.css +3 -4
- package/front_end/panels/network/networkLogView.css +363 -377
- package/front_end/panels/network/networkPanel.css +1 -7
- package/front_end/panels/network/networkTimingTable.css +12 -27
- package/front_end/panels/network/networkWaterfallColumn.css +1 -1
- package/front_end/panels/network/requestConditionsDrawer.css +0 -4
- package/front_end/panels/network/requestCookiesView.css +7 -1
- package/front_end/panels/network/requestPayloadTree.css +0 -4
- package/front_end/panels/profiler/HeapProfileView.ts +1 -3
- package/front_end/panels/profiler/HeapSnapshotView.ts +0 -7
- package/front_end/panels/profiler/profilesPanel.css +0 -11
- package/front_end/panels/recorder/ControlButton.ts +1 -1
- package/front_end/panels/recorder/RecorderPanel.ts +1 -1
- package/front_end/panels/recorder/RecordingView.ts +32 -11
- package/front_end/panels/recorder/StepView.ts +31 -5
- package/front_end/panels/recorder/TimelineSection.ts +22 -6
- package/front_end/panels/recorder/controlButton.css +2 -9
- package/front_end/panels/recorder/createRecordingView.css +1 -1
- package/front_end/panels/recorder/recorderPanel.css +0 -9
- package/front_end/panels/recorder/recordingListView.css +4 -4
- package/front_end/panels/recorder/recordingView.css +44 -52
- package/front_end/panels/recorder/replaySection.css +2 -0
- package/front_end/panels/recorder/stepEditor.css +4 -4
- package/front_end/panels/recorder/stepView.css +47 -21
- package/front_end/panels/recorder/timelineSection.css +63 -83
- package/front_end/panels/screencast/ScreencastApp.ts +0 -1
- package/front_end/panels/search/searchView.css +1 -1
- package/front_end/panels/security/mainView.css +1 -1
- package/front_end/panels/security/originView.css +2 -2
- package/front_end/panels/sensors/SensorsView.ts +273 -361
- package/front_end/panels/settings/BackendLinkingSettingsTab.ts +0 -1
- package/front_end/panels/settings/backendLinkingSettingsTab.css +7 -7
- package/front_end/panels/settings/components/syncSection.css +0 -1
- package/front_end/panels/settings/workspaceSettingsTab.css +0 -5
- package/front_end/panels/sources/CSSPlugin.ts +177 -98
- package/front_end/panels/sources/DebuggerPausedMessage.ts +100 -27
- package/front_end/panels/sources/NavigatorView.ts +926 -946
- package/front_end/panels/sources/SourcesPanel.ts +9 -2
- package/front_end/panels/sources/breakpointsView.css +6 -28
- package/front_end/panels/sources/components/HeadersView.css +2 -2
- package/front_end/panels/sources/debuggerPausedMessage.css +7 -0
- package/front_end/panels/sources/navigatorTree.css +7 -2
- package/front_end/panels/sources/sourcesNavigator.css +0 -9
- package/front_end/panels/sources/sourcesView.css +2 -1
- package/front_end/panels/sources/watchExpressionsSidebarPane.css +0 -10
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +3 -0
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +18 -5
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +0 -10
- package/front_end/panels/timeline/ModificationsManager.ts +0 -1
- package/front_end/panels/timeline/ThreadAppender.ts +2 -6
- package/front_end/panels/timeline/TimelineController.ts +30 -26
- package/front_end/panels/timeline/TimelineDetailsView.ts +10 -9
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -16
- package/front_end/panels/timeline/TimelineMiniMap.ts +132 -54
- package/front_end/panels/timeline/TimelinePanel.ts +2 -2
- package/front_end/panels/timeline/TimelineTreeView.ts +63 -50
- package/front_end/panels/timeline/TimelineUIUtils.ts +8 -10
- package/front_end/panels/timeline/components/DetailsView.ts +7 -14
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +0 -2
- package/front_end/panels/timeline/components/NetworkTrackWidget.ts +5 -1
- package/front_end/panels/timeline/components/fieldSettingsDialog.css +1 -6
- package/front_end/panels/timeline/components/insights/baseInsightComponent.css +0 -12
- package/front_end/panels/timeline/components/interactionBreakdown.css +1 -1
- package/front_end/panels/timeline/components/layoutShiftDetails.css +2 -9
- package/front_end/panels/timeline/components/liveMetricsView.css +0 -16
- package/front_end/panels/timeline/components/metricCard.css +1 -5
- package/front_end/panels/timeline/components/networkRequestDetails.css +3 -3
- package/front_end/panels/timeline/components/networkRequestTooltip.css +6 -4
- package/front_end/panels/timeline/components/networkTrackWidget.css +1 -1
- package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +1 -1
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -1
- package/front_end/panels/timeline/docs/profile_calls.md +7 -9
- package/front_end/panels/timeline/timelineDetailsView.css +1 -12
- package/front_end/panels/timeline/timelineFlamechartPopover.css +0 -4
- package/front_end/panels/timeline/timelineMiniMap.css +1 -4
- package/front_end/panels/timeline/timelinePanel.css +0 -4
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
- package/front_end/panels/timeline/timelineTreeView.css +0 -12
- package/front_end/panels/timeline/utils/EntryNodes.ts +1 -1
- package/front_end/panels/webauthn/webauthnPane.css +2 -8
- package/front_end/panels/whats_new/ReleaseNoteText.ts +1 -1
- package/front_end/third_party/axe-core/README.chromium +2 -3
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +907 -588
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +119 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +120 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts +16 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts +26 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +23 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +21 -14
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +158 -67
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js +28 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js +19 -11
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +17 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js +62 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts +29 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js +60 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +9 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js +24 -9
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js +16 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts +6 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js +37 -20
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js +10 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js +18 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js +24 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js +6 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js +30 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js +12 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js +40 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts +23 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js +37 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js +74 -16
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +34 -23
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts +10 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js +94 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js +29 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js +6 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +34 -15
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +11 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +10 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/decorators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/package.json +10 -8
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +118 -0
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +119 -0
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +25 -2
- package/front_end/third_party/puppeteer/package/src/api/HTTPResponse.ts +28 -0
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +65 -38
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +27 -7
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +43 -7
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +38 -8
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +27 -12
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +19 -6
- package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +72 -5
- package/front_end/third_party/puppeteer/package/src/bidi/NetworkEvents.ts +82 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +37 -13
- package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +26 -14
- package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +43 -22
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +21 -1
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +27 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -4
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +31 -6
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +18 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +48 -0
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +58 -5
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +94 -14
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +50 -28
- package/front_end/third_party/puppeteer/package/src/cdp/ResponseBodyStream.ts +106 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +38 -3
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +6 -5
- package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +17 -8
- package/front_end/third_party/puppeteer/package/src/common/util.ts +32 -15
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +21 -13
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/decorators.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +2 -0
- package/front_end/ui/components/adorners/adorner.css +1 -1
- package/front_end/ui/components/buttons/button.css +0 -28
- package/front_end/ui/components/buttons/textButton.css +1 -45
- package/front_end/ui/components/diff_view/diffView.css +0 -2
- package/front_end/ui/components/input/checkbox.css +3 -3
- package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
- package/front_end/ui/components/menus/Menu.ts +14 -0
- package/front_end/ui/components/menus/menu.css +2 -14
- package/front_end/ui/components/menus/menuItem.css +0 -4
- package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/survey_link/surveyLink.css +3 -3
- package/front_end/ui/components/switch/switch.css +3 -2
- package/front_end/ui/components/text_editor/theme.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +29 -0
- package/front_end/ui/components/tree_outline/treeOutline.css +1 -24
- package/front_end/ui/legacy/ContextMenu.ts +5 -5
- package/front_end/ui/legacy/SoftContextMenu.ts +24 -8
- package/front_end/ui/legacy/Toolbar.ts +1 -1
- package/front_end/ui/legacy/Treeoutline.ts +31 -78
- package/front_end/ui/legacy/UIUtils.ts +9 -17
- package/front_end/ui/legacy/checkboxTextLabel.css +2 -44
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +39 -27
- package/front_end/ui/legacy/components/color_picker/spectrum.css +2 -10
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +2 -6
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +34 -26
- package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/swatchPopover.css +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +83 -21
- package/front_end/ui/legacy/components/object_ui/objectPopover.css +0 -4
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +41 -14
- package/front_end/ui/legacy/components/perf_ui/chartViewport.css +1 -9
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +2 -1
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +0 -5
- package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +6 -3
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +95 -1
- 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/inspectorCommon.css +7 -81
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
- package/front_end/ui/legacy/listWidget.css +2 -2
- package/front_end/ui/legacy/progressIndicator.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +6 -10
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
- package/front_end/ui/visual_logging/LoggingDriver.ts +4 -0
- package/front_end/ui/visual_logging/visual_logging.ts +1 -1
- package/inspector_overlay/common.ts +0 -3
- package/inspector_overlay/main.ts +1 -3
- package/inspector_overlay/tool_highlight.css +0 -7
- package/inspector_overlay/tool_highlight.ts +0 -1
- package/inspector_overlay/tool_source_order.css +0 -4
- package/package.json +1 -1
- package/front_end/generated/SupportedCSSProperties.ts +0 -9689
|
@@ -4,73 +4,77 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
@scope to (devtools-widget > *) {
|
|
8
|
+
.container {
|
|
9
|
+
min-width: var(--sys-size-24);
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
.row {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
12
|
+
.row {
|
|
13
|
+
padding: 0;
|
|
14
|
+
color: var(--sys-color-on-surface);
|
|
15
|
+
padding-bottom: var(--sys-size-8);
|
|
16
|
+
}
|
|
16
17
|
|
|
17
|
-
.row:last-child {
|
|
18
|
-
|
|
19
|
-
}
|
|
18
|
+
.row:last-child {
|
|
19
|
+
padding-bottom: 0;
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
.property {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
22
|
+
.property {
|
|
23
|
+
padding-bottom: var(--sys-size-3);
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
25
26
|
|
|
26
|
-
.property-name {
|
|
27
|
-
|
|
28
|
-
}
|
|
27
|
+
.property-name {
|
|
28
|
+
color: var(--sys-color-token-property-special);
|
|
29
|
+
}
|
|
29
30
|
|
|
30
|
-
.property-value {
|
|
31
|
-
|
|
32
|
-
}
|
|
31
|
+
.property-value {
|
|
32
|
+
color: var(--sys-color-on-surface);
|
|
33
|
+
}
|
|
33
34
|
|
|
34
|
-
.property-value.not-authored {
|
|
35
|
-
|
|
36
|
-
}
|
|
35
|
+
.property-value.not-authored {
|
|
36
|
+
color: var(--sys-color-state-disabled);
|
|
37
|
+
}
|
|
37
38
|
|
|
38
|
-
.buttons {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
39
|
+
.buttons {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: row;
|
|
42
|
+
}
|
|
42
43
|
|
|
43
|
-
.buttons > :first-child {
|
|
44
|
-
|
|
45
|
-
}
|
|
44
|
+
.buttons > :first-child {
|
|
45
|
+
border-radius: var(--sys-shape-corner-extra-small) 0 0 var(--sys-shape-corner-extra-small);
|
|
46
|
+
}
|
|
46
47
|
|
|
47
|
-
.buttons > :last-child {
|
|
48
|
-
|
|
49
|
-
}
|
|
48
|
+
.buttons > :last-child {
|
|
49
|
+
border-radius: 0 var(--sys-shape-corner-extra-small) var(--sys-shape-corner-extra-small) 0;
|
|
50
|
+
}
|
|
50
51
|
|
|
51
|
-
.button {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
52
|
+
.button {
|
|
53
|
+
border: var(--sys-size-1) solid var(--sys-color-neutral-outline);
|
|
54
|
+
background-color: var(--sys-color-cdt-base-container);
|
|
55
|
+
width: var(--sys-size-11);
|
|
56
|
+
height: var(--sys-size-11);
|
|
57
|
+
min-width: var(--sys-size-11);
|
|
58
|
+
min-height: var(--sys-size-11);
|
|
59
|
+
padding: 0;
|
|
60
|
+
margin: 0;
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
align-items: center;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
65
66
|
|
|
66
|
-
.button devtools-icon {
|
|
67
|
-
color: var(--icon-default);
|
|
68
|
-
}
|
|
69
67
|
|
|
70
|
-
.button
|
|
71
|
-
|
|
72
|
-
}
|
|
68
|
+
.button devtools-icon {
|
|
69
|
+
color: var(--icon-default);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.button:hover devtools-icon {
|
|
73
|
+
color: var(--icon-default-hover);
|
|
74
|
+
}
|
|
73
75
|
|
|
74
|
-
.button.selected devtools-icon {
|
|
75
|
-
|
|
76
|
+
.button.selected devtools-icon {
|
|
77
|
+
color: var(--icon-toggled);
|
|
78
|
+
}
|
|
76
79
|
}
|
|
80
|
+
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
:host {
|
|
29
|
-
--metrics-height:
|
|
29
|
+
--metrics-height: var(--sys-size-25);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.metrics.collapsed {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
background-color: var(--sys-color-cdt-base-container);
|
|
54
54
|
display: inline-block;
|
|
55
55
|
text-align: center;
|
|
56
|
-
padding:
|
|
57
|
-
margin:
|
|
56
|
+
padding: var(--sys-size-2) var(--sys-size-4);
|
|
57
|
+
margin: var(--sys-size-2);
|
|
58
58
|
position: relative;
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
display: inline-block;
|
|
65
65
|
text-align: center;
|
|
66
66
|
vertical-align: middle;
|
|
67
|
-
padding:
|
|
68
|
-
margin:
|
|
67
|
+
padding: var(--sys-size-2) var(--sys-size-4);
|
|
68
|
+
margin: var(--sys-size-2);
|
|
69
69
|
position: relative;
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -86,10 +86,9 @@
|
|
|
86
86
|
display: inline-block;
|
|
87
87
|
text-align: center;
|
|
88
88
|
vertical-align: middle;
|
|
89
|
-
padding:
|
|
90
|
-
margin:
|
|
89
|
+
padding: var(--sys-size-2) var(--sys-size-4);
|
|
90
|
+
margin: var(--sys-size-2);
|
|
91
91
|
position: relative;
|
|
92
|
-
min-width: 120px;
|
|
93
92
|
}
|
|
94
93
|
|
|
95
94
|
.metrics .content {
|
|
@@ -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 */
|
|
@@ -297,15 +291,10 @@ devtools-icon.icon-link {
|
|
|
297
291
|
vertical-align: bottom;
|
|
298
292
|
}
|
|
299
293
|
|
|
300
|
-
devtools-css-angle
|
|
301
|
-
devtools-css-length {
|
|
294
|
+
devtools-css-angle {
|
|
302
295
|
display: inline-block;
|
|
303
296
|
}
|
|
304
297
|
|
|
305
|
-
devtools-css-length {
|
|
306
|
-
margin-left: var(--sys-size-1);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
298
|
devtools-icon.open-in-animations-panel {
|
|
310
299
|
position: relative;
|
|
311
300
|
transform: scale(0.7);
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.selector,
|
|
71
|
-
.try-rule-selector-element,
|
|
72
71
|
.ancestor-rule-list,
|
|
73
72
|
.ancestor-closing-braces {
|
|
74
73
|
color: var(--app-color-element-sidebar-subtitle);
|
|
@@ -246,13 +245,13 @@
|
|
|
246
245
|
|
|
247
246
|
.sidebar-separator {
|
|
248
247
|
background-color: var(--sys-color-surface2);
|
|
249
|
-
padding: 0
|
|
248
|
+
padding: 0 var(--sys-size-3);
|
|
250
249
|
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
251
250
|
color: var(--sys-color-on-surface-subtle);
|
|
252
251
|
white-space: nowrap;
|
|
253
252
|
text-overflow: ellipsis;
|
|
254
253
|
overflow: hidden;
|
|
255
|
-
line-height: var(--sys-
|
|
254
|
+
line-height: var(--sys-typescale-body2-line-height);
|
|
256
255
|
|
|
257
256
|
&.layer-separator {
|
|
258
257
|
display: flex;
|
|
@@ -267,12 +266,11 @@
|
|
|
267
266
|
.sidebar-pane-section-toolbar {
|
|
268
267
|
position: absolute;
|
|
269
268
|
right: 0;
|
|
270
|
-
bottom:
|
|
269
|
+
bottom: var(--sys-size-2);
|
|
271
270
|
z-index: 0;
|
|
272
271
|
|
|
273
272
|
&.new-rule-toolbar {
|
|
274
273
|
visibility: hidden;
|
|
275
|
-
margin-bottom: 5px;
|
|
276
274
|
|
|
277
275
|
--toolbar-height: var(--sys-size-8);
|
|
278
276
|
}
|
|
@@ -342,7 +342,7 @@ devtools-toolbar.device-mode-toolbar-options {
|
|
|
342
342
|
|
|
343
343
|
.device-mode-ruler-left .device-mode-ruler-marker {
|
|
344
344
|
height: 0;
|
|
345
|
-
width:
|
|
345
|
+
width: var(--sys-size-3);
|
|
346
346
|
right: 0;
|
|
347
347
|
border-bottom: var(--sys-size-1) solid var(--sys-color-token-subtle);
|
|
348
348
|
margin-bottom: calc(-1 * var(--sys-size-1));
|
|
@@ -66,6 +66,7 @@ interface ViewInput {
|
|
|
66
66
|
reveal(object: SDK.RemoteObject.RemoteObject): void;
|
|
67
67
|
listeners: Map<string, ListenerEntry[]>;
|
|
68
68
|
filter?: {showFramework: boolean, showPassive: boolean, showBlocking: boolean};
|
|
69
|
+
jslog?: string;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
type View = (input: ViewInput, output: undefined, target: HTMLElement) => void;
|
|
@@ -203,10 +204,11 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
203
204
|
</ul>
|
|
204
205
|
`}></devtools-tree>`}`,
|
|
205
206
|
// clang-format on
|
|
206
|
-
target);
|
|
207
|
+
target, {container: {attributes: {jslog: input.jslog}}});
|
|
207
208
|
};
|
|
208
209
|
|
|
209
210
|
export class EventListenersView extends UI.Widget.VBox {
|
|
211
|
+
protected readonly jslog?: string;
|
|
210
212
|
#objects: Array<SDK.RemoteObject.RemoteObject|null> = [];
|
|
211
213
|
#filter: {showFramework: boolean, showPassive: boolean, showBlocking: boolean}|undefined;
|
|
212
214
|
#view: View;
|
|
@@ -224,9 +226,13 @@ export class EventListenersView extends UI.Widget.VBox {
|
|
|
224
226
|
if (this.#objects === val) {
|
|
225
227
|
return;
|
|
226
228
|
}
|
|
229
|
+
this.setObjects(val);
|
|
230
|
+
this.requestUpdate();
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
protected setObjects(val: Array<SDK.RemoteObject.RemoteObject|null>): void {
|
|
227
234
|
this.#listeners = undefined;
|
|
228
235
|
this.#objects = val;
|
|
229
|
-
this.requestUpdate();
|
|
230
236
|
}
|
|
231
237
|
get filter(): {showFramework: boolean, showPassive: boolean, showBlocking: boolean}|undefined {
|
|
232
238
|
return this.#filter;
|
|
@@ -252,6 +258,7 @@ export class EventListenersView extends UI.Widget.VBox {
|
|
|
252
258
|
const input: ViewInput = {
|
|
253
259
|
listeners: listeners ?? new Map(),
|
|
254
260
|
filter: this.#filter,
|
|
261
|
+
jslog: this.jslog,
|
|
255
262
|
togglePassiveListener: (listener: SDK.DOMDebuggerModel.EventListener) => {
|
|
256
263
|
void listener.togglePassive().then(() => {
|
|
257
264
|
this.#listeners = undefined;
|
|
@@ -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,7 +374,7 @@
|
|
|
380
374
|
}
|
|
381
375
|
|
|
382
376
|
@scope (.insight-sources) {
|
|
383
|
-
:
|
|
377
|
+
:scope {
|
|
384
378
|
padding: 0;
|
|
385
379
|
margin: 0;
|
|
386
380
|
box-sizing: border-box;
|
|
@@ -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
|
}
|