chrome-devtools-frontend 1.0.1690531 → 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/.gitmodules +0 -4
- 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/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 +14 -1
- package/front_end/core/sdk/NetworkRequestAccess.ts +41 -22
- package/front_end/core/sdk/ResourceTreeModel.ts +72 -23
- package/front_end/core/sdk/SecurityOrigin.ts +89 -29
- package/front_end/core/sdk/Target.ts +18 -0
- package/front_end/core/sdk/sdk.ts +2 -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 +13 -3
- package/front_end/generated/protocol.ts +24 -0
- package/front_end/models/ai_assistance/AiAgent2.ts +42 -9
- package/front_end/models/ai_assistance/AiConversation.ts +6 -6
- 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/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/indexedDBViews.css +0 -14
- package/front_end/panels/console/ConsoleContextSelector.ts +12 -5
- package/front_end/panels/console/ConsoleViewMessage.ts +12 -8
- package/front_end/panels/coverage/coverageView.css +8 -8
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +4 -5
- package/front_end/panels/developer_resources/developerResourcesView.css +3 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +39 -12
- package/front_end/panels/elements/ElementsTreeOutline.ts +183 -107
- package/front_end/panels/elements/ShortcutTreeElement.ts +4 -0
- package/front_end/panels/elements/StylePropertiesSection.ts +1 -34
- package/front_end/panels/elements/components/CSSPropertyIconResolver.ts +5 -4
- package/front_end/panels/elements/components/StylePropertyEditor.ts +1 -0
- 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/event_listeners/eventListenersView.css +1 -1
- package/front_end/panels/issues/AffectedElementsView.ts +3 -0
- 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/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/NetworkLogViewColumns.ts +5 -2
- package/front_end/panels/network/RequestHeadersView.ts +46 -10
- package/front_end/panels/network/components/RequestHeadersView.css +12 -0
- 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/timeline/TimelineFlameChartView.ts +0 -32
- package/front_end/panels/timeline/TimelinePanel.ts +0 -17
- 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/web_audio/webAudio.css +5 -5
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/csp_evaluator/package/tsconfig.json +1 -0
- package/front_end/third_party/diff/DiffWrapper.ts +1 -8
- 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 +194 -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/markdown_view/MarkdownView.ts +31 -1
- 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/InspectorView.ts +17 -1
- package/front_end/ui/legacy/SplitWidget.ts +16 -2
- package/front_end/ui/legacy/StatusBar.ts +78 -0
- package/front_end/ui/legacy/Toolbar.ts +4 -0
- package/front_end/ui/legacy/Treeoutline.ts +78 -11
- package/front_end/ui/legacy/UIUtils.ts +2 -1
- package/front_end/ui/legacy/ViewRegistration.ts +1 -0
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +23 -23
- 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 +113 -51
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +10 -7
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +16 -97
- 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/inspectorCommon.css +30 -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/KnownContextValues.ts +2 -0
- package/inspector_overlay/main.ts +8 -8
- package/mcp/mcp.ts +5 -0
- package/package.json +2 -9
- 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/puppeteer-replay/puppeteer-replay-tsconfig.json +0 -8
- package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +0 -606
- package/inspector_overlay/loadCSS.rollup.js +0 -29
|
@@ -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,
|
|
@@ -84,6 +84,11 @@ const UIStrings = {
|
|
|
84
84
|
* @description A context menu item in the Network Log View Columns of the Network panel
|
|
85
85
|
*/
|
|
86
86
|
earlyHintsHeaders: 'Early hints headers',
|
|
87
|
+
/**
|
|
88
|
+
* @description Warning in the Early hints headers section when the Disable cache setting prevents Early Hints preloads.
|
|
89
|
+
*/
|
|
90
|
+
earlyPreloadsIgnoredCacheDisabledWarning:
|
|
91
|
+
'Early Hints preloads were ignored because cache is disabled. Enable cache and reload the page to use them.',
|
|
87
92
|
/**
|
|
88
93
|
* @description Title text for a link to the Sources panel to the file containing the header override definitions
|
|
89
94
|
*/
|
|
@@ -99,6 +104,7 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
|
99
104
|
interface ViewInput {
|
|
100
105
|
showRequestHeadersText: boolean;
|
|
101
106
|
showResponseHeadersText: boolean;
|
|
107
|
+
cacheDisabled: boolean;
|
|
102
108
|
request: SDK.NetworkRequest.NetworkRequest;
|
|
103
109
|
toggleShowRawResponseHeaders: () => void;
|
|
104
110
|
toggleShowRawRequestHeaders: () => void;
|
|
@@ -184,16 +190,20 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
184
190
|
additionalContent: undefined,
|
|
185
191
|
forceOpen: input.toReveal?.section === NetworkForward.UIRequestLocation.UIHeaderSection.EARLY_HINTS,
|
|
186
192
|
loggingContext: 'early-hints-headers',
|
|
187
|
-
contents:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
contents: html`
|
|
194
|
+
${input.cacheDisabled && hasEarlyHintsPreload(input.request.earlyHintsHeaders) ?
|
|
195
|
+
renderEarlyHintsWarning() : Lit.nothing}
|
|
196
|
+
${input.showResponseHeadersText ?
|
|
197
|
+
renderRawHeaders(input.request.responseHeadersText) :
|
|
198
|
+
html`
|
|
199
|
+
<devtools-early-hints-header-section .data=${
|
|
200
|
+
{
|
|
201
|
+
request: input.request,
|
|
202
|
+
toReveal: input.toReveal,
|
|
203
|
+
} as NetworkComponents.ResponseHeaderSection
|
|
204
|
+
.ResponseHeaderSectionData}></devtools-early-hints-header-section>
|
|
205
|
+
`}
|
|
206
|
+
`,
|
|
197
207
|
})}
|
|
198
208
|
${renderCategory({
|
|
199
209
|
name: 'response-headers',
|
|
@@ -368,6 +378,7 @@ export class RequestHeadersView extends UI.Widget.Widget {
|
|
|
368
378
|
revealHeadersFile,
|
|
369
379
|
request: this.#request,
|
|
370
380
|
toReveal: this.#toReveal,
|
|
381
|
+
cacheDisabled: this.#request.cacheDisabled(),
|
|
371
382
|
showResponseHeadersText: this.#showResponseHeadersText,
|
|
372
383
|
showRequestHeadersText: this.#showRequestHeadersText,
|
|
373
384
|
};
|
|
@@ -386,6 +397,31 @@ export class RequestHeadersView extends UI.Widget.Widget {
|
|
|
386
397
|
}
|
|
387
398
|
}
|
|
388
399
|
|
|
400
|
+
function hasEarlyHintsPreload(headers: SDK.NetworkRequest.NameValue[]): boolean {
|
|
401
|
+
const relationParameter = /(?:^|[,;])\s*rel\s*=\s*(?:"([^"]*)"|'([^']*)'|([^,;\s]+))/gi;
|
|
402
|
+
return headers.some(header => {
|
|
403
|
+
if (Platform.StringUtilities.toLowerCaseString(header.name) !== 'link') {
|
|
404
|
+
return false;
|
|
405
|
+
}
|
|
406
|
+
for (const match of header.value.matchAll(relationParameter)) {
|
|
407
|
+
const relations = (match[1] ?? match[2] ?? match[3] ?? '').toLowerCase().trim().split(/[ \t]+/);
|
|
408
|
+
if (relations.includes('preload') || relations.includes('modulepreload')) {
|
|
409
|
+
return true;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
return false;
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
function renderEarlyHintsWarning(): Lit.LitTemplate {
|
|
417
|
+
return html`
|
|
418
|
+
<div class="early-hints-warning">
|
|
419
|
+
<devtools-icon class="medium" name="warning-filled"></devtools-icon>
|
|
420
|
+
<div>${i18nString(UIStrings.earlyPreloadsIgnoredCacheDisabledWarning)}</div>
|
|
421
|
+
</div>
|
|
422
|
+
`;
|
|
423
|
+
}
|
|
424
|
+
|
|
389
425
|
function renderHeaderOverridesLink(input: ViewInput): Lit.LitTemplate {
|
|
390
426
|
if (!input.revealHeadersFile) {
|
|
391
427
|
return Lit.nothing;
|
|
@@ -117,6 +117,18 @@ div.raw-headers-row {
|
|
|
117
117
|
color: var(--sys-color-token-subtle);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
.early-hints-warning {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
gap: var(--sys-size-4);
|
|
124
|
+
margin: var(--sys-size-3);
|
|
125
|
+
padding: var(--sys-size-5);
|
|
126
|
+
border-radius: var(--sys-shape-corner-medium-small);
|
|
127
|
+
color: var(--sys-color-on-yellow-container);
|
|
128
|
+
background-color: var(--sys-color-yellow-container);
|
|
129
|
+
font: var(--sys-typescale-body4-regular);
|
|
130
|
+
}
|
|
131
|
+
|
|
120
132
|
.raw-headers {
|
|
121
133
|
font-family: var(--source-code-font-family);
|
|
122
134
|
font-size: var(--source-code-font-size);
|
|
@@ -127,7 +127,7 @@ export class PerformanceMonitorImpl extends UI.Widget.HBox<ShadowRoot> implement
|
|
|
127
127
|
private suspended = false;
|
|
128
128
|
private graphRenderingContext: CanvasRenderingContext2D|null = null;
|
|
129
129
|
|
|
130
|
-
constructor(pollIntervalMs = 500, view = DEFAULT_VIEW) {
|
|
130
|
+
constructor(pollIntervalMs = 500, view: PerformanceMonitorView = DEFAULT_VIEW) {
|
|
131
131
|
super({useShadowDom: 'pure'});
|
|
132
132
|
this.view = view;
|
|
133
133
|
this.registerRequiredCSS(performanceMonitorStyles);
|
|
@@ -650,7 +650,7 @@ export class ControlPane extends UI.Widget.VBox {
|
|
|
650
650
|
readonly #metricValues = new Map<string, number>();
|
|
651
651
|
readonly #view: ControlPaneView;
|
|
652
652
|
|
|
653
|
-
constructor(element: HTMLElement, view = CONTROL_PANE_DEFAULT_VIEW) {
|
|
653
|
+
constructor(element: HTMLElement, view: ControlPaneView = CONTROL_PANE_DEFAULT_VIEW) {
|
|
654
654
|
super(element, {useShadowDom: false});
|
|
655
655
|
this.#view = view;
|
|
656
656
|
|
|
@@ -746,7 +746,7 @@ function renderMetricIndicator(
|
|
|
746
746
|
// clang-format on
|
|
747
747
|
}
|
|
748
748
|
|
|
749
|
-
export const format = new Intl.NumberFormat('en-US', {maximumFractionDigits: 1});
|
|
749
|
+
export const format: Intl.NumberFormat = new Intl.NumberFormat('en-US', {maximumFractionDigits: 1});
|
|
750
750
|
export interface MetricInfo {
|
|
751
751
|
name: string;
|
|
752
752
|
color: string;
|
|
@@ -1329,7 +1329,7 @@ export class NodeFormatter implements Formatter {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
|
-
export const nodeFormatter = new NodeFormatter();
|
|
1332
|
+
export const nodeFormatter: NodeFormatter = new NodeFormatter();
|
|
1333
1333
|
|
|
1334
1334
|
export class HeapFlameChartDataProvider extends ProfileFlameChartDataProvider {
|
|
1335
1335
|
readonly profile: CPUProfile.ProfileTreeModel.ProfileTreeModel;
|
|
@@ -140,7 +140,7 @@ const HeapSnapshotGridNodeBase:
|
|
|
140
140
|
export class HeapSnapshotGridNode extends HeapSnapshotGridNodeBase {
|
|
141
141
|
dataGridInternal: HeapSnapshotSortableDataGrid;
|
|
142
142
|
instanceCount = 0;
|
|
143
|
-
readonly savedChildren
|
|
143
|
+
readonly savedChildren: Map<number, HeapSnapshotGridNode> = new Map();
|
|
144
144
|
/**
|
|
145
145
|
* List of position ranges for all visible nodes: [startPos1, endPos1),...,[startPosN, endPosN)
|
|
146
146
|
* Position is an item position in the provider.
|
|
@@ -196,7 +196,7 @@ export class JSONEditor extends JSONEditorBase {
|
|
|
196
196
|
displayCommandInput = true;
|
|
197
197
|
displayToolbar = true;
|
|
198
198
|
|
|
199
|
-
constructor(element: HTMLElement, view = DEFAULT_VIEW) {
|
|
199
|
+
constructor(element: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
200
200
|
super(element, {useShadowDom: true});
|
|
201
201
|
this.#view = view;
|
|
202
202
|
this.registerRequiredCSS(editorWidgetStyles);
|
|
@@ -669,14 +669,14 @@ export class CommandAutocompleteSuggestionProvider {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
-
interface InfoWidgetViewInput {
|
|
672
|
+
export interface InfoWidgetViewInput {
|
|
673
673
|
request: Record<string, unknown>|undefined;
|
|
674
674
|
response: Record<string, unknown>|undefined;
|
|
675
675
|
type: 'sent'|'received'|undefined;
|
|
676
676
|
selectedTab: 'request'|'response'|undefined;
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
type InfoWidgetView = (input: InfoWidgetViewInput, output: undefined, target: HTMLElement) => void;
|
|
679
|
+
export type InfoWidgetView = (input: InfoWidgetViewInput, output: undefined, target: HTMLElement) => void;
|
|
680
680
|
|
|
681
681
|
const INFO_WIDGET_VIEW: InfoWidgetView = (input, _output, target) => {
|
|
682
682
|
// clang-format off
|
|
@@ -715,7 +715,7 @@ export class InfoWidget extends UI.Widget.VBox {
|
|
|
715
715
|
request: Record<string, unknown>|undefined;
|
|
716
716
|
response: Record<string, unknown>|undefined;
|
|
717
717
|
type: 'sent'|'received'|undefined;
|
|
718
|
-
constructor(element: HTMLElement, view = INFO_WIDGET_VIEW) {
|
|
718
|
+
constructor(element: HTMLElement, view: InfoWidgetView = INFO_WIDGET_VIEW) {
|
|
719
719
|
super(element);
|
|
720
720
|
this.#view = view;
|
|
721
721
|
this.requestUpdate();
|
|
@@ -44,12 +44,6 @@ const str_ = i18n.i18n.registerUIStrings(
|
|
|
44
44
|
);
|
|
45
45
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
46
46
|
|
|
47
|
-
declare global {
|
|
48
|
-
interface HTMLElementTagNameMap {
|
|
49
|
-
'devtools-recording-list-view': RecordingListView;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
47
|
interface Recording {
|
|
54
48
|
storageName: string;
|
|
55
49
|
name: string;
|
|
@@ -155,12 +155,6 @@ const str_ = i18n.i18n.registerUIStrings(
|
|
|
155
155
|
);
|
|
156
156
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
157
157
|
|
|
158
|
-
declare global {
|
|
159
|
-
interface HTMLElementTagNameMap {
|
|
160
|
-
'devtools-recording-view': RecordingView;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
158
|
export interface ReplayState {
|
|
165
159
|
isPlaying: boolean; // Replay is in progress
|
|
166
160
|
isPausedOnBreakpoint: boolean; // Replay is in progress and is in stopped state
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
|
|
27
27
|
.icon {
|
|
28
28
|
display: flex;
|
|
29
|
-
width:
|
|
30
|
-
height:
|
|
31
|
-
border-radius:
|
|
29
|
+
width: var(--sys-size-14);
|
|
30
|
+
height: var(--sys-size-14);
|
|
31
|
+
border-radius: var(--sys-shape-corner-full);
|
|
32
32
|
background: var(--sys-color-error-bright);
|
|
33
|
-
margin-bottom:
|
|
33
|
+
margin-bottom: var(--sys-size-5);
|
|
34
34
|
position: relative;
|
|
35
35
|
transition: background 200ms;
|
|
36
36
|
place-content: center center;
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
box-sizing: border-box;
|
|
44
44
|
content: "";
|
|
45
45
|
display: block;
|
|
46
|
-
width:
|
|
47
|
-
height:
|
|
48
|
-
border:
|
|
46
|
+
width: var(--sys-size-7);
|
|
47
|
+
height: var(--sys-size-7);
|
|
48
|
+
border: var(--sys-size-1) solid var(--override-white);
|
|
49
49
|
position: absolute;
|
|
50
50
|
top: 50%;
|
|
51
51
|
left: 50%;
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.icon.circle::before {
|
|
61
|
-
border-radius:
|
|
61
|
+
border-radius: var(--sys-shape-corner-full);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.icon:hover {
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.label {
|
|
77
|
-
font-size:
|
|
78
|
-
line-height:
|
|
77
|
+
font-size: var(--sys-typescale-body4-size);
|
|
78
|
+
line-height: var(--sys-typescale-body4-line-height);
|
|
79
79
|
text-align: center;
|
|
80
80
|
letter-spacing: 0.02em;
|
|
81
81
|
color: var(--sys-color-on-surface);
|
|
@@ -945,8 +945,10 @@ export class ScreencastView extends UI.Widget.Widget implements SDK.OverlayModel
|
|
|
945
945
|
|
|
946
946
|
export const BORDERS_SIZE = 44;
|
|
947
947
|
export const NAVBAR_HEIGHT = 29;
|
|
948
|
-
|
|
949
|
-
export const
|
|
948
|
+
|
|
949
|
+
export const HTTP_REGEX: RegExp = /^http:\/\/(.+)/;
|
|
950
|
+
|
|
951
|
+
export const SCHEME_REGEX: RegExp = /^(https?|about|chrome):/;
|
|
950
952
|
|
|
951
953
|
export class ProgressTracker {
|
|
952
954
|
private readonly resourceTreeModel: SDK.ResourceTreeModel.ResourceTreeModel|null;
|
|
@@ -294,7 +294,7 @@ export class SearchView extends UI.Widget.VBox<ShadowRoot> {
|
|
|
294
294
|
|
|
295
295
|
#searchResults: SearchResult[] = [];
|
|
296
296
|
|
|
297
|
-
constructor(settingKey: string, view = DEFAULT_VIEW) {
|
|
297
|
+
constructor(settingKey: string, view: View = DEFAULT_VIEW) {
|
|
298
298
|
super({useShadowDom: 'pure'});
|
|
299
299
|
this.#view = view;
|
|
300
300
|
this.setMinimumSize(0, 40);
|
|
@@ -459,8 +459,7 @@ const LOCK_ICON_NAME = 'lock';
|
|
|
459
459
|
const WARNING_ICON_NAME = 'warning';
|
|
460
460
|
const UNKNOWN_ICON_NAME = 'indeterminate-question-box';
|
|
461
461
|
|
|
462
|
-
|
|
463
|
-
securityState: Protocol.Security.SecurityState, className: string): Icon {
|
|
462
|
+
function getSecurityStateIconNameForDetailedView(securityState: Protocol.Security.SecurityState): string {
|
|
464
463
|
let iconName: string;
|
|
465
464
|
|
|
466
465
|
switch (securityState) {
|
|
@@ -478,7 +477,12 @@ export function getSecurityStateIconForDetailedView(
|
|
|
478
477
|
break;
|
|
479
478
|
}
|
|
480
479
|
|
|
481
|
-
return
|
|
480
|
+
return iconName;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export function getSecurityStateIconForDetailedView(securityState: Protocol.Security.SecurityState,
|
|
484
|
+
className: string): Icon {
|
|
485
|
+
return createIcon(getSecurityStateIconNameForDetailedView(securityState), className);
|
|
482
486
|
}
|
|
483
487
|
|
|
484
488
|
export function getSecurityStateIconForOverview(
|
|
@@ -567,9 +571,11 @@ export class SecurityPanel extends UI.Panel.Panel implements SDK.TargetManager.S
|
|
|
567
571
|
private eventListeners: Common.EventTarget.EventDescriptor[];
|
|
568
572
|
private securityModel: SecurityModel|null;
|
|
569
573
|
readonly splitWidget!: UI.SplitWidget.SplitWidget;
|
|
574
|
+
private view: View;
|
|
570
575
|
|
|
571
|
-
constructor(
|
|
576
|
+
constructor(view: View|undefined = DEFAULT_VIEW) {
|
|
572
577
|
super('security');
|
|
578
|
+
this.view = view;
|
|
573
579
|
|
|
574
580
|
this.update();
|
|
575
581
|
|
|
@@ -1424,9 +1430,30 @@ function renderConnectionSection(securityDetails: Protocol.Network.SecurityDetai
|
|
|
1424
1430
|
// clang-format on
|
|
1425
1431
|
}
|
|
1426
1432
|
|
|
1433
|
+
function renderTitleSection(origin: Platform.DevToolsPath.UrlString, securityState: Protocol.Security.SecurityState,
|
|
1434
|
+
onRevealInNetwork: (event: Event) => void): TemplateResult {
|
|
1435
|
+
// clang-format off
|
|
1436
|
+
return html`
|
|
1437
|
+
<div class="title-section-header" role="heading" aria-level="1">${i18nString(UIStrings.origin)}</div>
|
|
1438
|
+
<div class="origin-display">
|
|
1439
|
+
<devtools-icon
|
|
1440
|
+
name=${getSecurityStateIconNameForDetailedView(securityState)}
|
|
1441
|
+
class=${`security-property security-property-${securityState}`}>
|
|
1442
|
+
</devtools-icon>
|
|
1443
|
+
${renderHighlightedUrl(origin, securityState)}
|
|
1444
|
+
</div>
|
|
1445
|
+
<div class="view-network-button">
|
|
1446
|
+
<devtools-button
|
|
1447
|
+
.variant=${Buttons.Button.Variant.OUTLINED}
|
|
1448
|
+
.jslogContext=${'reveal-in-network'}
|
|
1449
|
+
@click=${onRevealInNetwork}>${i18nString(UIStrings.viewRequestsInNetworkPanel)}</devtools-button>
|
|
1450
|
+
</div>`;
|
|
1451
|
+
// clang-format on
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1427
1454
|
export class SecurityOriginView extends UI.Widget.VBox {
|
|
1428
1455
|
readonly #origin: Platform.DevToolsPath.UrlString;
|
|
1429
|
-
readonly #
|
|
1456
|
+
readonly #titleSection: HTMLElement;
|
|
1430
1457
|
|
|
1431
1458
|
constructor(origin: Platform.DevToolsPath.UrlString, originState: OriginState) {
|
|
1432
1459
|
super({jslog: `${VisualLogging.pane('security.origin-view')}`});
|
|
@@ -1436,25 +1463,8 @@ export class SecurityOriginView extends UI.Widget.VBox {
|
|
|
1436
1463
|
|
|
1437
1464
|
this.element.classList.add('security-origin-view');
|
|
1438
1465
|
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
titleDiv.textContent = i18nString(UIStrings.origin);
|
|
1442
|
-
UI.ARIAUtils.markAsHeading(titleDiv, 1);
|
|
1443
|
-
|
|
1444
|
-
this.#originDisplay = titleSection.createChild('div', 'origin-display');
|
|
1445
|
-
this.#renderOriginDisplay(originState.securityState);
|
|
1446
|
-
|
|
1447
|
-
const originNetworkDiv = titleSection.createChild('div', 'view-network-button');
|
|
1448
|
-
const originNetworkButton = UI.UIUtils.createTextButton(i18nString(UIStrings.viewRequestsInNetworkPanel), event => {
|
|
1449
|
-
event.consume();
|
|
1450
|
-
const parsedURL = new Common.ParsedURL.ParsedURL(origin);
|
|
1451
|
-
void Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters([
|
|
1452
|
-
{filterType: NetworkForward.UIFilter.FilterType.Domain, filterValue: parsedURL.host},
|
|
1453
|
-
{filterType: NetworkForward.UIFilter.FilterType.Scheme, filterValue: parsedURL.scheme},
|
|
1454
|
-
]));
|
|
1455
|
-
}, {jslogContext: 'reveal-in-network'});
|
|
1456
|
-
originNetworkDiv.appendChild(originNetworkButton);
|
|
1457
|
-
UI.ARIAUtils.markAsLink(originNetworkButton);
|
|
1466
|
+
this.#titleSection = this.element.createChild('div', 'title-section');
|
|
1467
|
+
this.#renderTitleSection(originState.securityState);
|
|
1458
1468
|
|
|
1459
1469
|
if (originState.securityDetails) {
|
|
1460
1470
|
const connectionSection = this.element.createChild('div', 'origin-view-section connection-section');
|
|
@@ -1610,21 +1620,22 @@ export class SecurityOriginView extends UI.Widget.VBox {
|
|
|
1610
1620
|
}
|
|
1611
1621
|
|
|
1612
1622
|
setSecurityState(newSecurityState: Protocol.Security.SecurityState): void {
|
|
1613
|
-
this.#
|
|
1623
|
+
this.#renderTitleSection(newSecurityState);
|
|
1614
1624
|
}
|
|
1615
1625
|
|
|
1616
|
-
#
|
|
1617
|
-
const icon =
|
|
1618
|
-
getSecurityStateIconForDetailedView(securityState, `security-property security-property-${securityState}`);
|
|
1619
|
-
|
|
1620
|
-
// clang-format off
|
|
1626
|
+
#renderTitleSection(securityState: Protocol.Security.SecurityState): void {
|
|
1621
1627
|
// eslint-disable-next-line @devtools/no-lit-render-outside-of-view
|
|
1622
|
-
render(
|
|
1623
|
-
${icon}
|
|
1624
|
-
${renderHighlightedUrl(this.#origin, securityState)}
|
|
1625
|
-
`, this.#originDisplay);
|
|
1626
|
-
// clang-format on
|
|
1628
|
+
render(renderTitleSection(this.#origin, securityState, this.#revealInNetwork), this.#titleSection);
|
|
1627
1629
|
}
|
|
1630
|
+
|
|
1631
|
+
#revealInNetwork = (event: Event): void => {
|
|
1632
|
+
event.consume();
|
|
1633
|
+
const parsedURL = new Common.ParsedURL.ParsedURL(this.#origin);
|
|
1634
|
+
void Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters([
|
|
1635
|
+
{filterType: NetworkForward.UIFilter.FilterType.Domain, filterValue: parsedURL.host},
|
|
1636
|
+
{filterType: NetworkForward.UIFilter.FilterType.Scheme, filterValue: parsedURL.scheme},
|
|
1637
|
+
]));
|
|
1638
|
+
};
|
|
1628
1639
|
}
|
|
1629
1640
|
|
|
1630
1641
|
export class SecurityDetailsTable {
|
|
@@ -20,7 +20,6 @@ import {getAnnotationEntries, getAnnotationWindow} from './AnnotationHelpers.js'
|
|
|
20
20
|
import type * as TimelineComponents from './components/components.js';
|
|
21
21
|
import * as TimelineInsights from './components/insights/insights.js';
|
|
22
22
|
import {CountersGraph} from './CountersGraph.js';
|
|
23
|
-
import {SHOULD_SHOW_EASTER_EGG} from './EasterEgg.js';
|
|
24
23
|
import {ModificationsManager} from './ModificationsManager.js';
|
|
25
24
|
import * as OverlayComponents from './overlays/components/components.js';
|
|
26
25
|
import * as Overlays from './overlays/overlays.js';
|
|
@@ -112,7 +111,6 @@ export class TimelineFlameChartView extends TimelineFlameChartViewBase implement
|
|
|
112
111
|
private readonly networkPane: UI.Widget.VBox;
|
|
113
112
|
private readonly splitResizer: HTMLElement;
|
|
114
113
|
private readonly chartSplitWidget: UI.SplitWidget.SplitWidget;
|
|
115
|
-
private brickGame?: PerfUI.BrickBreaker.BrickBreaker;
|
|
116
114
|
private readonly countersView: CountersGraph;
|
|
117
115
|
private readonly detailsSplitWidget: UI.SplitWidget.SplitWidget;
|
|
118
116
|
private readonly detailsView: TimelineDetailsPane;
|
|
@@ -146,8 +144,6 @@ export class TimelineFlameChartView extends TimelineFlameChartViewBase implement
|
|
|
146
144
|
#onTraceBoundsChangeBound = this.#onTraceBoundsChange.bind(this);
|
|
147
145
|
#debouncedUpdateSearchResults: () => void = Common.Debouncer.debounce(() => this.updateSearchResults(false, false),
|
|
148
146
|
100);
|
|
149
|
-
#gameKeyMatches = 0;
|
|
150
|
-
#gameTimeout = setTimeout(() => ({}), 0);
|
|
151
147
|
|
|
152
148
|
#overlaysContainer: HTMLElement = document.createElement('div');
|
|
153
149
|
#overlays: Overlays.Overlays.Overlays;
|
|
@@ -1074,8 +1070,6 @@ export class TimelineFlameChartView extends TimelineFlameChartViewBase implement
|
|
|
1074
1070
|
}
|
|
1075
1071
|
|
|
1076
1072
|
#keydownHandler(event: KeyboardEvent): void {
|
|
1077
|
-
const keyCombo = 'fixme';
|
|
1078
|
-
|
|
1079
1073
|
// `CREATION_NOT_STARTED` is only true in the state when both empty label and button to create connection are
|
|
1080
1074
|
// created at the same time. If any key is typed in that state, it means that the label is in focus and the key
|
|
1081
1075
|
// is typed into the label. This tells us that the user chose to create the
|
|
@@ -1104,37 +1098,11 @@ export class TimelineFlameChartView extends TimelineFlameChartViewBase implement
|
|
|
1104
1098
|
event.stopPropagation();
|
|
1105
1099
|
return;
|
|
1106
1100
|
}
|
|
1107
|
-
|
|
1108
|
-
if (event.key === keyCombo[this.#gameKeyMatches]) {
|
|
1109
|
-
this.#gameKeyMatches++;
|
|
1110
|
-
clearTimeout(this.#gameTimeout);
|
|
1111
|
-
this.#gameTimeout = setTimeout(() => {
|
|
1112
|
-
this.#gameKeyMatches = 0;
|
|
1113
|
-
}, 2000);
|
|
1114
|
-
} else {
|
|
1115
|
-
this.#gameKeyMatches = 0;
|
|
1116
|
-
clearTimeout(this.#gameTimeout);
|
|
1117
|
-
}
|
|
1118
|
-
if (this.#gameKeyMatches !== keyCombo.length) {
|
|
1119
|
-
return;
|
|
1120
|
-
}
|
|
1121
|
-
this.runBrickBreakerGame();
|
|
1122
1101
|
}
|
|
1123
1102
|
|
|
1124
1103
|
forceAnimationsForTest(): void {
|
|
1125
1104
|
this.#checkReducedMotion = false;
|
|
1126
1105
|
}
|
|
1127
|
-
runBrickBreakerGame(): void {
|
|
1128
|
-
if (!SHOULD_SHOW_EASTER_EGG) {
|
|
1129
|
-
return;
|
|
1130
|
-
}
|
|
1131
|
-
if ([...this.element.childNodes].find(child => child instanceof PerfUI.BrickBreaker.BrickBreaker)) {
|
|
1132
|
-
return;
|
|
1133
|
-
}
|
|
1134
|
-
this.brickGame = new PerfUI.BrickBreaker.BrickBreaker(this.mainFlameChart);
|
|
1135
|
-
this.brickGame.classList.add('brick-game');
|
|
1136
|
-
this.element.append(this.brickGame);
|
|
1137
|
-
}
|
|
1138
1106
|
|
|
1139
1107
|
#onTraceBoundsChange(event: TraceBounds.TraceBounds.StateChangedEvent): void {
|
|
1140
1108
|
if (event.updateType === 'MINIMAP_BOUNDS') {
|
|
@@ -51,7 +51,6 @@ import * as SourceMapsResolver from '../../models/trace_source_maps_resolver/tra
|
|
|
51
51
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
52
52
|
import * as TraceBounds from '../../services/trace_bounds/trace_bounds.js';
|
|
53
53
|
import * as Tracing from '../../services/tracing/tracing.js';
|
|
54
|
-
import * as Adorners from '../../ui/components/adorners/adorners.js';
|
|
55
54
|
import * as Dialogs from '../../ui/components/dialogs/dialogs.js';
|
|
56
55
|
import {Link} from '../../ui/kit/kit.js';
|
|
57
56
|
import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
|
|
@@ -118,10 +117,6 @@ const UIStrings = {
|
|
|
118
117
|
* @description Tooltip for the clear button in the Performance panel toolbar.
|
|
119
118
|
*/
|
|
120
119
|
clear: 'Clear',
|
|
121
|
-
/**
|
|
122
|
-
* @description Adorner label for a trace event that needs attention.
|
|
123
|
-
*/
|
|
124
|
-
fixMe: 'Fix me',
|
|
125
120
|
/**
|
|
126
121
|
* @description Tooltip for the load trace button in the Performance panel toolbar.
|
|
127
122
|
*/
|
|
@@ -496,18 +491,6 @@ export class TimelinePanel extends TimelinePanelBase implements Client, Timeline
|
|
|
496
491
|
this.#targetManager = targetManager;
|
|
497
492
|
this.#isolateManager = isolateManager;
|
|
498
493
|
this.registerRequiredCSS(timelinePanelStyles);
|
|
499
|
-
const adornerContent = document.createElement('span');
|
|
500
|
-
adornerContent.innerHTML = `<div style="
|
|
501
|
-
font-size: 12px;
|
|
502
|
-
transform: scale(1.25);
|
|
503
|
-
color: transparent;
|
|
504
|
-
background: linear-gradient(90deg,CLICK255 0 0 / 100%) 0%, rgb(255 154 0 / 100%) 10%, rgb(208 222 33 / 100%) 20%, rgb(79 220 74 / 100%) 30%, rgb(63 218 216 / 100%) 40%, rgb(47 201 226 / 100%) 50%, rgb(28 127 238 / 100%) 60%, rgb(95 21 242 / 100%) 70%, rgb(186 12 248 / 100%) 80%, rgb(251 7 217 / 100%) 90%, rgb(255 0 0 / 100%) 100%);
|
|
505
|
-
-webkit-background-clip: text;
|
|
506
|
-
">💫</div>`;
|
|
507
|
-
const adorner = new Adorners.Adorner.Adorner();
|
|
508
|
-
adorner.classList.add('fix-perf-icon');
|
|
509
|
-
adorner.name = i18nString(UIStrings.fixMe);
|
|
510
|
-
adorner.append(adornerContent);
|
|
511
494
|
this.#traceEngineModel = traceModel || this.#instantiateNewModel();
|
|
512
495
|
|
|
513
496
|
this.element.addEventListener('contextmenu', this.contextMenu.bind(this), false);
|
|
@@ -50,10 +50,10 @@ table th[scope='row'] {
|
|
|
50
50
|
color: var(--sys-color-primary);
|
|
51
51
|
text-decoration: underline;
|
|
52
52
|
cursor: pointer;
|
|
53
|
-
outline-offset:
|
|
53
|
+
outline-offset: var(--sys-size-2);
|
|
54
54
|
padding: 0;
|
|
55
55
|
margin-left: var(--sys-size-3);
|
|
56
|
-
white-space: nowrap
|
|
56
|
+
white-space: nowrap;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
button.devtools-link {
|
|
@@ -61,5 +61,5 @@ button.devtools-link {
|
|
|
61
61
|
background: none;
|
|
62
62
|
font-family: inherit;
|
|
63
63
|
font-size: inherit;
|
|
64
|
-
height:
|
|
64
|
+
height: var(--sys-size-8);
|
|
65
65
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
pointer-events: none;
|
|
15
15
|
position: absolute;
|
|
16
16
|
display: block;
|
|
17
|
-
border:
|
|
17
|
+
border: var(--sys-size-2) solid var(--color-text-primary);
|
|
18
18
|
box-sizing: border-box;
|
|
19
19
|
|
|
20
20
|
&.cut-off-top {
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.entry-is-not-source {
|
|
38
|
-
border:
|
|
38
|
+
border: var(--sys-size-2) dashed var(--color-text-primary);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.create-link-icon {
|
|
42
42
|
pointer-events: auto;
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
color: var(--sys-color-on-surface);
|
|
45
|
-
width:
|
|
46
|
-
height:
|
|
45
|
+
width: var(--sys-size-8);
|
|
46
|
+
height: var(--sys-size-8);
|
|
47
47
|
position: absolute;
|
|
48
48
|
}
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
align-items: center;
|
|
87
87
|
gap: var(--sys-size-4);
|
|
88
88
|
padding: var(--sys-size-3) var(--sys-size-5);
|
|
89
|
-
border:
|
|
89
|
+
border: var(--sys-size-1) solid var(--color-primary);
|
|
90
90
|
border-radius: var(--sys-shape-corner-large);
|
|
91
91
|
|
|
92
92
|
&.enabled {
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
font-family: var(--default-font-family);
|
|
118
118
|
font-size: var(--sys-typescale-body2-size);
|
|
119
119
|
font-weight: var(--ref-typeface-weight-medium);
|
|
120
|
-
outline:
|
|
120
|
+
outline: var(--sys-size-2) solid var(--color-background);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
.input-field.fake-focus-state {
|
|
133
133
|
background-color: var(--color-background);
|
|
134
134
|
color: var(--color-background-inverted);
|
|
135
|
-
outline:
|
|
135
|
+
outline: var(--sys-size-2) solid var(--color-background-inverted);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.connectorContainer {
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
|
|
142
142
|
.entry-highlight-wrapper {
|
|
143
143
|
box-sizing: border-box;
|
|
144
|
-
border:
|
|
144
|
+
border: var(--sys-size-2) solid var(--sys-color-on-surface);
|
|
145
145
|
|
|
146
146
|
&.cut-off-top {
|
|
147
147
|
border-top: none;
|