chrome-devtools-frontend 1.0.1736236 → 1.0.1738725
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/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +1 -1
- package/.agents/skills/version-control/SKILL.md +63 -11
- package/docs/devtools-protocol.md +3 -1
- package/eslint.config.mjs +0 -6
- package/front_end/core/host/AidaClient.ts +14 -36
- package/front_end/core/host/AidaGcaTranslation.ts +8 -5
- package/front_end/core/root/Runtime.ts +0 -5
- package/front_end/design_system_tokens.css +1 -0
- package/front_end/entrypoints/main/GlobalAiButton.ts +2 -9
- package/front_end/entrypoints/main/MainImpl.ts +0 -4
- package/front_end/generated/SupportedCSSProperties.ts +8 -23
- package/front_end/models/ai-utils/AiUtils.ts +1 -5
- package/front_end/models/ai_assistance/agents/AiAgent.ts +2 -18
- package/front_end/models/ai_assistance/contexts/FileContext.ts +1 -2
- package/front_end/models/ai_assistance/tools/ListSources.ts +3 -1
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +0 -6
- package/front_end/models/javascript_metadata/NativeFunctions.ts +9 -5
- package/front_end/models/trace/EventsSerializer.ts +0 -8
- package/front_end/models/workspace/UISourceCode.ts +30 -8
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -7
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +15 -34
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -16
- package/front_end/panels/ai_assistance/components/chatView.css +0 -32
- package/front_end/panels/ai_assistance/components/walkthroughView.css +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/animation/animationTimeline.css +5 -3
- package/front_end/panels/application/PrivateVerificationTokensView.ts +114 -26
- package/front_end/panels/application/ResourcesPanel.ts +1 -0
- package/front_end/panels/application/backgroundServiceView.css +2 -2
- package/front_end/panels/application/components/permissionsPolicySection.css +0 -4
- package/front_end/panels/application/frameDetailsReportView.css +0 -7
- package/front_end/panels/application/indexedDBViews.css +3 -3
- package/front_end/panels/application/privateVerificationTokensView.css +6 -0
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +1 -1
- package/front_end/panels/application/serviceWorkersView.css +2 -2
- package/front_end/panels/comments/CommentsPane.ts +1 -1
- package/front_end/panels/comments/commentsPane.css +1 -1
- package/front_end/panels/common/common.ts +0 -1
- package/front_end/panels/console/ConsoleView.ts +11 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +5 -1
- package/front_end/panels/console/consolePinPane.css +1 -1
- package/front_end/panels/console/consoleView.css +5 -4
- package/front_end/panels/elements/DOMTreeWidget.ts +47 -5
- package/front_end/panels/elements/layoutPane.css +0 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -0
- package/front_end/panels/emulation/deviceModeView.css +0 -1
- package/front_end/panels/issues/issuesTree.css +2 -2
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +34 -17
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +39 -17
- package/front_end/panels/layer_viewer/Layers3DView.ts +34 -13
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
- package/front_end/panels/layer_viewer/layers3DView.css +0 -4
- package/front_end/panels/media/playerListView.css +0 -18
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/network/NetworkWaterfallColumn.ts +22 -10
- package/front_end/panels/network/RequestPreviewView.ts +182 -63
- package/front_end/panels/network/SignedExchangeInfoView.ts +242 -158
- package/front_end/panels/network/networkConfigView.css +1 -1
- package/front_end/panels/network/networkLogView.css +2 -1
- package/front_end/panels/network/networkPanel.css +0 -5
- package/front_end/panels/network/networkTimingTable.css +1 -1
- package/front_end/panels/network/signedExchangeInfoView.css +12 -8
- package/front_end/panels/performance_monitor/performanceMonitor.css +2 -2
- package/front_end/panels/profiler/IsolateSelector.ts +31 -10
- package/front_end/panels/profiler/profilesPanel.css +0 -8
- package/front_end/panels/protocol_monitor/JSONEditor.css +1 -1
- package/front_end/panels/screencast/screencastView.css +2 -2
- package/front_end/panels/security/SecurityPanel.ts +474 -418
- package/front_end/panels/security/SecurityPanelSidebar.ts +68 -48
- package/front_end/panels/security/lockIcon.css +52 -50
- package/front_end/panels/security/mainView.css +149 -145
- package/front_end/panels/security/originView.css +117 -115
- package/front_end/panels/sensors/LocationsSettingsTab.ts +2 -50
- package/front_end/panels/sensors/locationsSettingsTab.css +1 -21
- package/front_end/panels/settings/AISettingsTab.ts +1 -2
- package/front_end/panels/settings/SettingsScreen.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +31 -6
- package/front_end/panels/sources/NavigatorView.ts +105 -31
- package/front_end/panels/sources/breakpointsView.css +2 -1
- package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +1 -0
- package/front_end/panels/timeline/TimelineLayersView.ts +108 -46
- package/front_end/panels/timeline/TimelinePanel.ts +4 -2
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +1 -1
- package/front_end/panels/timeline/components/networkRequestDetails.css +1 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +0 -7
- package/front_end/panels/web_audio/webAudio.css +1 -2
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/panels/whats_new/ReleaseNoteText.ts +6 -6
- package/front_end/panels/whats_new/resources/WNDT.md +6 -6
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/comments/CommentAnchorResolver.ts +45 -4
- package/front_end/ui/comments/CommentOverlayManager.ts +45 -12
- package/front_end/ui/components/buttons/FloatingButton.ts +2 -6
- package/front_end/ui/components/buttons/button.css +2 -2
- package/front_end/ui/components/buttons/floatingButton.css +0 -44
- package/front_end/ui/components/icon_button/iconButton.css +1 -1
- package/front_end/ui/components/markdown_view/markdownView.css +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +7 -5
- package/front_end/ui/legacy/InspectorDrawerView.ts +1 -0
- package/front_end/ui/legacy/InspectorView.ts +5 -1
- package/front_end/ui/legacy/PopoverHelper.ts +1 -0
- package/front_end/ui/legacy/RootView.ts +9 -3
- package/front_end/ui/legacy/SplitWidget.ts +1 -0
- package/front_end/ui/legacy/Treeoutline.ts +9 -0
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +130 -137
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -1
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +7 -6
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +2 -0
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +2 -2
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -10
- package/front_end/ui/legacy/filter.css +1 -1
- package/front_end/ui/legacy/infobar.css +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +2 -2
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +3 -3
- package/front_end/ui/legacy/listWidget.css +2 -7
- package/front_end/ui/legacy/softDropDownButton.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +2 -1
- package/front_end/ui/legacy/treeoutline.css +3 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +133 -0
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/package.json +1 -1
- package/front_end/Images/geminiInDevTools.png +0 -0
- package/front_end/Images/geminiInDevTools_2x.png +0 -0
- package/front_end/generated/InspectorBackendCommands.ts +0 -1690
- package/front_end/generated/protocol-mapping.d.ts +0 -5986
- package/front_end/generated/protocol-proxy-api.d.ts +0 -5452
- package/front_end/generated/protocol.ts +0 -23364
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +0 -193
- package/front_end/panels/common/geminiRebrandPromoDialog.css +0 -47
|
@@ -4,119 +4,121 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
7
|
+
@scope to (devtools-widget > *) {
|
|
8
|
+
.title-section {
|
|
9
|
+
padding: var(--sys-size-8) 0 var(--sys-size-11);
|
|
10
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.title-section-header {
|
|
14
|
+
padding-left: var(--sys-size-8);
|
|
15
|
+
padding-bottom: 10px;
|
|
16
|
+
font-size: var(--sys-typescale-body2-size);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:scope,
|
|
20
|
+
.security-origin-view {
|
|
21
|
+
overflow: hidden scroll;
|
|
22
|
+
display: block;
|
|
23
|
+
user-select: text;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.origin-view-section {
|
|
27
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
28
|
+
padding: var(--sys-size-6) var(--sys-size-4) var(--sys-size-6) var(--sys-size-11);
|
|
29
|
+
font-size: var(--sys-typescale-body4-size);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.origin-view-notes {
|
|
33
|
+
margin-top: var(--sys-size-2);
|
|
34
|
+
color: var(--sys-color-token-subtle);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.origin-view-section-notes {
|
|
38
|
+
margin-top: var(--sys-size-4);
|
|
39
|
+
color: var(--sys-color-token-subtle);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.origin-display {
|
|
43
|
+
font-size: var(--sys-typescale-body4-size);
|
|
44
|
+
padding-left: var(--sys-size-8);
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.title-section > .view-network-button {
|
|
50
|
+
padding: var(--sys-size-4) 0 0 var(--sys-size-8);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.origin-display devtools-icon {
|
|
54
|
+
width: var(--sys-size-8);
|
|
55
|
+
height: var(--sys-size-8);
|
|
56
|
+
margin-right: var(--sys-size-6);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.origin-view-section-title {
|
|
60
|
+
margin-top: var(--sys-size-3);
|
|
61
|
+
margin-bottom: var(--sys-size-3);
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.details-table {
|
|
66
|
+
border-spacing: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.details-table-row {
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
line-height: var(--sys-size-10);
|
|
73
|
+
vertical-align: top;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.details-table-row > td {
|
|
77
|
+
padding: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.details-table-row > td:first-child {
|
|
81
|
+
color: var(--sys-color-token-subtle);
|
|
82
|
+
width: calc(var(--sys-size-21) + 1em); /* 128px label column + 1em right padding */
|
|
83
|
+
text-align: right;
|
|
84
|
+
padding-right: 1em;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.details-table-row > td:nth-child(2) {
|
|
88
|
+
white-space: normal;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.sct-details .details-table .details-table-row:last-child td:last-child {
|
|
92
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
93
|
+
padding-bottom: var(--sys-size-5);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.sct-details .details-table:last-child .details-table-row:last-child td:last-child {
|
|
97
|
+
border-bottom: none;
|
|
98
|
+
padding-bottom: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.details-toggle {
|
|
102
|
+
margin-left: 126px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.details-table .empty-san {
|
|
106
|
+
color: var(--sys-color-state-disabled);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.details-table .san-entry {
|
|
110
|
+
display: block;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.truncated-san .truncated-entry {
|
|
114
|
+
display: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.origin-view-section:last-child {
|
|
118
|
+
border-bottom: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.devtools-link {
|
|
122
|
+
display: inline-flex;
|
|
123
|
+
}
|
|
122
124
|
}
|
|
@@ -184,55 +184,7 @@ export interface LocationDialogInput {
|
|
|
184
184
|
onValidateErrors: (errors: LocationValidationErrors) => void;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
export function renderEditorView(controls: EditorInputControls, errors?: LocationDialogInput['errors']
|
|
188
|
-
isDialog = false): LitTemplate {
|
|
189
|
-
if (!isDialog) {
|
|
190
|
-
// clang-format off
|
|
191
|
-
return html`
|
|
192
|
-
<div class="locations-edit-row">
|
|
193
|
-
<div class="locations-list-text locations-list-title">${i18nString(UIStrings.locationName)}</div>
|
|
194
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
195
|
-
<div class="locations-list-text">${i18nString(UIStrings.lat)}</div>
|
|
196
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
197
|
-
<div class="locations-list-text">${i18nString(UIStrings.long)}</div>
|
|
198
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
199
|
-
<div class="locations-list-text">${i18nString(UIStrings.timezoneId)}</div>
|
|
200
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
201
|
-
<div class="locations-list-text">${i18nString(UIStrings.locale)}</div>
|
|
202
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
203
|
-
<div class="locations-list-text">${i18nString(UIStrings.accuracy)}</div>
|
|
204
|
-
</div>
|
|
205
|
-
<div class="locations-edit-row">
|
|
206
|
-
<div class="locations-list-text locations-list-title locations-input-container">${controls.titleInput}</div>
|
|
207
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
208
|
-
<div class="locations-list-text locations-input-container">${controls.latInput}</div>
|
|
209
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
210
|
-
<div class="locations-list-text locations-list-text-longitude locations-input-container">${controls.longInput}</div>
|
|
211
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
212
|
-
<div class="locations-list-text locations-input-container">${controls.timezoneIdInput}</div>
|
|
213
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
214
|
-
<div class="locations-list-text locations-input-container">${controls.localeInput}</div>
|
|
215
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
216
|
-
<div class="locations-list-text locations-input-container">${controls.accuracyInput}</div>
|
|
217
|
-
</div>
|
|
218
|
-
${errors ? html`
|
|
219
|
-
<div class="locations-edit-row locations-error-row" role="alert">
|
|
220
|
-
<div class="locations-list-text locations-list-title locations-error-cell">${errors.title ?? nothing}</div>
|
|
221
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
222
|
-
<div class="locations-list-text locations-error-cell">${errors.lat ?? nothing}</div>
|
|
223
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
224
|
-
<div class="locations-list-text locations-list-text-longitude locations-error-cell">${errors.long ?? nothing}</div>
|
|
225
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
226
|
-
<div class="locations-list-text locations-error-cell">${errors.timezoneId ?? nothing}</div>
|
|
227
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
228
|
-
<div class="locations-list-text locations-error-cell">${errors.locale ?? nothing}</div>
|
|
229
|
-
<div class="locations-list-separator locations-list-separator-invisible"></div>
|
|
230
|
-
<div class="locations-list-text locations-error-cell">${errors.accuracy ?? nothing}</div>
|
|
231
|
-
</div>
|
|
232
|
-
` : nothing}`;
|
|
233
|
-
// clang-format on
|
|
234
|
-
}
|
|
235
|
-
|
|
187
|
+
export function renderEditorView(controls: EditorInputControls, errors?: LocationDialogInput['errors']): LitTemplate {
|
|
236
188
|
// clang-format off
|
|
237
189
|
return html`
|
|
238
190
|
<div class="editor-grid">
|
|
@@ -351,7 +303,7 @@ export function renderLocationDialog(input: LocationDialogInput): LitTemplate {
|
|
|
351
303
|
aria-label=${i18nString(UIStrings.close)}>
|
|
352
304
|
</devtools-button>
|
|
353
305
|
</div>
|
|
354
|
-
${renderEditorView(editorControls, input.errors
|
|
306
|
+
${renderEditorView(editorControls, input.errors)}
|
|
355
307
|
<div class="dialog-buttons">
|
|
356
308
|
<devtools-button
|
|
357
309
|
class="save-button"
|
|
@@ -30,7 +30,7 @@ devtools-list.locations-list,
|
|
|
30
30
|
.locations-list-text {
|
|
31
31
|
white-space: nowrap;
|
|
32
32
|
text-overflow: ellipsis;
|
|
33
|
-
flex-basis:
|
|
33
|
+
flex-basis: var(--sys-size-24);
|
|
34
34
|
user-select: none;
|
|
35
35
|
color: var(--sys-color-on-surface);
|
|
36
36
|
position: relative;
|
|
@@ -55,26 +55,6 @@ devtools-list.locations-list,
|
|
|
55
55
|
margin: 0 var(--sys-size-3);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.locations-list-separator-invisible {
|
|
59
|
-
visibility: hidden;
|
|
60
|
-
height: 100% !important; /* stylelint-disable-line declaration-no-important */
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.locations-edit-row {
|
|
64
|
-
display: flex;
|
|
65
|
-
flex-direction: row;
|
|
66
|
-
margin: var(--sys-size-4) 5px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.locations-edit-row input {
|
|
70
|
-
width: 100%;
|
|
71
|
-
text-align: inherit;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.locations-input-container {
|
|
75
|
-
padding: var(--sys-size-1);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
58
|
.settings-card-container-wrapper {
|
|
79
59
|
scrollbar-gutter: stable;
|
|
80
60
|
padding: var(--sys-size-8) 0;
|
|
@@ -660,8 +660,7 @@ export class AISettingsTab extends UI.Widget.VBox {
|
|
|
660
660
|
|
|
661
661
|
if (!this.#aiAssistanceSetting.unavailable) {
|
|
662
662
|
const aiAssistanceData: AiSettingParams = {
|
|
663
|
-
settingName: i18n.i18n.lockedString(
|
|
664
|
-
'AI assistance'),
|
|
663
|
+
settingName: i18n.i18n.lockedString('AI assistance'),
|
|
665
664
|
setting: this.#aiAssistanceSetting,
|
|
666
665
|
disabledReasons: this.#mapSettingDisabledReasons(this.#aiAssistanceSetting.disabledReasons),
|
|
667
666
|
iconName: AiAssistanceModel.AiUtils.getIconName(),
|
|
@@ -99,6 +99,7 @@ export const SETTINGS_SCREEN_DEFAULT_VIEW: SettingsScreenView = (
|
|
|
99
99
|
// clang-format off
|
|
100
100
|
render(
|
|
101
101
|
html`
|
|
102
|
+
<style>${settingsScreenStyles}</style>
|
|
102
103
|
<devtools-tabbed-pane
|
|
103
104
|
vertical
|
|
104
105
|
?focus-header=${input.focusTabHeader}
|
|
@@ -142,7 +143,6 @@ export class SettingsScreen extends UI.Widget.VBox implements UI.View.ViewLocati
|
|
|
142
143
|
constructor(view: SettingsScreenView = SETTINGS_SCREEN_DEFAULT_VIEW) {
|
|
143
144
|
super({useShadowDom: true});
|
|
144
145
|
this.#view = view;
|
|
145
|
-
this.registerRequiredCSS(settingsScreenStyles);
|
|
146
146
|
|
|
147
147
|
this.appendApplicableItems(UI.ViewManager.ViewLocationValues.SETTINGS_VIEW);
|
|
148
148
|
const keyBindsView = this.#views.find(v => v.viewId() === 'keybinds');
|
|
@@ -258,6 +258,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
258
258
|
|
|
259
259
|
#items: Item[] = [];
|
|
260
260
|
#focusedItem: Item|null = null;
|
|
261
|
+
#pendingAutoActivation = false;
|
|
261
262
|
#showIgnoreListed = false;
|
|
262
263
|
#showIgnoreListMessage = false;
|
|
263
264
|
#ignoreListCheckboxChecked = false;
|
|
@@ -354,6 +355,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
354
355
|
this.#showIgnoreListMessage = false;
|
|
355
356
|
this.#items = [];
|
|
356
357
|
this.#focusedItem = null;
|
|
358
|
+
this.#pendingAutoActivation = false;
|
|
357
359
|
UI.Context.Context.instance().setFlavor(StackTrace.StackTrace.DebuggableFrameFlavor, null);
|
|
358
360
|
return;
|
|
359
361
|
}
|
|
@@ -389,10 +391,13 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
389
391
|
|
|
390
392
|
if (this.maxAsyncStackChainDepth === defaultMaxAsyncStackChainDepth) {
|
|
391
393
|
this.#focusedItem = this.#firstVisibleItem() ?? (this.#items[0] ?? null);
|
|
392
|
-
|
|
394
|
+
const itemToActivate = this.#itemToAutoActivate();
|
|
395
|
+
if (itemToActivate &&
|
|
393
396
|
(UI.Context.Context.instance().flavor(QuickSourceView) ||
|
|
394
397
|
UI.Context.Context.instance().flavor(SourcesPanel))) {
|
|
395
|
-
this.activateItem(
|
|
398
|
+
this.activateItem(itemToActivate);
|
|
399
|
+
} else {
|
|
400
|
+
this.#pendingAutoActivation = Boolean(itemToActivate);
|
|
396
401
|
}
|
|
397
402
|
} else {
|
|
398
403
|
const activeItem = this.activeCallFrameItem();
|
|
@@ -401,6 +406,11 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
401
406
|
}
|
|
402
407
|
}
|
|
403
408
|
|
|
409
|
+
#itemToAutoActivate(): Item|null {
|
|
410
|
+
return this.#items.find(item => Boolean(item.frame) && this.#isItemVisible(item)) ??
|
|
411
|
+
this.#items.find(item => Boolean(item.frame)) ?? null;
|
|
412
|
+
}
|
|
413
|
+
|
|
404
414
|
#isItemVisible(item: Item|null): boolean {
|
|
405
415
|
if (!item || !this.#items.includes(item)) {
|
|
406
416
|
return false;
|
|
@@ -413,8 +423,9 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
413
423
|
}
|
|
414
424
|
|
|
415
425
|
#updateIgnoreListState(): void {
|
|
416
|
-
const
|
|
417
|
-
const
|
|
426
|
+
const nonHeaderItems = this.#items.filter(item => !item.isAsyncHeader);
|
|
427
|
+
const hasIgnoreListed = nonHeaderItems.some(item => item.isIgnoreListed);
|
|
428
|
+
const allIgnoreListed = nonHeaderItems.length > 0 && nonHeaderItems.every(item => item.isIgnoreListed);
|
|
418
429
|
|
|
419
430
|
if (allIgnoreListed) {
|
|
420
431
|
this.#showIgnoreListed = true;
|
|
@@ -426,6 +437,16 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
426
437
|
}
|
|
427
438
|
|
|
428
439
|
override performUpdate(): void {
|
|
440
|
+
if (this.#pendingAutoActivation &&
|
|
441
|
+
(UI.Context.Context.instance().flavor(QuickSourceView) || UI.Context.Context.instance().flavor(SourcesPanel))) {
|
|
442
|
+
const itemToActivate = this.#itemToAutoActivate();
|
|
443
|
+
if (itemToActivate) {
|
|
444
|
+
this.activateItem(itemToActivate);
|
|
445
|
+
} else {
|
|
446
|
+
this.#pendingAutoActivation = false;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
429
450
|
const viewInput: ViewInput = {
|
|
430
451
|
showIgnoreListMessage: this.#showIgnoreListMessage,
|
|
431
452
|
showIgnoreListedChecked: this.#ignoreListCheckboxChecked,
|
|
@@ -540,11 +561,12 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
540
561
|
}
|
|
541
562
|
|
|
542
563
|
private activateItem(item: Item): void {
|
|
564
|
+
this.#pendingAutoActivation = false;
|
|
543
565
|
const uiLocation = item.uiLocation;
|
|
544
566
|
if (!uiLocation) {
|
|
545
567
|
return;
|
|
546
568
|
}
|
|
547
|
-
if (this.#
|
|
569
|
+
if (this.#isItemVisible(item)) {
|
|
548
570
|
this.#focusedItem = item;
|
|
549
571
|
}
|
|
550
572
|
const debuggerCallFrame = item.frame;
|
|
@@ -556,7 +578,6 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
556
578
|
} else {
|
|
557
579
|
void Common.Revealer.reveal(uiLocation);
|
|
558
580
|
}
|
|
559
|
-
this.requestUpdate();
|
|
560
581
|
}
|
|
561
582
|
|
|
562
583
|
activeCallFrameItem(): Item|null {
|
|
@@ -593,6 +614,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
593
614
|
const newItem = this.#items[i];
|
|
594
615
|
if (newItem.frame) {
|
|
595
616
|
this.activateItem(newItem);
|
|
617
|
+
this.requestUpdate();
|
|
596
618
|
break;
|
|
597
619
|
}
|
|
598
620
|
}
|
|
@@ -605,6 +627,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
|
|
|
605
627
|
const newItem = this.#items[i];
|
|
606
628
|
if (newItem.frame) {
|
|
607
629
|
this.activateItem(newItem);
|
|
630
|
+
this.requestUpdate();
|
|
608
631
|
break;
|
|
609
632
|
}
|
|
610
633
|
}
|
|
@@ -671,6 +694,8 @@ export class Item {
|
|
|
671
694
|
const description = UI.UIUtils.asyncFragmentLabel(stackTrace, fragment);
|
|
672
695
|
const item = new Item(description);
|
|
673
696
|
item.isAsyncHeader = true;
|
|
697
|
+
item.isIgnoreListed =
|
|
698
|
+
fragment.frames.length > 0 && fragment.frames.every(frame => Boolean(frame.uiSourceCode?.isIgnoreListed()));
|
|
674
699
|
return item;
|
|
675
700
|
}
|
|
676
701
|
|