chrome-devtools-frontend 1.0.1662289 → 1.0.1664496
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/{creating-a-model → devtools-model-management}/SKILL.md +0 -1
- package/.agents/skills/devtools-unicode-escaping/SKILL.md +64 -0
- package/.agents/skills/devtools-ux-writing-refactor/SKILL.md +2 -1
- package/.agents/skills/fixing-skipped-tests/SKILL.md +3 -3
- package/.agents/skills/merging-devtools-module/SKILL.md +1 -1
- package/.agents/skills/migrate-chromium-test/SKILL.md +32 -6
- package/.agents/skills/repro-flaky-tests/SKILL.md +71 -31
- package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +1 -0
- package/docs/ui_engineering.md +2 -0
- package/eslint.config.mjs +1 -0
- package/front_end/core/common/SettingRegistration.ts +0 -5
- package/front_end/core/common/Settings.ts +144 -3
- package/front_end/core/platform/StringUtilities.ts +38 -6
- package/front_end/core/protocol_client/PuppeteerDevToolsConnection.ts +112 -0
- package/front_end/core/sdk/CPUProfilerModel.ts +21 -13
- package/front_end/core/sdk/CSSContainerQuery.ts +1 -1
- package/front_end/core/sdk/CSSLayer.ts +1 -1
- package/front_end/core/sdk/CSSMedia.ts +1 -1
- package/front_end/core/sdk/CSSModel.ts +1 -1
- package/front_end/core/sdk/CSSNavigation.ts +1 -1
- package/front_end/core/sdk/CSSProperty.ts +1 -1
- package/front_end/core/sdk/CSSQuery.ts +1 -1
- package/front_end/core/sdk/CSSRule.ts +1 -1
- package/front_end/core/sdk/CSSScope.ts +1 -1
- package/front_end/core/sdk/CSSStartingStyle.ts +1 -1
- package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +1 -1
- package/front_end/core/sdk/CSSSupports.ts +1 -1
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +1 -1
- package/front_end/core/sdk/NetworkManager.ts +1 -1
- package/front_end/core/sdk/NetworkRequest.ts +7 -7
- package/front_end/core/sdk/Resource.ts +1 -1
- package/front_end/core/sdk/ScopeTreeCache.ts +1 -1
- package/front_end/core/sdk/Script.ts +1 -1
- package/front_end/core/sdk/ServerSentEvents.ts +1 -1
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +0 -10
- package/front_end/core/sdk/SourceMap.ts +1 -1
- package/front_end/core/sdk/SourceMapScopesInfo.ts +1 -1
- package/front_end/core/sdk/StorageBucketsModel.ts +0 -10
- package/front_end/core/sdk/sdk-meta.ts +3 -4
- package/front_end/{models → core}/text_utils/ContentProvider.ts +4 -6
- package/front_end/{models → core}/text_utils/StaticContentProvider.ts +4 -6
- package/front_end/{models → core}/text_utils/StreamingContentData.ts +1 -2
- package/front_end/{models → core}/text_utils/TextRange.ts +6 -3
- package/front_end/{models → core}/text_utils/TextUtils.ts +7 -7
- package/front_end/{models → core}/text_utils/WasmDisassembly.ts +2 -2
- package/front_end/core/text_utils/text_utils.ts +27 -0
- package/front_end/entrypoints/formatter_worker/AcornTokenizer.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +0 -13
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +8 -3
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +3 -3
- package/front_end/entrypoints/main/MainImpl.ts +21 -3
- package/front_end/foundation/Universe.ts +16 -0
- package/front_end/generated/InspectorBackendCommands.ts +2 -14
- package/front_end/generated/protocol-mapping.d.ts +0 -53
- package/front_end/generated/protocol-proxy-api.d.ts +0 -46
- package/front_end/generated/protocol.ts +0 -148
- package/front_end/models/ai_assistance/AgentProject.ts +1 -1
- package/front_end/models/ai_assistance/AiAgent2.ts +3 -3
- package/front_end/models/ai_assistance/AiConversation.ts +21 -10
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +21 -10
- package/front_end/models/ai_assistance/ChangeManager.ts +2 -2
- package/front_end/models/ai_assistance/ExtensionScope.ts +6 -2
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +4 -7
- package/front_end/models/ai_assistance/agents/AiAgent.ts +9 -2
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +19 -11
- package/front_end/models/ai_assistance/agents/PerformanceAgent.snapshot.txt +2 -2
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +23 -10
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +19 -18
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +3 -4
- package/front_end/models/ai_assistance/contexts/FileContext.ts +7 -3
- package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +39 -11
- package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +6 -3
- package/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +4 -4
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +8 -8
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +76 -3
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +11 -1
- package/front_end/models/badges/AiExplorerBadge.ts +8 -3
- package/front_end/models/badges/Badge.ts +1 -0
- package/front_end/models/badges/UserBadges.ts +43 -23
- package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
- package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -1
- package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
- package/front_end/models/bindings/FileUtils.ts +1 -1
- package/front_end/models/bindings/NetworkProject.ts +16 -4
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +7 -10
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +1 -1
- package/front_end/models/bindings/SASSSourceMapping.ts +1 -1
- package/front_end/models/bindings/StylesSourceMapping.ts +1 -1
- package/front_end/models/breakpoints/BreakpointManager.ts +1 -1
- package/front_end/models/crux-manager/CrUXManager.ts +1 -1
- package/front_end/models/emulation/DeviceModeModel.ts +67 -5
- package/front_end/models/emulation/EmulatedDevices.ts +3 -2
- package/front_end/models/extensions/RecorderPluginManager.ts +10 -6
- package/front_end/models/har/Importer.ts +1 -1
- package/front_end/models/har/Log.snapshot.txt +193 -0
- package/front_end/models/har/Log.ts +3 -2
- package/front_end/models/har/Writer.ts +1 -1
- package/front_end/models/issues_manager/IssueAggregator.ts +9 -0
- package/front_end/models/issues_manager/IssuesManager.ts +5 -0
- package/front_end/models/issues_manager/LazyLoadImageIssue.ts +76 -0
- package/front_end/models/issues_manager/descriptions/lazyLoadImageZeroSize.md +7 -0
- package/front_end/models/issues_manager/issues_manager.ts +2 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +9 -10
- package/front_end/models/live-metrics/LiveMetrics.ts +2 -3
- package/front_end/models/logs/NetworkLog.ts +4 -3
- package/front_end/models/logs/logs-meta.ts +3 -3
- package/front_end/models/network_time_calculator/NetworkTimeCalculator.ts +4 -4
- package/front_end/models/persistence/Automapping.ts +1 -1
- package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +2 -2
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +1 -1
- package/front_end/models/persistence/IsolatedFileSystem.ts +2 -2
- package/front_end/models/persistence/NetworkPersistenceManager.ts +1 -1
- package/front_end/models/persistence/PersistenceImpl.ts +1 -1
- package/front_end/models/persistence/PlatformFileSystem.ts +1 -1
- package/front_end/models/source_map_scopes/FunctionCodeResolver.ts +8 -6
- package/front_end/models/source_map_scopes/NamesResolver.ts +37 -31
- package/front_end/models/stack_trace/StackTrace.ts +17 -0
- package/front_end/models/text_utils/text_utils.ts +2 -24
- package/front_end/models/trace/insights/ImageDelivery.ts +2 -2
- package/front_end/models/trace/insights/LegacyJavaScript.ts +1 -1
- package/front_end/models/trace/insights/RenderBlocking.ts +1 -1
- package/front_end/models/trace/insights/ThirdParties.ts +1 -1
- package/front_end/models/workspace/FileManager.ts +1 -1
- package/front_end/models/workspace/UISourceCode.ts +1 -1
- package/front_end/models/workspace/WorkspaceImpl.ts +1 -1
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +1 -1
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -1
- package/front_end/panels/accessibility/AccessibilityStrings.ts +2 -2
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -1
- package/front_end/panels/ai_assistance/ExportConversation.ts +1 -1
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +1 -1
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +1 -1
- package/front_end/panels/application/AppManifestView.ts +4 -4
- package/front_end/panels/application/ApplicationPanelSidebar.ts +1 -2
- package/front_end/panels/application/CrashReportContextView.ts +1 -1
- package/front_end/panels/application/DOMStorageItemsView.ts +1 -1
- package/front_end/panels/application/DeviceBoundSessionsView.ts +4 -4
- package/front_end/panels/application/ExtensionStorageItemsView.ts +1 -1
- package/front_end/panels/application/FrameDetailsView.ts +1 -1
- package/front_end/panels/application/IndexedDBModel.ts +0 -10
- package/front_end/panels/application/IndexedDBViews.ts +240 -164
- package/front_end/panels/application/ServiceWorkerCacheTreeElement.ts +12 -2
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +1 -1
- package/front_end/panels/application/SharedStorageModel.ts +0 -10
- package/front_end/panels/application/application.ts +2 -0
- package/front_end/panels/application/components/AdsView.ts +23 -0
- package/front_end/panels/application/components/BackForwardCacheView.ts +21 -5
- package/front_end/panels/application/components/CrashReportContextGrid.ts +1 -1
- package/front_end/panels/application/components/SharedStorageAccessGrid.ts +1 -1
- package/front_end/panels/application/components/TrustTokensView.ts +2 -2
- package/front_end/panels/application/components/adsView.css +21 -1
- package/front_end/panels/application/indexedDBViews.css +1 -1
- package/front_end/panels/application/preloading/PreloadingView.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +2 -2
- package/front_end/panels/application/preloading/components/PreloadingString.ts +2 -2
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +4 -4
- package/front_end/panels/autofill/AutofillView.ts +1 -1
- package/front_end/panels/common/AiCodeCompletionTeaser.ts +1 -1
- package/front_end/panels/common/ExtensionServer.ts +1 -1
- package/front_end/panels/console/ConsoleFilter.ts +1 -1
- package/front_end/panels/console/ConsoleSidebar.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
- package/front_end/panels/console/PromptBuilder.ts +1 -1
- package/front_end/panels/coverage/CoverageDecorationManager.ts +9 -1
- package/front_end/panels/coverage/CoverageModel.ts +1 -1
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
- package/front_end/panels/elements/AccessibilityTreeView.ts +38 -3
- package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +1 -1
- package/front_end/panels/elements/ElementIssueUtils.ts +2 -2
- package/front_end/panels/elements/ElementsTreeElement.ts +10 -3
- package/front_end/panels/elements/StandaloneStylesContainer.ts +1 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +1 -1
- package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +1 -1
- package/front_end/panels/elements/StylesContainer.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/elements/components/CSSPropertyDocsView.ts +1 -1
- package/front_end/panels/explain/components/ConsoleInsight.ts +2 -2
- package/front_end/panels/issues/AffectedLazyLoadImagesView.ts +76 -0
- package/front_end/panels/issues/AffectedResourcesView.ts +1 -1
- package/front_end/panels/issues/CorsIssueDetailsView.ts +1 -1
- package/front_end/panels/issues/IssueView.ts +2 -0
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/layer_viewer/Layers3DView.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseController.ts +5 -0
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
- package/front_end/panels/network/BinaryResourceView.ts +1 -1
- package/front_end/panels/network/NetworkDataGridNode.ts +72 -8
- package/front_end/panels/network/NetworkLogView.ts +1 -1
- package/front_end/panels/network/NetworkLogViewColumns.ts +6 -6
- package/front_end/panels/network/NetworkPanel.ts +4 -4
- package/front_end/panels/network/NetworkSearchScope.ts +1 -1
- package/front_end/panels/network/RequestConditionsDrawer.ts +1 -1
- package/front_end/panels/network/RequestHTMLView.ts +1 -1
- package/front_end/panels/network/RequestInitiatorView.ts +24 -2
- package/front_end/panels/network/RequestPayloadView.ts +1 -1
- package/front_end/panels/network/RequestPreviewView.ts +1 -1
- package/front_end/panels/network/RequestResponseView.ts +1 -1
- 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 +1 -1
- package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
- package/front_end/panels/network/forward/UIRequestLocation.ts +1 -1
- package/front_end/panels/network/network-meta.ts +3 -3
- package/front_end/panels/network/networkLogView.css +5 -0
- package/front_end/panels/network/requestInitiatorViewTree.css +5 -0
- package/front_end/panels/profiler/HeapProfileView.ts +200 -81
- package/front_end/panels/profiler/HeapSnapshotView.ts +1 -1
- package/front_end/panels/profiler/ProfileDataGrid.ts +12 -8
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +1 -1
- package/front_end/panels/recorder/README.md +1 -2
- package/front_end/panels/recorder/RecorderPanel.ts +1861 -17
- package/front_end/panels/recorder/RecordingListView.ts +8 -37
- package/front_end/panels/recorder/RecordingView.ts +54 -27
- package/front_end/panels/recorder/SelectorPicker.ts +0 -13
- package/front_end/panels/recorder/StepEditor.ts +6 -14
- package/front_end/panels/recorder/StepView.ts +36 -105
- package/front_end/panels/recorder/recorder.ts +0 -2
- package/front_end/panels/search/SearchResultsPane.ts +1 -1
- package/front_end/panels/security/SecurityPanel.ts +3 -3
- package/front_end/panels/settings/AISettingsTab.ts +17 -4
- package/front_end/panels/settings/components/SyncSection.ts +4 -4
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +3 -3
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
- package/front_end/panels/sources/BreakpointsView.ts +1 -1
- package/front_end/panels/sources/CoveragePlugin.ts +1 -1
- package/front_end/panels/sources/DebuggerPlugin.ts +4 -4
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +27 -3
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/PersistenceActions.ts +1 -1
- package/front_end/panels/sources/SourcesNavigator.ts +1 -1
- package/front_end/panels/sources/SourcesSearchScope.ts +1 -1
- package/front_end/panels/sources/TabbedEditorContainer.ts +3 -3
- package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
- package/front_end/panels/sources/components/HeadersView.ts +1 -1
- package/front_end/panels/sources/filteredUISourceCodeListProvider.css +12 -1
- package/front_end/panels/sources/sources-meta.ts +1 -1
- package/front_end/panels/timeline/StatusDialog.ts +1 -1
- package/front_end/panels/timeline/TimelineController.ts +24 -3
- package/front_end/panels/timeline/TimelinePanel.ts +116 -25
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +2 -2
- package/front_end/panels/timeline/TimelineUIUtils.ts +1 -1
- package/front_end/panels/timeline/components/CWVMetrics.ts +1 -1
- package/front_end/panels/timeline/components/IgnoreListSetting.ts +1 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +2 -2
- package/front_end/panels/timeline/timeline-meta.ts +13 -0
- package/front_end/services/tracing/TracingManager.ts +27 -2
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/lighthouse/README.chromium +2 -2
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1418 -1413
- package/front_end/third_party/lighthouse/locales/en-US.json +12 -6
- package/front_end/third_party/lighthouse/locales/en-XL.json +12 -6
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
- package/front_end/third_party/puppeteer/puppeteer.ts +20 -1
- package/front_end/ui/components/highlighting/HighlightElement.ts +4 -1
- package/front_end/ui/components/highlighting/HighlightManager.ts +1 -1
- package/front_end/ui/components/highlighting/MarkupHighlight.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownView.ts +46 -2
- package/front_end/ui/components/markdown_view/markdownView.css +23 -0
- package/front_end/ui/components/spinners/Spinner.ts +29 -32
- package/front_end/ui/components/spinners/spinner.css +32 -84
- package/front_end/ui/components/text_editor/config.ts +1 -1
- package/front_end/ui/components/tree_outline/TreeOutline.ts +7 -1
- package/front_end/ui/legacy/Infobar.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +12 -7
- package/front_end/ui/legacy/SuggestBox.ts +1 -1
- package/front_end/ui/legacy/TextPrompt.ts +1 -1
- package/front_end/ui/legacy/Toolbar.ts +5 -2
- package/front_end/ui/legacy/Treeoutline.ts +40 -13
- package/front_end/ui/legacy/UIUtils.ts +25 -10
- package/front_end/ui/legacy/Widget.ts +17 -10
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +37 -8
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/AnimationTimingUI.ts +27 -13
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +5 -2
- package/front_end/ui/legacy/components/inline_editor/CSSLinearEasingModel.ts +23 -0
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +223 -121
- package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/objectValue.css +2 -1
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +105 -115
- package/front_end/ui/legacy/components/source_frame/PreviewFactory.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +3 -3
- package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +5 -1
- package/front_end/ui/legacy/components/source_frame/jsonView.css +4 -0
- package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +10 -6
- package/front_end/ui/lit/lit.ts +1 -0
- package/front_end/ui/lit/render.ts +44 -10
- package/front_end/ui/lit/strip-whitespace.ts +23 -2
- package/front_end/ui/settings/SettingUIRegistration.ts +105 -0
- package/front_end/ui/settings/settings.ts +9 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +13 -0
- package/mcp/mcp.ts +1 -0
- package/package.json +1 -1
- package/front_end/panels/recorder/RecorderController.ts +0 -1759
- /package/.agents/skills/{verification → devtools-verification}/SKILL.md +0 -0
- /package/front_end/{models → core}/text_utils/CodeMirrorUtils.ts +0 -0
- /package/front_end/{models → core}/text_utils/ContentData.ts +0 -0
- /package/front_end/{models → core}/text_utils/Text.ts +0 -0
- /package/front_end/{models → core}/text_utils/TextCursor.ts +0 -0
- /package/front_end/{models → core}/text_utils/TextUtils.snapshot.txt +0 -0
- /package/front_end/panels/recorder/{recorderController.css → recorderPanel.css} +0 -0
|
@@ -120,7 +120,7 @@ const UIStrings = {
|
|
|
120
120
|
*/
|
|
121
121
|
insecureSha: 'insecure (SHA-1)',
|
|
122
122
|
/**
|
|
123
|
-
* @description Description of the security explanation when the site
|
|
123
|
+
* @description Description of the security explanation when the site's certificate chain contains a certificate signed using SHA-1.
|
|
124
124
|
*/
|
|
125
125
|
theCertificateChainForThisSite: 'The certificate chain for this site contains a certificate signed using SHA-1.',
|
|
126
126
|
/**
|
|
@@ -128,7 +128,7 @@ const UIStrings = {
|
|
|
128
128
|
*/
|
|
129
129
|
subjectAlternativeNameMissing: '`Subject Alternative Name` missing',
|
|
130
130
|
/**
|
|
131
|
-
* @description Description of the security explanation when the site
|
|
131
|
+
* @description Description of the security explanation when the site's certificate is missing a Subject Alternative Name extension.
|
|
132
132
|
*/
|
|
133
133
|
theCertificateForThisSiteDoesNot:
|
|
134
134
|
'The certificate for this site doesn’t contain a `Subject Alternative Name` extension containing a domain name or IP address.',
|
|
@@ -274,7 +274,7 @@ const UIStrings = {
|
|
|
274
274
|
*/
|
|
275
275
|
reloadThePageToRecordRequestsFor: 'Reload the page to record requests for HTTP resources.',
|
|
276
276
|
/**
|
|
277
|
-
* @description Link text in the Security panel. Clicking the link navigates the user to the Network panel. Requests refers to network requests. Each request is a piece of data transmitted from the current user
|
|
277
|
+
* @description Link text in the Security panel. Clicking the link navigates the user to the Network panel. Requests refers to network requests. Each request is a piece of data transmitted from the current user's browser to a remote server.
|
|
278
278
|
*/
|
|
279
279
|
viewDRequestsInNetworkPanel:
|
|
280
280
|
'{n, plural, =1 {View # request in Network panel} other {View # requests in Network panel}}',
|
|
@@ -76,7 +76,17 @@ const UIStrings = {
|
|
|
76
76
|
*/
|
|
77
77
|
showLess: 'Show less',
|
|
78
78
|
/**
|
|
79
|
-
* @description
|
|
79
|
+
* @description Accessible label for a button to expand an accordion for a specific setting.
|
|
80
|
+
* @example {Code suggestions} PH1
|
|
81
|
+
*/
|
|
82
|
+
showMoreOfSetting: 'Show more of {PH1}',
|
|
83
|
+
/**
|
|
84
|
+
* @description Accessible label for a button to collapse an accordion for a specific setting.
|
|
85
|
+
* @example {Code suggestions} PH1
|
|
86
|
+
*/
|
|
87
|
+
showLessOfSetting: 'Show less of {PH1}',
|
|
88
|
+
/**
|
|
89
|
+
* @description Header for a list of feature attributes. 'When on, you'll be able to …'.
|
|
80
90
|
*/
|
|
81
91
|
whenOn: 'When on',
|
|
82
92
|
/**
|
|
@@ -247,11 +257,11 @@ const UIStrings = {
|
|
|
247
257
|
*/
|
|
248
258
|
enableAiCodeSuggestions: 'Enable AI code suggestions',
|
|
249
259
|
/**
|
|
250
|
-
* @description Message shown to the user if the age check isn
|
|
260
|
+
* @description Message shown to the user if the age check isn't successful.
|
|
251
261
|
*/
|
|
252
262
|
ageRestricted: 'This feature is only available to users 18 years or older.',
|
|
253
263
|
/**
|
|
254
|
-
* @description The error message when the user isn
|
|
264
|
+
* @description The error message when the user isn't logged in to Chrome.
|
|
255
265
|
*/
|
|
256
266
|
notLoggedIn: 'This feature is only available when you sign in to Chrome with your Google account.',
|
|
257
267
|
/**
|
|
@@ -259,7 +269,7 @@ const UIStrings = {
|
|
|
259
269
|
*/
|
|
260
270
|
offline: 'This feature is only available with an active internet connection.',
|
|
261
271
|
/**
|
|
262
|
-
* @description Text informing the user that AI assistance isn
|
|
272
|
+
* @description Text informing the user that AI assistance isn't available in Incognito mode or Guest mode.
|
|
263
273
|
*/
|
|
264
274
|
notAvailableInIncognitoMode: 'AI assistance isn’t available in Incognito mode or Guest mode.',
|
|
265
275
|
} as const;
|
|
@@ -358,6 +368,9 @@ export const AI_SETTINGS_TAB_DEFAULT_VIEW: View = (input, _output, target): void
|
|
|
358
368
|
<devtools-button
|
|
359
369
|
.data=${{
|
|
360
370
|
title: settingData.settingExpandState.isSettingExpanded ? i18nString(UIStrings.showLess) : i18nString(UIStrings.showMore),
|
|
371
|
+
accessibleLabel: settingData.settingExpandState.isSettingExpanded ?
|
|
372
|
+
i18nString(UIStrings.showLessOfSetting, {PH1: settingData.settingName}) :
|
|
373
|
+
i18nString(UIStrings.showMoreOfSetting, {PH1: settingData.settingName}),
|
|
361
374
|
size: Buttons.Button.Size.SMALL,
|
|
362
375
|
iconName: settingData.settingExpandState.isSettingExpanded ? 'chevron-up' : 'chevron-down',
|
|
363
376
|
variant: Buttons.Button.Variant.ICON,
|
|
@@ -24,25 +24,25 @@ import syncSectionStyles from './syncSection.css.js';
|
|
|
24
24
|
|
|
25
25
|
const UIStrings = {
|
|
26
26
|
/**
|
|
27
|
-
* @description Text shown to the user in Settings. ‘This setting
|
|
27
|
+
* @description Text shown to the user in Settings. ‘This setting' refers
|
|
28
28
|
* to a checkbox that is disabled.
|
|
29
29
|
*/
|
|
30
30
|
syncDisabled: 'To turn this setting on, you must enable Chrome sync.',
|
|
31
31
|
/**
|
|
32
32
|
* @description Text shown to the user in Settings. Explains why the checkbox
|
|
33
|
-
* for saving DevTools settings to the user
|
|
33
|
+
* for saving DevTools settings to the user's Google account is inactive.
|
|
34
34
|
*/
|
|
35
35
|
preferencesSyncDisabled: 'You need to first enable saving `Chrome` settings in your `Google` account.',
|
|
36
36
|
/**
|
|
37
37
|
* @description Label for the account email address. Shown in DevTools Settings in
|
|
38
38
|
* front of the email address currently used for Chrome Sync.
|
|
39
39
|
*/
|
|
40
|
-
signedIn: 'Signed
|
|
40
|
+
signedIn: 'Signed in to Chrome as:',
|
|
41
41
|
/**
|
|
42
42
|
* @description Label for the account settings. Shown in DevTools Settings when
|
|
43
43
|
* the user is not logged in to Chrome.
|
|
44
44
|
*/
|
|
45
|
-
notSignedIn: 'You’re not signed
|
|
45
|
+
notSignedIn: 'You’re not signed in to Chrome.',
|
|
46
46
|
/**
|
|
47
47
|
* @description Label for the Google Developer Program profile status that corresponds to
|
|
48
48
|
* the standard plan (no subscription).
|
|
@@ -40,12 +40,12 @@ const UIStrings = {
|
|
|
40
40
|
*/
|
|
41
41
|
brandProperties: 'User agent properties',
|
|
42
42
|
/**
|
|
43
|
-
* @description Input field placeholder for brand
|
|
43
|
+
* @description Input field placeholder for brand's browser name.
|
|
44
44
|
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
45
45
|
*/
|
|
46
46
|
brandName: 'Brand',
|
|
47
47
|
/**
|
|
48
|
-
* @description ARIA label for brand
|
|
48
|
+
* @description ARIA label for brand's browser name input field.
|
|
49
49
|
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
50
50
|
* @example {index} PH1
|
|
51
51
|
*/
|
|
@@ -61,7 +61,7 @@ const UIStrings = {
|
|
|
61
61
|
*/
|
|
62
62
|
brandVersionPlaceholder: 'Version (e.g. 87.0.4280.88)',
|
|
63
63
|
/**
|
|
64
|
-
* @description ARIA label for brand
|
|
64
|
+
* @description ARIA label for brand's browser version input field.
|
|
65
65
|
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
66
66
|
* @example {index} PH1
|
|
67
67
|
*/
|
|
@@ -6,9 +6,9 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as Platform from '../../core/platform/platform.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
9
10
|
import * as Protocol from '../../generated/protocol.js';
|
|
10
11
|
import * as Persistence from '../../models/persistence/persistence.js';
|
|
11
|
-
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
12
12
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
13
13
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
14
14
|
|
|
@@ -10,9 +10,9 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
10
10
|
import * as Platform from '../../core/platform/platform.js';
|
|
11
11
|
import {assertNotNullOrUndefined} from '../../core/platform/platform.js';
|
|
12
12
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
13
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
13
14
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
14
15
|
import * as Breakpoints from '../../models/breakpoints/breakpoints.js';
|
|
15
|
-
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
16
16
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
17
17
|
import * as Input from '../../ui/components/input/input.js';
|
|
18
18
|
import * as RenderCoordinator from '../../ui/components/render_coordinator/render_coordinator.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
|
-
import * as TextUtils from '../../
|
|
9
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
10
10
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
11
11
|
import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
|
|
12
12
|
import type * as TextEditor from '../../ui/components/text_editor/text_editor.js';
|
|
@@ -9,6 +9,7 @@ import * as Host from '../../core/host/host.js';
|
|
|
9
9
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
10
10
|
import * as Platform from '../../core/platform/platform.js';
|
|
11
11
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
12
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
12
13
|
import * as Protocol from '../../generated/protocol.js';
|
|
13
14
|
import * as Badges from '../../models/badges/badges.js';
|
|
14
15
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
@@ -16,7 +17,6 @@ import * as Breakpoints from '../../models/breakpoints/breakpoints.js';
|
|
|
16
17
|
import * as Formatter from '../../models/formatter/formatter.js';
|
|
17
18
|
import * as SourceMapScopes from '../../models/source_map_scopes/source_map_scopes.js';
|
|
18
19
|
import * as StackTrace from '../../models/stack_trace/stack_trace.js';
|
|
19
|
-
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
20
20
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
21
21
|
import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
|
|
22
22
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
@@ -41,7 +41,7 @@ const UIStrings = {
|
|
|
41
41
|
/**
|
|
42
42
|
* @description Text in Debugger Plugin of the Sources panel
|
|
43
43
|
*/
|
|
44
|
-
thisScriptIsOnTheDebuggersIgnore: 'This script is on the debugger
|
|
44
|
+
thisScriptIsOnTheDebuggersIgnore: 'This script is on the debugger’s ignore list',
|
|
45
45
|
/**
|
|
46
46
|
* @description Text to stop preventing the debugger from stepping into library code
|
|
47
47
|
*/
|
|
@@ -123,11 +123,11 @@ const UIStrings = {
|
|
|
123
123
|
/**
|
|
124
124
|
* @description Text in Debugger Plugin of the Sources panel
|
|
125
125
|
*/
|
|
126
|
-
debuggingPowerReduced: 'DevTools can
|
|
126
|
+
debuggingPowerReduced: 'DevTools can’t show authored sources, but you can debug the deployed code.',
|
|
127
127
|
/**
|
|
128
128
|
* @description Text in Debugger Plugin of the Sources panel
|
|
129
129
|
*/
|
|
130
|
-
reloadForSourceMap: 'To enable again, make sure the file isn
|
|
130
|
+
reloadForSourceMap: 'To enable again, make sure the file isn’t on the ignore list and reload.',
|
|
131
131
|
/**
|
|
132
132
|
* @description Text in Debugger Plugin of the Sources panel
|
|
133
133
|
* @example {http://site.com/lib.js.map} PH1
|
|
@@ -9,7 +9,7 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
9
9
|
import * as Persistence from '../../models/persistence/persistence.js';
|
|
10
10
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
11
11
|
import * as QuickOpen from '../../ui/legacy/components/quick_open/quick_open.js';
|
|
12
|
-
import {Directives, html, type TemplateResult} from '../../ui/lit/lit.js';
|
|
12
|
+
import {Directives, html, nothing, type TemplateResult} from '../../ui/lit/lit.js';
|
|
13
13
|
|
|
14
14
|
import {FilePathScoreFunction} from './FilePathScoreFunction.js';
|
|
15
15
|
import filteredUISourceCodeListProviderStyles from './filteredUISourceCodeListProvider.css.js';
|
|
@@ -24,12 +24,18 @@ const UIStrings = {
|
|
|
24
24
|
* @example {compile.html} PH1
|
|
25
25
|
*/
|
|
26
26
|
sIgnoreListed: '{PH1} (ignore listed)',
|
|
27
|
+
/**
|
|
28
|
+
* @description Tag indicating a file is from the local workspace
|
|
29
|
+
*/
|
|
30
|
+
workspace: 'Workspace',
|
|
27
31
|
} as const;
|
|
28
32
|
|
|
29
33
|
const str_ = i18n.i18n.registerUIStrings('panels/sources/FilteredUISourceCodeListProvider.ts', UIStrings);
|
|
30
34
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
31
35
|
const {classMap} = Directives;
|
|
32
36
|
|
|
37
|
+
const FILE_SYSTEM_SCORE_BONUS = 1_000_000;
|
|
38
|
+
|
|
33
39
|
export class FilteredUISourceCodeListProvider extends QuickOpen.FilteredListWidget.Provider {
|
|
34
40
|
private queryLineNumberAndColumnNumber: string;
|
|
35
41
|
private defaultScores: Map<Workspace.UISourceCode.UISourceCode, number>|null;
|
|
@@ -48,6 +54,18 @@ export class FilteredUISourceCodeListProvider extends QuickOpen.FilteredListWidg
|
|
|
48
54
|
this.uiSourceCodeIds = new Set();
|
|
49
55
|
}
|
|
50
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Checks if the given UISourceCode belongs to a file system project.
|
|
59
|
+
* This includes:
|
|
60
|
+
* - Workspace.Workspace.projectTypes.FileSystem: Standard workspace folders added by the user.
|
|
61
|
+
* - Workspace.Workspace.projectTypes.ConnectableFileSystem: Workspace folders connected via custom protocols.
|
|
62
|
+
*/
|
|
63
|
+
private isFileSystemFile(uiSourceCode: Workspace.UISourceCode.UISourceCode): boolean {
|
|
64
|
+
const projectType = uiSourceCode.project().type();
|
|
65
|
+
return projectType === Workspace.Workspace.projectTypes.FileSystem ||
|
|
66
|
+
projectType === Workspace.Workspace.projectTypes.ConnectableFileSystem;
|
|
67
|
+
}
|
|
68
|
+
|
|
51
69
|
private projectRemoved(event: Common.EventTarget.EventTargetEvent<Workspace.Workspace.Project>): void {
|
|
52
70
|
const project = event.data;
|
|
53
71
|
this.populate(project);
|
|
@@ -116,8 +134,10 @@ export class FilteredUISourceCodeListProvider extends QuickOpen.FilteredListWidg
|
|
|
116
134
|
override itemScoreAt(itemIndex: number, query: string): number {
|
|
117
135
|
const uiSourceCode = this.uiSourceCodes[itemIndex];
|
|
118
136
|
const score = this.defaultScores ? (this.defaultScores.get(uiSourceCode) || 0) : 0;
|
|
137
|
+
const fileSystemBonus = this.isFileSystemFile(uiSourceCode) ? FILE_SYSTEM_SCORE_BONUS : 0;
|
|
138
|
+
|
|
119
139
|
if (!query || query.length < 2) {
|
|
120
|
-
return score;
|
|
140
|
+
return score + fileSystemBonus;
|
|
121
141
|
}
|
|
122
142
|
|
|
123
143
|
if (this.query !== query) {
|
|
@@ -148,7 +168,8 @@ export class FilteredUISourceCodeListProvider extends QuickOpen.FilteredListWidg
|
|
|
148
168
|
}
|
|
149
169
|
|
|
150
170
|
const fullDisplayName = uiSourceCode.fullDisplayName();
|
|
151
|
-
return score + multiplier * (contentTypeBonus + this.scorer.calculateScore(fullDisplayName, null))
|
|
171
|
+
return score + multiplier * (contentTypeBonus + this.scorer.calculateScore(fullDisplayName, null)) +
|
|
172
|
+
fileSystemBonus;
|
|
152
173
|
}
|
|
153
174
|
|
|
154
175
|
override renderItem(itemIndex: number, query: string): TemplateResult {
|
|
@@ -179,6 +200,8 @@ export class FilteredUISourceCodeListProvider extends QuickOpen.FilteredListWidg
|
|
|
179
200
|
subtitleRanges.push({offset: indexes[i], length: 1});
|
|
180
201
|
}
|
|
181
202
|
}
|
|
203
|
+
const isFileSystem = this.isFileSystemFile(uiSourceCode);
|
|
204
|
+
|
|
182
205
|
// clang-format off
|
|
183
206
|
return html`
|
|
184
207
|
<style>${filteredUISourceCodeListProviderStyles}</style>
|
|
@@ -196,6 +219,7 @@ export class FilteredUISourceCodeListProvider extends QuickOpen.FilteredListWidg
|
|
|
196
219
|
class="filtered-ui-source-code-subtitle" title=${tooltipText}>
|
|
197
220
|
${this.renderSubtitleElement(fullDisplayName.substring(0, fileNameIndex + 1))}
|
|
198
221
|
</devtools-highlight>
|
|
222
|
+
${isFileSystem ? html`<span class="tag">${i18nString(UIStrings.workspace)}</span>` : nothing}
|
|
199
223
|
</div>`;
|
|
200
224
|
// clang-format on
|
|
201
225
|
}
|
|
@@ -9,10 +9,10 @@ import * as Host from '../../core/host/host.js';
|
|
|
9
9
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
10
10
|
import * as Platform from '../../core/platform/platform.js';
|
|
11
11
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
12
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
12
13
|
import * as AiAssistance from '../../models/ai_assistance/ai_assistance.js';
|
|
13
14
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
14
15
|
import * as Persistence from '../../models/persistence/persistence.js';
|
|
15
|
-
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
16
16
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
17
17
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
18
18
|
import * as Spinners from '../../ui/components/spinners/spinners.js';
|
|
@@ -7,9 +7,9 @@ import * as Host from '../../core/host/host.js';
|
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import type * as Platform from '../../core/platform/platform.js';
|
|
9
9
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
10
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
10
11
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
11
12
|
import * as Persistence from '../../models/persistence/persistence.js';
|
|
12
|
-
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
13
13
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
14
14
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
15
15
|
|
|
@@ -11,9 +11,9 @@ import * as Host from '../../core/host/host.js';
|
|
|
11
11
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
12
12
|
import * as Platform from '../../core/platform/platform.js';
|
|
13
13
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
14
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
14
15
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
15
16
|
import * as Persistence from '../../models/persistence/persistence.js';
|
|
16
|
-
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
17
17
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
18
18
|
import * as uiI18n from '../../ui/i18n/i18n.js';
|
|
19
19
|
import {Link} from '../../ui/kit/kit.js';
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as Platform from '../../core/platform/platform.js';
|
|
7
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
7
8
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
8
9
|
import * as Persistence from '../../models/persistence/persistence.js';
|
|
9
|
-
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
10
10
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
11
11
|
import type * as Search from '../search/search.js';
|
|
12
12
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as Platform from '../../core/platform/platform.js';
|
|
8
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
8
9
|
import * as Persistence from '../../models/persistence/persistence.js';
|
|
9
|
-
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
10
10
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
11
11
|
import type * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
|
|
12
12
|
import * as Tooltips from '../../ui/components/tooltips/tooltips.js';
|
|
@@ -39,7 +39,7 @@ const UIStrings = {
|
|
|
39
39
|
* @example {FolderName} PH1
|
|
40
40
|
*/
|
|
41
41
|
changesWereNotSavedToFileSystemToSaveAddFolderToWorkspace:
|
|
42
|
-
'Changes weren
|
|
42
|
+
'Changes weren’t saved to file system. To save, add {PH1} to your Workspace.',
|
|
43
43
|
/**
|
|
44
44
|
* @description Tooltip shown for the warning icon on an editor tab in the Sources panel
|
|
45
45
|
* when the developer saved changes via Ctrl+S/Cmd+S, but didn't have a Workspace
|
|
@@ -48,7 +48,7 @@ const UIStrings = {
|
|
|
48
48
|
* @example {Workspace} PH1
|
|
49
49
|
*/
|
|
50
50
|
changesWereNotSavedToFileSystemToSaveSetUpYourWorkspace:
|
|
51
|
-
'Changes weren
|
|
51
|
+
'Changes weren’t saved to file system. To save, set up your {PH1}.',
|
|
52
52
|
} as const;
|
|
53
53
|
const str_ = i18n.i18n.registerUIStrings('panels/sources/TabbedEditorContainer.ts', UIStrings);
|
|
54
54
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
import * as Common from '../../core/common/common.js';
|
|
8
8
|
import * as Host from '../../core/host/host.js';
|
|
9
9
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
10
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
10
11
|
import * as FormatterActions from '../../entrypoints/formatter_worker/FormatterActions.js'; // eslint-disable-line @devtools/es-modules-import
|
|
11
12
|
import * as AiCodeCompletion from '../../models/ai_code_completion/ai_code_completion.js';
|
|
12
13
|
import * as Formatter from '../../models/formatter/formatter.js';
|
|
13
14
|
import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
|
14
15
|
import * as Persistence from '../../models/persistence/persistence.js';
|
|
15
|
-
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
16
16
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
17
17
|
import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
|
|
18
18
|
import * as IssueCounter from '../../ui/components/issue_counter/issue_counter.js';
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import * as Host from '../../../core/host/host.js';
|
|
8
8
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
9
|
+
import * as TextUtils from '../../../core/text_utils/text_utils.js';
|
|
9
10
|
import type * as Protocol from '../../../generated/protocol.js';
|
|
10
11
|
import * as Persistence from '../../../models/persistence/persistence.js';
|
|
11
|
-
import * as TextUtils from '../../../models/text_utils/text_utils.js';
|
|
12
12
|
import * as Workspace from '../../../models/workspace/workspace.js';
|
|
13
13
|
import * as Buttons from '../../../ui/components/buttons/buttons.js';
|
|
14
14
|
import * as ComponentHelpers from '../../../ui/components/helpers/helpers.js';
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
.filtered-list-widget-item > .filtered-ui-source-code-list-item {
|
|
8
8
|
align-content: center;
|
|
9
9
|
display: grid;
|
|
10
|
+
grid-template-columns: 1fr auto;
|
|
10
11
|
gap: var(--sys-size-2);
|
|
11
12
|
line-height: initial;
|
|
12
13
|
}
|
|
@@ -16,6 +17,8 @@
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.filtered-ui-source-code-title {
|
|
20
|
+
grid-column: 1;
|
|
21
|
+
grid-row: 1;
|
|
19
22
|
overflow: hidden;
|
|
20
23
|
text-overflow: ellipsis;
|
|
21
24
|
}
|
|
@@ -25,11 +28,12 @@
|
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
.filtered-ui-source-code-subtitle {
|
|
31
|
+
grid-column: 1;
|
|
32
|
+
grid-row: 2;
|
|
28
33
|
flex: none;
|
|
29
34
|
overflow: hidden;
|
|
30
35
|
text-overflow: ellipsis;
|
|
31
36
|
color: var(--sys-color-on-surface-subtle);
|
|
32
|
-
padding-left: var(--sys-size-3);
|
|
33
37
|
display: flex;
|
|
34
38
|
white-space: pre;
|
|
35
39
|
}
|
|
@@ -39,3 +43,10 @@
|
|
|
39
43
|
overflow: hidden;
|
|
40
44
|
text-overflow: ellipsis;
|
|
41
45
|
}
|
|
46
|
+
|
|
47
|
+
.filtered-ui-source-code-list-item > .tag {
|
|
48
|
+
grid-column: 2;
|
|
49
|
+
grid-row: 1 / 3;
|
|
50
|
+
align-self: center;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
}
|
|
@@ -365,7 +365,7 @@ const UIStrings = {
|
|
|
365
365
|
/**
|
|
366
366
|
* @description Title of an option under the Sources category that can be invoked through the Command Menu
|
|
367
367
|
*/
|
|
368
|
-
doNotDisplayVariableValuesInline: 'Don
|
|
368
|
+
doNotDisplayVariableValuesInline: 'Don’t show variable values inline',
|
|
369
369
|
/**
|
|
370
370
|
* @description Title of a setting under the Sources category in Settings
|
|
371
371
|
*/
|
|
@@ -6,7 +6,7 @@ import '../../ui/legacy/legacy.js';
|
|
|
6
6
|
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as Platform from '../../core/platform/platform.js';
|
|
9
|
-
import * as TextUtils from '../../
|
|
9
|
+
import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
10
10
|
import type * as Trace from '../../models/trace/trace.js';
|
|
11
11
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
12
12
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
@@ -262,8 +262,15 @@ export class TimelineController implements Tracing.TracingManager.TracingManager
|
|
|
262
262
|
disabledByDefault('devtools.timeline.layers'), disabledByDefault('devtools.timeline.picture'),
|
|
263
263
|
disabledByDefault('blink.graphics_context_annotations'));
|
|
264
264
|
}
|
|
265
|
+
const screenshotOptions: Tracing.TracingManager.TracingStartOptions = {};
|
|
265
266
|
if (options.captureFilmStrip) {
|
|
266
267
|
categoriesArray.push(disabledByDefault('devtools.screenshot'));
|
|
268
|
+
if (options.screenshotMaxSize !== undefined) {
|
|
269
|
+
screenshotOptions.screenshotMaxSize = options.screenshotMaxSize;
|
|
270
|
+
}
|
|
271
|
+
if (options.screenshotMaxCount !== undefined) {
|
|
272
|
+
screenshotOptions.screenshotMaxCount = options.screenshotMaxCount;
|
|
273
|
+
}
|
|
267
274
|
}
|
|
268
275
|
if (options.captureSelectorStats) {
|
|
269
276
|
categoriesArray.push(disabledByDefault('blink.debug'));
|
|
@@ -281,7 +288,7 @@ export class TimelineController implements Tracing.TracingManager.TracingManager
|
|
|
281
288
|
this.#fieldData = null;
|
|
282
289
|
this.#recordingStartTime = Date.now();
|
|
283
290
|
|
|
284
|
-
const response = await this.startRecordingWithCategories(categoriesArray.join(','));
|
|
291
|
+
const response = await this.startRecordingWithCategories(categoriesArray.join(','), screenshotOptions);
|
|
285
292
|
if (response.getError()) {
|
|
286
293
|
await SDK.TargetManager.TargetManager.instance().resumeAllTargets();
|
|
287
294
|
throw new Error(response.getError());
|
|
@@ -403,7 +410,9 @@ export class TimelineController implements Tracing.TracingManager.TracingManager
|
|
|
403
410
|
}
|
|
404
411
|
}
|
|
405
412
|
|
|
406
|
-
private async startRecordingWithCategories(categories: string
|
|
413
|
+
private async startRecordingWithCategories(categories: string,
|
|
414
|
+
tracingStartOptions: Tracing.TracingManager.TracingStartOptions = {}):
|
|
415
|
+
Promise<Protocol.ProtocolResponseWithError> {
|
|
407
416
|
if (!this.tracingManager) {
|
|
408
417
|
throw new Error(i18nString(UIStrings.tracingNotSupported));
|
|
409
418
|
}
|
|
@@ -412,7 +421,7 @@ export class TimelineController implements Tracing.TracingManager.TracingManager
|
|
|
412
421
|
// all the functions data.
|
|
413
422
|
await SDK.TargetManager.TargetManager.instance().suspendAllTargets('performance-timeline');
|
|
414
423
|
this.tracingCompletePromise = Promise.withResolvers();
|
|
415
|
-
const response = await this.tracingManager.start(this, categories);
|
|
424
|
+
const response = await this.tracingManager.start(this, categories, tracingStartOptions);
|
|
416
425
|
await this.warmupJsProfiler();
|
|
417
426
|
PanelCommon.ExtensionServer.ExtensionServer.instance().profilingStarted();
|
|
418
427
|
return response;
|
|
@@ -485,4 +494,16 @@ export interface RecordingOptions {
|
|
|
485
494
|
captureFilmStrip?: boolean;
|
|
486
495
|
captureSelectorStats?: boolean;
|
|
487
496
|
navigateToUrl?: Platform.DevToolsPath.UrlString;
|
|
497
|
+
/**
|
|
498
|
+
* Maximum width/height (in pixels) of each captured screenshot.
|
|
499
|
+
* Only meaningful when `captureFilmStrip` is true. When omitted the
|
|
500
|
+
* backend default is used (see CDP `Tracing.start`).
|
|
501
|
+
*/
|
|
502
|
+
screenshotMaxSize?: number;
|
|
503
|
+
/**
|
|
504
|
+
* Maximum number of screenshots captured during a single recording.
|
|
505
|
+
* Only meaningful when `captureFilmStrip` is true. When omitted the
|
|
506
|
+
* backend default is used (see CDP `Tracing.start`).
|
|
507
|
+
*/
|
|
508
|
+
screenshotMaxCount?: number;
|
|
488
509
|
}
|