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
|
@@ -61,6 +61,7 @@ import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
|
61
61
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
62
62
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
63
63
|
|
|
64
|
+
import {commentForbiddenHeaders, isForbiddenHeader} from './FetchHeaderCommenting.js';
|
|
64
65
|
import {canPreloadRequest, generatePreloadLink} from './LinkPreloadGenerator.js';
|
|
65
66
|
import {
|
|
66
67
|
Events,
|
|
@@ -173,7 +174,7 @@ const UIStrings = {
|
|
|
173
174
|
/**
|
|
174
175
|
* @description Text to announce to screen readers that network data is available.
|
|
175
176
|
*/
|
|
176
|
-
networkDataAvailable: 'Network
|
|
177
|
+
networkDataAvailable: 'Network data available',
|
|
177
178
|
/**
|
|
178
179
|
* @description Text in Network Log View of the Network panel
|
|
179
180
|
* @example {3} PH1
|
|
@@ -470,6 +471,33 @@ const UIStrings = {
|
|
|
470
471
|
* @description Text to resend a network request
|
|
471
472
|
*/
|
|
472
473
|
resend: 'Resend',
|
|
474
|
+
/**
|
|
475
|
+
* @description A context menu command in the Network panel that copies a request as an editable
|
|
476
|
+
* fetch command and pastes it into the Console for the user to modify before resending.
|
|
477
|
+
*/
|
|
478
|
+
editAndResendAsFetch: 'Edit and resend as fetch',
|
|
479
|
+
/**
|
|
480
|
+
* @description Console message that appears when using "Edit and resend as fetch" feature.
|
|
481
|
+
* Indicates that a resendable copy of a request has been placed in the console.
|
|
482
|
+
* @example {GET} PH1
|
|
483
|
+
* @example {api/data} PH2
|
|
484
|
+
*/
|
|
485
|
+
resendableCopyOfRequest: 'Resendable copy of {PH1} request to {PH2}',
|
|
486
|
+
/**
|
|
487
|
+
* @description Comment added before a generated fetch command, indicating which execution
|
|
488
|
+
* context the original request was sent from.
|
|
489
|
+
* @example {top} PH1
|
|
490
|
+
*/
|
|
491
|
+
originallyCalledFromContext: '// Originally called from {PH1} context.',
|
|
492
|
+
/**
|
|
493
|
+
* @description Comment added before a generated fetch command, advising the user to select
|
|
494
|
+
* the execution context in the Console toolbar to resend from the same context.
|
|
495
|
+
*/
|
|
496
|
+
selectExecutionContextInConsole: '// To resend from the same execution context, select it in the Console’s toolbar.',
|
|
497
|
+
/**
|
|
498
|
+
* @description Comment added after a generated fetch command, inviting the user to edit before resending.
|
|
499
|
+
*/
|
|
500
|
+
editAndEnterToResend: '// Make any edits, then ENTER to resend',
|
|
473
501
|
/**
|
|
474
502
|
* @description Text in Network Log View of the Network panel
|
|
475
503
|
*/
|
|
@@ -1185,7 +1213,7 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
1185
1213
|
return;
|
|
1186
1214
|
}
|
|
1187
1215
|
|
|
1188
|
-
if (SDK.NetworkManager.NetworkManager.canResendRequest(request)) {
|
|
1216
|
+
if (SDK.NetworkManager.NetworkManager.canResendRequest(request, true)) {
|
|
1189
1217
|
SDK.NetworkManager.NetworkManager.replayRequest(request);
|
|
1190
1218
|
void VisualLogging.logKeyDown(this.dataGrid.selectedNode.element(), event, 'resend');
|
|
1191
1219
|
}
|
|
@@ -1975,11 +2003,17 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
1975
2003
|
{jslogContext: 'throttle-request-domain'});
|
|
1976
2004
|
}
|
|
1977
2005
|
|
|
1978
|
-
if (SDK.NetworkManager.NetworkManager.canResendRequest(request)) {
|
|
2006
|
+
if (SDK.NetworkManager.NetworkManager.canResendRequest(request, true)) {
|
|
1979
2007
|
contextMenu.debugSection().appendItem(i18nString(UIStrings.resend),
|
|
1980
2008
|
SDK.NetworkManager.NetworkManager.replayRequest.bind(null, request),
|
|
1981
2009
|
{jslogContext: 'resend'});
|
|
1982
2010
|
}
|
|
2011
|
+
|
|
2012
|
+
if (SDK.NetworkManager.NetworkManager.canResendRequest(request, false)) {
|
|
2013
|
+
contextMenu.debugSection().appendItem(i18nString(UIStrings.editAndResendAsFetch),
|
|
2014
|
+
this.resendFromConsole.bind(this, request),
|
|
2015
|
+
{jslogContext: 'edit-and-resend-as-fetch'});
|
|
2016
|
+
}
|
|
1983
2017
|
}
|
|
1984
2018
|
}
|
|
1985
2019
|
|
|
@@ -2047,6 +2081,85 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
2047
2081
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(commands);
|
|
2048
2082
|
}
|
|
2049
2083
|
|
|
2084
|
+
private async resendFromConsole(request: SDK.NetworkRequest.NetworkRequest): Promise<void> {
|
|
2085
|
+
// Record telemetry
|
|
2086
|
+
Host.userMetrics.editResendRequest(Host.UserMetrics.resendRequestType(request.resourceType()));
|
|
2087
|
+
|
|
2088
|
+
// Step 1: Generate an editable fetch command that retains forbidden headers as comments.
|
|
2089
|
+
let fetchCommand = await this.generateFetchCall(request, FetchStyle.BROWSER, {commentForbiddenHeaders: true});
|
|
2090
|
+
|
|
2091
|
+
// Step 2: Prepend 'await' unless already present
|
|
2092
|
+
if (!fetchCommand.startsWith('await ')) {
|
|
2093
|
+
fetchCommand = 'await ' + fetchCommand;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
// Prepend execution context guidance comments
|
|
2097
|
+
const contextDescription = NetworkRequestNode.getExecutionContextDescription(request);
|
|
2098
|
+
if (contextDescription) {
|
|
2099
|
+
const contextComments = i18nString(UIStrings.originallyCalledFromContext, {PH1: contextDescription}) + '\n' +
|
|
2100
|
+
i18nString(UIStrings.selectExecutionContextInConsole) + '\n';
|
|
2101
|
+
fetchCommand = contextComments + fetchCommand;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
// Append invitation to edit before resending
|
|
2105
|
+
fetchCommand += '\n' + i18nString(UIStrings.editAndEnterToResend);
|
|
2106
|
+
|
|
2107
|
+
// Step 3: Show the console drawer (without switching away from network panel)
|
|
2108
|
+
UI.InspectorView.InspectorView.instance().showDrawer({focus: false, hasTargetDrawer: true});
|
|
2109
|
+
void UI.ViewManager.ViewManager.instance().showView('console-view', /* userGesture */ false, /* omitFocus */ true);
|
|
2110
|
+
|
|
2111
|
+
// Step 4: Log console message with link to original request
|
|
2112
|
+
NetworkLogView.logResendConsoleMessage(request);
|
|
2113
|
+
|
|
2114
|
+
// Step 5: Inject fetch command into console prompt
|
|
2115
|
+
const consoleViewWrapper = await UI.ViewManager.ViewManager.instance().view('console-view');
|
|
2116
|
+
if (!consoleViewWrapper) {
|
|
2117
|
+
return;
|
|
2118
|
+
}
|
|
2119
|
+
const widget = await consoleViewWrapper.widget();
|
|
2120
|
+
|
|
2121
|
+
// Use a minimal interface to avoid circular imports
|
|
2122
|
+
interface ConsoleViewWithPrompt {
|
|
2123
|
+
insertIntoPrompt(text: string): void;
|
|
2124
|
+
}
|
|
2125
|
+
const consoleView = widget as unknown as Partial<ConsoleViewWithPrompt>;
|
|
2126
|
+
if (typeof consoleView.insertIntoPrompt !== 'function') {
|
|
2127
|
+
return;
|
|
2128
|
+
}
|
|
2129
|
+
consoleView.insertIntoPrompt(fetchCommand);
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
private static logResendConsoleMessage(request: SDK.NetworkRequest.NetworkRequest): void {
|
|
2133
|
+
const target = SDK.TargetManager.TargetManager.instance().primaryPageTarget();
|
|
2134
|
+
if (!target) {
|
|
2135
|
+
return;
|
|
2136
|
+
}
|
|
2137
|
+
const runtimeModel = target.model(SDK.RuntimeModel.RuntimeModel);
|
|
2138
|
+
const consoleModel = target.model(SDK.ConsoleModel.ConsoleModel);
|
|
2139
|
+
if (!runtimeModel || !consoleModel) {
|
|
2140
|
+
return;
|
|
2141
|
+
}
|
|
2142
|
+
const method = request.requestMethod;
|
|
2143
|
+
const name = request.name();
|
|
2144
|
+
const logMessage = i18nString(UIStrings.resendableCopyOfRequest, {PH1: method, PH2: name});
|
|
2145
|
+
const requestId = request.requestId();
|
|
2146
|
+
|
|
2147
|
+
const message = new SDK.ConsoleModel.ConsoleMessage(
|
|
2148
|
+
runtimeModel, Protocol.Log.LogEntrySource.Network, Protocol.Log.LogEntryLevel.Info, logMessage, {
|
|
2149
|
+
affectedResources: {requestId: requestId as Protocol.Network.RequestId},
|
|
2150
|
+
});
|
|
2151
|
+
consoleModel.addMessage(message);
|
|
2152
|
+
|
|
2153
|
+
// Associate message with request for bidirectional linking
|
|
2154
|
+
Logs.NetworkLog.NetworkLog.instance().associateConsoleMessageWithRequest(message, requestId);
|
|
2155
|
+
|
|
2156
|
+
// Clear the initiator-derived fields to prevent confusing "VM123:1" display
|
|
2157
|
+
message.url = undefined;
|
|
2158
|
+
message.line = 0;
|
|
2159
|
+
message.column = 0;
|
|
2160
|
+
message.stackTrace = undefined;
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2050
2163
|
private async copyPowerShellCommand(request: SDK.NetworkRequest.NetworkRequest): Promise<void> {
|
|
2051
2164
|
const command = await this.generatePowerShellCommand(request);
|
|
2052
2165
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(command);
|
|
@@ -2366,39 +2479,22 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
2366
2479
|
}
|
|
2367
2480
|
}
|
|
2368
2481
|
|
|
2369
|
-
private async generateFetchCall(request: SDK.NetworkRequest.NetworkRequest, style: FetchStyle
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
'access-control-request-method',
|
|
2383
|
-
'connection',
|
|
2384
|
-
'content-length',
|
|
2385
|
-
'cookie',
|
|
2386
|
-
'cookie2',
|
|
2387
|
-
'date',
|
|
2388
|
-
'dnt',
|
|
2389
|
-
'expect',
|
|
2390
|
-
'host',
|
|
2391
|
-
'keep-alive',
|
|
2392
|
-
'origin',
|
|
2393
|
-
'referer',
|
|
2394
|
-
'te',
|
|
2395
|
-
'trailer',
|
|
2396
|
-
'transfer-encoding',
|
|
2397
|
-
'upgrade',
|
|
2398
|
-
'via',
|
|
2482
|
+
private async generateFetchCall(request: SDK.NetworkRequest.NetworkRequest, style: FetchStyle,
|
|
2483
|
+
generateOptions?: {commentForbiddenHeaders?: boolean}): Promise<string> {
|
|
2484
|
+
// Editable fetch commands retain unsafe headers so the generated output can
|
|
2485
|
+
// show them as comments, but still omit protocol-internal pseudo-headers.
|
|
2486
|
+
const internalOnly = new Set<string>(['method', 'path', 'scheme', 'version']);
|
|
2487
|
+
const shouldFilterHeader = (name: string, value: string): boolean => {
|
|
2488
|
+
const lowerName = name.toLowerCase();
|
|
2489
|
+
if (internalOnly.has(lowerName) || name.includes(':')) {
|
|
2490
|
+
return true;
|
|
2491
|
+
}
|
|
2492
|
+
if (generateOptions?.commentForbiddenHeaders) {
|
|
2493
|
+
return false;
|
|
2494
|
+
}
|
|
2399
2495
|
// TODO(phistuck) - remove this once crbug.com/571722 is fixed.
|
|
2400
|
-
'user-agent',
|
|
2401
|
-
|
|
2496
|
+
return lowerName === 'user-agent' || isForbiddenHeader(name, value);
|
|
2497
|
+
};
|
|
2402
2498
|
|
|
2403
2499
|
const credentialHeaders = new Set<string>(['cookie', 'authorization']);
|
|
2404
2500
|
|
|
@@ -2412,7 +2508,7 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
2412
2508
|
const headerData: Headers = requestHeaders.reduce((result, header) => {
|
|
2413
2509
|
const name = header.name;
|
|
2414
2510
|
|
|
2415
|
-
if (!
|
|
2511
|
+
if (!shouldFilterHeader(name, header.value)) {
|
|
2416
2512
|
result.append(name, header.value);
|
|
2417
2513
|
}
|
|
2418
2514
|
|
|
@@ -2466,7 +2562,10 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
2466
2562
|
fetchOptions.credentials = credentials;
|
|
2467
2563
|
}
|
|
2468
2564
|
|
|
2469
|
-
|
|
2565
|
+
let options = JSON.stringify(fetchOptions, null, 2);
|
|
2566
|
+
if (generateOptions?.commentForbiddenHeaders) {
|
|
2567
|
+
options = commentForbiddenHeaders(options);
|
|
2568
|
+
}
|
|
2470
2569
|
return `fetch(${url}, ${options});`;
|
|
2471
2570
|
}
|
|
2472
2571
|
|
|
@@ -2520,7 +2619,7 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
2520
2619
|
return encapsChars +
|
|
2521
2620
|
str.replace(/\\/g, '\\\\')
|
|
2522
2621
|
.replace(/"/g, '\\"')
|
|
2523
|
-
.replace(/[^a-zA-Z0-9\s_\-:=+~'\/.'
|
|
2622
|
+
.replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;*]/g, '^$&')
|
|
2524
2623
|
.replace(/%(?=[a-zA-Z0-9_])/g, '%^')
|
|
2525
2624
|
.replace(/[^ -~\r\n]/g, ' ')
|
|
2526
2625
|
.replace(/\r?\n|\r/g, '^\n\n') +
|
|
@@ -22,7 +22,7 @@ import {RequestInitiatorView} from './RequestInitiatorView.js';
|
|
|
22
22
|
|
|
23
23
|
const UIStrings = {
|
|
24
24
|
/**
|
|
25
|
-
* @description Data grid name for
|
|
25
|
+
* @description Data grid name for network log data grids.
|
|
26
26
|
*/
|
|
27
27
|
networkLog: 'Network Log',
|
|
28
28
|
/**
|
|
@@ -42,131 +42,131 @@ const UIStrings = {
|
|
|
42
42
|
*/
|
|
43
43
|
manageHeaderColumns: 'Manage Header Columns…',
|
|
44
44
|
/**
|
|
45
|
-
* @description
|
|
45
|
+
* @description Column header for the request start time column in network log table of the Network panel.
|
|
46
46
|
*/
|
|
47
47
|
startTime: 'Start time',
|
|
48
48
|
/**
|
|
49
|
-
* @description
|
|
49
|
+
* @description Column header for the response time column in network log table of the Network panel.
|
|
50
50
|
*/
|
|
51
51
|
responseTime: 'Response time',
|
|
52
52
|
/**
|
|
53
|
-
* @description
|
|
53
|
+
* @description Column header for the request end time column in network log table of the Network panel.
|
|
54
54
|
*/
|
|
55
55
|
endTime: 'End time',
|
|
56
56
|
/**
|
|
57
|
-
* @description
|
|
57
|
+
* @description Column header for the total request duration column in network log table of the Network panel.
|
|
58
58
|
*/
|
|
59
59
|
totalDuration: 'Total duration',
|
|
60
60
|
/**
|
|
61
|
-
* @description
|
|
61
|
+
* @description Column header for the request latency column in network log table of the Network panel.
|
|
62
62
|
*/
|
|
63
63
|
latency: 'Latency',
|
|
64
64
|
/**
|
|
65
|
-
* @description
|
|
65
|
+
* @description Column header for the request name column in network log table of the Network panel.
|
|
66
66
|
*/
|
|
67
67
|
name: 'Name',
|
|
68
68
|
/**
|
|
69
|
-
* @description
|
|
69
|
+
* @description Column header for the request URL path column in network log table of the Network panel.
|
|
70
70
|
*/
|
|
71
71
|
path: 'Path',
|
|
72
72
|
/**
|
|
73
|
-
* @description
|
|
73
|
+
* @description Column header for the full request URL column in network log table of the Network panel.
|
|
74
74
|
*/
|
|
75
75
|
url: 'URL',
|
|
76
76
|
/**
|
|
77
|
-
* @description Column header
|
|
77
|
+
* @description Column header for the request index number column in network log table of the Network panel.
|
|
78
78
|
*/
|
|
79
79
|
requestNumber: 'Request #',
|
|
80
80
|
/**
|
|
81
|
-
* @description
|
|
81
|
+
* @description Column header for the HTTP request method column in network log table of the Network panel.
|
|
82
82
|
*/
|
|
83
83
|
method: 'Method',
|
|
84
84
|
/**
|
|
85
|
-
* @description
|
|
85
|
+
* @description Column header for the HTTP response status code column in network log table of the Network panel.
|
|
86
86
|
*/
|
|
87
87
|
status: 'Status',
|
|
88
88
|
/**
|
|
89
|
-
* @description
|
|
89
|
+
* @description Column header for the HTTP response status text column in network log table of the Network panel.
|
|
90
90
|
*/
|
|
91
91
|
text: 'Text',
|
|
92
92
|
/**
|
|
93
|
-
* @description
|
|
93
|
+
* @description Column header for the network transport protocol column in network log table of the Network panel.
|
|
94
94
|
*/
|
|
95
95
|
protocol: 'Protocol',
|
|
96
96
|
/**
|
|
97
|
-
* @description
|
|
97
|
+
* @description Column header for the URL scheme column in network log table of the Network panel.
|
|
98
98
|
*/
|
|
99
99
|
scheme: 'Scheme',
|
|
100
100
|
/**
|
|
101
|
-
* @description
|
|
101
|
+
* @description Column header for the request target domain column in network log table of the Network panel.
|
|
102
102
|
*/
|
|
103
103
|
domain: 'Domain',
|
|
104
104
|
/**
|
|
105
|
-
* @description
|
|
105
|
+
* @description Column header for the remote IP address column in network log table of the Network panel.
|
|
106
106
|
*/
|
|
107
107
|
remoteAddress: 'Remote address',
|
|
108
108
|
/**
|
|
109
|
-
* @description
|
|
109
|
+
* @description Column header for the resource MIME type or category column in network log table of the Network panel.
|
|
110
110
|
*/
|
|
111
111
|
type: 'Type',
|
|
112
112
|
/**
|
|
113
|
-
* @description
|
|
113
|
+
* @description Column header for the request initiator column in network log table of the Network panel.
|
|
114
114
|
*/
|
|
115
115
|
initiator: 'Initiator',
|
|
116
116
|
/**
|
|
117
|
-
* @description Column header
|
|
117
|
+
* @description Column header for the override status column in network log table of the Network panel.
|
|
118
118
|
*/
|
|
119
119
|
hasOverrides: 'Has overrides',
|
|
120
120
|
/**
|
|
121
|
-
* @description Column header
|
|
121
|
+
* @description Column header for the initiator IP address space column in network log table of the Network panel.
|
|
122
122
|
*/
|
|
123
123
|
initiatorAddressSpace: 'Initiator address space',
|
|
124
124
|
/**
|
|
125
|
-
* @description
|
|
125
|
+
* @description Column header for the request cookie count column in network log table of the Network panel.
|
|
126
126
|
*/
|
|
127
127
|
cookies: 'Cookies',
|
|
128
128
|
/**
|
|
129
|
-
* @description
|
|
129
|
+
* @description Column header for the set cookies count column in network log table of the Network panel.
|
|
130
130
|
*/
|
|
131
|
-
setCookies: 'Set
|
|
131
|
+
setCookies: 'Set cookies',
|
|
132
132
|
/**
|
|
133
|
-
* @description
|
|
133
|
+
* @description Column header for the request transfer and resource size column in network log table of the Network panel.
|
|
134
134
|
*/
|
|
135
135
|
size: 'Size',
|
|
136
136
|
/**
|
|
137
|
-
* @description
|
|
137
|
+
* @description Column header for the resource decoded content size column in network log table of the Network panel.
|
|
138
138
|
*/
|
|
139
139
|
content: 'Content',
|
|
140
140
|
/**
|
|
141
|
-
* @description
|
|
141
|
+
* @description Column header for the total request duration column in network log table of the Network panel.
|
|
142
142
|
*/
|
|
143
143
|
time: 'Time',
|
|
144
144
|
/**
|
|
145
|
-
* @description
|
|
145
|
+
* @description Column header for the request fetch priority column in network log table of the Network panel.
|
|
146
146
|
*/
|
|
147
147
|
priority: 'Priority',
|
|
148
148
|
/**
|
|
149
|
-
* @description
|
|
149
|
+
* @description Column header for the connection ID column in network log table of the Network panel.
|
|
150
150
|
*/
|
|
151
151
|
connectionId: 'Connection ID',
|
|
152
152
|
/**
|
|
153
|
-
* @description
|
|
153
|
+
* @description Column header for the remote IP address space column in network log table of the Network panel.
|
|
154
154
|
*/
|
|
155
155
|
remoteAddressSpace: 'Remote address space',
|
|
156
156
|
/**
|
|
157
|
-
* @description
|
|
157
|
+
* @description Column header for the ad-related status column in network log table of the Network panel.
|
|
158
158
|
*/
|
|
159
|
-
isAdRelated: 'Is
|
|
159
|
+
isAdRelated: 'Is ad-related',
|
|
160
160
|
/**
|
|
161
|
-
* @description
|
|
161
|
+
* @description Column header for the render-blocking status column in network log table of the Network panel.
|
|
162
162
|
*/
|
|
163
163
|
renderBlocking: 'Render-blocking',
|
|
164
164
|
/**
|
|
165
|
-
* @description
|
|
165
|
+
* @description Column header for the preloaded status column in network log table of the Network panel.
|
|
166
166
|
*/
|
|
167
167
|
isPreloaded: 'Preloaded',
|
|
168
168
|
/**
|
|
169
|
-
* @description Column header
|
|
169
|
+
* @description Column header for the execution context column in network log table of the Network panel.
|
|
170
170
|
*/
|
|
171
171
|
executionContext: 'Execution context',
|
|
172
172
|
} as const;
|
|
@@ -24,7 +24,7 @@ const UIStrings = {
|
|
|
24
24
|
/**
|
|
25
25
|
* @description Text in Network Manage Custom Headers View of the Network panel
|
|
26
26
|
*/
|
|
27
|
-
headerName: 'Header
|
|
27
|
+
headerName: 'Header name',
|
|
28
28
|
} as const;
|
|
29
29
|
const str_ = i18n.i18n.registerUIStrings('panels/network/NetworkManageCustomHeadersView.ts', UIStrings);
|
|
30
30
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -87,7 +87,7 @@ const UIStrings = {
|
|
|
87
87
|
*/
|
|
88
88
|
disableCache: 'Disable cache',
|
|
89
89
|
/**
|
|
90
|
-
* @description Tooltip text
|
|
90
|
+
* @description Tooltip text for settings button in Network panel.
|
|
91
91
|
*/
|
|
92
92
|
networkSettings: 'Network settings',
|
|
93
93
|
/**
|
|
@@ -963,7 +963,7 @@ export class FilmStripRecorder implements Tracing.TracingManager.TracingManagerC
|
|
|
963
963
|
|
|
964
964
|
this.#tracingManager = tracingManager;
|
|
965
965
|
this.#resourceTreeModel = this.#tracingManager.target().model(SDK.ResourceTreeModel.ResourceTreeModel);
|
|
966
|
-
void this.#tracingManager.start(this, '
|
|
966
|
+
void this.#tracingManager.start(this, ['-*', ...Trace.Types.Events.OptionalCategories.Screenshot].join(','));
|
|
967
967
|
|
|
968
968
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.FilmStripStartedRecording);
|
|
969
969
|
}
|
|
@@ -30,11 +30,11 @@ const UIStrings = {
|
|
|
30
30
|
*/
|
|
31
31
|
enableBlockingAndThrottling: 'Enable blocking and throttling',
|
|
32
32
|
/**
|
|
33
|
-
* @description Tooltip text
|
|
33
|
+
* @description Tooltip text for add button in request blocking tool of the Network panel.
|
|
34
34
|
*/
|
|
35
35
|
addRule: 'Add rule',
|
|
36
36
|
/**
|
|
37
|
-
* @description Accessible label for the button to add request blocking patterns in the network request blocking tool
|
|
37
|
+
* @description Accessible label for the button to add request blocking patterns in the network request blocking tool.
|
|
38
38
|
*/
|
|
39
39
|
addPatternLabel: 'Add network request throttling or blocking pattern',
|
|
40
40
|
/**
|
|
@@ -46,14 +46,14 @@ const UIStrings = {
|
|
|
46
46
|
* @example {Learn more} PH1
|
|
47
47
|
*/
|
|
48
48
|
noThrottlingOrBlockingPattern:
|
|
49
|
-
`To throttle or block a network request, add a rule here manually or via the
|
|
49
|
+
`To throttle or block a network request, add a rule here manually or via the Network panel’s context menu. {PH1}`,
|
|
50
50
|
/**
|
|
51
|
-
* @description Text in
|
|
51
|
+
* @description Text in request blocking tool of the Network panel.
|
|
52
52
|
* @example {4} PH1
|
|
53
53
|
*/
|
|
54
54
|
dAffected: '{PH1} affected',
|
|
55
55
|
/**
|
|
56
|
-
* @description
|
|
56
|
+
* @description Tooltip text for pattern input in request blocking tool of the Network panel.
|
|
57
57
|
*/
|
|
58
58
|
textEditPattern: 'Text pattern to block or throttle matching requests; use URL Pattern syntax.',
|
|
59
59
|
/**
|
|
@@ -25,7 +25,7 @@ const UIStrings = {
|
|
|
25
25
|
* @description Title for a table which shows all of the cookies associated with a selected network
|
|
26
26
|
* request, in the Network panel. Noun phrase.
|
|
27
27
|
*/
|
|
28
|
-
requestCookies: 'Request
|
|
28
|
+
requestCookies: 'Request cookies',
|
|
29
29
|
/**
|
|
30
30
|
* @description Tooltip to explain what request cookies are
|
|
31
31
|
*/
|
|
@@ -33,7 +33,7 @@ const UIStrings = {
|
|
|
33
33
|
/**
|
|
34
34
|
* @description Label for showing request cookies that were not actually sent
|
|
35
35
|
*/
|
|
36
|
-
showFilteredOutRequestCookies: '
|
|
36
|
+
showFilteredOutRequestCookies: 'Show filtered-out request cookies',
|
|
37
37
|
/**
|
|
38
38
|
* @description Text in Request Headers View of the Network Panel
|
|
39
39
|
*/
|
|
@@ -41,7 +41,7 @@ const UIStrings = {
|
|
|
41
41
|
/**
|
|
42
42
|
* @description Text in Request Cookies View of the Network panel
|
|
43
43
|
*/
|
|
44
|
-
responseCookies: 'Response
|
|
44
|
+
responseCookies: 'Response cookies',
|
|
45
45
|
/**
|
|
46
46
|
* @description Tooltip to explain what response cookies are
|
|
47
47
|
*/
|
|
@@ -50,7 +50,7 @@ const UIStrings = {
|
|
|
50
50
|
/**
|
|
51
51
|
* @description Label for response cookies with invalid syntax
|
|
52
52
|
*/
|
|
53
|
-
malformedResponseCookies: 'Malformed
|
|
53
|
+
malformedResponseCookies: 'Malformed response cookies',
|
|
54
54
|
/**
|
|
55
55
|
* @description Tooltip to explain what malformed response cookies are. Malformed cookies are
|
|
56
56
|
* cookies that did not match the expected format and could not be interpreted, and are invalid.
|
|
@@ -59,19 +59,19 @@ const UIStrings = {
|
|
|
59
59
|
/**
|
|
60
60
|
* @description Text in Request Headers View of the Network panel
|
|
61
61
|
*/
|
|
62
|
-
referrerPolicy: 'Referrer
|
|
62
|
+
referrerPolicy: 'Referrer policy',
|
|
63
63
|
/**
|
|
64
64
|
* @description Text in Network Log View Columns of the Network panel
|
|
65
65
|
*/
|
|
66
|
-
remoteAddress: 'Remote
|
|
66
|
+
remoteAddress: 'Remote address',
|
|
67
67
|
/**
|
|
68
68
|
* @description Text in Request Headers View of the Network panel
|
|
69
69
|
*/
|
|
70
|
-
requestHeaders: 'Request
|
|
70
|
+
requestHeaders: 'Request headers',
|
|
71
71
|
/**
|
|
72
72
|
* @description The HTTP method of a request
|
|
73
73
|
*/
|
|
74
|
-
requestMethod: 'Request
|
|
74
|
+
requestMethod: 'Request method',
|
|
75
75
|
/**
|
|
76
76
|
* @description The URL of a request
|
|
77
77
|
*/
|
|
@@ -91,7 +91,7 @@ const UIStrings = {
|
|
|
91
91
|
/**
|
|
92
92
|
* @description HTTP response code
|
|
93
93
|
*/
|
|
94
|
-
statusCode: 'Status
|
|
94
|
+
statusCode: 'Status code',
|
|
95
95
|
} as const;
|
|
96
96
|
const str_ = i18n.i18n.registerUIStrings('panels/network/RequestHeadersView.ts', UIStrings);
|
|
97
97
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -69,7 +69,7 @@ const UIStrings = {
|
|
|
69
69
|
* @description Text in Request Payload View of the Network panel. This is a noun-phrase meaning the
|
|
70
70
|
* payload of a network request.
|
|
71
71
|
*/
|
|
72
|
-
requestPayload: 'Request
|
|
72
|
+
requestPayload: 'Request payload',
|
|
73
73
|
/**
|
|
74
74
|
* @description Text in Request Payload View of the Network panel
|
|
75
75
|
*/
|
|
@@ -77,11 +77,11 @@ const UIStrings = {
|
|
|
77
77
|
/**
|
|
78
78
|
* @description Text in Request Payload View of the Network panel
|
|
79
79
|
*/
|
|
80
|
-
queryStringParameters: 'Query
|
|
80
|
+
queryStringParameters: 'Query string parameters',
|
|
81
81
|
/**
|
|
82
82
|
* @description Text in Request Payload View of the Network panel
|
|
83
83
|
*/
|
|
84
|
-
formData: 'Form
|
|
84
|
+
formData: 'Form data',
|
|
85
85
|
/**
|
|
86
86
|
* @description Text for toggling the view of payload data (e.g. query string parameters) from source to parsed in the payload tab
|
|
87
87
|
*/
|
|
@@ -201,6 +201,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
201
201
|
readOnly: true,
|
|
202
202
|
propertiesMode: ObjectUI.ObjectPropertiesSection.ObjectPropertiesMode.OWN_AND_INTERNAL_AND_INHERITED,
|
|
203
203
|
});
|
|
204
|
+
objectTree.expanded = true;
|
|
204
205
|
return html`
|
|
205
206
|
<li role=treeitem class="source-code object-properties-section-root-element object-properties-section" open>
|
|
206
207
|
${object.description}
|
|
@@ -41,7 +41,7 @@ const UIStrings = {
|
|
|
41
41
|
/**
|
|
42
42
|
* @description Text in Request Timing View of the Network panel
|
|
43
43
|
*/
|
|
44
|
-
dnsLookup: 'DNS
|
|
44
|
+
dnsLookup: 'DNS lookup',
|
|
45
45
|
/**
|
|
46
46
|
* @description Text in Request Timing View of the Network panel
|
|
47
47
|
*/
|
|
@@ -53,7 +53,7 @@ const UIStrings = {
|
|
|
53
53
|
/**
|
|
54
54
|
* @description Text in Request Timing View of the Network panel
|
|
55
55
|
*/
|
|
56
|
-
contentDownload: 'Content
|
|
56
|
+
contentDownload: 'Content download',
|
|
57
57
|
/**
|
|
58
58
|
* @description Text in Request Timing View of the Network panel
|
|
59
59
|
*/
|
|
@@ -89,11 +89,11 @@ const UIStrings = {
|
|
|
89
89
|
/**
|
|
90
90
|
* @description Text in Request Timing View of the Network panel
|
|
91
91
|
*/
|
|
92
|
-
routerEvaluation: 'Router
|
|
92
|
+
routerEvaluation: 'Router evaluation',
|
|
93
93
|
/**
|
|
94
94
|
* @description Text in Request Timing View of the Network panel
|
|
95
95
|
*/
|
|
96
|
-
routerCacheLookup: 'Cache
|
|
96
|
+
routerCacheLookup: 'Cache lookup',
|
|
97
97
|
/**
|
|
98
98
|
* @description Inner element text content in Network Log View Columns of the Network panel
|
|
99
99
|
*/
|
|
@@ -115,15 +115,15 @@ const UIStrings = {
|
|
|
115
115
|
/**
|
|
116
116
|
* @description Text in Request Timing View of the Network panel
|
|
117
117
|
*/
|
|
118
|
-
serverPush: 'Server
|
|
118
|
+
serverPush: 'Server push',
|
|
119
119
|
/**
|
|
120
120
|
* @description Text of a DOM element in Request Timing View of the Network panel
|
|
121
121
|
*/
|
|
122
|
-
resourceScheduling: 'Resource
|
|
122
|
+
resourceScheduling: 'Resource scheduling',
|
|
123
123
|
/**
|
|
124
124
|
* @description Text in Request Timing View of the Network panel
|
|
125
125
|
*/
|
|
126
|
-
connectionStart: 'Connection
|
|
126
|
+
connectionStart: 'Connection start',
|
|
127
127
|
/**
|
|
128
128
|
* @description Text in Request Timing View of the Network panel
|
|
129
129
|
*/
|
|
@@ -131,7 +131,7 @@ const UIStrings = {
|
|
|
131
131
|
/**
|
|
132
132
|
* @description Text of a DOM element in Request Timing View of the Network panel
|
|
133
133
|
*/
|
|
134
|
-
cautionRequestIsNotFinishedYet: '
|
|
134
|
+
cautionRequestIsNotFinishedYet: 'Caution: Request isn’t finished yet',
|
|
135
135
|
/**
|
|
136
136
|
* @description Text in Request Timing View of the Network panel
|
|
137
137
|
*/
|