chrome-devtools-frontend 1.0.1730971 → 1.0.1732697
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/docs/get_the_code.md +1 -73
- package/front_end/Tests.js +15 -0
- package/front_end/core/host/AidaClient.ts +47 -3
- package/front_end/core/host/AidaClientTypes.ts +27 -3
- package/front_end/core/host/AidaGcaTranslation.ts +1 -1
- package/front_end/core/sdk/DOMModel.ts +8 -3
- package/front_end/core/sdk/NetworkManager.ts +2 -1
- package/front_end/entrypoints/formatter_worker/ScopeParser.ts +2 -2
- package/front_end/generated/Deprecation.ts +0 -8
- package/front_end/generated/InspectorBackendCommands.ts +2 -1
- package/front_end/generated/SupportedCSSProperties.ts +2 -2
- package/front_end/generated/protocol.ts +9 -0
- package/front_end/models/ai-utils/debug.ts +127 -22
- package/front_end/models/ai_assistance/README.md +1 -1
- package/front_end/models/ai_assistance/agents/AiAgent.ts +10 -5
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/contexts/DOMNodeContext.ts +4 -3
- package/front_end/models/ai_assistance/contexts/LighthouseContext.snapshot.txt +9 -2
- package/front_end/models/ai_assistance/contexts/LighthouseContext.ts +4 -3
- package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.snapshot.txt +97 -11
- package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.ts +92 -43
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +26 -26
- package/front_end/models/ai_assistance/skills/styling.md +4 -2
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +31 -36
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -1
- package/front_end/models/ai_code_completion/ai_code_completion.ts +11 -2
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -1
- package/front_end/models/ai_code_generation/ai_code_generation.ts +11 -2
- package/front_end/models/bindings/CompilerScriptMapping.ts +0 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +0 -1
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +0 -1
- package/front_end/models/har/HARFormat.ts +1 -0
- package/front_end/models/har/Importer.ts +7 -1
- package/front_end/models/har/Log.snapshot.txt +2 -0
- package/front_end/models/har/Log.ts +2 -0
- package/front_end/models/javascript_metadata/NativeFunctions.ts +0 -4
- package/front_end/models/trace/LanternComputationData.ts +4 -0
- package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +126 -1
- package/front_end/models/trace/lantern/types/Lantern.ts +3 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +33 -1
- package/front_end/panels/ai_assistance/ExternalHandler.ts +1 -1
- package/front_end/panels/ai_assistance/components/ChatInput.ts +2 -0
- package/front_end/panels/ai_assistance/components/PermissionPrompt.ts +4 -4
- package/front_end/panels/ai_assistance/components/chatInput.css +1 -1
- package/front_end/panels/ai_assistance/components/chatMessage.css +3 -4
- package/front_end/panels/ai_assistance/components/exploreWidget.css +3 -3
- package/front_end/panels/animation/animationTimeline.css +11 -9
- package/front_end/panels/application/IndexedDBViews.ts +2 -2
- package/front_end/panels/application/PrivateVerificationTokensView.ts +217 -9
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +1 -1
- package/front_end/panels/application/ServiceWorkersView.ts +1 -1
- package/front_end/panels/application/StorageView.ts +1 -1
- package/front_end/panels/application/appManifestView.css +0 -6
- package/front_end/panels/application/backgroundServiceView.css +0 -21
- package/front_end/panels/application/components/backForwardCacheView.css +1 -9
- package/front_end/panels/application/components/endpointsGrid.css +1 -1
- package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
- package/front_end/panels/application/components/reportsGrid.css +1 -1
- package/front_end/panels/application/components/serviceWorkerRouterView.css +2 -2
- package/front_end/panels/application/components/trustTokensView.css +1 -1
- package/front_end/panels/application/cookieItemsView.css +0 -1
- package/front_end/panels/application/frameDetailsReportView.css +0 -10
- package/front_end/panels/application/indexedDBViews.css +0 -10
- package/front_end/panels/application/privateVerificationTokensView.css +12 -0
- package/front_end/panels/application/resourcesPanel.css +0 -23
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +7 -7
- package/front_end/panels/application/serviceWorkersView.css +4 -3
- package/front_end/panels/changes/CombinedDiffView.ts +1 -1
- package/front_end/panels/comments/CommentsPane.ts +7 -11
- package/front_end/panels/common/CommentThreadWidget.ts +11 -3
- package/front_end/panels/common/CommentsOverlayWidget.ts +337 -117
- package/front_end/panels/console/consoleContextSelector.css +1 -1
- package/front_end/panels/console/consolePinPane.css +1 -1
- package/front_end/panels/console/consolePrompt.css +4 -2
- package/front_end/panels/console/consoleView.css +5 -3
- package/front_end/panels/coverage/CoverageView.ts +0 -1
- package/front_end/panels/coverage/coverageView.css +4 -3
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +0 -1
- package/front_end/panels/elements/AccessibilityTreeView.ts +1 -1
- package/front_end/panels/elements/CSSValueTraceView.ts +2 -4
- package/front_end/panels/elements/ComputedStyleWidget.ts +8 -19
- package/front_end/panels/elements/DOMTreeContextMenu.ts +1 -1
- package/front_end/panels/elements/DOMTreeWidget.ts +14 -0
- package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
- package/front_end/panels/elements/PlatformFontsWidget.ts +0 -1
- package/front_end/panels/elements/PropertiesWidget.ts +1 -1
- package/front_end/panels/elements/PropertyRenderer.ts +7 -27
- package/front_end/panels/elements/StylePropertyTreeElement.ts +61 -72
- package/front_end/panels/elements/StylesSidebarPane.ts +2 -0
- package/front_end/panels/elements/WebCustomData.ts +1 -1
- package/front_end/panels/elements/components/cssHintDetailsView.css +1 -1
- package/front_end/panels/elements/components/cssVariableValueView.css +3 -1
- package/front_end/panels/elements/components/elementsBreadcrumbs.css +1 -1
- package/front_end/panels/elements/components/elementsTreeExpandButton.css +3 -2
- package/front_end/panels/elements/components/stylePropertyEditor.css +2 -2
- package/front_end/panels/elements/layoutPane.css +1 -1
- package/front_end/panels/elements/metricsSidebarPane.css +6 -6
- package/front_end/panels/elements/platformFontsWidget.css +1 -1
- package/front_end/panels/elements/propertiesWidget.css +0 -5
- package/front_end/panels/elements/stylesSidebarPane.css +1 -1
- package/front_end/panels/emulation/DeviceModeView.ts +4 -3
- package/front_end/panels/emulation/deviceModeView.css +9 -10
- package/front_end/panels/event_listeners/eventListenersView.css +5 -5
- package/front_end/panels/explain/components/consoleInsight.css +5 -20
- package/front_end/panels/issues/issuesTree.css +11 -10
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +4 -2
- package/front_end/panels/layer_viewer/TransformController.ts +106 -54
- package/front_end/panels/layer_viewer/layerTreeOutline.css +1 -1
- package/front_end/panels/lighthouse/lighthousePanel.css +5 -8
- package/front_end/panels/lighthouse/lighthouseStartView.css +1 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +4 -4
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +1 -1
- package/front_end/panels/media/EventTimelineView.ts +1 -4
- package/front_end/panels/media/TickingFlameChart.ts +3 -2
- package/front_end/panels/media/playerListView.css +14 -7
- package/front_end/panels/media/playerMessagesView.css +11 -7
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +5 -7
- package/front_end/panels/network/NetworkConfigView.ts +1 -1
- package/front_end/panels/network/NetworkWaterfallColumn.ts +92 -55
- package/front_end/panels/network/binaryResourceView.css +0 -7
- package/front_end/panels/network/networkConfigView.css +3 -3
- package/front_end/panels/network/networkLogView.css +5 -11
- package/front_end/panels/network/networkManageCustomHeadersView.css +1 -1
- package/front_end/panels/network/networkTimingTable.css +6 -6
- package/front_end/panels/network/requestConditionsDrawer.css +1 -24
- package/front_end/panels/network/requestPayloadView.css +1 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +1 -1
- package/front_end/panels/performance_monitor/performanceMonitor.css +2 -2
- package/front_end/panels/profiler/ModuleUIStrings.ts +12 -0
- package/front_end/panels/protocol_monitor/JSONEditor.css +4 -3
- package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
- package/front_end/panels/protocol_monitor/protocolMonitor.css +1 -1
- package/front_end/panels/recorder/createRecordingView.css +2 -2
- package/front_end/panels/recorder/extensionView.css +1 -1
- package/front_end/panels/recorder/recorderPanel.css +3 -3
- package/front_end/panels/recorder/recordingListView.css +1 -1
- package/front_end/panels/recorder/stepEditor.css +2 -2
- package/front_end/panels/recorder/stepView.css +0 -31
- package/front_end/panels/recorder/timelineSection.css +1 -1
- package/front_end/panels/screencast/screencastView.css +3 -2
- package/front_end/panels/search/searchView.css +4 -3
- package/front_end/panels/security/SecurityPanelSidebar.ts +0 -1
- package/front_end/panels/security/mainView.css +2 -2
- package/front_end/panels/security/originView.css +1 -5
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +2 -1
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +1 -2
- package/front_end/panels/sources/breakpointsView.css +3 -4
- package/front_end/panels/sources/tabbedEditorContainer.css +1 -1
- package/front_end/panels/sources/watchExpressionsSidebarPane.css +4 -3
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +30 -10
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +1 -1
- package/front_end/panels/timeline/components/OriginMap.ts +1 -1
- package/front_end/panels/timeline/components/fieldSettingsDialog.css +1 -1
- package/front_end/panels/timeline/components/metricCard.css +1 -1
- package/front_end/panels/timeline/components/networkRequestDetails.css +0 -1
- package/front_end/panels/timeline/components/networkRequestTooltip.css +4 -4
- package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
- package/front_end/panels/timeline/timelineFlameChartView.css +4 -4
- package/front_end/panels/timeline/timelineFlamechartPopover.css +3 -3
- package/front_end/panels/timeline/timelineHistoryManager.css +1 -1
- package/front_end/panels/timeline/timelineMiniMap.css +3 -2
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
- package/front_end/panels/web_audio/webAudio.css +0 -20
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/comments/CommentAnchorResolver.ts +166 -8
- package/front_end/ui/comments/CommentOverlayManager.ts +17 -2
- package/front_end/ui/components/buttons/button.css +0 -1
- package/front_end/ui/components/diff_view/diffView.css +2 -2
- package/front_end/ui/components/markdown_view/codeBlock.css +3 -3
- package/front_end/ui/components/markdown_view/markdownView.css +3 -3
- package/front_end/ui/components/menus/Menu.ts +1 -1
- package/front_end/ui/components/menus/menuItem.css +1 -1
- package/front_end/ui/components/panel_feedback/panelFeedback.css +5 -4
- package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +1 -1
- package/front_end/ui/components/report_view/reportValue.css +5 -2
- package/front_end/ui/components/suggestion_input/suggestionInput.css +6 -6
- package/front_end/ui/legacy/ContextMenu.ts +3 -0
- package/front_end/ui/legacy/GlassPane.ts +3 -3
- package/front_end/ui/legacy/SoftContextMenu.ts +7 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -0
- package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +7 -6
- package/front_end/ui/legacy/components/inline_editor/colorSwatch.css +1 -2
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -3
- package/front_end/ui/legacy/components/perf_ui/chartViewport.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +12 -9
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +11 -7
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +3 -4
- package/front_end/ui/legacy/components/source_frame/imageView.css +4 -4
- package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
- package/front_end/ui/legacy/components/utils/jsUtils.css +2 -1
- package/front_end/ui/legacy/dropTarget.css +1 -1
- package/front_end/ui/legacy/filter.css +4 -3
- package/front_end/ui/legacy/inspectorCommon.css +16 -48
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
- package/front_end/ui/legacy/progressIndicator.css +1 -2
- package/front_end/ui/legacy/reportView.css +4 -1
- package/front_end/ui/legacy/searchableView.css +1 -1
- package/front_end/ui/legacy/suggestBox.css +2 -1
- package/front_end/ui/legacy/tabbedPane.css +7 -4
- package/front_end/ui/legacy/toolbar.css +2 -1
- package/front_end/ui/legacy/treeoutline.css +6 -5
- package/front_end/ui/legacy/viewContainers.css +3 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +15 -0
- package/inspector_overlay/highlight_anchor.ts +8 -11
- package/package.json +1 -1
- package/front_end/models/ai_code_completion/debug.ts +0 -33
- package/front_end/models/ai_code_generation/debug.ts +0 -33
|
@@ -58,8 +58,8 @@ select {
|
|
|
58
58
|
border: none;
|
|
59
59
|
border-radius: var(--sys-shape-corner-extra-small);
|
|
60
60
|
height: var(--sys-size-9);
|
|
61
|
-
max-width:
|
|
62
|
-
min-width:
|
|
61
|
+
max-width: var(--sys-size-22);
|
|
62
|
+
min-width: var(--sys-size-22);
|
|
63
63
|
padding: 0 var(--sys-size-6) 0 var(--sys-size-5);
|
|
64
64
|
position: relative;
|
|
65
65
|
color: var(--sys-color-on-surface);
|
|
@@ -135,7 +135,7 @@ devtools-recording-list-view {
|
|
|
135
135
|
font-size: var(--sys-typescale-body4-size);
|
|
136
136
|
line-height: var(--sys-typescale-body4-line-height);
|
|
137
137
|
color: var(--sys-color-primary);
|
|
138
|
-
outline-offset:
|
|
138
|
+
outline-offset: var(--sys-size-2);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.feedback .devtools-link:focus-visible,
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.row-buttons {
|
|
84
|
-
margin-top:
|
|
84
|
+
margin-top: var(--sys-size-3);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.error {
|
|
88
|
-
margin:
|
|
88
|
+
margin: var(--sys-size-3) 0 var(--sys-size-4);
|
|
89
89
|
padding: var(--sys-size-5) var(--sys-size-6);
|
|
90
90
|
background: var(--sys-color-error-container);
|
|
91
91
|
color: var(--sys-color-error);
|
|
@@ -62,13 +62,6 @@
|
|
|
62
62
|
cy: var(--sys-size-5);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.is-start-of-group:not(:first-of-type) .circle-icon {
|
|
66
|
-
r: 7px;
|
|
67
|
-
fill: var(--sys-color-cdt-base-container);
|
|
68
|
-
stroke: var(--sys-color-primary);
|
|
69
|
-
stroke-width: var(--sys-size-2);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
65
|
.step.is-success .circle-icon {
|
|
73
66
|
fill: var(--sys-color-primary);
|
|
74
67
|
stroke: var(--sys-color-primary);
|
|
@@ -157,10 +150,6 @@
|
|
|
157
150
|
transform: rotate(0deg);
|
|
158
151
|
}
|
|
159
152
|
|
|
160
|
-
.is-start-of-group .chevron {
|
|
161
|
-
top: 34px;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
153
|
.details {
|
|
165
154
|
display: none;
|
|
166
155
|
margin-top: var(--sys-size-5);
|
|
@@ -175,26 +164,6 @@
|
|
|
175
164
|
overflow: auto;
|
|
176
165
|
}
|
|
177
166
|
|
|
178
|
-
devtools-recorder-step-editor {
|
|
179
|
-
border: var(--sys-size-1) solid var(--sys-color-neutral-outline);
|
|
180
|
-
padding: 3px 6px 6px;
|
|
181
|
-
margin-left: calc(-1 * var(--sys-size-4));
|
|
182
|
-
border-radius: 3px;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
devtools-recorder-step-editor:hover {
|
|
186
|
-
border: var(--sys-size-1) solid var(--sys-color-neutral-outline);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
devtools-recorder-step-editor.is-selected {
|
|
190
|
-
background-color: color-mix(
|
|
191
|
-
in srgb,
|
|
192
|
-
var(--sys-color-tonal-container),
|
|
193
|
-
var(--sys-color-cdt-base-container) 50%
|
|
194
|
-
);
|
|
195
|
-
border: var(--sys-size-1) solid var(--sys-color-tonal-outline);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
167
|
.summary {
|
|
199
168
|
display: flex;
|
|
200
169
|
flex-flow: row nowrap;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
.screencast-navigation input {
|
|
30
30
|
flex: 1;
|
|
31
31
|
margin: var(--sys-size-2);
|
|
32
|
-
max-height:
|
|
32
|
+
max-height: var(--sys-size-9);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.screencast-navigation .progress {
|
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
position: absolute;
|
|
84
84
|
bottom: 100%;
|
|
85
85
|
left: var(--sys-size-7);
|
|
86
|
-
border
|
|
86
|
+
/* 6px protruding arrow (--sys-size-4) plus 1px top border overlap (--sys-size-1) = 7px. */
|
|
87
|
+
border: calc(var(--sys-size-4) + var(--sys-size-1)) solid transparent;
|
|
87
88
|
border-bottom-color: var(--sys-color-yellow-container);
|
|
88
89
|
}
|
|
89
90
|
|
|
@@ -87,10 +87,11 @@
|
|
|
87
87
|
.search-toolbar-summary {
|
|
88
88
|
background-color: var(--sys-color-cdt-base-container);
|
|
89
89
|
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
90
|
-
padding-left:
|
|
91
|
-
|
|
90
|
+
padding-left: var(--sys-size-3);
|
|
91
|
+
/* 20px footer bar (--sys-size-9) minus 1px top divider border (--sys-size-1). */
|
|
92
|
+
flex: 0 0 calc(var(--sys-size-9) - var(--sys-size-1));
|
|
92
93
|
display: flex;
|
|
93
|
-
padding-right:
|
|
94
|
+
padding-right: var(--sys-size-3);
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
.search-results:has(.empty-widget-container) + .search-toolbar-summary {
|
|
@@ -219,7 +219,6 @@ export class SecurityPanelSidebar extends UI.Widget.VBox {
|
|
|
219
219
|
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
220
220
|
super(element);
|
|
221
221
|
this.#view = view;
|
|
222
|
-
this.registerRequiredCSS(lockIconStyles, sidebarStyles);
|
|
223
222
|
}
|
|
224
223
|
|
|
225
224
|
set onShowOrigin(callback: (origin: Platform.DevToolsPath.UrlString|null) => void) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.security-summary-section-title {
|
|
21
|
-
font-size:
|
|
21
|
+
font-size: var(--sys-typescale-headline4-size);
|
|
22
22
|
margin: var(--sys-size-6) var(--sys-size-8);
|
|
23
23
|
user-select: text;
|
|
24
24
|
}
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
padding: var(--sys-size-8) var(--sys-size-11);
|
|
105
105
|
border-style: solid;
|
|
106
106
|
border-width: var(--sys-size-1) 0;
|
|
107
|
-
font-size:
|
|
107
|
+
font-size: var(--sys-typescale-body2-size);
|
|
108
108
|
background: var(--sys-color-cdt-base-container);
|
|
109
109
|
border-color: var(--sys-color-neutral-outline);
|
|
110
110
|
user-select: text;
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
|
|
78
78
|
.security-origin-view .details-table-row > td:first-child {
|
|
79
79
|
color: var(--sys-color-token-subtle);
|
|
80
|
-
width: calc(
|
|
80
|
+
width: calc(var(--sys-size-21) + 1em); /* 128px label column + 1em right padding */
|
|
81
81
|
text-align: right;
|
|
82
82
|
padding-right: 1em;
|
|
83
83
|
}
|
|
@@ -100,10 +100,6 @@
|
|
|
100
100
|
margin-left: 126px;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.security-origin-view .sct-toggle {
|
|
104
|
-
margin-left: 145px;
|
|
105
|
-
padding-top: 5px;
|
|
106
|
-
}
|
|
107
103
|
|
|
108
104
|
.security-origin-view .details-table .empty-san {
|
|
109
105
|
color: var(--sys-color-state-disabled);
|
|
@@ -226,6 +226,8 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
226
226
|
|
|
227
227
|
// clang-format off
|
|
228
228
|
render(html`
|
|
229
|
+
<style>${frameworkIgnoreListSettingsTabStyles}</style>
|
|
230
|
+
<style>${settingsScreenStyles}</style>
|
|
229
231
|
<div class="settings-card-container-wrapper">
|
|
230
232
|
<div class="settings-card-container ignore-list-settings">
|
|
231
233
|
<devtools-card .heading=${i18nString(UIStrings.frameworkIgnoreList)}>
|
|
@@ -341,7 +343,6 @@ export class FrameworkIgnoreListSettingsTab extends UI.Widget.VBox {
|
|
|
341
343
|
useShadowDom: true,
|
|
342
344
|
});
|
|
343
345
|
this.#view = view;
|
|
344
|
-
this.registerRequiredCSS(frameworkIgnoreListSettingsTabStyles, settingsScreenStyles);
|
|
345
346
|
|
|
346
347
|
const settings = Common.Settings.Settings.instance();
|
|
347
348
|
this.enabledSetting = settings.resolve(Workspace.IgnoreListManager.enableIgnoreListingSettingDescriptor);
|
|
@@ -45,7 +45,6 @@ import * as StackTrace from '../../models/stack_trace/stack_trace.js';
|
|
|
45
45
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
46
46
|
import * as TextEditor from '../../ui/components/text_editor/text_editor.js';
|
|
47
47
|
import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
|
|
48
|
-
import objectValueStyles from '../../ui/legacy/components/object_ui/objectValue.css.js';
|
|
49
48
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
50
49
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
51
50
|
import {Directives, html, nothing, render, type TemplateResult} from '../../ui/lit/lit.js';
|
|
@@ -374,6 +373,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
374
373
|
render(
|
|
375
374
|
// clang-format off
|
|
376
375
|
html`
|
|
376
|
+
<style>${watchExpressionsSidebarPaneStyles}</style>
|
|
377
377
|
${input.watchExpressions.length === 0
|
|
378
378
|
? html`<div class=gray-info-message tabindex=-1 >
|
|
379
379
|
${i18nString(UIStrings.noWatchExpressions)}
|
|
@@ -409,7 +409,6 @@ export class WatchExpressionsSidebarPane extends UI.Widget.VBox implements UI.Ac
|
|
|
409
409
|
#expansionTrackers = new Map<string, ObjectUI.ObjectPropertiesSection.ObjectTreeExpansionTracker>();
|
|
410
410
|
constructor() {
|
|
411
411
|
super({useShadowDom: true});
|
|
412
|
-
this.registerRequiredCSS(watchExpressionsSidebarPaneStyles, objectValueStyles);
|
|
413
412
|
|
|
414
413
|
this.#watchExpressions = [];
|
|
415
414
|
this.#watchExpressionsSetting =
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
|
|
121
121
|
button {
|
|
122
122
|
cursor: pointer;
|
|
123
|
-
width:
|
|
124
|
-
height:
|
|
123
|
+
width: var(--sys-size-7);
|
|
124
|
+
height: var(--sys-size-7);
|
|
125
125
|
border: none;
|
|
126
126
|
background-color: transparent;
|
|
127
127
|
display: none;
|
|
@@ -163,7 +163,6 @@
|
|
|
163
163
|
.breakpoint-item {
|
|
164
164
|
display: flex;
|
|
165
165
|
align-items: center;
|
|
166
|
-
line-height: 13px;
|
|
167
166
|
height: var(--sys-size-9);
|
|
168
167
|
padding-right: var(--sys-size-5);
|
|
169
168
|
}
|
|
@@ -231,7 +230,7 @@
|
|
|
231
230
|
}
|
|
232
231
|
|
|
233
232
|
.pause-on-uncaught-exceptions {
|
|
234
|
-
margin-top:
|
|
233
|
+
margin-top: var(--sys-size-2);
|
|
235
234
|
}
|
|
236
235
|
|
|
237
236
|
.pause-on-caught-exceptions {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.watch-expressions {
|
|
36
|
-
min-height:
|
|
36
|
+
min-height: var(--sys-size-11);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.watch-expression-title {
|
|
@@ -49,7 +49,7 @@ li.watch-expression-tree-item > span.tree-element-title {
|
|
|
49
49
|
|
|
50
50
|
.watch-expression-title:hover,
|
|
51
51
|
.watch-expression-title:focus-within {
|
|
52
|
-
padding-right:
|
|
52
|
+
padding-right: var(--sys-size-11);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.watch-expression-object-header .watch-expression-title {
|
|
@@ -109,7 +109,8 @@ li.watch-expression-tree-item > span.tree-element-title {
|
|
|
109
109
|
.watch-expression-header {
|
|
110
110
|
flex: auto;
|
|
111
111
|
margin-left: calc(-1 * var(--sys-size-8));
|
|
112
|
-
|
|
112
|
+
/* 16px (--sys-size-8) negative margin offset minus 1px (--sys-size-1) object header title margin */
|
|
113
|
+
padding-left: calc(var(--sys-size-8) - var(--sys-size-1));
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
li.watch-expression-tree-item {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// Copyright 2023 The Chromium Authors
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
-
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
5
|
-
|
|
6
4
|
import * as Common from '../../core/common/common.js';
|
|
7
5
|
import * as Host from '../../core/host/host.js';
|
|
8
6
|
import * as Platform from '../../core/platform/platform.js';
|
|
@@ -11,6 +9,7 @@ import * as SourceMapsResolver from '../../models/trace_source_maps_resolver/tra
|
|
|
11
9
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
12
10
|
import type * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
|
|
13
11
|
import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
|
|
12
|
+
import {html, render} from '../../ui/lit/lit.js';
|
|
14
13
|
import * as SettingsUI from '../../ui/settings/settings.js';
|
|
15
14
|
|
|
16
15
|
import {AnimationsTrackAppender} from './AnimationsTrackAppender.js';
|
|
@@ -37,6 +36,23 @@ export interface PopoverInfo {
|
|
|
37
36
|
additionalElements: HTMLElement[];
|
|
38
37
|
}
|
|
39
38
|
|
|
39
|
+
export interface PopoverUrlViewInput {
|
|
40
|
+
path: string;
|
|
41
|
+
originWithEntity: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type PopoverUrlView = (input: PopoverUrlViewInput, output: undefined, target: DocumentFragment) => void;
|
|
45
|
+
|
|
46
|
+
export function renderPopoverUrl(
|
|
47
|
+
input: PopoverUrlViewInput,
|
|
48
|
+
_output: undefined,
|
|
49
|
+
target: DocumentFragment,
|
|
50
|
+
): void {
|
|
51
|
+
render(html`<div><span class="popoverinfo-url-path">${input.path}</span><span class="popoverinfo-url-origin">(${
|
|
52
|
+
input.originWithEntity})</span></div>`,
|
|
53
|
+
target);
|
|
54
|
+
}
|
|
55
|
+
|
|
40
56
|
export function entryIsVisibleInTimeline(
|
|
41
57
|
entry: Trace.Types.Events.Event, parsedTrace?: Trace.TraceModel.ParsedTrace): boolean {
|
|
42
58
|
if (parsedTrace?.data.Meta.traceIsGeneric) {
|
|
@@ -197,6 +213,7 @@ export class CompatibilityTracksAppender {
|
|
|
197
213
|
#layoutShiftsTrackAppender: LayoutShiftsTrackAppender;
|
|
198
214
|
#threadAppenders: ThreadAppender[] = [];
|
|
199
215
|
#entityMapper: Trace.EntityMapper.EntityMapper|null;
|
|
216
|
+
#view: PopoverUrlView;
|
|
200
217
|
|
|
201
218
|
/**
|
|
202
219
|
* @param flameChartData the data used by the flame chart renderer on
|
|
@@ -211,15 +228,16 @@ export class CompatibilityTracksAppender {
|
|
|
211
228
|
* architecture and should be removed once all tracks use the new
|
|
212
229
|
* system.
|
|
213
230
|
* @param entityMapper 3P entity data for the trace.
|
|
231
|
+
* @param view function to render popover url content.
|
|
214
232
|
*/
|
|
215
|
-
constructor(
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
entityMapper: Trace.EntityMapper.EntityMapper|null) {
|
|
233
|
+
constructor(flameChartData: PerfUI.FlameChart.FlameChartTimelineData, parsedTrace: Trace.TraceModel.ParsedTrace,
|
|
234
|
+
entryData: Trace.Types.Events.Event[], legacyEntryTypeByLevel: EntryType[],
|
|
235
|
+
entityMapper: Trace.EntityMapper.EntityMapper|null, view: PopoverUrlView = renderPopoverUrl) {
|
|
219
236
|
this.#flameChartData = flameChartData;
|
|
220
237
|
this.#parsedTrace = parsedTrace;
|
|
221
238
|
this.#entityMapper = entityMapper;
|
|
222
239
|
this.#entryData = entryData;
|
|
240
|
+
this.#view = view;
|
|
223
241
|
this.#colorGenerator = new Common.Color.Generator(
|
|
224
242
|
/* hueSpace= */ {min: 30, max: 55},
|
|
225
243
|
/* satSpace= */ {min: 70, max: 100, count: 6},
|
|
@@ -635,14 +653,16 @@ export class CompatibilityTracksAppender {
|
|
|
635
653
|
if (url) {
|
|
636
654
|
const MAX_PATH_LENGTH = 45;
|
|
637
655
|
const path = Platform.StringUtilities.trimMiddle(url.href.replace(url.origin, ''), MAX_PATH_LENGTH);
|
|
638
|
-
const urlElems = document.createElement('div');
|
|
639
|
-
urlElems.createChild('span', 'popoverinfo-url-path').textContent = path;
|
|
640
656
|
const entity = this.#entityMapper ? this.#entityMapper.entityForEvent(event) : null;
|
|
641
657
|
// Include entity with origin if it's non made-up entity, otherwise there'd be
|
|
642
658
|
// repetition with the origin.
|
|
643
659
|
const originWithEntity = TimelineUtils.Helpers.formatOriginWithEntity(url, entity);
|
|
644
|
-
|
|
645
|
-
|
|
660
|
+
const fragment = document.createDocumentFragment();
|
|
661
|
+
this.#view({path, originWithEntity}, undefined, fragment);
|
|
662
|
+
const urlElement = fragment.firstElementChild;
|
|
663
|
+
if (urlElement instanceof HTMLElement) {
|
|
664
|
+
info.additionalElements.push(urlElement);
|
|
665
|
+
}
|
|
646
666
|
}
|
|
647
667
|
|
|
648
668
|
return info;
|
|
@@ -126,6 +126,7 @@ type View = (input: ViewInput, output: undefined, target: HTMLElement) => void;
|
|
|
126
126
|
const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
127
127
|
render(
|
|
128
128
|
html`
|
|
129
|
+
<style>${timelineSelectorStatsViewStyles}</style>
|
|
129
130
|
<devtools-data-grid striped name=${i18nString(UIStrings.selectorStats)}
|
|
130
131
|
@contextmenu=${input.onContextMenu.bind(input)}>
|
|
131
132
|
<table>
|
|
@@ -213,7 +214,6 @@ export class TimelineSelectorStatsView extends UI.Widget.VBox {
|
|
|
213
214
|
|
|
214
215
|
constructor(parsedTrace: Trace.TraceModel.ParsedTrace|null, view: View = DEFAULT_VIEW) {
|
|
215
216
|
super();
|
|
216
|
-
this.registerRequiredCSS(timelineSelectorStatsViewStyles);
|
|
217
217
|
|
|
218
218
|
this.#view = view;
|
|
219
219
|
this.#selectorLocations = new Map<string, Protocol.CSS.SourceRange[]>();
|
|
@@ -115,6 +115,7 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
115
115
|
}
|
|
116
116
|
// clang-format off
|
|
117
117
|
Lit.render(html`
|
|
118
|
+
<style>${originMapStyles}</style>
|
|
118
119
|
<devtools-data-grid striped inline deletable
|
|
119
120
|
@click=${(e: Event) => { e.stopPropagation(); }}
|
|
120
121
|
@create=${input.onCreate}>
|
|
@@ -144,7 +145,6 @@ export class OriginMap extends UI.Widget.VBox {
|
|
|
144
145
|
constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
|
|
145
146
|
super(element, {useShadowDom: true});
|
|
146
147
|
this.#view = view;
|
|
147
|
-
this.registerRequiredCSS(originMapStyles);
|
|
148
148
|
CrUXManager.CrUXManager.instance().getConfigSetting().addChangeListener(this.requestUpdate, this);
|
|
149
149
|
this.requestUpdate();
|
|
150
150
|
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.url {
|
|
13
|
-
margin-left:
|
|
14
|
-
margin-right:
|
|
13
|
+
margin-left: var(--sys-size-7);
|
|
14
|
+
margin-right: var(--sys-size-3);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.url--host {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
devtools-icon.priority {
|
|
40
|
-
height:
|
|
41
|
-
width:
|
|
40
|
+
height: var(--sys-size-7);
|
|
41
|
+
width: var(--sys-size-7);
|
|
42
42
|
color: var(--sys-color-on-surface-subtle);
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
|
|
90
90
|
.overlay-type-CANDY_STRIPED_TIME_RANGE {
|
|
91
91
|
--red-stripe-width: var(--sys-size-2);
|
|
92
|
-
--white-stripe-width:
|
|
92
|
+
--white-stripe-width: var(--sys-size-4);
|
|
93
93
|
|
|
94
94
|
background-image:
|
|
95
95
|
repeating-linear-gradient(
|
|
@@ -128,11 +128,11 @@
|
|
|
128
128
|
bottom: 0;
|
|
129
129
|
|
|
130
130
|
&.overlap-1 {
|
|
131
|
-
bottom:
|
|
131
|
+
bottom: var(--sys-size-17);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
&.overlap-2 {
|
|
135
|
-
bottom:
|
|
135
|
+
bottom: var(--sys-size-20);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
|
|
173
173
|
.overlay-type-TIMINGS_MARKER {
|
|
174
174
|
bottom: 0;
|
|
175
|
-
width:
|
|
175
|
+
width: var(--sys-size-1);
|
|
176
176
|
pointer-events: auto;
|
|
177
177
|
background-color: var(--marker-color); /* stylelint-disable-line plugin/use_theme_colors */
|
|
178
178
|
}
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
margin: calc(-1 * var(--sys-size-3));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.timeline-flamechart-popover devtools-
|
|
15
|
-
margin-top:
|
|
14
|
+
.timeline-flamechart-popover devtools-widget {
|
|
15
|
+
margin-top: var(--sys-size-5);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.timeline-flamechart-popover span {
|
|
19
|
-
margin-right:
|
|
19
|
+
margin-right: var(--sys-size-3);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.timeline-flamechart-popover span.popoverinfo-network-time {
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
|
|
21
21
|
.timeline-minimap .overview-strip .timeline-overview-strip-title {
|
|
22
22
|
color: var(--sys-color-token-subtle);
|
|
23
|
-
font-size:
|
|
23
|
+
font-size: var(--sys-typescale-body5-size);
|
|
24
24
|
font-weight: bold;
|
|
25
25
|
z-index: 100;
|
|
26
26
|
background-color: var(--sys-color-cdt-base-container);
|
|
27
27
|
padding: 0 var(--sys-size-3);
|
|
28
28
|
position: absolute;
|
|
29
|
+
/* 2px upward offset (--sys-size-2 = 2px) matching parent .overview-strip top margin */
|
|
29
30
|
top: calc(var(--sys-size-2) * -1);
|
|
30
31
|
right: 0;
|
|
31
32
|
}
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
.timeline-minimap #timeline-overview-responsiveness {
|
|
65
|
-
flex-basis:
|
|
66
|
+
flex-basis: var(--sys-size-4);
|
|
66
67
|
margin-top: 0 !important; /* stylelint-disable-line declaration-no-important */
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -14,26 +14,6 @@
|
|
|
14
14
|
min-height: fit-content;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.web-audio-landing-page {
|
|
18
|
-
position: absolute;
|
|
19
|
-
background-color: var(--sys-color-cdt-base-container);
|
|
20
|
-
justify-content: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
overflow: auto;
|
|
23
|
-
font-size: var(--sys-typescale-body3-size);
|
|
24
|
-
color: var(--sys-color-on-surface);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.web-audio-landing-page > div {
|
|
28
|
-
max-width: 500px;
|
|
29
|
-
margin: 10px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.web-audio-landing-page > div > p {
|
|
33
|
-
flex: none;
|
|
34
|
-
white-space: pre-line;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
17
|
.web-audio-content-container {
|
|
38
18
|
overflow-y: auto;
|
|
39
19
|
}
|
|
@@ -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: 481a581fe3e96f2a21db53a085901a0133f30e1d
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|