chrome-devtools-frontend 1.0.1689415 → 1.0.1690116
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/eslint.config.mjs +8 -2
- package/front_end/core/common/Object.ts +10 -4
- package/front_end/core/i18n/collect-ui-strings.js +5 -5
- package/front_end/core/i18n/generate-locales-js.js +1 -1
- package/front_end/core/i18n/i18n.ts +6 -0
- package/front_end/core/root/Runtime.ts +0 -5
- package/front_end/core/sdk/CSSMetadata.ts +3 -5
- package/front_end/core/sdk/DOMModel.ts +46 -11
- package/front_end/core/sdk/EmulationModel.ts +18 -0
- package/front_end/core/sdk/SDKSettings.ts +9 -0
- package/front_end/core/sdk/Script.ts +0 -1
- package/front_end/core/sdk/SecurityOrigin.ts +135 -25
- package/front_end/core/sdk/Target.ts +1 -5
- package/front_end/models/ai_assistance/AiUtils.ts +0 -10
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +6 -10
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +0 -1
- package/front_end/models/ai_assistance/injected.ts +0 -2
- package/front_end/models/javascript_metadata/NativeFunctions.ts +1 -1
- package/front_end/models/trace/insights/CLSCulprits.ts +1 -2
- package/front_end/models/trace/insights/Cache.ts +1 -3
- package/front_end/models/trace/insights/CharacterSet.ts +1 -3
- package/front_end/models/trace/insights/DOMSize.ts +1 -3
- package/front_end/models/trace/insights/DocumentLatency.ts +1 -3
- package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -3
- package/front_end/models/trace/insights/FontDisplay.ts +1 -2
- package/front_end/models/trace/insights/ForcedReflow.ts +1 -2
- package/front_end/models/trace/insights/INPBreakdown.ts +1 -3
- package/front_end/models/trace/insights/ImageDelivery.ts +1 -3
- package/front_end/models/trace/insights/LCPBreakdown.ts +1 -3
- package/front_end/models/trace/insights/LCPDiscovery.ts +1 -3
- package/front_end/models/trace/insights/LegacyJavaScript.ts +1 -3
- package/front_end/models/trace/insights/ModernHTTP.ts +1 -2
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +1 -2
- package/front_end/models/trace/insights/RenderBlocking.ts +1 -3
- package/front_end/models/trace/insights/SlowCSSSelector.ts +1 -3
- package/front_end/models/trace/insights/ThirdParties.ts +1 -3
- package/front_end/models/trace/insights/Viewport.ts +1 -2
- package/front_end/panels/accessibility/ARIAAttributesView.ts +1 -1
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +3 -3
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
- package/front_end/panels/accessibility/AccessibilityStrings.ts +7 -3
- package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +2 -2
- package/front_end/panels/ai_assistance/components/AccessibilityAgentMarkdownRenderer.ts +1 -3
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/animation/AnimationUI.ts +1 -1
- package/front_end/panels/application/AppManifestView.ts +6 -2
- package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -4
- package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +1 -1
- package/front_end/panels/application/FrameDetailsView.ts +1 -1
- package/front_end/panels/application/IndexedDBViews.ts +3 -2
- package/front_end/panels/application/ReportingApiTreeElement.ts +1 -1
- package/front_end/panels/application/ReportingApiView.ts +2 -2
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -1
- package/front_end/panels/application/ServiceWorkersView.ts +1 -1
- package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
- package/front_end/panels/application/StorageItemsToolbar.ts +6 -2
- package/front_end/panels/application/StorageView.ts +9 -8
- package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
- package/front_end/panels/application/WebMCPView.ts +2 -1
- package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +1 -1
- package/front_end/panels/application/components/CrashReportContextGrid.ts +1 -1
- package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
- package/front_end/panels/application/components/ReportsGrid.ts +1 -1
- package/front_end/panels/application/components/TrustTokensView.ts +1 -1
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -2
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -0
- package/front_end/panels/autofill/AutofillView.ts +2 -2
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -3
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/changes/ChangesSidebar.ts +56 -15
- package/front_end/panels/changes/ChangesView.ts +1 -1
- package/front_end/panels/console/ConsolePrompt.ts +6 -2
- package/front_end/panels/console/ConsoleSidebar.ts +6 -2
- package/front_end/panels/elements/ElementsTreeElement.ts +12 -0
- package/front_end/panels/elements/ElementsTreeOutline.ts +400 -128
- package/front_end/panels/elements/PropertyRenderer.ts +22 -15
- package/front_end/panels/elements/StandaloneStylesContainer.ts +6 -2
- package/front_end/panels/elements/StylePropertyTreeElement.ts +75 -26
- package/front_end/panels/elements/StylesSidebarPane.ts +6 -2
- package/front_end/panels/elements/elementsTreeOutline.css +4 -0
- package/front_end/panels/emulation/DeviceModeView.ts +6 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +6 -2
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +6 -2
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +7 -2
- package/front_end/panels/layer_viewer/Layers3DView.ts +8 -1
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +6 -2
- package/front_end/panels/lighthouse/lighthousePanel.css +5 -5
- package/front_end/panels/lighthouse/lighthouseStartView.css +13 -13
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +6 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +6 -2
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +6 -2
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +25 -54
- package/front_end/panels/network/NetworkLogView.ts +8 -3
- package/front_end/panels/network/components/RequestHeadersView.css +5 -0
- package/front_end/panels/network/networkLogView.css +4 -0
- package/front_end/panels/network/requestInitiatorViewTree.css +2 -0
- package/front_end/panels/performance_monitor/performanceMonitor.css +3 -3
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +7 -2
- package/front_end/panels/profiler/HeapProfileView.ts +7 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +8 -4
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +8 -4
- package/front_end/panels/profiler/HeapSnapshotView.ts +15 -6
- package/front_end/panels/profiler/HeapTimelineOverview.ts +6 -2
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +12 -5
- package/front_end/panels/profiler/ProfileLauncherView.ts +6 -2
- package/front_end/panels/profiler/profilesPanel.css +8 -9
- package/front_end/panels/profiler/profilesSidebarTree.css +13 -13
- package/front_end/panels/protocol_monitor/JSONEditor.css +2 -2
- package/front_end/panels/protocol_monitor/JSONEditor.ts +6 -1
- package/front_end/panels/protocol_monitor/protocolMonitor.css +2 -2
- package/front_end/panels/sources/SourcesView.ts +7 -2
- package/front_end/panels/sources/TabbedEditorContainer.ts +6 -2
- package/front_end/panels/sources/UISourceCodeFrame.ts +10 -3
- package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/AnnotationHelpers.ts +9 -9
- package/front_end/panels/timeline/CountersGraph.ts +8 -8
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +3 -3
- package/front_end/panels/timeline/ExtensionTrackAppender.ts +1 -1
- package/front_end/panels/timeline/GPUTrackAppender.ts +1 -1
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/IsolateSelector.ts +2 -2
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +3 -3
- package/front_end/panels/timeline/NetworkTrackAppender.ts +1 -1
- package/front_end/panels/timeline/StatusDialog.ts +5 -6
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +4 -4
- package/front_end/panels/timeline/ThreadAppender.ts +12 -14
- package/front_end/panels/timeline/TimelineController.ts +5 -8
- package/front_end/panels/timeline/TimelineDetailsView.ts +13 -9
- package/front_end/panels/timeline/TimelineEventOverview.ts +4 -4
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +17 -17
- package/front_end/panels/timeline/TimelineFlameChartView.ts +8 -3
- package/front_end/panels/timeline/TimelineHistoryManager.ts +8 -8
- package/front_end/panels/timeline/TimelineLoader.ts +1 -1
- package/front_end/panels/timeline/TimelineMiniMap.ts +7 -2
- package/front_end/panels/timeline/TimelinePanel.ts +57 -59
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +27 -27
- package/front_end/panels/timeline/TimelineTreeView.ts +46 -44
- package/front_end/panels/timeline/TimelineUIUtils.ts +142 -116
- package/front_end/panels/timeline/TimingsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/TrackConfigBanner.ts +4 -4
- package/front_end/panels/timeline/UIDevtoolsUtils.ts +15 -15
- package/front_end/panels/timeline/components/insights/Table.ts +1 -1
- package/front_end/panels/timeline/enable-easter-egg.js +1 -1
- package/front_end/panels/timeline/timeline-meta.ts +30 -30
- package/front_end/panels/timeline/timelineFlameChartView.css +10 -10
- package/front_end/panels/timeline/timelineFlamechartPopover.css +5 -5
- package/front_end/panels/timeline/timelineHistoryManager.css +7 -7
- package/front_end/panels/timeline/timelinePaintProfiler.css +2 -2
- package/front_end/panels/timeline/utils/IgnoreList.ts +4 -4
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/comments/CommentAnchorResolver.ts +12 -3
- package/front_end/ui/comments/CommentOverlayManager.ts +9 -1
- package/front_end/ui/components/buttons/Button.docs.ts +1 -1
- package/front_end/ui/components/buttons/button.css +21 -0
- package/front_end/ui/components/report_view/ReportView.docs.ts +1 -1
- package/front_end/ui/components/snackbars/Snackbars.docs.ts +1 -1
- package/front_end/ui/components/spinners/Spinner.ts +1 -1
- package/front_end/ui/components/spinners/Spinners.docs.ts +1 -1
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +1 -2
- package/front_end/ui/components/switch/Switch.docs.ts +1 -1
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +10 -8
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +2 -1
- package/front_end/ui/components/text_editor/ExecutionPositionHighlighter.ts +2 -2
- package/front_end/ui/components/text_editor/TextEditor.ts +19 -0
- package/front_end/ui/components/text_editor/config.ts +109 -96
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/theme.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.docs.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
- package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +4 -1
- package/front_end/ui/kit/cards/Card.ts +1 -1
- package/front_end/ui/kit/icons/Icon.ts +1 -1
- package/front_end/ui/kit/link/Link.docs.ts +1 -1
- package/front_end/ui/kit/link/Link.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.docs.ts +1 -1
- package/front_end/ui/legacy/Dialog.ts +10 -2
- package/front_end/ui/legacy/FilterBar.ts +6 -1
- package/front_end/ui/legacy/RadioButton.docs.ts +1 -1
- package/front_end/ui/legacy/SelectMenu.docs.ts +1 -1
- package/front_end/ui/legacy/Slider.docs.ts +1 -1
- package/front_end/ui/legacy/SplitWidget.ts +5 -1
- package/front_end/ui/legacy/TabbedPane.ts +5 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +6 -1
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +6 -2
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +6 -1
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +6 -2
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -0
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +6 -2
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +8 -4
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +8 -3
- package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +6 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +7 -2
- package/package.json +2 -2
|
@@ -8,63 +8,63 @@ import * as Trace from '../../models/trace/trace.js';
|
|
|
8
8
|
|
|
9
9
|
const UIStrings = {
|
|
10
10
|
/**
|
|
11
|
-
* @description
|
|
11
|
+
* @description Label for a frame start event in the Performance panel.
|
|
12
12
|
*/
|
|
13
13
|
frameStart: 'Frame start',
|
|
14
14
|
/**
|
|
15
|
-
* @description
|
|
15
|
+
* @description Label for a draw frame event in the Performance panel.
|
|
16
16
|
*/
|
|
17
17
|
drawFrame: 'Draw frame',
|
|
18
18
|
/**
|
|
19
|
-
* @description
|
|
19
|
+
* @description Label for a layout event in the Performance panel.
|
|
20
20
|
*/
|
|
21
21
|
layout: 'Layout',
|
|
22
22
|
/**
|
|
23
|
-
* @description
|
|
23
|
+
* @description Label for a rasterizing event in the Performance panel.
|
|
24
24
|
*/
|
|
25
25
|
rasterizing: 'Rasterizing',
|
|
26
26
|
/**
|
|
27
|
-
* @description
|
|
27
|
+
* @description Label for a drawing event in the Performance panel.
|
|
28
28
|
*/
|
|
29
29
|
drawing: 'Drawing',
|
|
30
30
|
/**
|
|
31
|
-
* @description
|
|
31
|
+
* @description Label for a painting event in the Performance panel.
|
|
32
32
|
*/
|
|
33
33
|
painting: 'Painting',
|
|
34
34
|
/**
|
|
35
|
-
* @description
|
|
35
|
+
* @description Event category for system activity in the Performance panel.
|
|
36
36
|
*/
|
|
37
37
|
system: 'System',
|
|
38
38
|
/**
|
|
39
|
-
* @description
|
|
39
|
+
* @description Event category for idle time in the Performance panel.
|
|
40
40
|
*/
|
|
41
41
|
idle: 'Idle',
|
|
42
42
|
/**
|
|
43
|
-
* @description
|
|
43
|
+
* @description Event category for network and resource loading in the Performance panel.
|
|
44
44
|
*/
|
|
45
45
|
loading: 'Loading',
|
|
46
46
|
/**
|
|
47
|
-
* @description
|
|
47
|
+
* @description Header for the user experience events track in the Performance panel.
|
|
48
48
|
*/
|
|
49
49
|
experience: 'Experience',
|
|
50
50
|
/**
|
|
51
|
-
* @description
|
|
51
|
+
* @description Event category for script execution in the Performance panel.
|
|
52
52
|
*/
|
|
53
53
|
scripting: 'Scripting',
|
|
54
54
|
/**
|
|
55
|
-
* @description
|
|
55
|
+
* @description Event category for layout and rendering in the Performance panel.
|
|
56
56
|
*/
|
|
57
57
|
rendering: 'Rendering',
|
|
58
58
|
/**
|
|
59
|
-
* @description Event category
|
|
59
|
+
* @description Event category for GPU activity in the Performance panel.
|
|
60
60
|
*/
|
|
61
61
|
gpu: 'GPU',
|
|
62
62
|
/**
|
|
63
|
-
* @description
|
|
63
|
+
* @description Event category for asynchronous activity in the Performance panel.
|
|
64
64
|
*/
|
|
65
65
|
async: 'Async',
|
|
66
66
|
/**
|
|
67
|
-
* @description
|
|
67
|
+
* @description Event category for messaging activity in the Performance panel.
|
|
68
68
|
*/
|
|
69
69
|
messaging: 'Messaging',
|
|
70
70
|
} as const;
|
|
@@ -20,7 +20,7 @@ const UIStrings = {
|
|
|
20
20
|
} as const;
|
|
21
21
|
|
|
22
22
|
const str_ = i18n.i18n.registerUIStrings('panels/timeline/components/insights/Table.ts', UIStrings);
|
|
23
|
-
export const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
23
|
+
export const i18nString: i18n.LocalizeString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
24
24
|
|
|
25
25
|
const {html} = Lit;
|
|
26
26
|
|
|
@@ -13,123 +13,123 @@ import type * as Timeline from './timeline.js';
|
|
|
13
13
|
|
|
14
14
|
const UIStrings = {
|
|
15
15
|
/**
|
|
16
|
-
* @description
|
|
16
|
+
* @description Name of the Performance panel.
|
|
17
17
|
*/
|
|
18
18
|
performance: 'Performance',
|
|
19
19
|
/**
|
|
20
|
-
* @description Command
|
|
20
|
+
* @description Command to show the Performance panel.
|
|
21
21
|
*/
|
|
22
22
|
showPerformance: 'Show Performance',
|
|
23
23
|
/**
|
|
24
|
-
* @description
|
|
24
|
+
* @description Title of an action to start recording a performance trace.
|
|
25
25
|
*/
|
|
26
26
|
record: 'Record',
|
|
27
27
|
/**
|
|
28
|
-
* @description
|
|
28
|
+
* @description Title of an action to stop recording a performance trace.
|
|
29
29
|
*/
|
|
30
30
|
stop: 'Stop',
|
|
31
31
|
/**
|
|
32
|
-
* @description Title of an action
|
|
32
|
+
* @description Title of an action to record a performance trace while reloading the page.
|
|
33
33
|
*/
|
|
34
34
|
recordAndReload: 'Record and reload',
|
|
35
35
|
/**
|
|
36
|
-
* @description
|
|
36
|
+
* @description Title of an action to save the current performance profile.
|
|
37
37
|
*/
|
|
38
38
|
saveProfile: 'Save profile…',
|
|
39
39
|
/**
|
|
40
|
-
* @description
|
|
40
|
+
* @description Title of an action to load a performance profile.
|
|
41
41
|
*/
|
|
42
42
|
loadProfile: 'Load profile…',
|
|
43
43
|
/**
|
|
44
|
-
* @description
|
|
44
|
+
* @description Title of an action to navigate to the previous frame in the film strip view of the Performance panel.
|
|
45
45
|
*/
|
|
46
46
|
previousFrame: 'Previous frame',
|
|
47
47
|
/**
|
|
48
|
-
* @description
|
|
48
|
+
* @description Title of an action to navigate to the next frame in the film strip view of the Performance panel.
|
|
49
49
|
*/
|
|
50
50
|
nextFrame: 'Next frame',
|
|
51
51
|
/**
|
|
52
|
-
* @description Title of an action
|
|
52
|
+
* @description Title of an action to show recent timeline sessions in the Performance panel.
|
|
53
53
|
*/
|
|
54
54
|
showRecentTimelineSessions: 'Show recent timeline sessions',
|
|
55
55
|
/**
|
|
56
|
-
* @description Title of an action
|
|
56
|
+
* @description Title of an action to switch to the previous recording in the Performance panel.
|
|
57
57
|
*/
|
|
58
58
|
previousRecording: 'Previous recording',
|
|
59
59
|
/**
|
|
60
|
-
* @description Title of an action
|
|
60
|
+
* @description Title of an action to switch to the next recording in the Performance panel.
|
|
61
61
|
*/
|
|
62
62
|
nextRecording: 'Next recording',
|
|
63
63
|
/**
|
|
64
|
-
* @description Title of a setting under the Performance category in Settings
|
|
64
|
+
* @description Title of a setting under the Performance category in Settings to show Chrome frame in the Layers view.
|
|
65
65
|
*/
|
|
66
66
|
chromeFrameInLayersView: 'Chrome frame in Layers view',
|
|
67
67
|
/**
|
|
68
|
-
* @description Title of a setting under the Performance category in Settings
|
|
68
|
+
* @description Title of a setting under the Performance category in Settings to show all events.
|
|
69
69
|
*/
|
|
70
70
|
timelineShowAllEvents: 'Show all events',
|
|
71
71
|
/**
|
|
72
|
-
* @description Title of a setting under the Performance category in Settings
|
|
72
|
+
* @description Title of a setting under the Performance category in Settings to enable soft navigation monitoring.
|
|
73
73
|
*/
|
|
74
74
|
enableSoftNavigations: 'Enable soft navigation performance monitoring',
|
|
75
75
|
/**
|
|
76
|
-
* @description Title of a setting under the Performance category in Settings
|
|
76
|
+
* @description Title of a setting under the Performance category in Settings to enable timeline debug mode.
|
|
77
77
|
*/
|
|
78
78
|
timelineDebugMode: 'Timeline debug mode (trace event details, etc.)',
|
|
79
79
|
/**
|
|
80
|
-
* @description Title of a setting under the Performance category in Settings
|
|
80
|
+
* @description Title of a setting under the Performance category in Settings for invalidation tracking.
|
|
81
81
|
*/
|
|
82
82
|
timelineInvalidationTracking: 'Invalidation tracking',
|
|
83
83
|
/**
|
|
84
|
-
* @description Title of a setting in Performance panel.
|
|
84
|
+
* @description Title of a setting in the Performance panel to disable JavaScript samples.
|
|
85
85
|
*/
|
|
86
86
|
disableJavascriptSamples: 'Disable JavaScript samples',
|
|
87
87
|
/**
|
|
88
|
-
* @description Title of a setting in Performance panel.
|
|
88
|
+
* @description Title of a setting in the Performance panel to enable advanced paint instrumentation.
|
|
89
89
|
*/
|
|
90
90
|
enableAdvancedPaint: 'Enable advanced paint instrumentation (slow)',
|
|
91
91
|
/**
|
|
92
|
-
* @description Title of a setting in Performance panel.
|
|
92
|
+
* @description Title of a setting in the Performance panel to enable CSS selector stats.
|
|
93
93
|
*/
|
|
94
94
|
enableSelectorStats: 'Enable CSS selector stats (slow)',
|
|
95
95
|
/**
|
|
96
|
-
* @description Title of a setting in Performance panel.
|
|
96
|
+
* @description Title of a setting in the Performance panel to configure screenshot capture.
|
|
97
97
|
*/
|
|
98
98
|
screenshotCapture: 'Screenshot capture',
|
|
99
99
|
/**
|
|
100
|
-
* @description Title of a setting in Performance panel.
|
|
100
|
+
* @description Title of a setting in the Performance panel to capture screenshots.
|
|
101
101
|
*/
|
|
102
102
|
screenshots: 'Screenshots',
|
|
103
103
|
/**
|
|
104
|
-
* @description Title of a setting in Performance panel.
|
|
104
|
+
* @description Title of a setting in the Performance panel to show memory counters.
|
|
105
105
|
*/
|
|
106
106
|
memory: 'Memory',
|
|
107
107
|
/**
|
|
108
|
-
* @description Title of a setting in Performance panel.
|
|
108
|
+
* @description Title of a setting in the Performance panel to dim third parties.
|
|
109
109
|
*/
|
|
110
110
|
dimThirdParties: 'Dim 3rd parties',
|
|
111
111
|
/**
|
|
112
|
-
* @description Title of a setting in Performance panel.
|
|
112
|
+
* @description Title of a setting in the Performance panel to show custom tracks.
|
|
113
113
|
*/
|
|
114
114
|
showCustomtracks: 'Show custom tracks',
|
|
115
115
|
/**
|
|
116
|
-
* @description Title of a setting in Performance panel counters graph.
|
|
116
|
+
* @description Title of a counter setting in the Performance panel counters graph for the JS heap.
|
|
117
117
|
*/
|
|
118
118
|
jsHeap: 'JS heap',
|
|
119
119
|
/**
|
|
120
|
-
* @description Title of a setting in Performance panel counters graph.
|
|
120
|
+
* @description Title of a counter setting in the Performance panel counters graph for documents.
|
|
121
121
|
*/
|
|
122
122
|
documents: 'Documents',
|
|
123
123
|
/**
|
|
124
|
-
* @description Title of a setting in Performance panel counters graph.
|
|
124
|
+
* @description Title of a counter setting in the Performance panel counters graph for DOM nodes.
|
|
125
125
|
*/
|
|
126
126
|
nodes: 'Nodes',
|
|
127
127
|
/**
|
|
128
|
-
* @description Title of a setting in Performance panel counters graph.
|
|
128
|
+
* @description Title of a counter setting in the Performance panel counters graph for event listeners.
|
|
129
129
|
*/
|
|
130
130
|
listeners: 'Listeners',
|
|
131
131
|
/**
|
|
132
|
-
* @description Title of a setting in Performance panel counters graph.
|
|
132
|
+
* @description Title of a counter setting in the Performance panel counters graph for GPU memory.
|
|
133
133
|
*/
|
|
134
134
|
gpuMemory: 'GPU memory',
|
|
135
135
|
} as const;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
.overlay-type-ENTRY_SELECTED,
|
|
42
42
|
.overlay-type-ENTRY_OUTLINE {
|
|
43
43
|
pointer-events: none;
|
|
44
|
-
border:
|
|
44
|
+
border: var(--sys-size-2) solid var(--sys-color-primary);
|
|
45
45
|
background-color: var(--sys-color-state-ripple-primary);
|
|
46
46
|
|
|
47
47
|
&.cut-off-top {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
|
|
69
69
|
.overlay-type-ENTRY_OUTLINE {
|
|
70
70
|
background-color: transparent;
|
|
71
|
-
border-width:
|
|
71
|
+
border-width: var(--sys-size-1);
|
|
72
72
|
/* Ensure ENTRY_SELECTED overlays are always displayed on top of ENTRY_OUTLINE overlays */
|
|
73
73
|
z-index: 0;
|
|
74
74
|
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.overlay-type-CANDY_STRIPED_TIME_RANGE {
|
|
85
|
-
--red-stripe-width:
|
|
85
|
+
--red-stripe-width: var(--sys-size-2);
|
|
86
86
|
--white-stripe-width: 7px;
|
|
87
87
|
|
|
88
88
|
background-image:
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
transparent var(--red-stripe-width),
|
|
94
94
|
transparent var(--white-stripe-width)
|
|
95
95
|
);
|
|
96
|
-
border:
|
|
96
|
+
border: var(--sys-size-1) solid var(--sys-color-error-bright);
|
|
97
97
|
|
|
98
98
|
&.cut-off-bottom {
|
|
99
99
|
border-bottom: none;
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
.overlay-type-TIMESTAMP_MARKER {
|
|
134
134
|
top: 0;
|
|
135
135
|
bottom: 0;
|
|
136
|
-
width:
|
|
136
|
+
width: var(--sys-size-2);
|
|
137
137
|
background-color: var(--sys-color-primary);
|
|
138
138
|
pointer-events: none;
|
|
139
139
|
}
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
bottom: 0;
|
|
177
177
|
left: 0;
|
|
178
178
|
right: 0;
|
|
179
|
-
height:
|
|
179
|
+
height: var(--sys-size-14);
|
|
180
180
|
/* Unlike other overlays, the user can click + interact with this one */
|
|
181
181
|
pointer-events: auto;
|
|
182
182
|
/* Ensure this one is always on top of any others */
|
|
@@ -211,9 +211,9 @@
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
.timeline-flamechart-resizer {
|
|
214
|
-
flex:
|
|
214
|
+
flex: var(--sys-size-5) 0 0;
|
|
215
215
|
background-color: var(--sys-color-surface2);
|
|
216
|
-
border:
|
|
216
|
+
border: var(--sys-size-1) var(--sys-color-divider);
|
|
217
217
|
border-style: solid none;
|
|
218
218
|
display: flex;
|
|
219
219
|
flex-direction: row;
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
|
|
228
228
|
.timeline-flamechart-resizer::after {
|
|
229
229
|
content: "...";
|
|
230
|
-
font-size:
|
|
231
|
-
margin-bottom: -
|
|
230
|
+
font-size: var(--sys-typescale-body2-size);
|
|
231
|
+
margin-bottom: calc(-1 * var(--sys-size-1));
|
|
232
232
|
}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
.timeline-flamechart-popover {
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
/* extend padding into the parent element to avoid clipping the focus-visible outline. */
|
|
10
|
-
padding:
|
|
11
|
-
margin: -
|
|
10
|
+
padding: var(--sys-size-3);
|
|
11
|
+
margin: calc(-1 * var(--sys-size-3));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.timeline-flamechart-popover devtools-interaction-breakdown {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
.timeline-flamechart-popover span.popoverinfo-url-path,
|
|
35
35
|
.timeline-flamechart-popover span.popoverinfo-url-origin {
|
|
36
36
|
color: var(--sys-color-token-subtle);
|
|
37
|
-
font-size:
|
|
37
|
+
font-size: var(--sys-typescale-body5-size);
|
|
38
38
|
white-space: normal;
|
|
39
39
|
word-break: break-all;
|
|
40
40
|
}
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
.layout-shift-viz {
|
|
51
51
|
position: relative;
|
|
52
52
|
margin: var(--sys-size-8) var(--sys-size-5);
|
|
53
|
-
outline:
|
|
53
|
+
outline: var(--sys-size-1) solid var(--sys-color-divider);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.layout-shift-viz-rect {
|
|
57
|
-
outline:
|
|
57
|
+
outline: var(--sys-size-1) solid color-mix(in srgb, var(--color-background-inverted) 20%, var(--app-color-rendering));
|
|
58
58
|
background-color: color-mix(in srgb, var(--color-background-inverted-opacity-0) 50%, var(--app-color-rendering-children));
|
|
59
59
|
position: absolute;
|
|
60
60
|
z-index: 100;
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.preview-item {
|
|
13
|
-
border-bottom:
|
|
13
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
14
14
|
|
|
15
15
|
&:first-child {
|
|
16
|
-
border-top:
|
|
16
|
+
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
padding:
|
|
19
|
+
padding: var(--sys-size-4) 10px;
|
|
20
20
|
position: relative;
|
|
21
21
|
|
|
22
22
|
.metadata {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
top: 0;
|
|
33
33
|
bottom: 0;
|
|
34
34
|
left: 0;
|
|
35
|
-
width:
|
|
35
|
+
width: var(--sys-size-2);
|
|
36
36
|
background-color: var(--sys-color-primary);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
text-overflow: ellipsis;
|
|
59
59
|
white-space: nowrap;
|
|
60
|
-
max-width:
|
|
60
|
+
max-width: var(--sys-size-28);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.text-details .metadata {
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
|
|
69
69
|
.screenshot-thumb {
|
|
70
70
|
display: flex;
|
|
71
|
-
border:
|
|
72
|
-
margin:
|
|
71
|
+
border: var(--sys-size-1) solid var(--sys-color-surface3);
|
|
72
|
+
margin: var(--sys-size-2) var(--sys-size-3);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.screenshot-thumb img {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.paint-profiler-image-view .paint-profiler-image-container div {
|
|
16
|
-
border-color:
|
|
16
|
+
border-color: var(--sys-size-1) solid var(--sys-color-divider);
|
|
17
17
|
border-style: solid;
|
|
18
18
|
z-index: 100;
|
|
19
19
|
position: absolute;
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.paint-profiler-image-view img {
|
|
25
|
-
border: solid
|
|
25
|
+
border: solid var(--sys-size-1) var(--sys-color-inverse-surface);
|
|
26
26
|
}
|
|
@@ -10,19 +10,19 @@ import * as Workspace from '../../../models/workspace/workspace.js';
|
|
|
10
10
|
|
|
11
11
|
const UIStrings = {
|
|
12
12
|
/**
|
|
13
|
-
* @description
|
|
13
|
+
* @description Reason why a script is ignored because it is a Chrome extension content script.
|
|
14
14
|
*/
|
|
15
15
|
skipContentScripts: 'Content script',
|
|
16
16
|
/**
|
|
17
|
-
* @description
|
|
17
|
+
* @description Reason why a script is ignored because it is marked with ignoreList in the source map.
|
|
18
18
|
*/
|
|
19
19
|
skip3rdPartyScripts: 'Marked with ignoreList in source map',
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Reason why a script is ignored because it is an anonymous script.
|
|
22
22
|
*/
|
|
23
23
|
skipAnonymousScripts: 'Anonymous script',
|
|
24
24
|
/**
|
|
25
|
-
* @description
|
|
25
|
+
* @description Reason why a script is ignored because of an unknown ignore rule.
|
|
26
26
|
*/
|
|
27
27
|
unknown: 'Unknown',
|
|
28
28
|
} as const;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: Internal
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: c7a932d772cd4948f6199ee2b70c5e149ef4b357
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -57,6 +57,16 @@ function isCodeMirrorEditor(element: Element): boolean {
|
|
|
57
57
|
return element.classList.contains('cm-editor');
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Resolves the file path attribute for a CodeMirror editor element.
|
|
62
|
+
*
|
|
63
|
+
* @param element The editor element to check.
|
|
64
|
+
* @returns The file path string or undefined if not found.
|
|
65
|
+
*/
|
|
66
|
+
export function getEditorFilePath(element: Element): string|undefined {
|
|
67
|
+
return element.getAttribute('data-file-path') ?? undefined;
|
|
68
|
+
}
|
|
69
|
+
|
|
60
70
|
/**
|
|
61
71
|
* Checks whether an element contains non-empty text content (after trimming whitespace),
|
|
62
72
|
* including text from any nested shadow roots.
|
|
@@ -340,7 +350,7 @@ export function resolveCommentAnchor(
|
|
|
340
350
|
return null;
|
|
341
351
|
}
|
|
342
352
|
textSignature = lineInfo.textSignature;
|
|
343
|
-
const filePath = target
|
|
353
|
+
const filePath = getEditorFilePath(target);
|
|
344
354
|
editor = {lineNumber: lineInfo.lineNumber, filePath};
|
|
345
355
|
} else {
|
|
346
356
|
textSignature = target.deepTextContent();
|
|
@@ -379,7 +389,6 @@ export function resolveCommentAnchor(
|
|
|
379
389
|
* @param limit Maximum number of matching elements to return (defaults to Infinity).
|
|
380
390
|
* @returns Array of matching Elements in document order.
|
|
381
391
|
*/
|
|
382
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
383
392
|
export function deepQuerySelectorAll(root: Document|Element, selector: string, limit: number = Infinity): Element[] {
|
|
384
393
|
const results: Element[] = [];
|
|
385
394
|
if (limit <= 0 || Number.isNaN(limit)) {
|
|
@@ -453,7 +462,7 @@ export function rematchCommentAnchor(comment: CommentThread, root: Document|Elem
|
|
|
453
462
|
const {lineNumber, filePath} = anchor.editor;
|
|
454
463
|
const cmEditors = deepQuerySelectorAll(root, '.cm-editor');
|
|
455
464
|
const matchingEditors = cmEditors.filter(cmEditor => {
|
|
456
|
-
if (filePath !== undefined && cmEditor
|
|
465
|
+
if (filePath !== undefined && getEditorFilePath(cmEditor) !== filePath) {
|
|
457
466
|
return false;
|
|
458
467
|
}
|
|
459
468
|
return VisualLogging.getVePath(cmEditor) === anchor.vePath;
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
type CommentThread,
|
|
10
10
|
computeVisibleRect,
|
|
11
11
|
deepQuerySelectorAll,
|
|
12
|
+
getEditorFilePath,
|
|
12
13
|
rematchCommentAnchor,
|
|
13
14
|
resolveCommentAnchor,
|
|
14
15
|
resolveCommentAnchorElement,
|
|
@@ -298,6 +299,13 @@ export class CommentOverlayManager extends Common.ObjectWrapper.ObjectWrapper<Ev
|
|
|
298
299
|
continue;
|
|
299
300
|
}
|
|
300
301
|
|
|
302
|
+
if (thread.anchor.editor?.filePath) {
|
|
303
|
+
const currentFilePath = getEditorFilePath(el);
|
|
304
|
+
if (currentFilePath && currentFilePath !== thread.anchor.editor.filePath) {
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
301
309
|
const observer = this.#getIntersectionObserver();
|
|
302
310
|
if (!this.#observedThreads.has(el)) {
|
|
303
311
|
observer.observe(el);
|
|
@@ -608,7 +616,7 @@ export class CommentOverlayManager extends Common.ObjectWrapper.ObjectWrapper<Ev
|
|
|
608
616
|
childList: true,
|
|
609
617
|
subtree: true,
|
|
610
618
|
attributes: true,
|
|
611
|
-
attributeFilter: ['jslog', 'data-network-request-id', 'data-backend-node-id', 'aria-expanded'],
|
|
619
|
+
attributeFilter: ['jslog', 'data-network-request-id', 'data-backend-node-id', 'aria-expanded', 'data-file-path'],
|
|
612
620
|
});
|
|
613
621
|
}
|
|
614
622
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import {Button, FloatingButton} from './buttons.js';
|
|
6
6
|
|
|
7
|
-
export function render(container: HTMLElement) {
|
|
7
|
+
export function render(container: HTMLElement): void {
|
|
8
8
|
const buttonDocs = container.createChild('div', 'button-docs');
|
|
9
9
|
const style = document.createElement('style');
|
|
10
10
|
style.textContent = `
|
|
@@ -358,3 +358,24 @@ button {
|
|
|
358
358
|
transform: rotate(360deg);
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
+
|
|
362
|
+
@media (forced-colors: active) {
|
|
363
|
+
button.outlined {
|
|
364
|
+
background: ButtonFace;
|
|
365
|
+
border-color: ButtonText;
|
|
366
|
+
color: ButtonText;
|
|
367
|
+
|
|
368
|
+
devtools-icon {
|
|
369
|
+
color: ButtonText;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
&:disabled {
|
|
373
|
+
border-color: GrayText;
|
|
374
|
+
color: GrayText;
|
|
375
|
+
|
|
376
|
+
devtools-icon {
|
|
377
|
+
color: GrayText;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
@@ -15,7 +15,7 @@ const exampleRenderHelper = (key: string, value: string) => html`
|
|
|
15
15
|
<devtools-report-value>${value}</devtools-report-value>
|
|
16
16
|
`;
|
|
17
17
|
|
|
18
|
-
export function render(container: HTMLElement) {
|
|
18
|
+
export function render(container: HTMLElement): void {
|
|
19
19
|
// clang-format off
|
|
20
20
|
Lit.render(
|
|
21
21
|
html`
|
|
@@ -14,7 +14,7 @@ export interface SpinnerProperties {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export class Spinner extends HTMLElement {
|
|
17
|
-
static readonly observedAttributes = ['active'];
|
|
17
|
+
static readonly observedAttributes = ['active'] as const;
|
|
18
18
|
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
19
19
|
|
|
20
20
|
constructor(props?: SpinnerProperties) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
/* eslint-disable @devtools/enforce-custom-element-definitions-location */
|
|
5
5
|
|
|
6
6
|
import * as CodeHighlighter from '../../../ui/components/code_highlighter/code_highlighter.js';
|
|
7
|
-
import codeHighlighterStyles from '../../../ui/components/code_highlighter/codeHighlighter.css.js';
|
|
8
7
|
import * as Lit from '../../../ui/lit/lit.js';
|
|
9
8
|
import * as VisualLogging from '../../../ui/visual_logging/visual_logging.js';
|
|
10
9
|
|
|
@@ -338,7 +337,7 @@ export class SuggestionInput extends LitElement {
|
|
|
338
337
|
protected override render(): Lit.TemplateResult {
|
|
339
338
|
// clang-format off
|
|
340
339
|
return html`<style>${contentEditableStyles}</style>
|
|
341
|
-
<style>${codeHighlighterStyles}</style>
|
|
340
|
+
<style>${CodeHighlighter.codeHighlighterStyles}</style>
|
|
342
341
|
<devtools-editable-content
|
|
343
342
|
?disabled=${this.disabled}
|
|
344
343
|
class=${classMap({
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import {Switch} from './switch.js';
|
|
6
6
|
|
|
7
|
-
export function render(container: HTMLElement) {
|
|
7
|
+
export function render(container: HTMLElement): void {
|
|
8
8
|
function switchExample({checked, disabled}: {checked: boolean, disabled: boolean}): HTMLElement {
|
|
9
9
|
const example = document.createElement('div');
|
|
10
10
|
example.style.marginTop = '20px';
|