chrome-devtools-frontend 1.0.1690116 → 1.0.1695017
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/skills/devtools-model-management/SKILL.md +3 -3
- package/.agents/skills/foundation-test-migration/SKILL.md +2 -2
- package/.agents/skills/merging-devtools-module/SKILL.md +5 -5
- package/AUTHORS +3 -0
- package/config/typescript/tsconfig.base.json +1 -0
- package/docs/get_the_code.md +4 -9
- package/front_end/Images/src/comment-mode-cursor.svg +23 -0
- package/front_end/Tests.js +1 -1
- package/front_end/application_tokens.css +5 -0
- package/front_end/core/common/ColorConverter.ts +3 -3
- package/front_end/core/host/UserMetrics.ts +27 -0
- package/front_end/core/protocol_client/DevToolsCDPConnection.ts +0 -46
- package/front_end/core/protocol_client/InspectorBackend.ts +6 -6
- package/front_end/core/root/Runtime.ts +1 -0
- package/front_end/core/sdk/CSSLocation.ts +32 -0
- package/front_end/core/sdk/CSSModel.ts +2 -22
- package/front_end/core/sdk/CSSQuery.ts +2 -1
- package/front_end/core/sdk/CSSRule.ts +29 -0
- package/front_end/core/sdk/DebuggerModel.ts +5 -1
- package/front_end/core/sdk/NetworkManager.ts +2 -0
- package/front_end/core/sdk/NetworkRequest.ts +63 -4
- package/front_end/core/sdk/NetworkRequestAccess.ts +191 -0
- package/front_end/core/sdk/ResourceTreeModel.ts +72 -23
- package/front_end/core/sdk/SecurityOrigin.ts +97 -12
- package/front_end/core/sdk/Target.ts +18 -0
- package/front_end/core/sdk/sdk.ts +4 -0
- package/front_end/entrypoints/main/MainImpl.ts +8 -1
- package/front_end/foundation/Universe.ts +14 -11
- package/front_end/generated/Deprecation.ts +8 -0
- package/front_end/generated/InspectorBackendCommands.ts +9 -8
- package/front_end/generated/SupportedCSSProperties.ts +14 -4
- package/front_end/generated/protocol.ts +24 -0
- package/front_end/models/ai_assistance/AiAgent2.ts +46 -10
- package/front_end/models/ai_assistance/AiConversation.ts +35 -24
- package/front_end/models/ai_assistance/README.md +5 -3
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +1 -0
- package/front_end/models/ai_assistance/agents/AiAgent.ts +28 -34
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +13 -17
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +5 -3
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +16 -10
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +3 -4
- package/front_end/models/ai_assistance/ai_assistance.ts +0 -2
- package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +11 -2
- package/front_end/models/ai_assistance/contexts/DOMNodeContext.ts +17 -5
- package/front_end/models/ai_assistance/contexts/FileContext.ts +13 -6
- package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +52 -25
- package/front_end/models/ai_assistance/contexts/RequestContext.ts +18 -34
- package/front_end/models/ai_assistance/contexts/StorageContext.ts +14 -3
- package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +2 -5
- package/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts +135 -58
- package/front_end/models/ai_assistance/tools/CookieUtils.ts +25 -35
- package/front_end/models/ai_assistance/tools/DOMStorageUtils.ts +6 -3
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +9 -2
- package/front_end/models/ai_assistance/tools/GetCookieValues.ts +1 -1
- package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +3 -2
- package/front_end/models/ai_assistance/tools/GetFunctionCode.ts +3 -5
- package/front_end/models/ai_assistance/tools/GetInsightDetails.ts +1 -1
- package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +8 -11
- package/front_end/models/ai_assistance/tools/GetResourceContent.ts +2 -4
- package/front_end/models/ai_assistance/tools/GetSourceContent.ts +6 -13
- package/front_end/models/ai_assistance/tools/GetStorageBreakdown.ts +1 -1
- package/front_end/models/ai_assistance/tools/GetStorageValues.ts +9 -9
- package/front_end/models/ai_assistance/tools/GetStyles.ts +3 -2
- package/front_end/models/ai_assistance/tools/ListCookies.ts +1 -1
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +6 -14
- package/front_end/models/ai_assistance/tools/ListPageOrigins.ts +10 -15
- package/front_end/models/ai_assistance/tools/ListSources.ts +5 -7
- package/front_end/models/ai_assistance/tools/ListStorageKeys.ts +9 -9
- package/front_end/models/ai_assistance/tools/README.md +4 -2
- package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +3 -2
- package/front_end/models/ai_assistance/tools/Tool.ts +27 -3
- package/front_end/models/comment_manager/CD4ABridge.ts +128 -0
- package/front_end/models/comment_manager/CommentManager.ts +50 -8
- package/front_end/models/comment_manager/comment_manager.ts +2 -0
- package/front_end/models/emulation/DeviceModeModel.ts +37 -47
- package/front_end/models/javascript_metadata/NativeFunctions.ts +9 -1
- package/front_end/models/live-metrics/web-vitals-injected/README.md +1 -1
- package/front_end/models/source_map_scopes/NamesResolver.ts +9 -7
- package/front_end/models/trace/ModelImpl.ts +2 -0
- package/front_end/models/trace/Processor.ts +6 -4
- package/front_end/models/trace/handlers/LayerTreeHandler.ts +3 -3
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +1 -1
- package/front_end/models/trace/helpers/SyntheticEvents.ts +23 -1
- package/front_end/models/trace/types/Configuration.ts +7 -0
- package/front_end/models/trace/types/TraceEvents.ts +20 -4
- package/front_end/panels/accessibility/ARIAAttributesView.ts +3 -0
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingListView.ts +177 -0
- package/front_end/panels/accessibility/accessibility.ts +2 -0
- package/front_end/panels/accessibility/accessibilityAnnouncementRecordingListView.css +33 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +25 -15
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +6 -35
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +4 -3
- package/front_end/panels/ai_assistance/components/chatMessage.css +3 -1
- package/front_end/panels/animation/AnimationTimeline.ts +1 -0
- package/front_end/panels/application/CrashReportContextView.ts +0 -1
- package/front_end/panels/application/FrameDetailsView.ts +5 -4
- package/front_end/panels/application/IndexedDBViews.ts +4 -4
- package/front_end/panels/application/components/BackForwardCacheView.ts +1 -1
- package/front_end/panels/application/components/EndpointsGrid.ts +2 -1
- package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -1
- package/front_end/panels/application/components/ServiceWorkerRouterView.ts +1 -1
- package/front_end/panels/application/components/TrustTokensView.ts +1 -1
- package/front_end/panels/application/indexedDBViews.css +0 -14
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -1
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -1
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +1 -1
- package/front_end/panels/common/CPUThrottlingOption.ts +12 -6
- package/front_end/panels/common/DOMLinkifier.ts +1 -1
- package/front_end/panels/common/ExtensionView.ts +2 -1
- package/front_end/panels/console/ConsoleContextSelector.ts +12 -5
- package/front_end/panels/console/ConsolePinPane.ts +4 -2
- package/front_end/panels/console/ConsoleSidebar.ts +6 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +12 -8
- package/front_end/panels/console/PromptBuilder.ts +1 -1
- package/front_end/panels/coverage/CoverageListView.ts +1 -1
- package/front_end/panels/coverage/CoverageModel.ts +6 -4
- package/front_end/panels/coverage/coverageView.css +8 -8
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +13 -14
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewStartView.ts +3 -3
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
- package/front_end/panels/developer_resources/developerResourcesView.css +3 -3
- package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +43 -15
- package/front_end/panels/elements/ElementsTreeOutline.ts +185 -109
- package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
- package/front_end/panels/elements/PropertyNameCategories.ts +1 -1
- package/front_end/panels/elements/ShortcutTreeElement.ts +6 -1
- package/front_end/panels/elements/StandaloneStylesContainer.ts +1 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +2 -35
- package/front_end/panels/elements/StylesSidebarPane.ts +3 -2
- package/front_end/panels/elements/components/CSSPropertyIconResolver.ts +5 -4
- package/front_end/panels/elements/components/StylePropertyEditor.ts +161 -148
- package/front_end/panels/elements/components/computedStyleProperty.css +5 -5
- package/front_end/panels/elements/components/computedStyleTrace.css +5 -5
- package/front_end/panels/elements/components/cssHintDetailsView.css +1 -1
- package/front_end/panels/elements/components/cssPropertyDocsView.css +3 -3
- package/front_end/panels/elements/components/cssVariableValueView.css +4 -4
- package/front_end/panels/elements/components/elementsBreadcrumbs.css +3 -3
- package/front_end/panels/elements/components/elementsTreeExpandButton.css +5 -5
- package/front_end/panels/elements/components/queryContainer.css +2 -2
- package/front_end/panels/elements/elementsTreeOutline.css +20 -4
- package/front_end/panels/emulation/MediaQueryInspector.ts +2 -1
- package/front_end/panels/event_listeners/eventListenersView.css +1 -1
- package/front_end/panels/issues/AffectedElementsView.ts +3 -0
- package/front_end/panels/issues/AffectedLazyLoadImagesView.ts +1 -1
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +12 -10
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +1 -0
- package/front_end/panels/layer_viewer/Layers3DView.ts +13 -11
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspectorUtils.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplayUtils.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterSettings.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +11 -11
- package/front_end/panels/linear_memory_inspector/components/linearMemoryInspector.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryNavigator.css +1 -1
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +5 -5
- package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +6 -6
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +6 -6
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +2 -2
- package/front_end/panels/media/PlayerPropertiesView.ts +1 -1
- package/front_end/panels/media/TickingFlameChart.ts +3 -2
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +2 -1
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +1 -1
- package/front_end/panels/mobile_throttling/ThrottlingPresets.ts +2 -1
- package/front_end/panels/network/NetworkDataGridNode.ts +11 -9
- package/front_end/panels/network/NetworkLogView.ts +4 -1
- package/front_end/panels/network/NetworkLogViewColumns.ts +5 -2
- package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
- package/front_end/panels/network/RequestHeadersView.ts +47 -11
- package/front_end/panels/network/RequestPayloadView.ts +1 -1
- package/front_end/panels/network/RequestResponseView.ts +1 -1
- package/front_end/panels/network/RequestTimingView.ts +1 -1
- package/front_end/panels/network/ShowMoreDetailsWidget.ts +1 -1
- package/front_end/panels/network/components/RequestHeadersView.css +12 -0
- package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +3 -3
- package/front_end/panels/profiler/HeapProfileView.ts +1 -1
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +1 -1
- package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
- package/front_end/panels/recorder/RecordingListView.ts +0 -6
- package/front_end/panels/recorder/RecordingView.ts +0 -6
- package/front_end/panels/recorder/controlButton.css +10 -10
- package/front_end/panels/recorder/startView.css +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +4 -2
- package/front_end/panels/search/SearchView.ts +1 -1
- package/front_end/panels/security/SecurityPanel.ts +46 -35
- package/front_end/panels/sources/BreakpointEditDialog.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +1 -1
- package/front_end/panels/sources/DebuggerPausedMessage.ts +8 -6
- package/front_end/panels/sources/ProfilePlugin.ts +2 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +1 -1
- package/front_end/panels/timeline/IsolateSelector.ts +1 -1
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/NetworkTrackAppender.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartView.ts +0 -32
- package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +7 -3
- package/front_end/panels/timeline/TimelinePanel.ts +3 -20
- package/front_end/panels/timeline/TimelineTreeView.ts +1 -1
- package/front_end/panels/timeline/TimelineUIUtils.ts +4 -4
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +4 -3
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +25 -24
- package/front_end/panels/timeline/components/RelatedInsightChips.ts +4 -3
- package/front_end/panels/timeline/components/Sidebar.ts +1 -1
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +4 -3
- package/front_end/panels/timeline/components/cwvMetrics.css +2 -2
- package/front_end/panels/timeline/components/insights/checklist.css +1 -1
- package/front_end/panels/timeline/components/insights/table.css +3 -3
- package/front_end/panels/timeline/overlays/components/entriesLinkOverlay.css +4 -4
- package/front_end/panels/timeline/overlays/components/entryLabelOverlay.css +4 -4
- package/front_end/panels/timeline/overlays/components/timeRangeOverlay.css +2 -2
- package/front_end/panels/timeline/overlays/components/timespanBreakdownOverlay.css +4 -4
- package/front_end/panels/timeline/timelinePanel.css +0 -74
- package/front_end/panels/timeline/utils/Helpers.ts +1 -1
- package/front_end/panels/timeline/utils/ImageCache.ts +5 -3
- package/front_end/panels/web_audio/WebAudioView.ts +3 -3
- package/front_end/panels/web_audio/webAudio.css +5 -5
- package/front_end/panels/webauthn/WebauthnPane.ts +5 -11
- package/front_end/third_party/acorn/acorn.ts +3 -3
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/chromium/ahem/ahem.d.ts +1 -0
- package/front_end/third_party/csp_evaluator/package/csp.ts +4 -4
- package/front_end/third_party/csp_evaluator/package/parser.ts +3 -1
- package/front_end/third_party/csp_evaluator/package/tsconfig.json +1 -0
- package/front_end/third_party/csp_evaluator/package/utils.ts +1 -1
- package/front_end/third_party/diff/DiffWrapper.ts +1 -8
- package/front_end/third_party/diff/diff_match_patch.d.ts +10 -0
- package/front_end/third_party/json5/json5.ts +2 -2
- 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 +183 -4
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +708 -122
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +85 -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 +84 -11
- 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/ScreenRecording.d.ts +75 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/ScreenRecording.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/ScreenRecording.js +102 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/ScreenRecording.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/api.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/api.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/api.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/api.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +6 -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 +7 -0
- 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/ScreenRecording.d.ts +31 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/ScreenRecording.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/ScreenRecording.js +138 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/ScreenRecording.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/bidi.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/bidi.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/bidi.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/bidi.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts +6 -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 +23 -0
- 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/cdp/Page.d.ts +6 -1
- 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 +7 -0
- 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/ScreenRecording.d.ts +31 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ScreenRecording.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ScreenRecording.js +131 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ScreenRecording.js.map +1 -0
- 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/common/BrowserConnector.js +7 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.d.ts +4 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConnectOptions.d.ts +42 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Device.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Device.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Device.js +265 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Device.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts +4 -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 +24 -3
- 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/NodeWebSocketTransport.d.ts +23 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.js +49 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.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/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +183 -4
- package/front_end/third_party/puppeteer/package/package.json +4 -4
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +143 -11
- package/front_end/third_party/puppeteer/package/src/api/ScreenRecording.ts +145 -0
- package/front_end/third_party/puppeteer/package/src/api/api.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +11 -0
- package/front_end/third_party/puppeteer/package/src/bidi/ScreenRecording.ts +106 -0
- package/front_end/third_party/puppeteer/package/src/bidi/bidi.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +41 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +11 -0
- package/front_end/third_party/puppeteer/package/src/cdp/ScreenRecording.ts +101 -0
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +17 -9
- package/front_end/third_party/puppeteer/package/src/common/BrowserWebSocketTransport.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +46 -0
- package/front_end/third_party/puppeteer/package/src/common/Device.ts +287 -1
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +30 -1
- package/front_end/third_party/puppeteer/package/src/node/NodeWebSocketTransport.ts +73 -2
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +3 -0
- package/front_end/tsconfig.json +1 -2
- package/front_end/ui/comments/CommentAnchorResolver.ts +8 -3
- package/front_end/ui/comments/CommentOverlayManager.ts +53 -12
- package/front_end/ui/comments/CommentsOverlayWidget.ts +3 -3
- package/front_end/ui/comments/CommentsStatusBarPill.ts +96 -0
- package/front_end/ui/comments/comments-meta.ts +21 -0
- package/front_end/ui/comments/comments.ts +2 -0
- package/front_end/ui/comments/commentsOverlay.css +22 -3
- package/front_end/ui/components/buttons/floatingButton.css +25 -0
- package/front_end/ui/components/markdown_view/MarkdownView.ts +31 -1
- package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +1 -1
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +45 -25
- package/front_end/ui/kit/icons/Icon.ts +0 -1
- package/front_end/ui/kit/link/Link.ts +8 -1
- package/front_end/ui/legacy/ContextMenu.ts +2 -2
- package/front_end/ui/legacy/DropTarget.ts +6 -1
- package/front_end/ui/legacy/EmptyWidget.ts +1 -1
- package/front_end/ui/legacy/GlassPane.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +17 -1
- package/front_end/ui/legacy/ShortcutRegistry.ts +2 -2
- package/front_end/ui/legacy/SplitWidget.ts +18 -3
- package/front_end/ui/legacy/StackedPane.ts +1 -1
- package/front_end/ui/legacy/StatusBar.ts +78 -0
- package/front_end/ui/legacy/TargetCrashedScreen.ts +1 -1
- package/front_end/ui/legacy/TextPrompt.ts +2 -1
- package/front_end/ui/legacy/Toolbar.ts +5 -1
- package/front_end/ui/legacy/Treeoutline.ts +91 -48
- package/front_end/ui/legacy/UIUtils.ts +8 -4
- package/front_end/ui/legacy/ViewManager.ts +1 -1
- package/front_end/ui/legacy/ViewRegistration.ts +1 -0
- package/front_end/ui/legacy/Widget.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +3 -2
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +23 -23
- package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +48 -44
- package/front_end/ui/legacy/components/inline_editor/CSSAngleUtils.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/PositionAreaEditor.docs.ts +83 -0
- package/front_end/ui/legacy/components/inline_editor/PositionAreaEditor.ts +600 -0
- package/front_end/ui/legacy/components/inline_editor/animationNameSwatch.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/colorMixSwatch.css +4 -4
- package/front_end/ui/legacy/components/inline_editor/cssAngleSwatch.css +3 -3
- package/front_end/ui/legacy/components/inline_editor/inline_editor.ts +2 -0
- package/front_end/ui/legacy/components/inline_editor/linkSwatch.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/positionAreaEditor.css +154 -0
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +224 -127
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +10 -7
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +25 -106
- package/front_end/ui/legacy/components/object_ui/customPreviewComponent.css +7 -3
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +0 -66
- package/front_end/ui/legacy/components/perf_ui/perf_ui.ts +0 -2
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +7 -5
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +8 -5
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
- package/front_end/ui/legacy/inspectorCommon.css +41 -6
- package/front_end/ui/legacy/legacy.ts +2 -0
- package/front_end/ui/legacy/statusBar.css +18 -0
- package/front_end/ui/visual_logging/Debugging.ts +2 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +3 -1
- package/front_end/ui/visual_logging/LoggingDriver.ts +3 -3
- package/front_end/ui/visual_logging/LoggingEvents.ts +5 -5
- package/front_end/ui/visual_logging/LoggingState.ts +1 -1
- package/front_end/ui/visual_logging/visual_logging.ts +67 -56
- package/inspector_overlay/main.ts +8 -8
- package/mcp/mcp.ts +5 -0
- package/package.json +2 -8
- package/front_end/Images/generate-css-vars.js +0 -52
- package/front_end/Images/rollup.config.mjs +0 -36
- package/front_end/models/ai_assistance/AiOrigins.ts +0 -107
- package/front_end/models/live-metrics/web-vitals-injected/rollup.config.mjs +0 -20
- package/front_end/panels/recorder/injected/rollup.config.mjs +0 -20
- package/front_end/panels/timeline/EasterEgg.d.ts +0 -6
- package/front_end/panels/timeline/easter-egg-tsconfig.json +0 -8
- package/front_end/panels/timeline/enable-easter-egg.js +0 -20
- package/front_end/third_party/acorn/acorn-tsconfig.json +0 -12
- package/front_end/third_party/acorn/estree-tsconfig.json +0 -8
- package/front_end/third_party/chromium/client-variations/client-variations-tsconfig.json +0 -8
- package/front_end/third_party/codemirror/codemirror-legacy-types-tsconfig.json +0 -8
- package/front_end/third_party/codemirror/codemirror-tsconfig.json +0 -15
- package/front_end/third_party/codemirror.next/bundle-tsconfig.json +0 -24
- package/front_end/third_party/intl-messageformat/intl-messageformat-tsconfig.json +0 -16
- package/front_end/third_party/json5/json5-tsconfig.json +0 -8
- package/front_end/third_party/legacy-javascript/legacy-javascript-tsconfig.json +0 -8
- package/front_end/third_party/lighthouse/lighthouse-tsconfig.json +0 -11
- package/front_end/third_party/lighthouse/report/bundle-tsconfig.json +0 -8
- package/front_end/third_party/lit/lit-tsconfig.json +0 -15
- package/front_end/third_party/marked/marked-tsconfig.json +0 -8
- package/front_end/third_party/puppeteer-replay/puppeteer-replay-tsconfig.json +0 -8
- package/front_end/third_party/third-party-web/third-party-web-tsconfig.json +0 -8
- package/front_end/third_party/wasmparser/wasmparser-tsconfig.json +0 -9
- package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +0 -47
- package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +0 -606
- package/inspector_overlay/loadCSS.rollup.js +0 -29
|
@@ -66,10 +66,14 @@ function makeFixedPresetThrottlingOption(rate: CPUThrottlingRates): CPUThrottlin
|
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export const NoThrottlingOption =
|
|
70
|
-
|
|
71
|
-
export const
|
|
72
|
-
|
|
69
|
+
export const NoThrottlingOption: CPUThrottlingOption =
|
|
70
|
+
makeFixedPresetThrottlingOption(CPUThrottlingRates.NO_THROTTLING);
|
|
71
|
+
export const MidTierThrottlingOption: CPUThrottlingOption =
|
|
72
|
+
makeFixedPresetThrottlingOption(CPUThrottlingRates.MID_TIER_MOBILE);
|
|
73
|
+
export const LowTierThrottlingOption: CPUThrottlingOption =
|
|
74
|
+
makeFixedPresetThrottlingOption(CPUThrottlingRates.LOW_TIER_MOBILE);
|
|
75
|
+
export const ExtraSlowThrottlingOption: CPUThrottlingOption =
|
|
76
|
+
makeFixedPresetThrottlingOption(CPUThrottlingRates.EXTRA_SLOW);
|
|
73
77
|
|
|
74
78
|
function makeCalibratedThrottlingOption(calibratedDeviceType: CalibratedDeviceType): CPUThrottlingOption {
|
|
75
79
|
const getSettingValue = (): number|CalibrationError|null => {
|
|
@@ -109,8 +113,10 @@ function makeCalibratedThrottlingOption(calibratedDeviceType: CalibratedDeviceTy
|
|
|
109
113
|
};
|
|
110
114
|
}
|
|
111
115
|
|
|
112
|
-
export const CalibratedLowTierMobileThrottlingOption =
|
|
113
|
-
|
|
116
|
+
export const CalibratedLowTierMobileThrottlingOption: CPUThrottlingOption =
|
|
117
|
+
makeCalibratedThrottlingOption('low-tier-mobile');
|
|
118
|
+
export const CalibratedMidTierMobileThrottlingOption: CPUThrottlingOption =
|
|
119
|
+
makeCalibratedThrottlingOption('mid-tier-mobile');
|
|
114
120
|
|
|
115
121
|
export function calibrationErrorToString(error: CalibrationError): string {
|
|
116
122
|
if (error === CalibrationError.DEVICE_TOO_WEAK) {
|
|
@@ -91,7 +91,7 @@ export class DOMNodeLink extends UI.Widget.Widget {
|
|
|
91
91
|
#options: Options|undefined = undefined;
|
|
92
92
|
#view: View;
|
|
93
93
|
|
|
94
|
-
constructor(element?: HTMLElement, node?: SDK.DOMModel.DOMNode, options?: Options, view = DEFAULT_VIEW) {
|
|
94
|
+
constructor(element?: HTMLElement, node?: SDK.DOMModel.DOMNode, options?: Options, view: View = DEFAULT_VIEW) {
|
|
95
95
|
super(element, {useShadowDom: true});
|
|
96
96
|
this.element.classList.remove('vbox');
|
|
97
97
|
this.#node = node;
|
|
@@ -41,7 +41,8 @@ export class ExtensionView extends UI.Widget.Widget {
|
|
|
41
41
|
#frameIndex?: number;
|
|
42
42
|
|
|
43
43
|
#view: typeof DEFAULT_VIEW;
|
|
44
|
-
constructor(server: ExtensionServer, id: string, src: string, className: string,
|
|
44
|
+
constructor(server: ExtensionServer, id: string, src: string, className: string,
|
|
45
|
+
view: (input: ViewInput, output: ViewOutput, target: HTMLElement) => void = DEFAULT_VIEW) {
|
|
45
46
|
super();
|
|
46
47
|
this.#view = view;
|
|
47
48
|
this.#server = server;
|
|
@@ -232,18 +232,25 @@ export class ConsoleContextSelector implements SDK.TargetManager.SDKModelObserve
|
|
|
232
232
|
return i18nString(UIStrings.extension);
|
|
233
233
|
}
|
|
234
234
|
const sameTargetParentFrame = frame?.sameTargetParentFrame();
|
|
235
|
+
const executionContextOrigin =
|
|
236
|
+
executionContext.origin ? SDK.SecurityOrigin.SecurityOrigin.create(executionContext.origin) : null;
|
|
235
237
|
// TODO(crbug.com/1159332): Understand why condition involves the sameTargetParentFrame.
|
|
236
|
-
if (!frame || !sameTargetParentFrame ||
|
|
238
|
+
if (!frame || !sameTargetParentFrame ||
|
|
239
|
+
!sameTargetParentFrame.securityOrigin().isSameOriginWith(executionContextOrigin)) {
|
|
237
240
|
const url = Common.ParsedURL.ParsedURL.fromString(executionContext.origin);
|
|
238
241
|
if (url) {
|
|
239
242
|
return url.domain();
|
|
240
243
|
}
|
|
241
244
|
}
|
|
242
245
|
|
|
243
|
-
if (frame
|
|
244
|
-
const
|
|
245
|
-
if (
|
|
246
|
-
|
|
246
|
+
if (frame) {
|
|
247
|
+
const origin = frame.securityOrigin();
|
|
248
|
+
if (!origin.isOpaque()) {
|
|
249
|
+
const domain =
|
|
250
|
+
Common.ParsedURL.ParsedURL.fromString(origin.siteId() as Platform.DevToolsPath.UrlString)?.domain();
|
|
251
|
+
if (domain) {
|
|
252
|
+
return domain;
|
|
253
|
+
}
|
|
247
254
|
}
|
|
248
255
|
}
|
|
249
256
|
return 'IFrame';
|
|
@@ -109,7 +109,8 @@ export class ConsolePinPane extends UI.Widget.VBox {
|
|
|
109
109
|
readonly #pinModel: ConsolePinModel;
|
|
110
110
|
readonly #focusOut: () => void;
|
|
111
111
|
|
|
112
|
-
constructor(focusOut: () => void,
|
|
112
|
+
constructor(focusOut: () => void,
|
|
113
|
+
view: (input: PaneViewInput, _output: object, target: HTMLElement) => void = DEFAULT_PANE_VIEW) {
|
|
113
114
|
super({useShadowDom: true});
|
|
114
115
|
this.#focusOut = focusOut;
|
|
115
116
|
this.#view = view;
|
|
@@ -294,7 +295,8 @@ export class ConsolePinPresenter extends UI.Widget.Widget {
|
|
|
294
295
|
#deletePinIcon!: Buttons.Button.Button;
|
|
295
296
|
readonly #selfXssWarningDisabledSetting: Common.Settings.Setting<boolean>;
|
|
296
297
|
|
|
297
|
-
constructor(element?: HTMLElement,
|
|
298
|
+
constructor(element?: HTMLElement,
|
|
299
|
+
view: (input: ViewInput, output: ViewOutput, target: HTMLElement) => void = DEFAULT_VIEW) {
|
|
298
300
|
super(element);
|
|
299
301
|
this.#view = view;
|
|
300
302
|
|
|
@@ -117,7 +117,11 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
export class ConsoleFilterGroup {
|
|
120
|
-
readonly urlGroups
|
|
120
|
+
readonly urlGroups: Map<string|null, {
|
|
121
|
+
filter: ConsoleFilter,
|
|
122
|
+
url: string|null,
|
|
123
|
+
count: number,
|
|
124
|
+
}> = new Map<string|null, {filter: ConsoleFilter, url: string|null, count: number}>();
|
|
121
125
|
messageCount = 0;
|
|
122
126
|
readonly name: GroupName;
|
|
123
127
|
readonly filter: ConsoleFilter;
|
|
@@ -190,7 +194,7 @@ export class ConsoleSidebar extends ConsoleSidebarBase {
|
|
|
190
194
|
Common.Settings.Settings.instance().createSetting<string|null>('console.sidebar-selected-filter', null);
|
|
191
195
|
#selectedFilter = this.#groups.find(group => group.name === this.#selectedFilterSetting.get())?.filter;
|
|
192
196
|
|
|
193
|
-
constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
|
|
197
|
+
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
194
198
|
super(element, {
|
|
195
199
|
useShadowDom: 'pure',
|
|
196
200
|
});
|
|
@@ -288,7 +288,7 @@ const hoverButtonObserver = new IntersectionObserver(results => {
|
|
|
288
288
|
}
|
|
289
289
|
});
|
|
290
290
|
|
|
291
|
-
function appendOrShow(parent: Element, child: DocumentFragment|UI.Widget.
|
|
291
|
+
function appendOrShow(parent: Element, child: DocumentFragment|UI.Widget.AnyWidget|HTMLElement): void {
|
|
292
292
|
if (child instanceof UI.Widget.Widget) {
|
|
293
293
|
child.show(parent, null, /* suppressOprhanWidgetError=*/ true);
|
|
294
294
|
} else {
|
|
@@ -795,7 +795,7 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
795
795
|
if (shouldFormatMessage && parameters[i].type === 'string') {
|
|
796
796
|
appendOrShow(formattedResult, this.linkifyStringAsFragment(parameters[i].description || ''));
|
|
797
797
|
} else {
|
|
798
|
-
formattedResult
|
|
798
|
+
appendOrShow(formattedResult, this.formatParameter(parameters[i], false, true));
|
|
799
799
|
}
|
|
800
800
|
if (i < parameters.length - 1) {
|
|
801
801
|
UI.UIUtils.createTextChild(formattedResult, ' ');
|
|
@@ -804,10 +804,12 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
804
804
|
return formattedResult;
|
|
805
805
|
}
|
|
806
806
|
|
|
807
|
-
protected formatParameter(
|
|
808
|
-
|
|
807
|
+
protected formatParameter(output: SDK.RemoteObject.RemoteObject, forceObjectFormat?: boolean,
|
|
808
|
+
includePreview?: boolean): HTMLElement|UI.Widget.AnyWidget {
|
|
809
809
|
if (output.customPreview()) {
|
|
810
|
-
|
|
810
|
+
const component = new ObjectUI.CustomPreviewComponent.CustomPreviewComponent();
|
|
811
|
+
component.object = output;
|
|
812
|
+
return component;
|
|
811
813
|
}
|
|
812
814
|
|
|
813
815
|
const outputType = forceObjectFormat ? 'object' : (output.subtype || output.type);
|
|
@@ -1185,11 +1187,13 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
1185
1187
|
for (const token of tokens) {
|
|
1186
1188
|
switch (token.type) {
|
|
1187
1189
|
case 'generic': {
|
|
1188
|
-
formattedResult
|
|
1190
|
+
appendOrShow(formattedResult,
|
|
1191
|
+
this.formatParameter(token.value, true /* force */, false /* includePreview */));
|
|
1189
1192
|
break;
|
|
1190
1193
|
}
|
|
1191
1194
|
case 'optimal': {
|
|
1192
|
-
formattedResult
|
|
1195
|
+
appendOrShow(formattedResult,
|
|
1196
|
+
this.formatParameter(token.value, false /* force */, true /* includePreview */));
|
|
1193
1197
|
break;
|
|
1194
1198
|
}
|
|
1195
1199
|
case 'string': {
|
|
@@ -2271,7 +2275,7 @@ export class ConsoleTableMessageView extends ConsoleViewMessage {
|
|
|
2271
2275
|
formattedResult.classList.add('console-message-text');
|
|
2272
2276
|
const tableElement = formattedResult.createChild('div', 'console-message-formatted-table');
|
|
2273
2277
|
const dataGridContainer = tableElement.createChild('span');
|
|
2274
|
-
tableElement
|
|
2278
|
+
appendOrShow(tableElement, this.formatParameter(actualTable, true, false));
|
|
2275
2279
|
const shadowRoot = dataGridContainer.attachShadow({mode: 'open'});
|
|
2276
2280
|
const dataGridWidget = this.dataGrid.asWidget();
|
|
2277
2281
|
dataGridWidget.markAsRoot();
|
|
@@ -203,7 +203,7 @@ export function lineWhitespace(line: string): string|null {
|
|
|
203
203
|
|
|
204
204
|
export function formatRelatedCode(
|
|
205
205
|
{text, columnNumber, lineNumber}: {text: string, columnNumber: number, lineNumber: number},
|
|
206
|
-
maxCodeSize = MAX_CODE_SIZE): string {
|
|
206
|
+
maxCodeSize: number = MAX_CODE_SIZE): string {
|
|
207
207
|
const lines = text.split('\n');
|
|
208
208
|
if (lines[lineNumber].length >= maxCodeSize / 2) {
|
|
209
209
|
const start = Math.max(columnNumber - maxCodeSize / 2, 0);
|
|
@@ -189,7 +189,7 @@ export class CoverageListView extends UI.Widget.VBox {
|
|
|
189
189
|
#expandedUrls = new Set<Platform.DevToolsPath.UrlString>();
|
|
190
190
|
#view: View;
|
|
191
191
|
|
|
192
|
-
constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
|
|
192
|
+
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
193
193
|
super(element, {useShadowDom: true, delegatesFocus: true});
|
|
194
194
|
this.#view = view;
|
|
195
195
|
this.#highlightRegExp = null;
|
|
@@ -690,7 +690,8 @@ export class URLCoverageInfo extends Common.ObjectWrapper.ObjectWrapper<URLCover
|
|
|
690
690
|
#usedSize: number;
|
|
691
691
|
#type!: CoverageType;
|
|
692
692
|
#isContentScript: boolean;
|
|
693
|
-
sourcesURLCoverageInfo
|
|
693
|
+
sourcesURLCoverageInfo: Map<Platform.DevToolsPath.UrlString, SourceURLCoverageInfo> =
|
|
694
|
+
new Map<Platform.DevToolsPath.UrlString, SourceURLCoverageInfo>();
|
|
694
695
|
sourceSegments: SourceSegment[]|undefined;
|
|
695
696
|
|
|
696
697
|
constructor(url: Platform.DevToolsPath.UrlString) {
|
|
@@ -938,9 +939,10 @@ export class CoverageInfo {
|
|
|
938
939
|
private coverageType: CoverageType;
|
|
939
940
|
private segments: CoverageSegment[];
|
|
940
941
|
private generatedUrlCoverageInfo: URLCoverageInfo;
|
|
941
|
-
sourceUsedSizeMap = new Map<Platform.DevToolsPath.UrlString, number>();
|
|
942
|
-
sourceDeltaMap = new Map<Platform.DevToolsPath.UrlString, number>();
|
|
943
|
-
sourceUsedRangeMap
|
|
942
|
+
sourceUsedSizeMap: Map<Platform.DevToolsPath.UrlString, number> = new Map<Platform.DevToolsPath.UrlString, number>();
|
|
943
|
+
sourceDeltaMap: Map<Platform.DevToolsPath.UrlString, number> = new Map<Platform.DevToolsPath.UrlString, number>();
|
|
944
|
+
sourceUsedRangeMap: Map<Platform.DevToolsPath.UrlString, RangeOffset[]> =
|
|
945
|
+
new Map<Platform.DevToolsPath.UrlString, RangeOffset[]>();
|
|
944
946
|
|
|
945
947
|
constructor(
|
|
946
948
|
contentProvider: TextUtils.ContentProvider.ContentProvider, size: number, lineOffset: number,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
.coverage-toolbar-container {
|
|
12
12
|
display: flex;
|
|
13
|
-
border-bottom:
|
|
13
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
14
14
|
flex: 0 0 auto;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
.coverage-toolbar-summary {
|
|
22
22
|
background-color: var(--sys-color-cdt-base-container);
|
|
23
|
-
border-top:
|
|
23
|
+
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
24
24
|
padding-left: 5px;
|
|
25
25
|
flex: 0 0 19px;
|
|
26
26
|
display: flex;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.coverage-toolbar-summary .coverage-message {
|
|
31
|
-
padding-top:
|
|
31
|
+
padding-top: var(--sys-size-2);
|
|
32
32
|
padding-left: 1ex;
|
|
33
33
|
text-overflow: ellipsis;
|
|
34
34
|
white-space: nowrap;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
.prerender-page {
|
|
46
46
|
justify-content: center;
|
|
47
47
|
align-items: center;
|
|
48
|
-
padding:
|
|
48
|
+
padding: var(--sys-size-9);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.bfcache-page .message,
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
|
|
57
57
|
.inline-button {
|
|
58
58
|
display: inline-flex;
|
|
59
|
-
border:
|
|
60
|
-
border-radius:
|
|
59
|
+
border: var(--sys-size-1) solid var(--sys-color-neutral-outline);
|
|
60
|
+
border-radius: var(--sys-shape-corner-extra-small);
|
|
61
61
|
position: relative;
|
|
62
62
|
vertical-align: sub;
|
|
63
|
-
margin:
|
|
63
|
+
margin: var(--sys-size-2);
|
|
64
64
|
background-color: var(--sys-color-cdt-base-container);
|
|
65
65
|
justify-content: center;
|
|
66
|
-
width:
|
|
66
|
+
width: var(--sys-size-12);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.inline-button:hover {
|
|
@@ -219,7 +219,7 @@ export interface OverviewData {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
export type FontInfo = Map<string, Map<string, Map<string, number[]>>>;
|
|
222
|
-
interface FontMetric {
|
|
222
|
+
export interface FontMetric {
|
|
223
223
|
label: string;
|
|
224
224
|
values: Array<{title: string, nodes: number[]}>;
|
|
225
225
|
}
|
|
@@ -236,7 +236,7 @@ function getBorderString(color: Common.Color.Color): string {
|
|
|
236
236
|
return `1px solid hsl(${h}deg ${s}% ${l}%)`;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
interface ViewInput {
|
|
239
|
+
export interface ViewInput {
|
|
240
240
|
elementCount: number;
|
|
241
241
|
backgroundColors: string[];
|
|
242
242
|
textColors: string[];
|
|
@@ -253,7 +253,7 @@ interface ViewInput {
|
|
|
253
253
|
onReset: () => void;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
interface ViewOutput {
|
|
256
|
+
export interface ViewOutput {
|
|
257
257
|
revealSection: Map<string, (setFocus: boolean) => void>;
|
|
258
258
|
closeAllTabs: () => void;
|
|
259
259
|
addTab: (id: string, tabTitle: string, view: UI.Widget.Widget, jslogContext: string) => void;
|
|
@@ -261,7 +261,7 @@ interface ViewOutput {
|
|
|
261
261
|
|
|
262
262
|
const formatter = new Intl.NumberFormat('en-US');
|
|
263
263
|
|
|
264
|
-
type View = (input: ViewInput, output: ViewOutput, target: HTMLElement) => void;
|
|
264
|
+
export type View = (input: ViewInput, output: ViewOutput, target: HTMLElement) => void;
|
|
265
265
|
|
|
266
266
|
export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
267
267
|
function revealSection(section: Element|undefined, setFocus: boolean): void {
|
|
@@ -428,14 +428,13 @@ function renderFontMetrics(font: string, fontMetricInfo: FontMetric[]): Template
|
|
|
428
428
|
${fontMetricInfo.map(({label, values}) => html`
|
|
429
429
|
<div>
|
|
430
430
|
<h3>${label}</h3>
|
|
431
|
-
${renderGroup(values, 'font-info', `${font}/${label}
|
|
431
|
+
${renderGroup(values, 'font-info', `${font}/${label}`, label)}
|
|
432
432
|
</div>`)}
|
|
433
433
|
</div>`;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
function renderGroup(
|
|
437
|
-
|
|
438
|
-
path = ''): TemplateResult {
|
|
436
|
+
function renderGroup(values: Array<{title: string, nodes: Array<number|UnusedDeclaration|Protocol.CSS.CSSMedia>}>,
|
|
437
|
+
type: string, path = '', groupLabel = ''): TemplateResult {
|
|
439
438
|
const total = values.reduce((prev, curr) => prev + curr.nodes.length, 0);
|
|
440
439
|
|
|
441
440
|
// clang-format off
|
|
@@ -449,7 +448,7 @@ function renderGroup(
|
|
|
449
448
|
<div class="title">${title}</div>
|
|
450
449
|
<button data-type=${type} data-path=${path} data-label=${title}
|
|
451
450
|
jslog=${VisualLogging.action().track({click: true}).context(`css-overview.${type}`)}
|
|
452
|
-
aria-label=${`${title}: ${itemLabel}`}>
|
|
451
|
+
aria-label=${`${groupLabel ? `${groupLabel}, ` : ''}${title}: ${itemLabel}`}>
|
|
453
452
|
<div class="details">${itemLabel}</div>
|
|
454
453
|
<div class="bar-container">
|
|
455
454
|
<div class="bar" style=${styleMap({width})}></div>
|
|
@@ -541,7 +540,7 @@ function renderColor(section: string, color: string): LitTemplate {
|
|
|
541
540
|
// clang-format on
|
|
542
541
|
}
|
|
543
542
|
|
|
544
|
-
type PopulateNodesEvent = {
|
|
543
|
+
export type PopulateNodesEvent = {
|
|
545
544
|
type: 'contrast',
|
|
546
545
|
key: string,
|
|
547
546
|
section: string|undefined,
|
|
@@ -583,7 +582,7 @@ export class CSSOverviewCompletedView extends UI.Widget.VBox {
|
|
|
583
582
|
addTab: (_id, _tabTitle, _view, _jslogContext) => {},
|
|
584
583
|
};
|
|
585
584
|
|
|
586
|
-
constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
|
|
585
|
+
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
587
586
|
super(element);
|
|
588
587
|
this.#view = view;
|
|
589
588
|
this.registerRequiredCSS(cssOverviewCompletedViewStyles);
|
|
@@ -879,10 +878,10 @@ export class CSSOverviewCompletedView extends UI.Widget.VBox {
|
|
|
879
878
|
this.requestUpdate();
|
|
880
879
|
}
|
|
881
880
|
|
|
882
|
-
static readonly pushedNodes = new Set<Protocol.DOM.BackendNodeId>();
|
|
881
|
+
static readonly pushedNodes: Set<Protocol.DOM.BackendNodeId> = new Set<Protocol.DOM.BackendNodeId>();
|
|
883
882
|
}
|
|
884
883
|
|
|
885
|
-
interface ElementDetailsViewInput {
|
|
884
|
+
export interface ElementDetailsViewInput {
|
|
886
885
|
items: Array<{
|
|
887
886
|
data: PopulateNodesEventNodeTypes,
|
|
888
887
|
link?: LitTemplate,
|
|
@@ -890,7 +889,7 @@ interface ElementDetailsViewInput {
|
|
|
890
889
|
}>;
|
|
891
890
|
visibility: Set<string>;
|
|
892
891
|
}
|
|
893
|
-
type ElementDetailsViewFunction = (input: ElementDetailsViewInput, output: object, target: HTMLElement) => void;
|
|
892
|
+
export type ElementDetailsViewFunction = (input: ElementDetailsViewInput, output: object, target: HTMLElement) => void;
|
|
894
893
|
|
|
895
894
|
export const ELEMENT_DETAILS_DEFAULT_VIEW: ElementDetailsViewFunction = (input, _output, target) => {
|
|
896
895
|
const {items, visibility} = input;
|
|
@@ -16,7 +16,7 @@ import type {UnusedDeclaration} from './CSSOverviewUnusedDeclarations.js';
|
|
|
16
16
|
|
|
17
17
|
const {widget} = UI.Widget;
|
|
18
18
|
|
|
19
|
-
interface ViewInput {
|
|
19
|
+
export interface ViewInput {
|
|
20
20
|
state: 'start'|'processing'|'completed';
|
|
21
21
|
onStartCapture: () => void;
|
|
22
22
|
onCancel: () => void;
|
|
@@ -25,7 +25,7 @@ interface ViewInput {
|
|
|
25
25
|
target?: SDK.Target.Target;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
type View = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
28
|
+
export type View = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
29
29
|
|
|
30
30
|
export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
31
31
|
render(
|
|
@@ -55,7 +55,7 @@ export class CSSOverviewPanel extends UI.Panel.Panel implements SDK.TargetManage
|
|
|
55
55
|
#state!: 'start'|'processing'|'completed';
|
|
56
56
|
#view: View;
|
|
57
57
|
|
|
58
|
-
constructor(view = DEFAULT_VIEW) {
|
|
58
|
+
constructor(view: View = DEFAULT_VIEW) {
|
|
59
59
|
super('css-overview');
|
|
60
60
|
this.#currentUrl = SDK.TargetManager.TargetManager.instance().inspectedURL();
|
|
61
61
|
SDK.TargetManager.TargetManager.instance().addEventListener(
|
|
@@ -18,11 +18,11 @@ const UIStrings = {
|
|
|
18
18
|
const str_ = i18n.i18n.registerUIStrings('panels/css_overview/CSSOverviewProcessingView.ts', UIStrings);
|
|
19
19
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
20
20
|
|
|
21
|
-
interface ViewInput {
|
|
21
|
+
export interface ViewInput {
|
|
22
22
|
onCancel: () => void;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
type View = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
25
|
+
export type View = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
26
26
|
|
|
27
27
|
export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
28
28
|
// clang-format off
|
|
@@ -27,14 +27,14 @@ const UIStrings = {
|
|
|
27
27
|
const str_ = i18n.i18n.registerUIStrings('panels/css_overview/CSSOverviewSidebarPanel.ts', UIStrings);
|
|
28
28
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
29
29
|
|
|
30
|
-
interface ViewInput {
|
|
30
|
+
export interface ViewInput {
|
|
31
31
|
items: Array<{name: string, id: string}>;
|
|
32
32
|
selectedId?: string;
|
|
33
33
|
onReset: () => void;
|
|
34
34
|
onItemClick: (id: string) => void;
|
|
35
35
|
onItemKeyDown: (id: string, key: string) => void;
|
|
36
36
|
}
|
|
37
|
-
type View = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
37
|
+
export type View = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
38
38
|
|
|
39
39
|
export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
40
40
|
const onClick = (event: Event): void => {
|
|
@@ -94,7 +94,7 @@ export class CSSOverviewSidebarPanel extends UI.Widget.VBox {
|
|
|
94
94
|
#onItemSelected = (_id: string, _shouldFocus: boolean): void => {};
|
|
95
95
|
#onReset = (): void => {};
|
|
96
96
|
|
|
97
|
-
constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
|
|
97
|
+
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
98
98
|
super(element, {useShadowDom: true, delegatesFocus: true});
|
|
99
99
|
this.#view = view;
|
|
100
100
|
}
|
|
@@ -46,11 +46,11 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
|
46
46
|
const FEEDBACK_LINK = 'https://g.co/devtools/css-overview-feedback' as Platform.DevToolsPath.UrlString;
|
|
47
47
|
const DOC_LINK = 'https://developer.chrome.com/docs/devtools/css-overview' as Platform.DevToolsPath.UrlString;
|
|
48
48
|
|
|
49
|
-
interface ViewInput {
|
|
49
|
+
export interface ViewInput {
|
|
50
50
|
onStartCapture: () => void;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
type View = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
53
|
+
export type View = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
54
54
|
|
|
55
55
|
const DEFAULT_VIEW: View = (input, output, target) => {
|
|
56
56
|
// Disabled until https://crbug.com/1079231 is fixed.
|
|
@@ -93,7 +93,7 @@ export class CSSOverviewStartView extends UI.Widget.Widget {
|
|
|
93
93
|
#view: View;
|
|
94
94
|
onStartCapture = (): void => {};
|
|
95
95
|
|
|
96
|
-
constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
|
|
96
|
+
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
97
97
|
super(element, {useShadowDom: true, delegatesFocus: true});
|
|
98
98
|
this.#view = view;
|
|
99
99
|
this.performUpdate();
|
|
@@ -183,7 +183,7 @@ export class DeveloperResourcesListView extends UI.Widget.VBox {
|
|
|
183
183
|
#onSelect: ((item: SDK.PageResourceLoader.PageResource|null) => void)|null = null;
|
|
184
184
|
readonly #view: View;
|
|
185
185
|
#filters: TextUtils.TextUtils.ParsedFilter[] = [];
|
|
186
|
-
constructor(element: HTMLElement, view = DEFAULT_VIEW) {
|
|
186
|
+
constructor(element: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
187
187
|
super(element, {useShadowDom: true});
|
|
188
188
|
this.#view = view;
|
|
189
189
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
.developer-resource-view-toolbar-container {
|
|
13
13
|
display: flex;
|
|
14
|
-
border-bottom:
|
|
14
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
15
15
|
flex: 0 0 auto;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
.developer-resource-view-toolbar-summary {
|
|
23
23
|
background-color: var(--sys-color-cdt-base-container);
|
|
24
|
-
border-top:
|
|
24
|
+
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
25
25
|
padding-left: 5px;
|
|
26
26
|
flex: 0 0 19px;
|
|
27
27
|
display: flex;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.developer-resource-view-toolbar-summary .developer-resource-view-message {
|
|
32
|
-
padding-top:
|
|
32
|
+
padding-top: var(--sys-size-2);
|
|
33
33
|
padding-left: 1ex;
|
|
34
34
|
text-overflow: ellipsis;
|
|
35
35
|
white-space: nowrap;
|
|
@@ -344,7 +344,7 @@ export class ComputedStyleWidget extends UI.Widget.VBox {
|
|
|
344
344
|
#filterIsRegex = false;
|
|
345
345
|
#allowUserControl = true;
|
|
346
346
|
|
|
347
|
-
constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
|
|
347
|
+
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
348
348
|
super(element, {useShadowDom: true});
|
|
349
349
|
this.#view = view;
|
|
350
350
|
|