chrome-devtools-frontend 1.0.1657110 → 1.0.1660788
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/devtools-ux-writing-refactor/SKILL.md +125 -0
- package/.agents/skills/migrate-chromium-test/SKILL.md +15 -70
- package/.agents/skills/repro-flaky-tests/SKILL.md +53 -0
- package/.agents/skills/ui-eng-vision-orchestrator/SKILL.md +37 -18
- package/.agents/skills/version-control/SKILL.md +8 -1
- package/AUTHORS +1 -0
- package/SECURITY.md +3 -0
- package/docs/get_the_code.md +6 -0
- package/front_end/Images/src/ads.svg +1 -0
- package/front_end/Tests.js +6 -6
- package/front_end/core/common/Gzip.ts +12 -5
- package/front_end/core/common/ResourceType.ts +19 -19
- package/front_end/core/common/Revealer.ts +15 -15
- package/front_end/core/common/SettingRegistration.ts +19 -19
- package/front_end/core/host/AidaClient.ts +35 -9
- package/front_end/core/host/GdpClient.ts +10 -7
- package/front_end/core/platform/StringUtilities.ts +35 -0
- package/front_end/core/sdk/AccessibilityModel.snapshot.txt +17 -0
- package/front_end/core/sdk/AccessibilityModel.ts +132 -2
- package/front_end/core/sdk/CPUThrottlingManager.ts +8 -5
- package/front_end/core/sdk/CSSMetadata.ts +110 -16
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +2 -5
- package/front_end/core/sdk/ConsoleModel.ts +5 -5
- package/front_end/core/sdk/DOMDebuggerModel.ts +5 -1
- package/front_end/core/sdk/DOMModel.ts +32 -18
- package/front_end/core/sdk/NetworkManager.ts +58 -14
- package/front_end/core/sdk/NetworkRequest.ts +37 -1
- package/front_end/core/sdk/OverlayModel.ts +45 -6
- package/front_end/core/sdk/ResourceTreeModel.ts +6 -7
- package/front_end/core/sdk/ScreenCaptureModel.ts +2 -2
- package/front_end/core/sdk/ServerTiming.ts +17 -13
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +4 -2
- package/front_end/core/sdk/ServiceWorkerManager.ts +19 -5
- package/front_end/core/sdk/TargetManager.ts +10 -1
- package/front_end/core/sdk/TraceObject.ts +4 -2
- package/front_end/core/sdk/sdk-meta.ts +170 -0
- package/front_end/design_system_tokens.css +0 -5
- package/front_end/entrypoints/devtools_app/devtools_app.ts +1 -1
- package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +13 -4
- package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +5 -2
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +23 -4
- package/front_end/entrypoints/formatter_worker/HTMLFormatter.ts +33 -10
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +8 -3
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +2 -2
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +36 -37
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +15 -33
- package/front_end/entrypoints/js_app/js_app.ts +6 -5
- package/front_end/entrypoints/main/GlobalAiButton.ts +4 -4
- package/front_end/entrypoints/main/MainImpl.ts +25 -55
- package/front_end/entrypoints/main/main-meta.ts +50 -50
- package/front_end/entrypoints/node_app/app/NodeConnectionsPanel.ts +5 -5
- package/front_end/entrypoints/node_app/app/NodeMain.ts +3 -3
- package/front_end/entrypoints/node_app/node_app.ts +10 -9
- package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
- package/front_end/foundation/Universe.ts +76 -6
- package/front_end/generated/InspectorBackendCommands.ts +3 -3
- package/front_end/generated/SupportedCSSProperties.js +19 -12
- package/front_end/generated/protocol.ts +7 -1
- package/front_end/models/ai_assistance/AiConversation.ts +19 -17
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +37 -14
- package/front_end/models/ai_assistance/AiUtils.ts +38 -42
- package/front_end/models/ai_assistance/agents/AiAgent.ts +5 -1
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +3 -2
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +2 -1
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +7 -5
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +270 -286
- package/front_end/models/ai_assistance/data_formatters/UnitFormatters.ts +20 -0
- package/front_end/models/ai_assistance/performance/AICallTree.ts +3 -1
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +3 -2
- package/front_end/models/autofill_manager/AutofillManager.ts +3 -1
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +8 -5
- package/front_end/models/bindings/CompilerScriptMapping.ts +2 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +15 -16
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +6 -4
- package/front_end/models/bindings/FileUtils.ts +11 -12
- package/front_end/models/bindings/NetworkProject.ts +4 -0
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
- package/front_end/models/bindings/ResourceUtils.ts +1 -1
- package/front_end/models/bindings/SASSSourceMapping.ts +8 -5
- package/front_end/models/emulation/DeviceModeModel.ts +14 -14
- package/front_end/models/emulation/EmulatedDevices.ts +392 -11
- package/front_end/models/extensions/ExtensionAPI.ts +6 -6
- package/front_end/models/extensions/LanguageExtensionEndpoint.ts +13 -12
- package/front_end/models/issues_manager/BounceTrackingIssue.ts +1 -1
- package/front_end/models/issues_manager/ClientHintIssue.ts +1 -1
- package/front_end/models/issues_manager/ConnectionAllowlistIssue.ts +1 -1
- package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +7 -7
- package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +2 -2
- package/front_end/models/issues_manager/CookieIssue.ts +6 -7
- package/front_end/models/issues_manager/CorsIssue.ts +3 -3
- package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +2 -2
- package/front_end/models/issues_manager/DeprecationIssue.ts +3 -3
- package/front_end/models/issues_manager/EmailVerificationRequestIssue.ts +1 -1
- package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +1 -1
- package/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.ts +1 -1
- package/front_end/models/issues_manager/GenericIssue.ts +7 -7
- package/front_end/models/issues_manager/HeavyAdIssue.ts +3 -3
- package/front_end/models/issues_manager/Issue.ts +8 -8
- package/front_end/models/issues_manager/MixedContentIssue.ts +1 -1
- package/front_end/models/issues_manager/PartitioningBlobURLIssue.ts +3 -3
- package/front_end/models/issues_manager/QuirksModeIssue.ts +1 -1
- package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +2 -2
- package/front_end/models/issues_manager/SelectivePermissionsInterventionIssue.ts +2 -2
- package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +2 -2
- package/front_end/models/issues_manager/SharedDictionaryIssue.ts +1 -1
- package/front_end/models/issues_manager/UnencodedDigestIssue.ts +3 -3
- package/front_end/models/javascript_metadata/NativeFunctions.js +5 -1
- package/front_end/models/stack_trace/StackTraceModel.ts +3 -3
- package/front_end/models/text_utils/ContentData.ts +27 -0
- package/front_end/models/trace/helpers/SamplesIntegrator.ts +21 -5
- package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +29 -14
- package/front_end/models/web_mcp/WebMCPModel.ts +24 -6
- package/front_end/models/workspace/IgnoreListManager.ts +6 -6
- package/front_end/models/workspace/UISourceCode.ts +3 -3
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +23 -12
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +25 -22
- package/front_end/panels/ai_assistance/ExportConversation.ts +3 -4
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +3 -3
- package/front_end/panels/ai_assistance/components/ChatInput.ts +2 -2
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +7 -0
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +2 -2
- package/front_end/panels/animation/AnimationTimeline.ts +17 -19
- package/front_end/panels/animation/AnimationUI.ts +5 -5
- package/front_end/panels/animation/animation-meta.ts +2 -2
- package/front_end/panels/application/ApplicationPanelSidebar.ts +13 -4
- package/front_end/panels/application/BackgroundServiceView.ts +2 -1
- package/front_end/panels/application/DeviceBoundSessionsView.ts +2 -6
- package/front_end/panels/application/IndexedDBViews.ts +245 -262
- package/front_end/panels/application/OpenedWindowDetailsView.ts +1 -1
- package/front_end/panels/application/ResourcesPanel.ts +9 -2
- package/front_end/panels/application/ServiceWorkersView.ts +252 -211
- package/front_end/panels/application/StorageView.ts +97 -33
- package/front_end/panels/application/WebMCPView.ts +15 -1
- package/front_end/panels/application/components/AdsView.ts +1 -1
- package/front_end/panels/application/indexedDBViews.css +38 -9
- package/front_end/panels/application/preloading/helper/PreloadingForward.ts +2 -1
- package/front_end/panels/application/resourcesSidebar.css +5 -0
- package/front_end/panels/application/storageView.css +26 -9
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +5 -1
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +8 -6
- package/front_end/panels/common/DOMLinkifier.ts +1 -1
- package/front_end/panels/common/ExtensionServer.ts +119 -14
- package/front_end/panels/console/ConsoleContextSelector.ts +4 -4
- package/front_end/panels/console/ConsolePinPane.ts +12 -12
- package/front_end/panels/console/ConsolePrompt.ts +6 -6
- package/front_end/panels/console/ConsoleSidebar.ts +7 -7
- package/front_end/panels/console/ConsoleView.ts +45 -44
- package/front_end/panels/console/ConsoleViewMessage.ts +40 -40
- package/front_end/panels/console/SymbolizedErrorWidget.ts +2 -1
- package/front_end/panels/console/console-meta.ts +34 -34
- package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
- package/front_end/panels/coverage/CoverageListView.ts +28 -28
- package/front_end/panels/coverage/CoverageModel.ts +2 -1
- package/front_end/panels/coverage/CoverageView.ts +23 -23
- package/front_end/panels/coverage/coverage-meta.ts +5 -5
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +36 -36
- package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +1 -1
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewStartView.ts +6 -6
- package/front_end/panels/css_overview/CSSOverviewUnusedDeclarations.ts +6 -6
- package/front_end/panels/css_overview/css_overview-meta.ts +2 -2
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +20 -21
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +6 -8
- package/front_end/panels/developer_resources/developer_resources-meta.ts +2 -2
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +8 -102
- package/front_end/panels/elements/AccessibilityTreeView.ts +163 -70
- package/front_end/panels/elements/ElementsPanel.ts +17 -11
- package/front_end/panels/elements/ElementsTreeElement.ts +49 -2
- package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
- package/front_end/panels/elements/LayoutPane.ts +1 -1
- package/front_end/panels/elements/MetricsSidebarPane.ts +100 -34
- package/front_end/panels/elements/StylePropertiesSection.ts +2 -2
- package/front_end/panels/elements/StylePropertyTreeElement.ts +8 -2
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +7 -18
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +2 -2
- package/front_end/panels/elements/components/QueryContainer.ts +1 -1
- package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -1
- package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
- package/front_end/panels/media/EventDisplayTable.ts +2 -2
- package/front_end/panels/media/EventTimelineView.ts +4 -4
- package/front_end/panels/media/MainView.ts +4 -4
- package/front_end/panels/media/PlayerDetailView.ts +5 -5
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/media/PlayerMessagesView.ts +12 -12
- package/front_end/panels/media/PlayerPropertiesView.ts +17 -17
- package/front_end/panels/network/NetworkDataGridNode.ts +124 -36
- package/front_end/panels/network/NetworkLogView.ts +11 -2
- package/front_end/panels/network/NetworkLogViewColumns.ts +18 -0
- package/front_end/panels/network/NetworkPanel.ts +2 -1
- package/front_end/panels/network/NetworkWaterfallColumn.ts +1 -3
- package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
- package/front_end/panels/network/RequestPayloadView.ts +53 -7
- package/front_end/panels/network/RequestPreviewView.ts +7 -1
- package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
- package/front_end/panels/network/forward/UIFilter.ts +1 -0
- package/front_end/panels/network/networkPanel.css +1 -0
- package/front_end/panels/network/networkTimingTable.css +1 -1
- package/front_end/panels/network/requestPayloadView.css +10 -0
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +12 -12
- package/front_end/panels/performance_monitor/performance_monitor-meta.ts +7 -7
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +2 -2
- package/front_end/panels/profiler/HeapProfileView.ts +563 -51
- package/front_end/panels/profiler/HeapSnapshotView.ts +15 -9
- package/front_end/panels/profiler/ProfilesPanel.ts +13 -7
- package/front_end/panels/profiler/WritableProfileHeader.ts +152 -0
- package/front_end/panels/profiler/profiler.ts +2 -2
- package/front_end/panels/protocol_monitor/JSONEditor.ts +10 -10
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +28 -32
- package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +1 -1
- package/front_end/panels/recorder/RecorderController.ts +15 -15
- package/front_end/panels/recorder/RecorderEvents.ts +8 -0
- package/front_end/panels/recorder/components/CreateRecordingView.ts +11 -11
- package/front_end/panels/recorder/components/ExtensionView.ts +74 -83
- package/front_end/panels/recorder/components/RecordingListView.ts +3 -3
- package/front_end/panels/recorder/components/RecordingView.ts +13 -10
- package/front_end/panels/recorder/components/ReplaySection.ts +9 -9
- package/front_end/panels/recorder/components/StepEditor.ts +352 -321
- package/front_end/panels/recorder/components/StepView.ts +36 -37
- package/front_end/panels/recorder/components/recordingView.css +1 -1
- package/front_end/panels/recorder/models/RecorderSettings.ts +2 -2
- package/front_end/panels/recorder/recorder-meta.ts +7 -7
- package/front_end/panels/screencast/ScreencastApp.ts +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +12 -12
- package/front_end/panels/search/SearchResultsPane.ts +4 -4
- package/front_end/panels/search/SearchView.ts +20 -20
- package/front_end/panels/security/SecurityModel.ts +7 -7
- package/front_end/panels/security/SecurityPanel.ts +99 -107
- package/front_end/panels/security/SecurityPanelSidebar.ts +7 -7
- package/front_end/panels/security/security-meta.ts +2 -2
- package/front_end/panels/sensors/LocationsSettingsTab.ts +19 -19
- package/front_end/panels/sensors/SensorsView.ts +27 -27
- package/front_end/panels/sensors/sensors-meta.ts +13 -167
- package/front_end/panels/settings/AISettingsTab.ts +98 -56
- package/front_end/panels/settings/EditFileSystemView.ts +2 -2
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +20 -20
- package/front_end/panels/settings/KeybindsSettingsTab.ts +20 -21
- package/front_end/panels/settings/SettingsScreen.ts +11 -11
- package/front_end/panels/settings/WorkspaceSettingsTab.ts +5 -5
- package/front_end/panels/settings/components/SyncSection.ts +12 -12
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +13 -13
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +31 -31
- package/front_end/panels/settings/emulation/emulation-meta.ts +1 -1
- package/front_end/panels/settings/settings-meta.ts +14 -14
- package/front_end/panels/sources/NavigatorView.ts +7 -6
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +83 -37
- package/front_end/panels/sources/SourcesNavigator.ts +20 -18
- package/front_end/panels/sources/SourcesView.ts +10 -1
- package/front_end/panels/sources/scopeChainSidebarPane.css +12 -4
- package/front_end/panels/sources/sources-meta.ts +4 -4
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +5 -2
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +2 -1
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +2 -1
- package/front_end/panels/timeline/TimelineFlameChartView.ts +1 -1
- package/front_end/panels/timeline/TimelinePanel.ts +2 -1
- package/front_end/panels/timeline/TimelineUIUtils.ts +5 -2
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +4 -2
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +4 -2
- package/front_end/panels/timeline/components/insights/ImageRef.ts +2 -1
- package/front_end/panels/utils/utils.ts +7 -3
- package/front_end/panels/web_audio/WebAudioView.ts +17 -18
- package/front_end/panels/web_audio/web_audio-meta.ts +3 -3
- package/front_end/panels/webauthn/WebauthnPane.ts +10 -10
- package/front_end/panels/whats_new/ReleaseNoteView.ts +1 -1
- package/front_end/panels/whats_new/whats_new-meta.ts +11 -11
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/lit/lib/async-directive.d.ts +2 -1
- package/front_end/third_party/lit/lib/async-directive.js +1 -1
- package/front_end/third_party/lit/lib/async-directive.js.map +1 -1
- package/front_end/third_party/lit/lib/decorators.d.ts +2 -1
- package/front_end/third_party/lit/lib/decorators.js.map +1 -1
- package/front_end/third_party/lit/lib/directive.d.ts +2 -1
- package/front_end/third_party/lit/lib/directive.js.map +1 -1
- package/front_end/third_party/lit/lib/directives.d.ts +2 -1
- package/front_end/third_party/lit/lib/directives.js +8 -8
- package/front_end/third_party/lit/lib/directives.js.map +1 -1
- package/front_end/third_party/lit/lib/lit.d.ts +2 -1
- package/front_end/third_party/lit/lib/lit.js +1 -1
- package/front_end/third_party/lit/lib/lit.js.map +1 -1
- package/front_end/third_party/lit/lib/static-html.d.ts +2 -1
- package/front_end/third_party/lit/lib/static-html.js +1 -1
- package/front_end/third_party/lit/lib/static-html.js.map +1 -1
- package/front_end/third_party/lit/package.json +2 -2
- package/front_end/third_party/lit/rebuild.sh +1 -1
- package/front_end/third_party/lit/src/async-directive.ts +5 -0
- package/front_end/ui/components/dialogs/Dialog.ts +1 -1
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +1 -1
- package/front_end/ui/components/dialogs/shortcutDialog.css +15 -12
- package/front_end/ui/components/diff_view/DiffView.ts +2 -2
- package/front_end/ui/components/issue_counter/IssueCounter.ts +3 -3
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +5 -5
- package/front_end/ui/components/lists/List.ts +2 -2
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +5 -5
- package/front_end/ui/components/settings/SettingCheckbox.ts +1 -1
- package/front_end/ui/components/snackbars/Snackbar.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.ts +3 -3
- package/front_end/ui/components/text_editor/config.ts +2 -2
- package/front_end/ui/components/tree_outline/TreeOutline.ts +34 -1
- package/front_end/ui/legacy/ReportView.ts +5 -0
- package/front_end/ui/legacy/Treeoutline.ts +18 -0
- package/front_end/ui/legacy/View.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -0
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +8 -3
- package/front_end/ui/legacy/components/data_grid/data_grid.ts +1 -0
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +100 -36
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +7 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -0
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +4 -2
- package/front_end/ui/legacy/inspectorCommon.css +5 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +4 -0
- package/mcp/mcp.ts +2 -0
- package/package.json +4 -4
- package/front_end/panels/profiler/ProfileView.ts +0 -610
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
import * as Common from '../../core/common/common.js';
|
|
34
34
|
import * as Platform from '../../core/platform/platform.js';
|
|
35
35
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
36
|
+
import type * as Protocol from '../../generated/protocol.js';
|
|
36
37
|
import type * as ComputedStyle from '../../models/computed_style/computed_style.js';
|
|
37
38
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
38
39
|
import {Directives, html, type LitTemplate, nothing, render} from '../../ui/lit/lit.js';
|
|
@@ -188,6 +189,7 @@ export class MetricsSidebarPane extends ElementsSidebarPane<ShadowRoot> {
|
|
|
188
189
|
private inlineStyle: SDK.CSSStyleDeclaration.CSSStyleDeclaration|null;
|
|
189
190
|
private highlightMode: string;
|
|
190
191
|
private computedStyle: Map<string, string>|null;
|
|
192
|
+
private boxModelInternal: Protocol.DOM.BoxModel|null = null;
|
|
191
193
|
private isEditingMetrics?: boolean;
|
|
192
194
|
private view: View;
|
|
193
195
|
|
|
@@ -200,6 +202,7 @@ export class MetricsSidebarPane extends ElementsSidebarPane<ShadowRoot> {
|
|
|
200
202
|
this.inlineStyle = null;
|
|
201
203
|
this.highlightMode = '';
|
|
202
204
|
this.computedStyle = null;
|
|
205
|
+
this.boxModelInternal = null;
|
|
203
206
|
this.view = view;
|
|
204
207
|
}
|
|
205
208
|
|
|
@@ -228,28 +231,27 @@ export class MetricsSidebarPane extends ElementsSidebarPane<ShadowRoot> {
|
|
|
228
231
|
return await Promise.resolve();
|
|
229
232
|
}
|
|
230
233
|
|
|
231
|
-
function callback(this: MetricsSidebarPane, style: Map<string, string>|null): void {
|
|
232
|
-
if (!style || this.node() !== node) {
|
|
233
|
-
this.computedStyle = null;
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
this.computedStyle = style;
|
|
237
|
-
this.updateMetrics(style);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
234
|
if (!node.id) {
|
|
241
235
|
return await Promise.resolve();
|
|
242
236
|
}
|
|
243
237
|
|
|
244
|
-
const
|
|
245
|
-
cssModel.getComputedStyle(node.id)
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
238
|
+
const [style, boxModel, inlineStyleResult] = await Promise.all([
|
|
239
|
+
cssModel.getComputedStyle(node.id),
|
|
240
|
+
node.boxModel().catch(() => null),
|
|
241
|
+
cssModel.getInlineStyles(node.id),
|
|
242
|
+
]);
|
|
243
|
+
|
|
244
|
+
if (!style || this.node() !== node) {
|
|
245
|
+
this.computedStyle = null;
|
|
246
|
+
this.boxModelInternal = null;
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
this.computedStyle = style;
|
|
250
|
+
this.boxModelInternal = boxModel;
|
|
251
|
+
if (inlineStyleResult && this.node() === node) {
|
|
252
|
+
this.inlineStyle = inlineStyleResult.inlineStyle;
|
|
253
|
+
}
|
|
254
|
+
this.updateMetrics(style, 'all', boxModel);
|
|
253
255
|
}
|
|
254
256
|
|
|
255
257
|
override onCSSModelChanged(): void {
|
|
@@ -288,15 +290,66 @@ export class MetricsSidebarPane extends ElementsSidebarPane<ShadowRoot> {
|
|
|
288
290
|
node.highlight(mode);
|
|
289
291
|
} else {
|
|
290
292
|
this.highlightMode = '';
|
|
291
|
-
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
|
|
293
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
292
294
|
}
|
|
293
295
|
|
|
294
296
|
if (this.computedStyle) {
|
|
295
|
-
this.updateMetrics(this.computedStyle, mode);
|
|
297
|
+
this.updateMetrics(this.computedStyle, mode, this.boxModelInternal);
|
|
296
298
|
}
|
|
297
299
|
}
|
|
298
300
|
|
|
299
|
-
|
|
301
|
+
/**
|
|
302
|
+
* Checks whether the array represents a valid Protocol.DOM.Quad (8 coordinates: 4 corner points).
|
|
303
|
+
*/
|
|
304
|
+
private isDOMQuad(quad?: number[]): boolean {
|
|
305
|
+
return Boolean(quad && quad.length === 8);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Calculates the rendered content box width from a DOM Quad.
|
|
310
|
+
* A Quad contains 8 numbers representing 4 corner points clockwise from top-left:
|
|
311
|
+
* P0 (x=quad[0], y=quad[1]): Top-Left
|
|
312
|
+
* P1 (x=quad[2], y=quad[3]): Top-Right
|
|
313
|
+
* P2 (x=quad[4], y=quad[5]): Bottom-Right
|
|
314
|
+
* P3 (x=quad[6], y=quad[7]): Bottom-Left
|
|
315
|
+
*
|
|
316
|
+
* Math.hypot(quad[2] - quad[0], quad[3] - quad[1]) is the distance from Top-Left to Top-Right (top edge).
|
|
317
|
+
* Math.hypot(quad[4] - quad[6], quad[5] - quad[7]) is the distance from Bottom-Left to Bottom-Right (bottom edge).
|
|
318
|
+
* Averaging the top and bottom edges gives the rendered width, which accounts for scrollbars and handles
|
|
319
|
+
* rotated or skewed elements.
|
|
320
|
+
*/
|
|
321
|
+
private computeQuadWidth(quad: Protocol.DOM.Quad): number {
|
|
322
|
+
const topWidth = Math.hypot(quad[2] - quad[0], quad[3] - quad[1]);
|
|
323
|
+
const bottomWidth = Math.hypot(quad[4] - quad[6], quad[5] - quad[7]);
|
|
324
|
+
return (topWidth + bottomWidth) / 2;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Calculates the rendered content box height from a DOM Quad.
|
|
329
|
+
* Math.hypot(quad[6] - quad[0], quad[7] - quad[1]) is the distance from Top-Left to Bottom-Left (left edge).
|
|
330
|
+
* Math.hypot(quad[4] - quad[2], quad[5] - quad[3]) is the distance from Top-Right to Bottom-Right (right edge).
|
|
331
|
+
* Averaging the left and right edges gives the rendered height, which accounts for scrollbars and handles
|
|
332
|
+
* rotated or skewed elements.
|
|
333
|
+
*/
|
|
334
|
+
private computeQuadHeight(quad: Protocol.DOM.Quad): number {
|
|
335
|
+
const leftHeight = Math.hypot(quad[6] - quad[0], quad[7] - quad[1]);
|
|
336
|
+
const rightHeight = Math.hypot(quad[4] - quad[2], quad[5] - quad[3]);
|
|
337
|
+
return (leftHeight + rightHeight) / 2;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Computes the content area width in pixels for display in the Box Model diagram.
|
|
342
|
+
* - Branch 1: If a DOM quad is available, we compute width directly
|
|
343
|
+
* from the rendered quad. This accurately reflects the content box when scrollbars are present
|
|
344
|
+
* (which getComputedStyle does not subtract).
|
|
345
|
+
* - Branch 2: Fallback to parsing the CSS 'width' property from getComputedStyle.
|
|
346
|
+
*/
|
|
347
|
+
private getContentAreaWidthPx(style: Map<string, string>, boxModel?: Protocol.DOM.BoxModel|null): string {
|
|
348
|
+
if (boxModel && this.isDOMQuad(boxModel.content)) {
|
|
349
|
+
const width = this.computeQuadWidth(boxModel.content);
|
|
350
|
+
return Platform.NumberUtilities.toFixedIfFloating(width.toString());
|
|
351
|
+
}
|
|
352
|
+
|
|
300
353
|
let width = style.get('width');
|
|
301
354
|
if (!width) {
|
|
302
355
|
return '';
|
|
@@ -313,7 +366,19 @@ export class MetricsSidebarPane extends ElementsSidebarPane<ShadowRoot> {
|
|
|
313
366
|
return Platform.NumberUtilities.toFixedIfFloating(width);
|
|
314
367
|
}
|
|
315
368
|
|
|
316
|
-
|
|
369
|
+
/**
|
|
370
|
+
* Computes the content area height in pixels for display in the Box Model diagram.
|
|
371
|
+
* - Branch 1: If a DOM quad is available, we compute height directly
|
|
372
|
+
* from the rendered quad. This accurately reflects the content box when scrollbars are present
|
|
373
|
+
* (which getComputedStyle does not subtract).
|
|
374
|
+
* - Branch 2: Fallback to parsing the CSS 'height' property from getComputedStyle.
|
|
375
|
+
*/
|
|
376
|
+
private getContentAreaHeightPx(style: Map<string, string>, boxModel?: Protocol.DOM.BoxModel|null): string {
|
|
377
|
+
if (boxModel && this.isDOMQuad(boxModel.content)) {
|
|
378
|
+
const height = this.computeQuadHeight(boxModel.content);
|
|
379
|
+
return Platform.NumberUtilities.toFixedIfFloating(height.toString());
|
|
380
|
+
}
|
|
381
|
+
|
|
317
382
|
let height = style.get('height');
|
|
318
383
|
if (!height) {
|
|
319
384
|
return '';
|
|
@@ -330,18 +395,19 @@ export class MetricsSidebarPane extends ElementsSidebarPane<ShadowRoot> {
|
|
|
330
395
|
return Platform.NumberUtilities.toFixedIfFloating(height);
|
|
331
396
|
}
|
|
332
397
|
|
|
333
|
-
private updateMetrics(style: Map<string, string>, highlightedMode = 'all'
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
398
|
+
private updateMetrics(style: Map<string, string>, highlightedMode = 'all',
|
|
399
|
+
boxModel?: Protocol.DOM.BoxModel|null): void {
|
|
400
|
+
const boxModelToUse = boxModel ?? this.boxModelInternal;
|
|
401
|
+
this.view({
|
|
402
|
+
style,
|
|
403
|
+
highlightedMode,
|
|
404
|
+
node: this.node(),
|
|
405
|
+
contentWidth: this.getContentAreaWidthPx(style, boxModelToUse),
|
|
406
|
+
contentHeight: this.getContentAreaHeightPx(style, boxModelToUse),
|
|
407
|
+
onHighlightNode: this.highlightDOMNode.bind(this),
|
|
408
|
+
onStartEditing: this.startEditing.bind(this),
|
|
409
|
+
},
|
|
410
|
+
undefined, this.contentElement);
|
|
345
411
|
}
|
|
346
412
|
|
|
347
413
|
startEditing(targetElement: Element, box: string, styleProperty: string, computedStyle: Map<string, string>): void {
|
|
@@ -676,7 +676,7 @@ export class StylePropertiesSection {
|
|
|
676
676
|
if (this.hoverTimer) {
|
|
677
677
|
clearTimeout(this.hoverTimer);
|
|
678
678
|
}
|
|
679
|
-
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
|
|
679
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
private onMouseEnterSelector(): void {
|
|
@@ -687,7 +687,7 @@ export class StylePropertiesSection {
|
|
|
687
687
|
}
|
|
688
688
|
|
|
689
689
|
highlight(mode: string|undefined = 'all'): void {
|
|
690
|
-
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
|
|
690
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
691
691
|
const node = this.stylesContainer.node();
|
|
692
692
|
if (!node) {
|
|
693
693
|
return;
|
|
@@ -1883,7 +1883,13 @@ export class BaseFunctionRenderer extends rendererBase(SDK.CSSPropertyParserMatc
|
|
|
1883
1883
|
// To understand which argument was selected by the function, we evaluate the function as well as all the arguments
|
|
1884
1884
|
// and compare the function result to the values of all its arguments. Evaluating the arguments eliminates nested
|
|
1885
1885
|
// function calls and normalizes all units to px.
|
|
1886
|
-
const values = match.args.map(arg =>
|
|
1886
|
+
const values = match.args.map(arg => {
|
|
1887
|
+
const text = context.matchedResult.getComputedTextRange(arg[0], arg[arg.length - 1]);
|
|
1888
|
+
// We wrap each argument in calc() so it becomes a valid standalone CSS value.
|
|
1889
|
+
// Standalone arithmetic expressions like `48px - 40px` are syntax errors in the CSS grammar unless wrapped in calc().
|
|
1890
|
+
// Without this wrapper, the browser's resolveValues() CDP command fails to parse and evaluate them.
|
|
1891
|
+
return `calc(${text})`;
|
|
1892
|
+
});
|
|
1887
1893
|
values.unshift(context.matchedResult.getComputedText(match.node));
|
|
1888
1894
|
const evaledArgs = await resolveValues(this.#stylesContainer, this.#propertyName, match, context, ...values);
|
|
1889
1895
|
if (context.signal?.aborted) {
|
|
@@ -1944,7 +1950,7 @@ export class AnchorFunctionRenderer extends rendererBase(SDK.CSSPropertyParserMa
|
|
|
1944
1950
|
anchorNode?.highlight();
|
|
1945
1951
|
};
|
|
1946
1952
|
const onMouseLeave = (): void => {
|
|
1947
|
-
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
|
|
1953
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
1948
1954
|
};
|
|
1949
1955
|
|
|
1950
1956
|
if (identifier) {
|
|
@@ -719,7 +719,7 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
|
|
|
719
719
|
|
|
720
720
|
setActiveProperty(treeElement: StylePropertyTreeElement|null): void {
|
|
721
721
|
if (this.isActivePropertyHighlighted) {
|
|
722
|
-
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
|
|
722
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
723
723
|
}
|
|
724
724
|
this.isActivePropertyHighlighted = false;
|
|
725
725
|
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
7
7
|
import * as Platform from '../../../core/platform/platform.js';
|
|
8
|
-
import * as
|
|
8
|
+
import * as SDK from '../../../core/sdk/sdk.js';
|
|
9
|
+
import type * as Protocol from '../../../generated/protocol.js';
|
|
9
10
|
import * as RenderCoordinator from '../../../ui/components/render_coordinator/render_coordinator.js';
|
|
10
11
|
import * as UI from '../../../ui/legacy/legacy.js';
|
|
11
12
|
import {html, nothing, render} from '../../../ui/lit/lit.js';
|
|
@@ -34,18 +35,6 @@ function truncateTextIfNeeded(text: string): string {
|
|
|
34
35
|
return text;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
function isPrintable(valueType: Protocol.Accessibility.AXValueType): boolean {
|
|
38
|
-
switch (valueType) {
|
|
39
|
-
case Protocol.Accessibility.AXValueType.Boolean:
|
|
40
|
-
case Protocol.Accessibility.AXValueType.BooleanOrUndefined:
|
|
41
|
-
case Protocol.Accessibility.AXValueType.String:
|
|
42
|
-
case Protocol.Accessibility.AXValueType.Number:
|
|
43
|
-
return true;
|
|
44
|
-
default:
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
38
|
export interface AccessibilityTreeNodeData {
|
|
50
39
|
ignored: boolean;
|
|
51
40
|
name: string;
|
|
@@ -75,11 +64,11 @@ export class AccessibilityTreeNode extends HTMLElement {
|
|
|
75
64
|
async #render(): Promise<void> {
|
|
76
65
|
const role = html`<span class='role-value'>${truncateTextIfNeeded(this.#role)}</span>`;
|
|
77
66
|
const name = html`"<span class='attribute-value'>${this.#name}</span>"`;
|
|
78
|
-
const properties =
|
|
79
|
-
({name, value}) =>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
67
|
+
const properties =
|
|
68
|
+
this.#properties.map(({name, value}) => SDK.AccessibilityModel.isPrintableType(value.type) ?
|
|
69
|
+
html` <span class='attribute-name'>${
|
|
70
|
+
name}</span>: <span class='attribute-value'>${value.value}</span>` :
|
|
71
|
+
nothing);
|
|
83
72
|
const content =
|
|
84
73
|
this.#ignored ? html`<span>${i18nString(UIStrings.ignored)}</span>` : html`${role} ${name}${properties}`;
|
|
85
74
|
await RenderCoordinator.write(`Accessibility node ${this.#id} render`, () => {
|
|
@@ -125,7 +125,7 @@ export class ElementsBreadcrumbs extends HTMLElement {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
#onCrumbMouseLeave(): void {
|
|
128
|
-
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
|
|
128
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
#onCrumbFocus(node: SDK.DOMModel.DOMNode): () => void {
|
|
@@ -133,7 +133,7 @@ export class ElementsBreadcrumbs extends HTMLElement {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
#onCrumbBlur(): void {
|
|
136
|
-
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
|
|
136
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
#engageResizeObserver(): void {
|
|
@@ -55,7 +55,7 @@ export class QueryContainer extends HTMLElement {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
#onContainerLinkMouseLeave(): void {
|
|
58
|
-
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
|
|
58
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
59
59
|
this.#isContainerLinkHovered = false;
|
|
60
60
|
this.#render();
|
|
61
61
|
}
|
|
@@ -114,7 +114,7 @@ export class AffectedDirectivesView extends AffectedResourcesView {
|
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
const onElementRevealIconMouseLeave: (arg0?: Event|undefined) => void = () => {
|
|
117
|
-
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
|
|
117
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
elementsPanelLinkComponent
|
|
@@ -205,7 +205,8 @@ export abstract class AffectedResourcesView extends UI.TreeOutline.TreeElement {
|
|
|
205
205
|
void frame.highlight();
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
|
-
frameCell.onmouseleave = () =>
|
|
208
|
+
frameCell.onmouseleave = () =>
|
|
209
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
209
210
|
return frameCell;
|
|
210
211
|
}
|
|
211
212
|
|
|
@@ -15,7 +15,7 @@ import type {PlayerEvent} from './MediaModel.js';
|
|
|
15
15
|
|
|
16
16
|
const UIStrings = {
|
|
17
17
|
/**
|
|
18
|
-
* @description Text for timestamps of items
|
|
18
|
+
* @description Text for timestamps of items.
|
|
19
19
|
*/
|
|
20
20
|
timestamp: 'Timestamp',
|
|
21
21
|
/**
|
|
@@ -23,7 +23,7 @@ const UIStrings = {
|
|
|
23
23
|
*/
|
|
24
24
|
eventName: 'Event name',
|
|
25
25
|
/**
|
|
26
|
-
* @description Text for the value of something
|
|
26
|
+
* @description Text for the value of something.
|
|
27
27
|
*/
|
|
28
28
|
value: 'Value',
|
|
29
29
|
/**
|
|
@@ -20,13 +20,13 @@ const NO_NORMALIZED_TIMESTAMP = -1.5;
|
|
|
20
20
|
|
|
21
21
|
const UIStrings = {
|
|
22
22
|
/**
|
|
23
|
-
* @description Title of the 'Playback
|
|
23
|
+
* @description Title of the 'Playback status' button.
|
|
24
24
|
*/
|
|
25
|
-
playbackStatus: 'Playback
|
|
25
|
+
playbackStatus: 'Playback status',
|
|
26
26
|
/**
|
|
27
|
-
* @description Title of the 'Buffering
|
|
27
|
+
* @description Title of the 'Buffering status' button.
|
|
28
28
|
*/
|
|
29
|
-
bufferingStatus: 'Buffering
|
|
29
|
+
bufferingStatus: 'Buffering status',
|
|
30
30
|
} as const;
|
|
31
31
|
const str_ = i18n.i18n.registerUIStrings('panels/media/EventTimelineView.ts', UIStrings);
|
|
32
32
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -16,22 +16,22 @@ import {PlayerListView} from './PlayerListView.js';
|
|
|
16
16
|
|
|
17
17
|
const UIStrings = {
|
|
18
18
|
/**
|
|
19
|
-
* @description Text to show if no media player has been selected
|
|
19
|
+
* @description Text to show if no media player has been selected.
|
|
20
20
|
* A media player can be an audio and video source of a page.
|
|
21
21
|
*/
|
|
22
22
|
noPlayerDetailsSelected: 'No media player selected',
|
|
23
23
|
/**
|
|
24
|
-
* @description Text to instruct the user on how to view media player details
|
|
24
|
+
* @description Text to instruct the user on how to view media player details.
|
|
25
25
|
* A media player can be an audio and video source of a page.
|
|
26
26
|
*/
|
|
27
27
|
selectToViewDetails: 'Select a media player to inspect its details.',
|
|
28
28
|
/**
|
|
29
|
-
* @description Text to show if no player can be shown
|
|
29
|
+
* @description Text to show if no player can be shown.
|
|
30
30
|
* A media player can be an audio and video source of a page.
|
|
31
31
|
*/
|
|
32
32
|
noMediaPlayer: 'No media player',
|
|
33
33
|
/**
|
|
34
|
-
* @description Text to explain this panel
|
|
34
|
+
* @description Text to explain this panel.
|
|
35
35
|
* A media player can be an audio and video source of a page.
|
|
36
36
|
*/
|
|
37
37
|
mediaPlayerDescription: 'On this page you can view and export media player details.',
|
|
@@ -15,7 +15,7 @@ import {PlayerPropertiesView} from './PlayerPropertiesView.js';
|
|
|
15
15
|
|
|
16
16
|
const UIStrings = {
|
|
17
17
|
/**
|
|
18
|
-
* @description Title of the 'Properties' tool in the sidebar of the
|
|
18
|
+
* @description Title of the 'Properties' tool in the sidebar of the Elements tool.
|
|
19
19
|
*/
|
|
20
20
|
properties: 'Properties',
|
|
21
21
|
/**
|
|
@@ -31,19 +31,19 @@ const UIStrings = {
|
|
|
31
31
|
*/
|
|
32
32
|
playerEvents: 'Player events',
|
|
33
33
|
/**
|
|
34
|
-
* @description Text in Network
|
|
34
|
+
* @description Text in Network item view of the Network panel.
|
|
35
35
|
*/
|
|
36
36
|
messages: 'Messages',
|
|
37
37
|
/**
|
|
38
|
-
* @description Column header for
|
|
38
|
+
* @description Column header for Messages view.
|
|
39
39
|
*/
|
|
40
40
|
playerMessages: 'Player messages',
|
|
41
41
|
/**
|
|
42
|
-
* @description Title for the
|
|
42
|
+
* @description Title for the Timeline tab.
|
|
43
43
|
*/
|
|
44
44
|
timeline: 'Timeline',
|
|
45
45
|
/**
|
|
46
|
-
* @description
|
|
46
|
+
* @description Hover text for Timeline tab.
|
|
47
47
|
*/
|
|
48
48
|
playerTimeline: 'Player timeline',
|
|
49
49
|
} as const;
|
|
@@ -28,7 +28,7 @@ const UIStrings = {
|
|
|
28
28
|
*/
|
|
29
29
|
hideAllOthers: 'Hide all others',
|
|
30
30
|
/**
|
|
31
|
-
* @description Context menu entry which downloads the
|
|
31
|
+
* @description Context menu entry which downloads the JSON dump when clicked.
|
|
32
32
|
*/
|
|
33
33
|
savePlayerInfo: 'Save player info',
|
|
34
34
|
/**
|
|
@@ -17,31 +17,31 @@ import playerMessagesViewStyles from './playerMessagesView.css.js';
|
|
|
17
17
|
|
|
18
18
|
const UIStrings = {
|
|
19
19
|
/**
|
|
20
|
-
* @description A context menu item in the Console
|
|
20
|
+
* @description A context menu item in the Console view of the Console panel.
|
|
21
21
|
*/
|
|
22
22
|
default: 'Default',
|
|
23
23
|
/**
|
|
24
|
-
* @description Text in Network
|
|
24
|
+
* @description Text in Network throttling selector of the Network panel.
|
|
25
25
|
*/
|
|
26
26
|
custom: 'Custom',
|
|
27
27
|
/**
|
|
28
|
-
* @description Text for everything
|
|
28
|
+
* @description Text for everything.
|
|
29
29
|
*/
|
|
30
30
|
all: 'All',
|
|
31
31
|
/**
|
|
32
|
-
* @description Text for errors
|
|
32
|
+
* @description Text for errors.
|
|
33
33
|
*/
|
|
34
34
|
error: 'Error',
|
|
35
35
|
/**
|
|
36
|
-
* @description Text to indicate an item is a warning
|
|
36
|
+
* @description Text to indicate an item is a warning.
|
|
37
37
|
*/
|
|
38
38
|
warning: 'Warning',
|
|
39
39
|
/**
|
|
40
|
-
* @description Sdk console message
|
|
40
|
+
* @description Sdk console message level info in Console view of the Console panel.
|
|
41
41
|
*/
|
|
42
42
|
info: 'Info',
|
|
43
43
|
/**
|
|
44
|
-
* @description Debug log level
|
|
44
|
+
* @description Debug log level.
|
|
45
45
|
*/
|
|
46
46
|
debug: 'Debug',
|
|
47
47
|
/**
|
|
@@ -49,25 +49,25 @@ const UIStrings = {
|
|
|
49
49
|
*/
|
|
50
50
|
logLevel: 'Log level:',
|
|
51
51
|
/**
|
|
52
|
-
* @description Default text for user
|
|
52
|
+
* @description Default text for user text entry for searching log messages.
|
|
53
53
|
*/
|
|
54
54
|
filterByLogMessages: 'Filter by log messages',
|
|
55
55
|
/**
|
|
56
56
|
* @description The label for the group name that this error belongs to.
|
|
57
57
|
*/
|
|
58
|
-
errorGroupLabel: 'Error
|
|
58
|
+
errorGroupLabel: 'Error group:',
|
|
59
59
|
/**
|
|
60
60
|
* @description The label for the numeric code associated with this error.
|
|
61
61
|
*/
|
|
62
|
-
errorCodeLabel: 'Error
|
|
62
|
+
errorCodeLabel: 'Error code:',
|
|
63
63
|
/**
|
|
64
64
|
* @description The label for extra data associated with an error.
|
|
65
65
|
*/
|
|
66
66
|
errorDataLabel: 'Data:',
|
|
67
67
|
/**
|
|
68
|
-
* @description The label for the
|
|
68
|
+
* @description The label for the stack trace associated with the error.
|
|
69
69
|
*/
|
|
70
|
-
errorStackLabel: '
|
|
70
|
+
errorStackLabel: 'Stack trace:',
|
|
71
71
|
/**
|
|
72
72
|
* @description The label for a root cause error associated with this error.
|
|
73
73
|
*/
|
|
@@ -30,11 +30,11 @@ const UIStrings = {
|
|
|
30
30
|
*/
|
|
31
31
|
decoder: 'Decoder',
|
|
32
32
|
/**
|
|
33
|
-
* @description Title of the 'Properties' tool in the sidebar of the
|
|
33
|
+
* @description Title of the 'Properties' tool in the sidebar of the Elements tool.
|
|
34
34
|
*/
|
|
35
35
|
properties: 'Properties',
|
|
36
36
|
/**
|
|
37
|
-
* @description Menu label for text tracks, it is followed by a number, like 'Text
|
|
37
|
+
* @description Menu label for text tracks, it is followed by a number, like 'Text track #1'.
|
|
38
38
|
*/
|
|
39
39
|
textTrack: 'Text track',
|
|
40
40
|
/**
|
|
@@ -43,19 +43,19 @@ const UIStrings = {
|
|
|
43
43
|
*/
|
|
44
44
|
noTextTracks: 'No text tracks',
|
|
45
45
|
/**
|
|
46
|
-
* @description Media property giving the width x height of the video
|
|
46
|
+
* @description Media property giving the width x height of the video.
|
|
47
47
|
*/
|
|
48
48
|
resolution: 'Resolution',
|
|
49
49
|
/**
|
|
50
|
-
* @description Media property giving the file size of the media
|
|
50
|
+
* @description Media property giving the file size of the media.
|
|
51
51
|
*/
|
|
52
52
|
fileSize: 'File size',
|
|
53
53
|
/**
|
|
54
|
-
* @description Media property giving the media file bitrate
|
|
54
|
+
* @description Media property giving the media file bitrate.
|
|
55
55
|
*/
|
|
56
56
|
bitrate: 'Bitrate',
|
|
57
57
|
/**
|
|
58
|
-
* @description Text for the duration of something
|
|
58
|
+
* @description Text for the duration of something.
|
|
59
59
|
*/
|
|
60
60
|
duration: 'Duration',
|
|
61
61
|
/**
|
|
@@ -63,7 +63,7 @@ const UIStrings = {
|
|
|
63
63
|
*/
|
|
64
64
|
startTime: 'Start time',
|
|
65
65
|
/**
|
|
66
|
-
* @description Media property signaling whether the media is streaming
|
|
66
|
+
* @description Media property signaling whether the media is streaming.
|
|
67
67
|
*/
|
|
68
68
|
streaming: 'Streaming',
|
|
69
69
|
/**
|
|
@@ -71,19 +71,19 @@ const UIStrings = {
|
|
|
71
71
|
*/
|
|
72
72
|
playbackFrameUrl: 'Playback frame URL',
|
|
73
73
|
/**
|
|
74
|
-
* @description Media property giving the title of the frame where the media is embedded
|
|
74
|
+
* @description Media property giving the title of the frame where the media is embedded.
|
|
75
75
|
*/
|
|
76
76
|
playbackFrameTitle: 'Playback frame title',
|
|
77
77
|
/**
|
|
78
|
-
* @description Media property describing whether the file is single or cross
|
|
78
|
+
* @description Media property describing whether the file is single or cross-origin in nature.
|
|
79
79
|
*/
|
|
80
80
|
singleoriginPlayback: 'Single-origin playback',
|
|
81
81
|
/**
|
|
82
|
-
* @description Media property describing support for range
|
|
82
|
+
* @description Media property describing support for range HTTP headers.
|
|
83
83
|
*/
|
|
84
84
|
rangeHeaderSupport: '`Range` header support',
|
|
85
85
|
/**
|
|
86
|
-
* @description Media property giving the media file frame rate
|
|
86
|
+
* @description Media property giving the media file frame rate.
|
|
87
87
|
*/
|
|
88
88
|
frameRate: 'Frame rate',
|
|
89
89
|
/**
|
|
@@ -97,25 +97,25 @@ const UIStrings = {
|
|
|
97
97
|
*/
|
|
98
98
|
videoFreezingScore: 'Video freezing score',
|
|
99
99
|
/**
|
|
100
|
-
* @description Media property giving the name of the renderer being used
|
|
100
|
+
* @description Media property giving the name of the renderer being used.
|
|
101
101
|
*/
|
|
102
102
|
rendererName: 'Renderer name',
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* @description Media property giving the name of the decoder being used
|
|
105
|
+
* @description Media property giving the name of the decoder being used.
|
|
106
106
|
*/
|
|
107
107
|
decoderName: 'Decoder name',
|
|
108
108
|
/**
|
|
109
|
-
* @description There is no decoder
|
|
109
|
+
* @description There is no decoder.
|
|
110
110
|
*/
|
|
111
111
|
noDecoder: 'No decoder',
|
|
112
112
|
/**
|
|
113
|
-
* @description Media property signaling whether a hardware decoder is being used
|
|
113
|
+
* @description Media property signaling whether a hardware decoder is being used.
|
|
114
114
|
*/
|
|
115
115
|
hardwareDecoder: 'Hardware decoder',
|
|
116
116
|
/**
|
|
117
117
|
* @description Media property signaling whether the content is encrypted. This is a noun phrase for
|
|
118
|
-
*a demultiplexer that does decryption.
|
|
118
|
+
* a demultiplexer that does decryption.
|
|
119
119
|
*/
|
|
120
120
|
decryptingDemuxer: 'Decrypting demuxer',
|
|
121
121
|
|
|
@@ -132,7 +132,7 @@ const UIStrings = {
|
|
|
132
132
|
*/
|
|
133
133
|
hardwareEncoder: 'Hardware encoder',
|
|
134
134
|
/**
|
|
135
|
-
* @description Property for adaptive (HLS) playback which shows the start/end time of the loaded content buffer
|
|
135
|
+
* @description Property for adaptive (HLS) playback which shows the start/end time of the loaded content buffer.
|
|
136
136
|
*/
|
|
137
137
|
hlsBufferedRanges: 'Buffered media ranges',
|
|
138
138
|
} as const;
|