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
|
@@ -454,20 +454,26 @@ li.hovered:not(.always-parent) + ol.children:not(.shadow-root) {
|
|
|
454
454
|
line-height: 1.36;
|
|
455
455
|
min-width: 200px;
|
|
456
456
|
text-overflow: clip;
|
|
457
|
+
white-space: inherit;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
:host(.elements-tree-nowrap) .tree-outline-disclosure li {
|
|
461
|
+
white-space: pre;
|
|
457
462
|
}
|
|
458
463
|
|
|
459
464
|
.tree-outline-disclosure li:not(.parent) {
|
|
460
465
|
display: block;
|
|
461
466
|
}
|
|
462
467
|
|
|
463
|
-
.tree-outline-disclosure li:not(.parent)::before
|
|
468
|
+
.tree-outline-disclosure li:not(.parent)::before,
|
|
469
|
+
.tree-outline-disclosure li.always-parent::before {
|
|
464
470
|
display: none;
|
|
465
471
|
content: none;
|
|
466
472
|
}
|
|
467
473
|
|
|
468
474
|
.tree-outline-disclosure li.parent {
|
|
469
475
|
display: flex;
|
|
470
|
-
align-items:
|
|
476
|
+
align-items: normal;
|
|
471
477
|
}
|
|
472
478
|
|
|
473
479
|
.tree-outline-disclosure li.parent:not(.always-parent) {
|
|
@@ -485,18 +491,27 @@ li.hovered:not(.always-parent) + ol.children:not(.shadow-root) {
|
|
|
485
491
|
text-shadow: none;
|
|
486
492
|
margin: 0 var(--sys-size-2) 0 -3px;
|
|
487
493
|
background-color: var(--icon-default);
|
|
494
|
+
flex-shrink: 0;
|
|
488
495
|
}
|
|
489
496
|
|
|
490
|
-
.tree-outline-disclosure li.parent.expanded::before {
|
|
497
|
+
.tree-outline-disclosure li.parent:not(.always-parent).expanded::before {
|
|
491
498
|
mask-image: var(--image-file-arrow-drop-down);
|
|
492
499
|
}
|
|
493
500
|
|
|
494
501
|
.tree-outline-disclosure devtools-widget,
|
|
495
|
-
.tree-outline-disclosure devtools-widget > div,
|
|
496
502
|
.tree-outline-disclosure .tree-element-title {
|
|
497
503
|
display: contents;
|
|
498
504
|
}
|
|
499
505
|
|
|
506
|
+
.tree-outline-disclosure devtools-widget > div {
|
|
507
|
+
display: inline;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.tree-outline-disclosure devtools-widget > div:has(.elements-tree-editor),
|
|
511
|
+
.tree-outline-disclosure li:has(.elements-tree-editor) {
|
|
512
|
+
display: block;
|
|
513
|
+
}
|
|
514
|
+
|
|
500
515
|
.tree-outline-disclosure li .webkit-html-tag.close {
|
|
501
516
|
margin-left: -12px;
|
|
502
517
|
}
|
|
@@ -555,6 +570,7 @@ li.hovered:not(.always-parent) + ol.children:not(.shadow-root) {
|
|
|
555
570
|
.tree-outline-disclosure li .selection {
|
|
556
571
|
display: none;
|
|
557
572
|
z-index: -1;
|
|
573
|
+
margin-left: 0;
|
|
558
574
|
}
|
|
559
575
|
|
|
560
576
|
.tree-outline-disclosure li.selected .selection {
|
|
@@ -165,7 +165,8 @@ export class MediaQueryInspector extends UI.Widget.Widget<ShadowRoot> implements
|
|
|
165
165
|
private cssModel?: SDK.CSSModel.CSSModel;
|
|
166
166
|
private cachedQueryModels?: MediaQueryUIModel[];
|
|
167
167
|
|
|
168
|
-
constructor(element?: HTMLElement,
|
|
168
|
+
constructor(element?: HTMLElement,
|
|
169
|
+
view: (input: ViewInput, _output: object, target: DocumentFragment) => void = DEFAULT_VIEW) {
|
|
169
170
|
super(element, {useShadowDom: 'pure'});
|
|
170
171
|
this.view = view;
|
|
171
172
|
this.#scale = 1;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
color: var(--sys-color-primary);
|
|
54
54
|
background-color: var(--sys-color-cdt-base-container);
|
|
55
55
|
border-radius: 7px;
|
|
56
|
-
border:
|
|
56
|
+
border: var(--sys-size-1) solid var(--sys-color-tonal-outline);
|
|
57
57
|
margin-left: 5px;
|
|
58
58
|
display: block;
|
|
59
59
|
flex-shrink: 0;
|
|
@@ -38,6 +38,9 @@ export class AffectedElementsView extends AffectedResourcesView {
|
|
|
38
38
|
rowElement.setAttribute('jslog', `${VisualLogging.tableRow('affected-element')}`);
|
|
39
39
|
if (element.backendNodeId) {
|
|
40
40
|
rowElement.setAttribute('data-backend-node-id', String(element.backendNodeId));
|
|
41
|
+
if (element.target) {
|
|
42
|
+
rowElement.setAttribute('data-target-id', element.target.id());
|
|
43
|
+
}
|
|
41
44
|
}
|
|
42
45
|
rowElement.appendChild(cellElement);
|
|
43
46
|
this.affectedResources.appendChild(rowElement);
|
|
@@ -44,7 +44,7 @@ export class AffectedLazyLoadImagesView extends AffectedResourcesView {
|
|
|
44
44
|
readonly #view: View;
|
|
45
45
|
|
|
46
46
|
constructor(parent: IssueView, issue: IssuesManager.IssueAggregator.AggregatedIssue, jslogContext: string,
|
|
47
|
-
view = DEFAULT_VIEW) {
|
|
47
|
+
view: View = DEFAULT_VIEW) {
|
|
48
48
|
super(parent, issue, jslogContext);
|
|
49
49
|
this.#view = view;
|
|
50
50
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
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 * as AffectedElementsView from './AffectedElementsView.js';
|
|
5
6
|
import * as AffectedLazyLoadImagesView from './AffectedLazyLoadImagesView.js';
|
|
6
7
|
import * as AffectedSelectivePermissionsInterventionView from './AffectedSelectivePermissionsInterventionView.js';
|
|
7
8
|
import * as IssueRevealer from './IssueRevealer.js';
|
|
@@ -9,6 +10,7 @@ import * as IssuesPane from './IssuesPane.js';
|
|
|
9
10
|
import * as IssueView from './IssueView.js';
|
|
10
11
|
|
|
11
12
|
export {
|
|
13
|
+
AffectedElementsView,
|
|
12
14
|
AffectedLazyLoadImagesView,
|
|
13
15
|
AffectedSelectivePermissionsInterventionView,
|
|
14
16
|
IssueRevealer,
|
|
@@ -222,6 +222,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: Docu
|
|
|
222
222
|
html`
|
|
223
223
|
<div class="layer-details-container"
|
|
224
224
|
data-backend-node-id=${domNode ? domNode.backendNodeId() : nothing}
|
|
225
|
+
data-target-id=${domNode ? domNode.domModel().target().id() : nothing}
|
|
225
226
|
jslog=${VisualLogging.section('layer-details')}>
|
|
226
227
|
<table>
|
|
227
228
|
<tbody>
|
|
@@ -383,13 +384,14 @@ export interface EventTypes {
|
|
|
383
384
|
[Events.PAINT_PROFILER_REQUESTED]: Selection;
|
|
384
385
|
}
|
|
385
386
|
|
|
386
|
-
export const slowScrollRectNames
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
]
|
|
387
|
+
export const slowScrollRectNames: Map<SDK.LayerTreeBase.Layer.ScrollRectType, () => Common.UIString.LocalizedString> =
|
|
388
|
+
new Map([
|
|
389
|
+
[SDK.LayerTreeBase.Layer.ScrollRectType.NON_FAST_SCROLLABLE, i18nLazyString(UIStrings.nonFastScrollable)],
|
|
390
|
+
[SDK.LayerTreeBase.Layer.ScrollRectType.TOUCH_EVENT_HANDLER, i18nLazyString(UIStrings.touchEventHandler)],
|
|
391
|
+
[SDK.LayerTreeBase.Layer.ScrollRectType.WHEEL_EVENT_HANDLER, i18nLazyString(UIStrings.wheelEventHandler)],
|
|
392
|
+
[SDK.LayerTreeBase.Layer.ScrollRectType.REPAINTS_ON_SCROLL, i18nLazyString(UIStrings.repaintsOnScroll)],
|
|
393
|
+
[
|
|
394
|
+
SDK.LayerTreeBase.Layer.ScrollRectType.MAIN_THREAD_SCROLL_REASON,
|
|
395
|
+
i18nLazyString(UIStrings.mainThreadScrollingReason),
|
|
396
|
+
],
|
|
397
|
+
]);
|
|
@@ -81,6 +81,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
81
81
|
<li role="treeitem"
|
|
82
82
|
data-layer-id=${layer.id()}
|
|
83
83
|
data-backend-node-id=${domNode ? domNode.backendNodeId() : nothing}
|
|
84
|
+
data-target-id=${domNode ? domNode.domModel().target().id() : nothing}
|
|
84
85
|
jslog=${VisualLogging.treeItem('layer-item')}
|
|
85
86
|
class=${isHovered ? 'hovered' : ''}
|
|
86
87
|
?selected=${isSelected}
|
|
@@ -93,7 +93,9 @@ export interface ViewOutput {
|
|
|
93
93
|
canvasElement?: HTMLCanvasElement;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
export
|
|
96
|
+
export type View = (input: ViewInput, output: ViewOutput, target: HTMLElement) => void;
|
|
97
|
+
|
|
98
|
+
export const DEFAULT_VIEW: View = (input: ViewInput, output: ViewOutput, target: HTMLElement): void => {
|
|
97
99
|
// clang-format off
|
|
98
100
|
render(html`<style>
|
|
99
101
|
${layers3DViewStyles}
|
|
@@ -173,11 +175,11 @@ export class Layers3DView extends Layers3DViewBase
|
|
|
173
175
|
private mouseDownX?: number;
|
|
174
176
|
private mouseDownY?: number;
|
|
175
177
|
|
|
176
|
-
#view:
|
|
178
|
+
#view: View;
|
|
177
179
|
#error?: 'missing-root' | 'webgl-disabled';
|
|
178
180
|
#canvasElement!: HTMLCanvasElement;
|
|
179
181
|
|
|
180
|
-
constructor(layerViewHost: LayerViewHost, view = DEFAULT_VIEW) {
|
|
182
|
+
constructor(layerViewHost: LayerViewHost, view: View = DEFAULT_VIEW) {
|
|
181
183
|
super();
|
|
182
184
|
this.#view = view;
|
|
183
185
|
|
|
@@ -966,7 +968,7 @@ export const enum ChromeTexture {
|
|
|
966
968
|
RIGHT = 2,
|
|
967
969
|
}
|
|
968
970
|
|
|
969
|
-
export const FragmentShader = '' +
|
|
971
|
+
export const FragmentShader: string = '' +
|
|
970
972
|
'precision mediump float;\n' +
|
|
971
973
|
'varying vec4 vColor;\n' +
|
|
972
974
|
'varying vec2 vTextureCoord;\n' +
|
|
@@ -976,7 +978,7 @@ export const FragmentShader = '' +
|
|
|
976
978
|
' gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.s, vTextureCoord.t)) * vColor;\n' +
|
|
977
979
|
'}';
|
|
978
980
|
|
|
979
|
-
export const VertexShader = '' +
|
|
981
|
+
export const VertexShader: string = '' +
|
|
980
982
|
'attribute vec3 aVertexPosition;\n' +
|
|
981
983
|
'attribute vec2 aTextureCoord;\n' +
|
|
982
984
|
'attribute vec4 aVertexColor;\n' +
|
|
@@ -990,12 +992,12 @@ export const VertexShader = '' +
|
|
|
990
992
|
'vTextureCoord = aTextureCoord;\n' +
|
|
991
993
|
'}';
|
|
992
994
|
|
|
993
|
-
export const HoveredBorderColor = [0, 0, 255, 1];
|
|
994
|
-
export const SelectedBorderColor = [0, 255, 0, 1];
|
|
995
|
-
export const BorderColor = [0, 0, 0, 1];
|
|
996
|
-
export const ViewportBorderColor = [160, 160, 160, 1];
|
|
997
|
-
export const ScrollRectBackgroundColor = [178, 100, 100, 0.6];
|
|
998
|
-
export const HoveredImageMaskColor = [200, 200, 255, 1];
|
|
995
|
+
export const HoveredBorderColor: number[] = [0, 0, 255, 1];
|
|
996
|
+
export const SelectedBorderColor: number[] = [0, 255, 0, 1];
|
|
997
|
+
export const BorderColor: number[] = [0, 0, 0, 1];
|
|
998
|
+
export const ViewportBorderColor: number[] = [160, 160, 160, 1];
|
|
999
|
+
export const ScrollRectBackgroundColor: number[] = [178, 100, 100, 0.6];
|
|
1000
|
+
export const HoveredImageMaskColor: number[] = [200, 200, 255, 1];
|
|
999
1001
|
export const BorderWidth = 1;
|
|
1000
1002
|
export const SelectedBorderWidth = 2;
|
|
1001
1003
|
export const ViewportBorderWidth = 3;
|
package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts
CHANGED
|
@@ -89,7 +89,7 @@ export class LinearMemoryHighlightChipList extends UI.Widget.Widget {
|
|
|
89
89
|
#deleteHighlight = (_: HighlightInfo): void => {};
|
|
90
90
|
#view: View;
|
|
91
91
|
|
|
92
|
-
constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
|
|
92
|
+
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
93
93
|
super(element, {useShadowDom: true});
|
|
94
94
|
this.#view = view;
|
|
95
95
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
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
|
-
export const HEXADECIMAL_REGEXP = /^0x[a-fA-F0-9]+$/;
|
|
6
|
-
export const DECIMAL_REGEXP = /^0$|[1-9]\d*$/;
|
|
5
|
+
export const HEXADECIMAL_REGEXP: RegExp = /^0x[a-fA-F0-9]+$/;
|
|
6
|
+
export const DECIMAL_REGEXP: RegExp = /^0$|[1-9]\d*$/;
|
|
7
7
|
|
|
8
8
|
export function toHexString(data: {number: number, pad: number, prefix: boolean}): string {
|
|
9
9
|
const hex = data.number.toString(16).padStart(data.pad, '0');
|
|
@@ -57,7 +57,7 @@ const DEFAULT_MODE_MAPPING = new Map([
|
|
|
57
57
|
[ValueType.POINTER64, ValueTypeMode.HEXADECIMAL],
|
|
58
58
|
]);
|
|
59
59
|
|
|
60
|
-
export const VALUE_TYPE_MODE_LIST = [
|
|
60
|
+
export const VALUE_TYPE_MODE_LIST: ValueTypeMode[] = [
|
|
61
61
|
ValueTypeMode.DECIMAL,
|
|
62
62
|
ValueTypeMode.HEXADECIMAL,
|
|
63
63
|
ValueTypeMode.OCTAL,
|
|
@@ -86,7 +86,7 @@ export class ValueInterpreterSettings extends UI.Widget.Widget {
|
|
|
86
86
|
#valueTypes = new Set<ValueType>();
|
|
87
87
|
#onToggle: (type: ValueType, checked: boolean) => void = () => {};
|
|
88
88
|
|
|
89
|
-
constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
|
|
89
|
+
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
90
90
|
super(element);
|
|
91
91
|
this.#view = view;
|
|
92
92
|
}
|
package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css
CHANGED
|
@@ -5,26 +5,26 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
.highlight-chip-list {
|
|
8
|
-
min-height:
|
|
8
|
+
min-height: var(--sys-size-9);
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-wrap: wrap;
|
|
11
11
|
justify-content: left;
|
|
12
12
|
align-items: center;
|
|
13
13
|
background-color: var(--sys-color-cdt-base-container);
|
|
14
|
-
margin:
|
|
15
|
-
gap:
|
|
16
|
-
row-gap:
|
|
14
|
+
margin: var(--sys-size-5) 0;
|
|
15
|
+
gap: var(--sys-size-5);
|
|
16
|
+
row-gap: var(--sys-size-4);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.highlight-chip {
|
|
20
20
|
background: var(--sys-color-cdt-base-container);
|
|
21
|
-
border:
|
|
21
|
+
border: var(--sys-size-1) solid var(--sys-color-divider);
|
|
22
22
|
height: 18px;
|
|
23
|
-
border-radius:
|
|
23
|
+
border-radius: var(--sys-shape-corner-extra-small);
|
|
24
24
|
flex: 0 0 auto;
|
|
25
25
|
max-width: 250px;
|
|
26
26
|
position: relative;
|
|
27
|
-
padding: 0
|
|
27
|
+
padding: 0 var(--sys-size-4);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.highlight-chip:hover {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
position: absolute;
|
|
38
38
|
right: 0;
|
|
39
39
|
top: 0;
|
|
40
|
-
border-radius:
|
|
41
|
-
width:
|
|
40
|
+
border-radius: var(--sys-shape-corner-extra-small);
|
|
41
|
+
width: var(--sys-size-11);
|
|
42
42
|
align-items: center;
|
|
43
43
|
justify-content: center;
|
|
44
44
|
}
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.highlight-chip.focused {
|
|
101
|
-
outline:
|
|
102
|
-
outline-offset:
|
|
101
|
+
outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
|
|
102
|
+
outline-offset: var(--sys-size-2);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.highlight-chip:hover > .delete-highlight-container {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
font-family: var(--monospace-font-family);
|
|
24
24
|
font-size: var(--monospace-font-size);
|
|
25
|
-
padding: 9px
|
|
25
|
+
padding: 9px var(--sys-size-6) 9px 7px;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
devtools-linear-memory-inspector-viewer {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.navigator-widget ~ devtools-linear-memory-inspector-viewer {
|
|
33
|
-
margin-top:
|
|
33
|
+
margin-top: var(--sys-size-6);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.value-interpreter {
|
package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.value-interpreter {
|
|
14
|
-
border:
|
|
14
|
+
border: var(--sys-size-1) solid var(--sys-color-divider);
|
|
15
15
|
background-color: var(--sys-color-cdt-base-container);
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
width: 400px;
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
|
|
30
30
|
.settings-toolbar-button {
|
|
31
31
|
padding: 0;
|
|
32
|
-
width:
|
|
33
|
-
height:
|
|
32
|
+
width: var(--sys-size-9);
|
|
33
|
+
height: var(--sys-size-9);
|
|
34
34
|
border: none;
|
|
35
35
|
outline: none;
|
|
36
36
|
background-color: transparent;
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
|
|
43
43
|
.divider {
|
|
44
44
|
display: block;
|
|
45
|
-
height:
|
|
46
|
-
margin-bottom:
|
|
45
|
+
height: var(--sys-size-1);
|
|
46
|
+
margin-bottom: var(--sys-size-6);
|
|
47
47
|
background-color: var(--sys-color-divider);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:host {
|
|
8
8
|
flex: auto;
|
|
9
9
|
display: flex;
|
|
10
|
-
min-height:
|
|
10
|
+
min-height: var(--sys-size-9);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.view {
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
|
|
21
21
|
.row {
|
|
22
22
|
display: flex;
|
|
23
|
-
height:
|
|
23
|
+
height: var(--sys-size-9);
|
|
24
24
|
align-items: center;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.cell {
|
|
28
28
|
text-align: center;
|
|
29
|
-
border:
|
|
29
|
+
border: var(--sys-size-1) solid transparent;
|
|
30
30
|
border-radius: 2px;
|
|
31
31
|
|
|
32
32
|
&.focused-area {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.text-cell {
|
|
54
|
-
min-width:
|
|
54
|
+
min-width: var(--sys-size-7);
|
|
55
55
|
color: var(--sys-color-on-surface-subtle);
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.divider {
|
|
68
|
-
width:
|
|
68
|
+
width: var(--sys-size-1);
|
|
69
69
|
height: inherit;
|
|
70
70
|
background-color: var(--sys-color-divider);
|
|
71
|
-
margin: 0
|
|
71
|
+
margin: 0 var(--sys-size-3);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.highlight-area {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
width: 100%;
|
|
14
14
|
display: grid;
|
|
15
15
|
grid-template-columns: auto auto 1fr;
|
|
16
|
-
gap:
|
|
17
|
-
min-height:
|
|
16
|
+
gap: var(--sys-size-3) var(--sys-size-11);
|
|
17
|
+
min-height: var(--sys-size-11);
|
|
18
18
|
overflow: hidden;
|
|
19
|
-
padding:
|
|
19
|
+
padding: var(--sys-size-2) var(--sys-size-6);
|
|
20
20
|
align-items: baseline;
|
|
21
21
|
justify-content: start;
|
|
22
22
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
overflow: hidden;
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
|
-
min-height:
|
|
30
|
+
min-height: var(--sys-size-11);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.value-type-value-with-link {
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.signed-divider {
|
|
43
|
-
width:
|
|
43
|
+
width: var(--sys-size-1);
|
|
44
44
|
height: 15px;
|
|
45
45
|
background-color: var(--sys-color-divider);
|
|
46
|
-
margin: 0
|
|
46
|
+
margin: 0 var(--sys-size-3);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.selectable-text {
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
:scope {
|
|
9
9
|
flex: auto;
|
|
10
10
|
display: flex;
|
|
11
|
-
min-height:
|
|
11
|
+
min-height: var(--sys-size-9);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.settings {
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-wrap: wrap;
|
|
17
|
-
margin: 0
|
|
17
|
+
margin: 0 var(--sys-size-6) var(--sys-size-6);
|
|
18
18
|
gap: 15px 45px;
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -517,7 +517,7 @@ export class PlayerPropertiesView extends UI.Widget.VBox {
|
|
|
517
517
|
[PlayerPropertyKeys.TEXT_TRACKS]: new TrackProperty(PlayerPropertyKeys.TEXT_TRACKS),
|
|
518
518
|
};
|
|
519
519
|
|
|
520
|
-
constructor(target?: HTMLElement, view = DEFAULT_VIEW) {
|
|
520
|
+
constructor(target?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
521
521
|
super(target);
|
|
522
522
|
this.#view = view;
|
|
523
523
|
}
|
|
@@ -30,8 +30,9 @@ const DefaultStyle: () => PerfUI.FlameChart.GroupStyle = () => ({
|
|
|
30
30
|
useDecoratorsForOverview: false,
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
export const HotColorScheme = ['#ffba08', '#faa307', '#f48c06', '#e85d04', '#dc2f02', '#d00000', '#9d0208'];
|
|
34
|
-
export const ColdColorScheme
|
|
33
|
+
export const HotColorScheme: string[] = ['#ffba08', '#faa307', '#f48c06', '#e85d04', '#dc2f02', '#d00000', '#9d0208'];
|
|
34
|
+
export const ColdColorScheme: string[] =
|
|
35
|
+
['#7400b8', '#6930c3', '#5e60ce', '#5390d9', '#4ea8de', '#48bfe3', '#56cfe1', '#64dfdf'];
|
|
35
36
|
|
|
36
37
|
function calculateFontColor(backgroundColor: string): string {
|
|
37
38
|
const parsedColor = Common.Color.parse(backgroundColor)?.as(Common.Color.Format.HSL);
|
|
@@ -207,7 +207,8 @@ export class NetworkThrottlingSelect extends NetworkThrottlingSelectBase {
|
|
|
207
207
|
currentConditions?: SDK.NetworkManager.Conditions,
|
|
208
208
|
includeBlocking?: true,
|
|
209
209
|
} = {},
|
|
210
|
-
settings = Common.Settings.Settings.instance(),
|
|
210
|
+
settings: Common.Settings.Settings = Common.Settings.Settings.instance(),
|
|
211
|
+
view: ViewFunction = DEFAULT_VIEW) {
|
|
211
212
|
super(element);
|
|
212
213
|
this.#settings = settings;
|
|
213
214
|
SDK.NetworkManager.customUserNetworkConditionsSetting(settings).addChangeListener(this.requestUpdate, this);
|
|
@@ -405,7 +405,7 @@ export class SaveDataOverrideSelect extends UI.Widget.Widget<HTMLSelectElement>
|
|
|
405
405
|
readonly #setting: Common.Settings.Setting<SDK.EmulationModel.DataSaverOverride>;
|
|
406
406
|
readonly #view: SaveDataOverrideViewFunction;
|
|
407
407
|
|
|
408
|
-
constructor(element: HTMLElement, view = DEFAULT_SAVE_DATA_VIEW) {
|
|
408
|
+
constructor(element: HTMLElement, view: SaveDataOverrideViewFunction = DEFAULT_SAVE_DATA_VIEW) {
|
|
409
409
|
super(element);
|
|
410
410
|
this.#view = view;
|
|
411
411
|
this.#setting = Common.Settings.Settings.instance().resolve(SDK.SDKSettings.dataSaverSettingDescriptor);
|
|
@@ -145,7 +145,8 @@ export class ThrottlingPresets {
|
|
|
145
145
|
SDK.NetworkManager.OfflineConditions,
|
|
146
146
|
];
|
|
147
147
|
|
|
148
|
-
static cpuThrottlingPresets
|
|
148
|
+
static cpuThrottlingPresets: PanelsCommon.CPUThrottlingOption.CPUThrottlingOption[] =
|
|
149
|
+
PanelsCommon.CPUThrottlingOption.cpuThrottlingPresets;
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
// @ts-expect-error exported for Tests.js
|
|
@@ -986,15 +986,17 @@ export class NetworkRequestNode extends NetworkNode {
|
|
|
986
986
|
return aValue.localeCompare(bValue) || aRequest.identityCompare(bRequest);
|
|
987
987
|
}
|
|
988
988
|
|
|
989
|
-
static readonly ResponseHeaderStringComparator
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
(
|
|
997
|
-
|
|
989
|
+
static readonly ResponseHeaderStringComparator:
|
|
990
|
+
(propertyName: string, a: NetworkNode, b: NetworkNode) => number = NetworkRequestNode.HeaderStringComparator.bind(
|
|
991
|
+
null,
|
|
992
|
+
(req: SDK.NetworkRequest.NetworkRequest, name: string) => req.responseHeaderValue(name),
|
|
993
|
+
);
|
|
994
|
+
|
|
995
|
+
static readonly RequestHeaderStringComparator:
|
|
996
|
+
(propertyName: string, a: NetworkNode, b: NetworkNode) => number = NetworkRequestNode.HeaderStringComparator.bind(
|
|
997
|
+
null,
|
|
998
|
+
(req: SDK.NetworkRequest.NetworkRequest, name: string) => req.requestHeaderValue(name),
|
|
999
|
+
);
|
|
998
1000
|
|
|
999
1001
|
static ResponseHeaderNumberComparator(propertyName: string, a: NetworkNode, b: NetworkNode): number {
|
|
1000
1002
|
// TODO(allada) Handle this properly for group nodes.
|
|
@@ -1691,7 +1691,10 @@ export class NetworkLogView extends NetworkLogViewBase implements
|
|
|
1691
1691
|
this.suggestionBuilder.addItem(NetworkForward.UIFilter.FilterType.Scheme, String(request.scheme));
|
|
1692
1692
|
this.suggestionBuilder.addItem(NetworkForward.UIFilter.FilterType.StatusCode, String(request.statusCode));
|
|
1693
1693
|
this.suggestionBuilder.addItem(NetworkForward.UIFilter.FilterType.ResourceType, request.resourceType().name());
|
|
1694
|
-
|
|
1694
|
+
const requestURLSecurityOrigin = request.requestURLSecurityOrigin();
|
|
1695
|
+
if (!requestURLSecurityOrigin.isOpaque()) {
|
|
1696
|
+
this.suggestionBuilder.addItem(NetworkForward.UIFilter.FilterType.Url, requestURLSecurityOrigin.siteId());
|
|
1697
|
+
}
|
|
1695
1698
|
|
|
1696
1699
|
const priority = request.priority();
|
|
1697
1700
|
if (priority) {
|
|
@@ -831,8 +831,11 @@ export class NetworkLogViewColumns {
|
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
const isRequestHeader = headerId.startsWith('request-header-');
|
|
834
|
-
|
|
835
|
-
|
|
834
|
+
// The comparators look up the raw header value by its actual name, so strip
|
|
835
|
+
// the 'request-header-'/'response-header-' prefix from the column id first.
|
|
836
|
+
const headerName = headerId.replace(/^(?:request|response)-header-/, '');
|
|
837
|
+
const sortingFunction = isRequestHeader ? NetworkRequestNode.RequestHeaderStringComparator.bind(null, headerName) :
|
|
838
|
+
NetworkRequestNode.ResponseHeaderStringComparator.bind(null, headerName);
|
|
836
839
|
|
|
837
840
|
const columnConfigBase = Object.assign({}, DEFAULT_COLUMN_CONFIG, {
|
|
838
841
|
id: headerId,
|
|
@@ -383,7 +383,7 @@ export class AffectedCountWidget extends UI.Widget.Widget {
|
|
|
383
383
|
#condition?: SDK.NetworkManager.RequestCondition;
|
|
384
384
|
#lookUpRequestCount?: (condition: SDK.NetworkManager.RequestCondition) => number;
|
|
385
385
|
|
|
386
|
-
constructor(target?: HTMLElement, view = AFFECTED_COUNT_DEFAULT_VIEW) {
|
|
386
|
+
constructor(target?: HTMLElement, view: AffectedCountView = AFFECTED_COUNT_DEFAULT_VIEW) {
|
|
387
387
|
super(target);
|
|
388
388
|
this.#view = view;
|
|
389
389
|
}
|
|
@@ -459,7 +459,7 @@ export class RequestConditionsDrawer extends UI.Widget.VBox {
|
|
|
459
459
|
#viewOutput: ViewOutput = {itemRefs: new Map()};
|
|
460
460
|
#editingCondition?: SDK.NetworkManager.RequestCondition;
|
|
461
461
|
|
|
462
|
-
constructor(target?: HTMLElement, view = DEFAULT_VIEW) {
|
|
462
|
+
constructor(target?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
463
463
|
super(target, {
|
|
464
464
|
jslog: `${VisualLogging.panel('network.blocked-urls').track({resize: true})}`,
|
|
465
465
|
useShadowDom: true,
|