chrome-devtools-frontend 1.0.1675430 → 1.0.1678416
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/AUTHORS +1 -0
- package/WATCHLISTS +0 -4
- package/front_end/core/common/EventTarget.ts +0 -5
- package/front_end/core/common/Settings.ts +0 -66
- package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -0
- package/front_end/core/host/UserMetrics.ts +5 -0
- package/front_end/core/root/Runtime.ts +5 -5
- package/front_end/core/sdk/CSSMetadata.ts +5 -9
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +16 -34
- package/front_end/core/sdk/DebuggerModel.ts +92 -57
- package/front_end/core/sdk/EmulationModel.ts +2 -1
- package/front_end/core/sdk/NetworkManager.ts +16 -2
- package/front_end/core/sdk/OverlayModel.ts +19 -9
- package/front_end/core/sdk/OverlayPersistentHighlighter.ts +10 -4
- package/front_end/core/sdk/ResourceTreeModel.ts +20 -1
- package/front_end/core/sdk/SDKSettings.ts +117 -0
- package/front_end/core/sdk/Script.ts +9 -53
- package/front_end/core/sdk/sdk-meta.ts +0 -431
- package/front_end/devtools_compatibility.js +1 -0
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +213 -23
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +6 -5
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +14 -15
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +157 -0
- package/front_end/entrypoints/main/MainImpl.ts +32 -0
- package/front_end/entrypoints/shell/shell.ts +0 -1
- package/front_end/foundation/Universe.ts +8 -0
- package/front_end/generated/InspectorBackendCommands.ts +8 -8
- package/front_end/generated/SupportedCSSProperties.ts +53 -4
- package/front_end/generated/protocol-mapping.d.ts +27 -21
- package/front_end/generated/protocol-proxy-api.d.ts +22 -17
- package/front_end/generated/protocol.ts +43 -18
- package/front_end/models/ai_assistance/AiAgent2.ts +47 -2
- package/front_end/models/ai_assistance/AiConversation.ts +22 -5
- package/front_end/models/ai_assistance/README.md +52 -26
- package/front_end/models/ai_assistance/agents/AiAgent.ts +54 -8
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +1 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +7 -194
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +21 -87
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -1
- package/front_end/models/ai_assistance/ai_assistance.ts +24 -0
- package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +124 -0
- package/front_end/models/ai_assistance/contexts/StorageContext.ts +100 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +69 -1
- package/front_end/models/ai_assistance/skills/README.md +63 -1
- package/front_end/models/ai_assistance/skills/Skill.ts +1 -1
- package/front_end/models/ai_assistance/skills/SkillRegistry.ts +4 -0
- package/front_end/models/ai_assistance/skills/accessibility.md +7 -0
- package/front_end/models/ai_assistance/skills/performance.md +15 -1
- package/front_end/models/ai_assistance/skills/sources.md +16 -0
- package/front_end/models/ai_assistance/skills/storage.md +31 -0
- package/front_end/models/ai_assistance/tools/GetDetailedCallTree.ts +107 -0
- package/front_end/models/ai_assistance/tools/GetFunctionCode.ts +122 -0
- package/front_end/models/ai_assistance/tools/GetResourceContent.ts +127 -0
- package/front_end/models/ai_assistance/tools/GetSourceContent.ts +101 -0
- package/front_end/models/ai_assistance/tools/GetTraceEventByKey.ts +83 -0
- package/front_end/models/ai_assistance/tools/GetTraceMainThreadSummary.ts +106 -0
- package/front_end/models/ai_assistance/tools/GetTraceNetworkSummary.ts +104 -0
- package/front_end/models/ai_assistance/tools/ListPageOrigins.ts +95 -0
- package/front_end/models/ai_assistance/tools/ListSources.ts +116 -0
- package/front_end/models/ai_assistance/tools/RunLighthouse.ts +89 -0
- package/front_end/models/ai_assistance/tools/SelectTraceEventByKey.ts +90 -0
- package/front_end/models/ai_assistance/tools/Tool.ts +26 -1
- package/front_end/models/ai_assistance/tools/ToolRegistry.ts +22 -0
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +4 -0
- package/front_end/models/bindings/CompilerScriptMapping.ts +4 -0
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +8 -0
- package/front_end/models/bindings/ResourceScriptMapping.ts +3 -201
- package/front_end/models/bindings/SASSSourceMapping.ts +6 -0
- package/front_end/models/breakpoints/BreakpointManager.ts +2 -49
- package/front_end/models/comment_manager/CommentManager.ts +141 -0
- package/front_end/models/comment_manager/comment_manager.ts +9 -0
- package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +27 -0
- package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +10 -2
- package/front_end/models/issues_manager/descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +26 -0
- package/front_end/models/issues_manager/descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +19 -0
- package/front_end/models/issues_manager/descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +21 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +6 -6
- package/front_end/models/persistence/IsolatedFileSystem.ts +7 -8
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
- package/front_end/models/persistence/PlatformFileSystem.ts +1 -1
- package/front_end/models/persistence/persistence-meta.ts +9 -9
- package/front_end/models/trace/types/TraceEvents.ts +36 -0
- package/front_end/panels/accessibility/ARIAAttributesView.ts +3 -3
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +25 -0
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +36 -36
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +9 -0
- package/front_end/panels/accessibility/AccessibilityStrings.ts +168 -168
- package/front_end/panels/accessibility/SourceOrderView.ts +7 -7
- package/front_end/panels/accessibility/accessibility-meta.ts +2 -2
- package/front_end/panels/accessibility/accessibility.ts +2 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +5 -5
- package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +2 -3
- package/front_end/panels/ai_assistance/components/ChatInput.ts +2 -2
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +92 -12
- package/front_end/panels/ai_assistance/components/chatMessage.css +6 -0
- package/front_end/panels/application/ApplicationPanelSidebar.ts +10 -4
- package/front_end/panels/application/IndexedDBViews.ts +65 -63
- package/front_end/panels/application/StorageView.ts +116 -45
- package/front_end/panels/application/WebMCPView.ts +16 -7
- package/front_end/panels/application/application-meta.ts +11 -0
- package/front_end/panels/application/components/AdsView.ts +1 -1
- package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +5 -5
- package/front_end/panels/common/BadgeNotification.ts +8 -8
- package/front_end/panels/common/ExtensionPanel.ts +9 -8
- package/front_end/panels/common/ExtensionServer.ts +21 -1
- package/front_end/panels/common/GdpSignUpDialog.ts +16 -16
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +5 -6
- package/front_end/panels/common/PersistenceUtils.ts +2 -2
- package/front_end/panels/common/common.ts +0 -97
- package/front_end/panels/console/ConsoleInsightTeaser.ts +2 -2
- package/front_end/panels/console/ConsolePanel.ts +4 -0
- package/front_end/panels/console/ConsolePinPane.ts +2 -2
- package/front_end/panels/console/ConsolePrompt.ts +12 -0
- package/front_end/panels/console/ConsoleView.ts +31 -20
- package/front_end/panels/console/ConsoleViewMessage.ts +37 -13
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewModel.ts +1 -1
- package/front_end/panels/elements/ElementStatePaneWidget.ts +2 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +455 -372
- package/front_end/panels/elements/LayoutPane.ts +2 -8
- package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -15
- package/front_end/panels/elements/elements-meta.ts +152 -10
- package/front_end/panels/elements/elements.ts +0 -2
- package/front_end/panels/emulation/DeviceModeView.ts +9 -1
- package/front_end/panels/event_listeners/EventListenersView.ts +8 -4
- package/front_end/panels/issues/AffectedTrackingSitesView.ts +25 -14
- package/front_end/panels/lighthouse/LighthouseController.ts +3 -2
- package/front_end/panels/media/PlayerMessagesView.ts +149 -68
- package/front_end/panels/network/BinaryResourceView.ts +134 -81
- package/front_end/panels/network/EventSourceMessagesView.ts +10 -10
- package/front_end/panels/network/FetchHeaderCommenting.ts +291 -0
- package/front_end/panels/network/NetworkConfigView.ts +10 -10
- package/front_end/panels/network/NetworkDataGridNode.ts +14 -14
- package/front_end/panels/network/NetworkItemView.ts +27 -28
- package/front_end/panels/network/NetworkLogView.ts +137 -38
- package/front_end/panels/network/NetworkLogViewColumns.ts +35 -35
- package/front_end/panels/network/NetworkManageCustomHeadersView.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +2 -2
- package/front_end/panels/network/RequestConditionsDrawer.ts +5 -5
- package/front_end/panels/network/RequestCookiesView.ts +4 -4
- package/front_end/panels/network/RequestHeadersView.ts +5 -5
- package/front_end/panels/network/RequestPayloadView.ts +4 -3
- package/front_end/panels/network/RequestTimingView.ts +8 -8
- package/front_end/panels/network/ResourceChunkView.ts +1 -1
- package/front_end/panels/network/ResourceDirectSocketChunkView.ts +1 -1
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +16 -16
- package/front_end/panels/network/binaryResourceView.css +14 -12
- package/front_end/panels/network/components/DirectSocketConnectionView.ts +2 -2
- package/front_end/panels/network/components/HeaderSectionRow.ts +1 -1
- package/front_end/panels/network/components/RequestTrustTokensView.ts +2 -2
- package/front_end/panels/network/network-meta.ts +1 -1
- package/front_end/panels/network/network.ts +2 -0
- package/front_end/panels/profiler/HeapDetachedElementsDataGrid.ts +0 -1
- package/front_end/panels/profiler/HeapSnapshotView.ts +0 -2
- package/front_end/panels/profiler/heapProfiler.css +0 -9
- package/front_end/panels/recorder/RecorderPanel.ts +2 -3
- package/front_end/panels/screencast/ScreencastView.ts +148 -138
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +2 -2
- package/front_end/panels/sources/BreakpointsView.ts +2 -2
- package/front_end/panels/sources/DebuggerPlugin.ts +10 -59
- package/front_end/panels/sources/NavigatorView.ts +2 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +1 -1
- package/front_end/panels/sources/SourcesPanel.ts +23 -73
- package/front_end/panels/sources/SourcesView.ts +248 -157
- package/front_end/panels/sources/TabbedEditorContainer.ts +118 -23
- package/front_end/panels/sources/UISourceCodeFrame.ts +5 -9
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -2
- package/front_end/panels/sources/sources-meta.ts +52 -0
- package/front_end/panels/timeline/TimelineController.ts +36 -64
- package/front_end/panels/timeline/TimelinePanel.ts +11 -8
- package/front_end/panels/timeline/TimelineUIUtils.ts +5 -2
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +2 -2
- package/front_end/panels/timeline/timelinePanel.css +0 -10
- package/front_end/panels/utils/utils.ts +7 -7
- package/front_end/services/tracing/PerformanceTracing.ts +5 -17
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
- package/front_end/third_party/codemirror.next/package.json +2 -2
- package/front_end/third_party/codemirror.next/rebuild.sh +4 -1
- package/front_end/ui/comments/CommentAnchorResolver.ts +430 -35
- package/front_end/ui/comments/CommentOverlayManager.ts +635 -0
- package/front_end/ui/comments/CommentsOverlayWidget.ts +134 -0
- package/front_end/ui/comments/comments.ts +4 -0
- package/front_end/ui/comments/commentsOverlay.css +49 -0
- package/front_end/{panels/common → ui/components/dialogs}/FreDialog.ts +6 -6
- package/front_end/ui/components/dialogs/TypeToAllowDialog.ts +96 -0
- package/front_end/ui/components/dialogs/dialogs.ts +4 -0
- package/front_end/ui/components/settings/SettingCheckbox.ts +3 -3
- package/front_end/{panels/common → ui/components/text_editor}/AiCodeCompletionDisclaimer.ts +13 -13
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +7 -6
- package/front_end/{panels/common → ui/components/text_editor}/AiCodeCompletionTeaser.ts +43 -46
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +22 -26
- package/front_end/{panels/common → ui/components/text_editor}/AiCodeGenerationTeaser.ts +10 -10
- package/front_end/{panels/common → ui/components/text_editor}/AiCodeGenerationUpgradeDialog.ts +5 -5
- package/front_end/ui/components/text_editor/text_editor.ts +4 -0
- package/front_end/ui/legacy/Toolbar.ts +1 -1
- package/front_end/ui/legacy/UIUtils.ts +0 -56
- package/front_end/ui/legacy/View.ts +10 -4
- package/front_end/ui/legacy/Widget.ts +10 -1
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +2 -1
- package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +5 -4
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +11 -3
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +507 -209
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +5 -0
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +11 -16
- package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +5 -12
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +38 -20
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +12 -2
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +3 -3
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +37 -6
- package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +22 -4
- package/front_end/ui/settings/SettingUIRegistration.ts +55 -6
- package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
- package/mcp/mcp.ts +6 -1
- package/package.json +6 -6
- package/front_end/Images/toolbarResizerVertical.png +0 -0
- package/front_end/emulated_devices/MotoG4-landscape.svg +0 -155
- package/front_end/emulated_devices/MotoG4-portrait.svg +0 -155
- package/front_end/emulated_devices/Nexus5X-landscape.svg +0 -19
- package/front_end/emulated_devices/Nexus5X-portrait.svg +0 -19
- package/front_end/emulated_devices/Nexus6P-landscape.svg +0 -50
- package/front_end/emulated_devices/Nexus6P-portrait.svg +0 -54
- package/front_end/emulated_devices/google-nest-hub-horizontal.png +0 -0
- package/front_end/emulated_devices/google-nest-hub-max-horizontal.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-horizontal-default-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-horizontal-default-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-horizontal-keyboard-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-horizontal-keyboard-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-horizontal-navigation-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-horizontal-navigation-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-vertical-default-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-vertical-default-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-vertical-keyboard-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-vertical-keyboard-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-vertical-navigation-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5-vertical-navigation-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-horizontal-default-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-horizontal-default-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-horizontal-keyboard-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-horizontal-keyboard-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-horizontal-navigation-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-horizontal-navigation-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-vertical-default-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-vertical-default-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-vertical-keyboard-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-vertical-keyboard-2x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-vertical-navigation-1x.png +0 -0
- package/front_end/emulated_devices/google-nexus-5x-vertical-navigation-2x.png +0 -0
- package/front_end/emulated_devices/iPad-landscape.svg +0 -73
- package/front_end/emulated_devices/iPad-portrait.svg +0 -76
- package/front_end/emulated_devices/iPhone5-landscape.svg +0 -99
- package/front_end/emulated_devices/iPhone5-portrait.svg +0 -83
- package/front_end/emulated_devices/iPhone6-landscape.svg +0 -111
- package/front_end/emulated_devices/iPhone6-portrait.svg +0 -116
- package/front_end/emulated_devices/iPhone6Plus-landscape.svg +0 -118
- package/front_end/emulated_devices/iPhone6Plus-portrait.svg +0 -116
- package/front_end/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
- package/front_end/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
- package/front_end/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
- package/front_end/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
- package/front_end/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
- package/front_end/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
- package/front_end/emulated_devices/optimized/README.md +0 -9
- package/front_end/emulated_devices/optimized/google-nest-hub-horizontal.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nest-hub-max-horizontal.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
- package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
- package/front_end/emulated_devices/optimized/iPad-landscape.avif +0 -0
- package/front_end/emulated_devices/optimized/iPad-portrait.avif +0 -0
- package/front_end/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
- package/front_end/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
- package/front_end/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
- package/front_end/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
- package/front_end/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
- package/front_end/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
- package/front_end/emulated_devices/optimized/optimized_images.gni +0 -53
- package/front_end/models/ai_assistance/agents/README.md +0 -136
- package/front_end/panels/elements/ElementsTreeOutlineRenderer.ts +0 -89
- package/front_end/ui/legacy/components/object_ui/object_ui-meta.ts +0 -27
- /package/front_end/{panels/common → ui/components/dialogs}/freDialog.css +0 -0
- /package/front_end/{panels/common/common.css → ui/components/dialogs/typeToAllowDialog.css} +0 -0
- /package/front_end/{panels/common → ui/components/text_editor}/aiCodeCompletionDisclaimer.css +0 -0
- /package/front_end/{panels/common → ui/components/text_editor}/aiCodeCompletionTeaser.css +0 -0
- /package/front_end/{panels/common → ui/components/text_editor}/aiCodeGenerationTeaser.css +0 -0
- /package/front_end/{panels/common → ui/components/text_editor}/aiCodeGenerationUpgradeDialog.css +0 -0
|
@@ -19,35 +19,35 @@ const {repeat} = Directives;
|
|
|
19
19
|
|
|
20
20
|
const UIStrings = {
|
|
21
21
|
/**
|
|
22
|
-
* @description
|
|
22
|
+
* @description Column header for event ID in event source messages view of the Network panel.
|
|
23
23
|
*/
|
|
24
|
-
id: '
|
|
24
|
+
id: 'ID',
|
|
25
25
|
/**
|
|
26
|
-
* @description
|
|
26
|
+
* @description Column header for event type in event source messages view of the Network panel.
|
|
27
27
|
*/
|
|
28
28
|
type: 'Type',
|
|
29
29
|
/**
|
|
30
|
-
* @description
|
|
30
|
+
* @description Column header for event data in event source messages view of the Network panel.
|
|
31
31
|
*/
|
|
32
32
|
data: 'Data',
|
|
33
33
|
/**
|
|
34
|
-
* @description
|
|
34
|
+
* @description Column header for event time in event source messages view of the Network panel.
|
|
35
35
|
*/
|
|
36
36
|
time: 'Time',
|
|
37
37
|
/**
|
|
38
|
-
* @description Data grid name for
|
|
38
|
+
* @description Data grid name for event source data grids.
|
|
39
39
|
*/
|
|
40
|
-
eventSource: 'Event
|
|
40
|
+
eventSource: 'Event source',
|
|
41
41
|
/**
|
|
42
|
-
* @description
|
|
42
|
+
* @description Context menu item in event source messages view of the Network panel.
|
|
43
43
|
*/
|
|
44
44
|
copyMessage: 'Copy message',
|
|
45
45
|
/**
|
|
46
|
-
* @description
|
|
46
|
+
* @description Tooltip text for clear button in event source messages view of the Network panel.
|
|
47
47
|
*/
|
|
48
48
|
clearAll: 'Clear all',
|
|
49
49
|
/**
|
|
50
|
-
* @description
|
|
50
|
+
* @description Placeholder text for filter input in event source messages view of the Network panel.
|
|
51
51
|
*/
|
|
52
52
|
filterByRegex: 'Filter using regex (example: https?)',
|
|
53
53
|
} as const;
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
// Copyright 2026 The Chromium Authors
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
|
+
|
|
7
|
+
const UIStrings = {
|
|
8
|
+
/**
|
|
9
|
+
* @description Comment in a generated fetch command explaining why sec-* request headers are commented out.
|
|
10
|
+
*/
|
|
11
|
+
secHeadersSetByBrowser: 'All sec-* headers are set by the browser',
|
|
12
|
+
/**
|
|
13
|
+
* @description Comment in a generated fetch command explaining why proxy-* request headers are commented out.
|
|
14
|
+
*/
|
|
15
|
+
proxyHeadersSetByBrowser: 'All proxy-* headers are set by the browser',
|
|
16
|
+
/**
|
|
17
|
+
* @description Comment in a generated fetch command explaining why the Accept-Charset header is commented out.
|
|
18
|
+
*/
|
|
19
|
+
deprecatedBrowserDoesNotSend: 'Deprecated; browser does not send this',
|
|
20
|
+
/**
|
|
21
|
+
* @description Comment in a generated fetch command explaining why the Accept-Encoding header is commented out.
|
|
22
|
+
*/
|
|
23
|
+
browserNegotiatesCompression: 'Browser negotiates compression',
|
|
24
|
+
/**
|
|
25
|
+
* @description Comment in a generated fetch command explaining why an Access-Control-Request header is commented out.
|
|
26
|
+
*/
|
|
27
|
+
browserSetsDuringCorsPreflight: 'Browser sets during CORS preflight',
|
|
28
|
+
/**
|
|
29
|
+
* @description Comment in a generated fetch command explaining why a connection-related header is commented out.
|
|
30
|
+
*/
|
|
31
|
+
browserManagesConnections: 'Browser manages connections',
|
|
32
|
+
/**
|
|
33
|
+
* @description Comment in a generated fetch command explaining why the Content-Length header is commented out.
|
|
34
|
+
*/
|
|
35
|
+
browserCalculatesFromBody: 'Browser calculates from body',
|
|
36
|
+
/**
|
|
37
|
+
* @description Comment in a generated fetch command explaining why the Cookie header is commented out.
|
|
38
|
+
*/
|
|
39
|
+
browserManagesCookieJar: 'Browser manages this from the cookie jar',
|
|
40
|
+
/**
|
|
41
|
+
* @description Comment in a generated fetch command explaining why the Cookie2 header is commented out.
|
|
42
|
+
*/
|
|
43
|
+
deprecatedCookieHeader: 'Deprecated cookie header; browser blocks this',
|
|
44
|
+
/**
|
|
45
|
+
* @description Comment in a generated fetch command explaining why the Date header is commented out.
|
|
46
|
+
*/
|
|
47
|
+
browserControlsRequestDate: 'Browser controls the request date',
|
|
48
|
+
/**
|
|
49
|
+
* @description Comment in a generated fetch command explaining why the DNT header is commented out.
|
|
50
|
+
*/
|
|
51
|
+
browserSetsPrivacyPreferences: 'Browser sets from user privacy preferences',
|
|
52
|
+
/**
|
|
53
|
+
* @description Comment in a generated fetch command explaining why the Expect header is commented out.
|
|
54
|
+
*/
|
|
55
|
+
browserManagesRequestExpectations: 'Browser manages request expectations',
|
|
56
|
+
/**
|
|
57
|
+
* @description Comment in a generated fetch command explaining why the Host header is commented out.
|
|
58
|
+
*/
|
|
59
|
+
browserDerivesFromUrl: 'Browser will derive from URL',
|
|
60
|
+
/**
|
|
61
|
+
* @description Comment in a generated fetch command explaining why the Origin header is commented out.
|
|
62
|
+
*/
|
|
63
|
+
browserSetsRequestContext: 'Browser will set based on request context',
|
|
64
|
+
/**
|
|
65
|
+
* @description Comment in a generated fetch command explaining why the Referer header is commented out.
|
|
66
|
+
*/
|
|
67
|
+
browserSetsReferrer: 'Browser will set this from referrer option + policy',
|
|
68
|
+
/**
|
|
69
|
+
* @description Comment in a generated fetch command explaining why the Set-Cookie request header is commented out.
|
|
70
|
+
*/
|
|
71
|
+
responseHeaderBlockedOnRequests: 'Response header; browser blocks it on requests',
|
|
72
|
+
/**
|
|
73
|
+
* @description Comment in a generated fetch command explaining why the TE header is commented out.
|
|
74
|
+
*/
|
|
75
|
+
browserManagesTransferCodings: 'Browser manages transfer codings',
|
|
76
|
+
/**
|
|
77
|
+
* @description Comment in a generated fetch command explaining why the Trailer header is commented out.
|
|
78
|
+
*/
|
|
79
|
+
browserManagesRequestTrailers: 'Browser manages request trailers',
|
|
80
|
+
/**
|
|
81
|
+
* @description Comment in a generated fetch command explaining why the Transfer-Encoding header is commented out.
|
|
82
|
+
*/
|
|
83
|
+
browserManagesTransferEncoding: 'Browser manages transfer encoding',
|
|
84
|
+
/**
|
|
85
|
+
* @description Comment in a generated fetch command explaining why the Upgrade header is commented out.
|
|
86
|
+
*/
|
|
87
|
+
browserManagesProtocolUpgrades: 'Browser manages protocol upgrades',
|
|
88
|
+
/**
|
|
89
|
+
* @description Comment in a generated fetch command explaining why the Via header is commented out.
|
|
90
|
+
*/
|
|
91
|
+
browserAndProxiesManageMetadata: 'Browser and proxies manage forwarding metadata',
|
|
92
|
+
/**
|
|
93
|
+
* @description Comment in a generated fetch command explaining why a method override header is commented out.
|
|
94
|
+
*/
|
|
95
|
+
browserBlocksForbiddenMethods: 'Browser blocks overrides to forbidden methods',
|
|
96
|
+
} as const;
|
|
97
|
+
const str_ = i18n.i18n.registerUIStrings('panels/network/FetchHeaderCommenting.ts', UIStrings);
|
|
98
|
+
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Defines a pattern for commenting out forbidden headers in a fetch command string.
|
|
102
|
+
*
|
|
103
|
+
* @property pattern - Regex to match against the header field name.
|
|
104
|
+
* @property comment - Lazily computed explanatory comment text.
|
|
105
|
+
* @property style - 'append' puts the comment on the same line; 'prefix' adds a
|
|
106
|
+
* standalone comment line before the first match in a consecutive group.
|
|
107
|
+
* @property isForbidden - Optional predicate for rules whose status depends on
|
|
108
|
+
* the header value.
|
|
109
|
+
*/
|
|
110
|
+
export interface ForbiddenHeaderRule {
|
|
111
|
+
pattern: RegExp;
|
|
112
|
+
comment: () => string;
|
|
113
|
+
style: 'append'|'prefix';
|
|
114
|
+
isForbidden?: (value: string) => boolean;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const FORBIDDEN_METHOD_PATTERN = /^(?:CONNECT|TRACE|TRACK)$/i;
|
|
118
|
+
|
|
119
|
+
function containsForbiddenMethod(value: string): boolean {
|
|
120
|
+
return value.split(',').some(method => FORBIDDEN_METHOD_PATTERN.test(method.trim()));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Rules for request headers that the browser will ignore or override.
|
|
125
|
+
* https://fetch.spec.whatwg.org/#forbidden-request-header
|
|
126
|
+
*/
|
|
127
|
+
export const FORBIDDEN_HEADER_RULES: ForbiddenHeaderRule[] = [
|
|
128
|
+
{pattern: /^sec-/i, comment: i18nLazyString(UIStrings.secHeadersSetByBrowser), style: 'prefix'},
|
|
129
|
+
{pattern: /^proxy-/i, comment: i18nLazyString(UIStrings.proxyHeadersSetByBrowser), style: 'prefix'},
|
|
130
|
+
{pattern: /^accept-charset$/i, comment: i18nLazyString(UIStrings.deprecatedBrowserDoesNotSend), style: 'append'},
|
|
131
|
+
{pattern: /^accept-encoding$/i, comment: i18nLazyString(UIStrings.browserNegotiatesCompression), style: 'append'},
|
|
132
|
+
{
|
|
133
|
+
pattern: /^access-control-request-headers$/i,
|
|
134
|
+
comment: i18nLazyString(UIStrings.browserSetsDuringCorsPreflight),
|
|
135
|
+
style: 'append',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
pattern: /^access-control-request-method$/i,
|
|
139
|
+
comment: i18nLazyString(UIStrings.browserSetsDuringCorsPreflight),
|
|
140
|
+
style: 'append',
|
|
141
|
+
},
|
|
142
|
+
{pattern: /^connection$/i, comment: i18nLazyString(UIStrings.browserManagesConnections), style: 'append'},
|
|
143
|
+
{pattern: /^content-length$/i, comment: i18nLazyString(UIStrings.browserCalculatesFromBody), style: 'append'},
|
|
144
|
+
{pattern: /^cookie$/i, comment: i18nLazyString(UIStrings.browserManagesCookieJar), style: 'append'},
|
|
145
|
+
{pattern: /^cookie2$/i, comment: i18nLazyString(UIStrings.deprecatedCookieHeader), style: 'append'},
|
|
146
|
+
{pattern: /^date$/i, comment: i18nLazyString(UIStrings.browserControlsRequestDate), style: 'append'},
|
|
147
|
+
{pattern: /^dnt$/i, comment: i18nLazyString(UIStrings.browserSetsPrivacyPreferences), style: 'append'},
|
|
148
|
+
{pattern: /^expect$/i, comment: i18nLazyString(UIStrings.browserManagesRequestExpectations), style: 'append'},
|
|
149
|
+
{pattern: /^host$/i, comment: i18nLazyString(UIStrings.browserDerivesFromUrl), style: 'append'},
|
|
150
|
+
{pattern: /^keep-alive$/i, comment: i18nLazyString(UIStrings.browserManagesConnections), style: 'append'},
|
|
151
|
+
{pattern: /^origin$/i, comment: i18nLazyString(UIStrings.browserSetsRequestContext), style: 'append'},
|
|
152
|
+
{pattern: /^referer$/i, comment: i18nLazyString(UIStrings.browserSetsReferrer), style: 'append'},
|
|
153
|
+
{pattern: /^set-cookie$/i, comment: i18nLazyString(UIStrings.responseHeaderBlockedOnRequests), style: 'append'},
|
|
154
|
+
{pattern: /^te$/i, comment: i18nLazyString(UIStrings.browserManagesTransferCodings), style: 'append'},
|
|
155
|
+
{pattern: /^trailer$/i, comment: i18nLazyString(UIStrings.browserManagesRequestTrailers), style: 'append'},
|
|
156
|
+
{
|
|
157
|
+
pattern: /^transfer-encoding$/i,
|
|
158
|
+
comment: i18nLazyString(UIStrings.browserManagesTransferEncoding),
|
|
159
|
+
style: 'append',
|
|
160
|
+
},
|
|
161
|
+
{pattern: /^upgrade$/i, comment: i18nLazyString(UIStrings.browserManagesProtocolUpgrades), style: 'append'},
|
|
162
|
+
{pattern: /^via$/i, comment: i18nLazyString(UIStrings.browserAndProxiesManageMetadata), style: 'append'},
|
|
163
|
+
{
|
|
164
|
+
pattern: /^x-(?:http-method(?:-override)?|method-override)$/i,
|
|
165
|
+
comment: i18nLazyString(UIStrings.browserBlocksForbiddenMethods),
|
|
166
|
+
style: 'append',
|
|
167
|
+
isForbidden: containsForbiddenMethod,
|
|
168
|
+
},
|
|
169
|
+
];
|
|
170
|
+
|
|
171
|
+
function findForbiddenHeaderRule(name: string, value: string, rules: ForbiddenHeaderRule[]): ForbiddenHeaderRule|
|
|
172
|
+
undefined {
|
|
173
|
+
return rules.find(rule => rule.pattern.test(name) && (rule.isForbidden?.(value) ?? true));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function isForbiddenHeader(name: string, value: string,
|
|
177
|
+
rules: ForbiddenHeaderRule[] = FORBIDDEN_HEADER_RULES): boolean {
|
|
178
|
+
return Boolean(findForbiddenHeaderRule(name, value, rules));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Matches a typical header line: leading whitespace, then `"key": value`
|
|
182
|
+
// Captures the indentation, key name, and JSON-encoded value.
|
|
183
|
+
const HEADER_LINE_RE = /^(\s*)"([^"]+)"\s*:\s*("(?:\\.|[^"\\])*")(?:,)?\s*$/;
|
|
184
|
+
|
|
185
|
+
// Detects the start of the headers block.
|
|
186
|
+
const HEADERS_START_RE = /^\s*"headers"\s*:\s*\{\s*$/;
|
|
187
|
+
|
|
188
|
+
// Detects a line that closes a block (just whitespace + } with optional comma).
|
|
189
|
+
const BLOCK_CLOSE_RE = /^\s*\},?\s*$/;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Given serialized fetch options, comments out header lines that match any of
|
|
193
|
+
* the forbidden header rules.
|
|
194
|
+
*
|
|
195
|
+
* The format of the serializedOptions is well constrained.
|
|
196
|
+
* HTTP headers are, by spec, single-line. Multi-value headers will be
|
|
197
|
+
* joined by commas into one string. Then, JSON.stringify will always render
|
|
198
|
+
* each field on its own line.
|
|
199
|
+
*
|
|
200
|
+
* The function operates line-by-line with a simple 3-mode state machine:
|
|
201
|
+
* Mode 1: Before the headers block
|
|
202
|
+
* Mode 2: Inside the headers block
|
|
203
|
+
* Mode 3: After the headers block (or after bailing on anomaly)
|
|
204
|
+
*
|
|
205
|
+
* If an anomalous line is encountered inside the headers block (one that doesn't
|
|
206
|
+
* look like a simple `"key": value,` entry), processing stops immediately and
|
|
207
|
+
* remaining lines pass through unchanged.
|
|
208
|
+
*/
|
|
209
|
+
export function commentForbiddenHeaders(serializedOptions: string,
|
|
210
|
+
rules: ForbiddenHeaderRule[] = FORBIDDEN_HEADER_RULES): string {
|
|
211
|
+
const lines = serializedOptions.split('\n');
|
|
212
|
+
const result: string[] = [];
|
|
213
|
+
|
|
214
|
+
const enum Mode {
|
|
215
|
+
BEFORE_HEADERS = 1,
|
|
216
|
+
INSIDE_HEADERS = 2,
|
|
217
|
+
AFTER_HEADERS = 3,
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
let mode: Mode = Mode.BEFORE_HEADERS;
|
|
221
|
+
|
|
222
|
+
// For grouping consecutive matches with the same 'prefix' rule.
|
|
223
|
+
let pendingPrefixRule: ForbiddenHeaderRule|null = null;
|
|
224
|
+
|
|
225
|
+
function resetPrefixState(): void {
|
|
226
|
+
pendingPrefixRule = null;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
for (const line of lines) {
|
|
230
|
+
switch (mode) {
|
|
231
|
+
case Mode.BEFORE_HEADERS: {
|
|
232
|
+
result.push(line);
|
|
233
|
+
if (HEADERS_START_RE.test(line)) {
|
|
234
|
+
mode = Mode.INSIDE_HEADERS;
|
|
235
|
+
}
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
case Mode.INSIDE_HEADERS: {
|
|
240
|
+
// Check for end of headers block.
|
|
241
|
+
if (BLOCK_CLOSE_RE.test(line)) {
|
|
242
|
+
resetPrefixState();
|
|
243
|
+
result.push(line);
|
|
244
|
+
mode = Mode.AFTER_HEADERS;
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// Try to parse as a header line.
|
|
249
|
+
const match = HEADER_LINE_RE.exec(line);
|
|
250
|
+
if (!match) {
|
|
251
|
+
// Anomalous line — bail out.
|
|
252
|
+
resetPrefixState();
|
|
253
|
+
result.push(line);
|
|
254
|
+
mode = Mode.AFTER_HEADERS;
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
const indent = match[1];
|
|
259
|
+
const headerName = match[2];
|
|
260
|
+
const headerValue = JSON.parse(match[3]) as string;
|
|
261
|
+
|
|
262
|
+
// Check if this header matches any forbidden rule.
|
|
263
|
+
const matchedRule = findForbiddenHeaderRule(headerName, headerValue, rules);
|
|
264
|
+
|
|
265
|
+
if (!matchedRule) {
|
|
266
|
+
// Not forbidden — emit as-is.
|
|
267
|
+
resetPrefixState();
|
|
268
|
+
result.push(line);
|
|
269
|
+
} else if (matchedRule.style === 'append') {
|
|
270
|
+
resetPrefixState();
|
|
271
|
+
result.push(`${indent}// ${line.trimStart()} // ${matchedRule.comment()}`);
|
|
272
|
+
} else {
|
|
273
|
+
// 'prefix' style: emit a heading comment before the first match in a group.
|
|
274
|
+
if (pendingPrefixRule !== matchedRule) {
|
|
275
|
+
pendingPrefixRule = matchedRule;
|
|
276
|
+
result.push(`${indent}// ${matchedRule.comment()}`);
|
|
277
|
+
}
|
|
278
|
+
result.push(`${indent}// ${line.trimStart()}`);
|
|
279
|
+
}
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
case Mode.AFTER_HEADERS: {
|
|
284
|
+
result.push(line);
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
return result.join('\n');
|
|
291
|
+
}
|
|
@@ -18,43 +18,43 @@ import networkConfigViewStyles from './networkConfigView.css.js';
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Option in network conditions view of the Network panel shown in user agent dropdown.
|
|
22
22
|
*/
|
|
23
23
|
custom: 'Custom…',
|
|
24
24
|
/**
|
|
25
|
-
* @description Placeholder text
|
|
25
|
+
* @description Placeholder text for custom user agent input in network conditions view of the Network panel.
|
|
26
26
|
*/
|
|
27
27
|
enterACustomUserAgent: 'Enter a custom user agent',
|
|
28
28
|
/**
|
|
29
|
-
* @description Error message
|
|
29
|
+
* @description Error message in network conditions view of the Network panel when custom user agent is empty.
|
|
30
30
|
*/
|
|
31
31
|
customUserAgentFieldIsRequired: 'Custom user agent field is required',
|
|
32
32
|
/**
|
|
33
|
-
* @description
|
|
33
|
+
* @description Section header for caching settings in network conditions view of the Network panel.
|
|
34
34
|
*/
|
|
35
35
|
caching: 'Caching',
|
|
36
36
|
/**
|
|
37
|
-
* @description
|
|
37
|
+
* @description Checkbox label to disable cache in network conditions view of the Network panel.
|
|
38
38
|
*/
|
|
39
39
|
disableCache: 'Disable cache',
|
|
40
40
|
/**
|
|
41
|
-
* @description
|
|
41
|
+
* @description Section header for network throttling settings in network conditions view of the Network panel.
|
|
42
42
|
*/
|
|
43
43
|
networkThrottling: 'Network',
|
|
44
44
|
/**
|
|
45
|
-
* @description
|
|
45
|
+
* @description Section header for user agent settings in network conditions view of the Network panel.
|
|
46
46
|
*/
|
|
47
47
|
userAgent: 'User agent',
|
|
48
48
|
/**
|
|
49
|
-
* @description
|
|
49
|
+
* @description Checkbox label in network conditions view of the Network panel to use browser default user agent.
|
|
50
50
|
*/
|
|
51
51
|
selectAutomatically: 'Use browser default',
|
|
52
52
|
/**
|
|
53
|
-
* @description Status
|
|
53
|
+
* @description Status message in network conditions view of the Network panel after updating user agent client hints.
|
|
54
54
|
*/
|
|
55
55
|
clientHintsStatusText: 'User agent updated.',
|
|
56
56
|
/**
|
|
57
|
-
* @description
|
|
57
|
+
* @description Accessible announcement when network conditions view is shown.
|
|
58
58
|
*/
|
|
59
59
|
networkConditionsPanelShown: 'Network conditions shown.',
|
|
60
60
|
} as const;
|
|
@@ -286,38 +286,38 @@ const UIStrings = {
|
|
|
286
286
|
*/
|
|
287
287
|
timeSubtitleTooltipText: 'Latency (response received time - start time)',
|
|
288
288
|
/**
|
|
289
|
-
* @description Tooltip text
|
|
289
|
+
* @description Tooltip text in the protocol column of the Network log table explaining that Chrome connected over HTTP/3 based on an Alt-Svc header without racing other HTTP versions.
|
|
290
290
|
*/
|
|
291
291
|
alternativeJobWonWithoutRace:
|
|
292
|
-
'`Chrome` used
|
|
292
|
+
'`Chrome` used `HTTP/3` (advertised by the \'`Alt-Svc`\' header) without racing other `HTTP` versions',
|
|
293
293
|
/**
|
|
294
|
-
* @description Tooltip text
|
|
294
|
+
* @description Tooltip text in the protocol column of the Network log table explaining that Chrome connected over HTTP/3 based on an Alt-Svc header because it won the connection race against other HTTP versions.
|
|
295
295
|
*/
|
|
296
296
|
alternativeJobWonRace:
|
|
297
|
-
'`Chrome` used
|
|
297
|
+
'`Chrome` used `HTTP/3` (advertised by the \'`Alt-Svc`\' header) because it won the connection race against other `HTTP` versions',
|
|
298
298
|
/**
|
|
299
|
-
* @description Tooltip text
|
|
299
|
+
* @description Tooltip text in the protocol column of the Network log table explaining that Chrome used this protocol because it won the connection race against HTTP/3.
|
|
300
300
|
*/
|
|
301
|
-
mainJobWonRace: '`Chrome` used this protocol because it won
|
|
301
|
+
mainJobWonRace: '`Chrome` used this protocol because it won the connection race against `HTTP/3`',
|
|
302
302
|
/**
|
|
303
|
-
* @description Tooltip text
|
|
303
|
+
* @description Tooltip text in the protocol column of the Network log table explaining that no alternative protocol was cached when the request was sent, but an Alt-Svc header was received in the response.
|
|
304
304
|
*/
|
|
305
305
|
mappingMissing:
|
|
306
|
-
'`Chrome`
|
|
306
|
+
'`Chrome` didn’t use an alternative `HTTP` version because none was cached when the request was sent, but an \'`Alt-Svc`\' header was received in the response',
|
|
307
307
|
/**
|
|
308
|
-
* @description Tooltip text
|
|
308
|
+
* @description Tooltip text in the protocol column of the Network log table explaining that Chrome did not attempt HTTP/3 because HTTP/3 was marked as broken for this host.
|
|
309
309
|
*/
|
|
310
|
-
broken: '`Chrome`
|
|
310
|
+
broken: '`Chrome` didn’t attempt an `HTTP/3` connection because `HTTP/3` is marked as broken for this host',
|
|
311
311
|
/**
|
|
312
|
-
* @description Tooltip text
|
|
312
|
+
* @description Tooltip text in the protocol column of the Network log table explaining that Chrome connected over HTTP/3 based on the DNS record without racing other HTTP versions.
|
|
313
313
|
*/
|
|
314
314
|
dnsAlpnH3JobWonWithoutRace:
|
|
315
|
-
'`Chrome` used
|
|
315
|
+
'`Chrome` used `HTTP/3` (advertised by the `DNS record`) without racing other `HTTP` versions',
|
|
316
316
|
/**
|
|
317
|
-
* @description Tooltip text
|
|
317
|
+
* @description Tooltip text in the protocol column of the Network log table explaining that Chrome connected over HTTP/3 based on the DNS record because it won the connection race against other HTTP versions.
|
|
318
318
|
*/
|
|
319
319
|
dnsAlpnH3JobWonRace:
|
|
320
|
-
'`Chrome` used
|
|
320
|
+
'`Chrome` used `HTTP/3` (advertised by the `DNS record`) because it won the connection race against other `HTTP` versions',
|
|
321
321
|
/**
|
|
322
322
|
* @description Tooltip to explain the resource's initial priority
|
|
323
323
|
* @example {High} PH1
|
|
@@ -30,87 +30,86 @@ import {ResourceWebSocketFrameView} from './ResourceWebSocketFrameView.js';
|
|
|
30
30
|
|
|
31
31
|
const UIStrings = {
|
|
32
32
|
/**
|
|
33
|
-
* @description
|
|
33
|
+
* @description Title of a tab in network item view of the Network panel for viewing HTTP request/response headers.
|
|
34
34
|
*/
|
|
35
35
|
headers: 'Headers',
|
|
36
36
|
/**
|
|
37
|
-
* @description
|
|
37
|
+
* @description Title of a tab in network item view of the Network panel for viewing DirectSocket connection info.
|
|
38
38
|
*/
|
|
39
|
-
connectionInfo: 'Connection
|
|
39
|
+
connectionInfo: 'Connection info',
|
|
40
40
|
/**
|
|
41
|
-
* @description
|
|
41
|
+
* @description Title of a tab in network item view of the Network panel for viewing request payload parameters and form data.
|
|
42
42
|
*/
|
|
43
43
|
payload: 'Payload',
|
|
44
44
|
/**
|
|
45
|
-
* @description
|
|
45
|
+
* @description Title of a tab in network item view of the Network panel for viewing WebSocket or DirectSocket messages.
|
|
46
46
|
*/
|
|
47
47
|
messages: 'Messages',
|
|
48
48
|
/**
|
|
49
|
-
* @description
|
|
49
|
+
* @description Accessible tooltip for the WebSocket messages tab in network item view of the Network panel.
|
|
50
50
|
*/
|
|
51
51
|
websocketMessages: 'WebSocket messages',
|
|
52
52
|
/**
|
|
53
|
-
* @description
|
|
53
|
+
* @description Accessible tooltip for the DirectSocket messages tab in network item view of the Network panel.
|
|
54
54
|
*/
|
|
55
55
|
directsocketMessages: 'DirectSocket messages',
|
|
56
56
|
/**
|
|
57
|
-
* @description
|
|
57
|
+
* @description Title of a tab in network item view of the Network panel for viewing Server-Sent Event (EventStream) messages.
|
|
58
58
|
*/
|
|
59
59
|
eventstream: 'EventStream',
|
|
60
60
|
/**
|
|
61
|
-
* @description
|
|
61
|
+
* @description Title of a tab in network item view of the Network panel for previewing response content.
|
|
62
62
|
*/
|
|
63
63
|
preview: 'Preview',
|
|
64
64
|
/**
|
|
65
|
-
* @description
|
|
65
|
+
* @description Accessible tooltip for the response preview tab in network item view of the Network panel.
|
|
66
66
|
*/
|
|
67
67
|
responsePreview: 'Response preview',
|
|
68
68
|
/**
|
|
69
|
-
* @description
|
|
69
|
+
* @description Tooltip for error icon on preview tab in network item view of the Network panel when signed exchange has errors.
|
|
70
70
|
*/
|
|
71
71
|
signedexchangeError: 'SignedExchange error',
|
|
72
72
|
/**
|
|
73
|
-
* @description Title of a tab in
|
|
74
|
-
* network request. Should not be confused with answer.
|
|
73
|
+
* @description Title of a tab in network item view of the Network panel for viewing raw response content.
|
|
74
|
+
* A Network response refers to the act of acknowledging a network request. Should not be confused with answer.
|
|
75
75
|
*/
|
|
76
76
|
response: 'Response',
|
|
77
77
|
/**
|
|
78
|
-
* @description
|
|
78
|
+
* @description Accessible tooltip for the raw response data tab in network item view of the Network panel.
|
|
79
79
|
*/
|
|
80
80
|
rawResponseData: 'Raw response data',
|
|
81
81
|
/**
|
|
82
|
-
* @description
|
|
82
|
+
* @description Title of a tab in network item view of the Network panel for viewing request initiator stack trace and chain.
|
|
83
83
|
*/
|
|
84
84
|
initiator: 'Initiator',
|
|
85
85
|
/**
|
|
86
|
-
* @description
|
|
87
|
-
* in the code that initiated/started the network request, i.e. caused
|
|
88
|
-
* stack' is the location in the code where the initiation happened.
|
|
86
|
+
* @description Accessible tooltip for the request initiator tab in network item view of the Network panel.
|
|
87
|
+
* An initiator is a piece of code/entity in the code that initiated/started the network request, i.e. caused
|
|
88
|
+
* the network request. The 'call stack' is the location in the code where the initiation happened.
|
|
89
89
|
*/
|
|
90
90
|
requestInitiatorCallStack: 'Request initiator call stack',
|
|
91
91
|
/**
|
|
92
|
-
* @description Title of a tab in
|
|
93
|
-
*The tab displays the duration breakdown of a network request.
|
|
92
|
+
* @description Title of a tab in network item view of the Network panel for viewing request timing breakdown.
|
|
94
93
|
*/
|
|
95
94
|
timing: 'Timing',
|
|
96
95
|
/**
|
|
97
|
-
* @description
|
|
96
|
+
* @description Accessible tooltip for the request timing tab in network item view of the Network panel.
|
|
98
97
|
*/
|
|
99
98
|
requestAndResponseTimeline: 'Request and response timeline',
|
|
100
99
|
/**
|
|
101
|
-
* @description Tooltip
|
|
100
|
+
* @description Tooltip text for warning icon on cookies tab in network item view of the Network panel when third-party cookies are blocked.
|
|
102
101
|
*/
|
|
103
102
|
thirdPartyPhaseout: 'Cookies blocked due to third-party cookie phaseout.',
|
|
104
103
|
/**
|
|
105
|
-
* @description
|
|
104
|
+
* @description Title of a tab in network item view of the Network panel for viewing Private State Tokens operation details.
|
|
106
105
|
*/
|
|
107
106
|
trustTokens: 'Private state tokens',
|
|
108
107
|
/**
|
|
109
|
-
* @description
|
|
108
|
+
* @description Accessible tooltip for the Private State Tokens tab in network item view of the Network panel.
|
|
110
109
|
*/
|
|
111
110
|
trustTokenOperationDetails: 'Private State Token operation details',
|
|
112
111
|
/**
|
|
113
|
-
* @description
|
|
112
|
+
* @description Title of a tab in network item view of the Network panel for viewing request and response cookies.
|
|
114
113
|
*/
|
|
115
114
|
cookies: 'Cookies',
|
|
116
115
|
/**
|
|
@@ -125,15 +124,15 @@ const UIStrings = {
|
|
|
125
124
|
*/
|
|
126
125
|
deviceBoundSessions: 'Device bound sessions',
|
|
127
126
|
/**
|
|
128
|
-
* @description
|
|
127
|
+
* @description Accessible tooltip for the cookies tab in network item view of the Network panel.
|
|
129
128
|
*/
|
|
130
129
|
requestAndResponseCookies: 'Request and response cookies',
|
|
131
130
|
/**
|
|
132
|
-
* @description Tooltip text
|
|
131
|
+
* @description Tooltip text for status indicator dot on headers tab in network item view of the Network panel when headers are overridden by DevTools.
|
|
133
132
|
*/
|
|
134
133
|
containsOverriddenHeaders: 'This response contains headers which are overridden by DevTools',
|
|
135
134
|
/**
|
|
136
|
-
* @description Tooltip text
|
|
135
|
+
* @description Tooltip text for status indicator dot on response tab in network item view of the Network panel when response content is overridden by DevTools.
|
|
137
136
|
*/
|
|
138
137
|
responseIsOverridden: 'This response is overridden by DevTools',
|
|
139
138
|
} as const;
|