chrome-devtools-frontend 1.0.1589336 → 1.0.1590494

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.
Files changed (44) hide show
  1. package/front_end/core/common/Settings.ts +30 -1
  2. package/front_end/generated/Deprecation.ts +7 -0
  3. package/front_end/generated/InspectorBackendCommands.ts +9 -3
  4. package/front_end/generated/protocol-mapping.d.ts +9 -0
  5. package/front_end/generated/protocol-proxy-api.d.ts +7 -0
  6. package/front_end/generated/protocol.ts +98 -0
  7. package/front_end/models/javascript_metadata/NativeFunctions.js +48 -0
  8. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +140 -32
  9. package/front_end/panels/ai_assistance/README.md +71 -0
  10. package/front_end/panels/ai_assistance/aiAssistancePanel.css +5 -0
  11. package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
  12. package/front_end/panels/ai_assistance/components/ChatMessage.ts +110 -7
  13. package/front_end/panels/ai_assistance/components/ChatView.ts +10 -0
  14. package/front_end/panels/ai_assistance/components/WalkthroughView.ts +208 -0
  15. package/front_end/panels/ai_assistance/components/chatMessage.css +2 -2
  16. package/front_end/panels/ai_assistance/components/walkthroughView.css +121 -0
  17. package/front_end/panels/application/DeviceBoundSessionsView.ts +64 -2
  18. package/front_end/panels/console/ConsoleView.ts +8 -8
  19. package/front_end/panels/console/console-meta.ts +10 -6
  20. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +14 -14
  21. package/front_end/panels/elements/ComputedStyleWidget.ts +27 -22
  22. package/front_end/panels/elements/ElementsTreeElement.ts +56 -2
  23. package/front_end/panels/elements/ElementsTreeOutline.ts +2 -0
  24. package/front_end/panels/elements/StyleEditorWidget.ts +12 -12
  25. package/front_end/panels/elements/StylePropertiesSection.ts +65 -64
  26. package/front_end/panels/elements/StylePropertyTreeElement.ts +138 -135
  27. package/front_end/panels/elements/StylesContainer.ts +57 -0
  28. package/front_end/panels/elements/StylesSidebarPane.ts +2 -1
  29. package/front_end/panels/layer_viewer/Layers3DView.ts +2 -2
  30. package/front_end/panels/network/RequestInitiatorView.ts +3 -2
  31. package/front_end/panels/timeline/timeline-meta.ts +4 -4
  32. package/front_end/panels/whats_new/ReleaseNoteText.ts +10 -16
  33. package/front_end/panels/whats_new/resources/WNDT.md +6 -6
  34. package/front_end/third_party/chromium/README.chromium +1 -1
  35. package/front_end/ui/components/markdown_view/MarkdownView.ts +5 -6
  36. package/front_end/ui/components/markdown_view/markdownView.css +6 -0
  37. package/front_end/ui/components/markdown_view/markdown_view.ts +0 -2
  38. package/front_end/ui/legacy/Treeoutline.ts +58 -10
  39. package/front_end/ui/legacy/Widget.ts +11 -1
  40. package/front_end/ui/legacy/inspectorCommon.css +2 -0
  41. package/front_end/ui/visual_logging/KnownContextValues.ts +11 -1
  42. package/package.json +1 -1
  43. package/front_end/ui/components/markdown_view/MarkdownLink.ts +0 -53
  44. package/front_end/ui/components/markdown_view/markdownLink.css +0 -11
@@ -0,0 +1,208 @@
1
+ // Copyright 2026 The Chromium Authors
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import * as i18n from '../../../core/i18n/i18n.js';
6
+ import * as Buttons from '../../../ui/components/buttons/buttons.js';
7
+ import * as Input from '../../../ui/components/input/input.js';
8
+ import type {MarkdownLitRenderer} from '../../../ui/components/markdown_view/MarkdownView.js';
9
+ import * as UI from '../../../ui/legacy/legacy.js';
10
+ import * as Lit from '../../../ui/lit/lit.js';
11
+
12
+ import chatMessageStyles from './chatMessage.css.js';
13
+ import {type ModelChatMessage, renderStep} from './ChatMessage.js';
14
+ import walkthroughViewStyles from './walkthroughView.css.js';
15
+
16
+ const {html, render} = Lit;
17
+
18
+ const UIStrings = {
19
+ /**
20
+ * @description Title for the close button in the walkthrough view.
21
+ */
22
+ close: 'Close',
23
+ /**
24
+ * @description Title for the walkthrough view.
25
+ */
26
+ title: 'Investigation steps',
27
+ /**
28
+ * @description Title for the inline walkthrough view.
29
+ */
30
+ inlineTitle: 'Show thinking',
31
+ } as const;
32
+ const str_ = i18n.i18n.registerUIStrings('panels/ai_assistance/components/WalkthroughView.ts', UIStrings);
33
+ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
34
+
35
+ export interface ViewInput {
36
+ message: ModelChatMessage|null;
37
+ isLoading: boolean;
38
+ markdownRenderer: MarkdownLitRenderer;
39
+ isInlined: boolean;
40
+ isExpanded: boolean;
41
+ onToggle: (isOpen: boolean) => void;
42
+ }
43
+
44
+ function renderInlineWalkthrough(input: ViewInput, stepsOutput: Lit.LitTemplate): Lit.LitTemplate {
45
+ if (!input.isInlined) {
46
+ return Lit.nothing;
47
+ }
48
+
49
+ function onToggle(event: Event): void {
50
+ input.onToggle((event.target as HTMLDetailsElement).open);
51
+ }
52
+
53
+ // clang-format off
54
+ return html`
55
+ <details class="walkthrough-inline" ?open=${input.isExpanded} @toggle=${onToggle}>
56
+ <summary>
57
+ ${i18nString(UIStrings.inlineTitle)}
58
+ <devtools-icon name="chevron-down"></devtools-icon>
59
+ </summary>
60
+ ${stepsOutput}
61
+ </details>
62
+ `;
63
+ // clang-format on
64
+ }
65
+
66
+ function renderSidebarWalkthrough(input: ViewInput, stepsOutput: Lit.LitTemplate, stepsCount: number): Lit.LitTemplate {
67
+ if (input.isInlined) {
68
+ return Lit.nothing;
69
+ }
70
+
71
+ // clang-format off
72
+ return html`
73
+ <div class="walkthrough-view">
74
+ <div class="walkthrough-header">
75
+ <div class="walkthrough-title">${i18nString(UIStrings.title)}</div>
76
+ <devtools-button
77
+ .data=${{
78
+ variant: Buttons.Button.Variant.TOOLBAR,
79
+ iconName: 'right-panel-open',
80
+ title: i18nString(UIStrings.close),
81
+ jslogContext: 'close-walkthrough',
82
+ } as Buttons.Button.ButtonData}
83
+ @click=${() => input.onToggle(false)}
84
+ ></devtools-button>
85
+ </div>
86
+ ${stepsOutput}
87
+ ${stepsCount === 0 ? html`
88
+ <div class="empty-state">
89
+ <p>No walkthrough steps available yet.</p>
90
+ </div>
91
+ ` : Lit.nothing}
92
+ </div>
93
+ `;
94
+ // clang-format on
95
+ }
96
+
97
+ export const DEFAULT_VIEW = (
98
+ input: ViewInput,
99
+ _output: null,
100
+ target: HTMLElement|DocumentFragment,
101
+ ): void => {
102
+ const steps = input.message?.parts.filter(t => t.type === 'step')?.map(p => p.step) ?? [];
103
+
104
+ // clang-format off
105
+ const stepsOutput = steps.length > 0 ? html`
106
+ <div class="steps-container">
107
+ ${steps.map((step, index) => html`
108
+ <div class="step-wrapper">
109
+ ${renderStep({
110
+ step,
111
+ isLoading: input.isLoading,
112
+ markdownRenderer: input.markdownRenderer,
113
+ isLast: index === steps.length - 1
114
+ })}
115
+ </div>
116
+ `)}
117
+ </div>
118
+ ` : Lit.nothing;
119
+
120
+ render(html`
121
+ <style>
122
+ ${Input.textInputStyles}
123
+ ${chatMessageStyles}
124
+ ${walkthroughViewStyles}
125
+ </style>
126
+ ${input.isInlined ? renderInlineWalkthrough(input, stepsOutput)
127
+ : renderSidebarWalkthrough(input, stepsOutput, steps.length)
128
+ }`, target);
129
+ // clang-format on
130
+ };
131
+
132
+ export type View = typeof DEFAULT_VIEW;
133
+
134
+ export class WalkthroughView extends UI.Widget.Widget {
135
+ #view: View;
136
+
137
+ #message: ModelChatMessage|null = null;
138
+ // TODO(b/487921187): fix loading state - also unsure if we need this vs
139
+ // looking at the loading state in the message's steps.
140
+ #isLoading = false;
141
+ #markdownRenderer: MarkdownLitRenderer|null = null;
142
+ #onToggle: (isOpen: boolean) => void = () => {};
143
+ #isInlined = false;
144
+ #isExpanded = false;
145
+
146
+ constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
147
+ super(element);
148
+ this.#view = view;
149
+ }
150
+
151
+ set isLoading(isLoading: boolean) {
152
+ this.#isLoading = isLoading;
153
+ this.requestUpdate();
154
+ }
155
+
156
+ get isLoading(): boolean {
157
+ return this.#isLoading;
158
+ }
159
+
160
+ get markdownRenderer(): MarkdownLitRenderer|null {
161
+ return this.#markdownRenderer;
162
+ }
163
+
164
+ set markdownRenderer(markdownRenderer: MarkdownLitRenderer|null) {
165
+ this.#markdownRenderer = markdownRenderer;
166
+ this.requestUpdate();
167
+ }
168
+
169
+ get message(): ModelChatMessage|null {
170
+ return this.#message;
171
+ }
172
+
173
+ set message(message: ModelChatMessage|null) {
174
+ this.#message = message;
175
+ this.requestUpdate();
176
+ }
177
+
178
+ set onToggle(onToggle: (isOpen: boolean) => void) {
179
+ this.#onToggle = onToggle;
180
+ this.requestUpdate();
181
+ }
182
+
183
+ set isInlined(isInlined: boolean) {
184
+ this.#isInlined = isInlined;
185
+ this.requestUpdate();
186
+ }
187
+
188
+ set isExpanded(isExpanded: boolean) {
189
+ this.#isExpanded = isExpanded;
190
+ this.requestUpdate();
191
+ }
192
+
193
+ override performUpdate(): void {
194
+ if (!this.#markdownRenderer) {
195
+ return;
196
+ }
197
+ this.#view(
198
+ {
199
+ isLoading: this.#isLoading,
200
+ markdownRenderer: this.#markdownRenderer,
201
+ onToggle: this.#onToggle,
202
+ isInlined: this.#isInlined,
203
+ isExpanded: this.#isExpanded,
204
+ message: this.#message,
205
+ },
206
+ null, this.contentElement);
207
+ }
208
+ }
@@ -246,7 +246,7 @@
246
246
  .step {
247
247
  width: fit-content;
248
248
  background-color: var(--sys-color-surface3);
249
- border-radius: var(--sys-size-6);
249
+ border-radius: 16px;
250
250
  position: relative;
251
251
 
252
252
  &.empty {
@@ -318,7 +318,7 @@
318
318
  }
319
319
 
320
320
  summary {
321
- border-radius: var(--sys-size-6);
321
+ border-radius: 16px;
322
322
  }
323
323
 
324
324
  .step-details {
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Copyright 2026 The Chromium Authors
3
+ * Use of this source code is governed by a BSD-style license that can be
4
+ * found in the LICENSE file.
5
+ */
6
+
7
+ @scope (devtools-widget) {
8
+ .walkthrough-view {
9
+ height: 100%;
10
+ background-color: var(--sys-color-cdt-base-container);
11
+ overflow: auto;
12
+ }
13
+ }
14
+
15
+ @scope (devtools-widget > *) {
16
+ .walkthrough-header {
17
+ display: flex;
18
+ justify-content: space-between;
19
+ align-items: center;
20
+ padding: 0 8px;
21
+ height: 35px;
22
+ border-bottom: 1px solid var(--sys-color-divider);
23
+ flex-shrink: 0;
24
+ }
25
+
26
+ .walkthrough-title {
27
+ font-size: 11px;
28
+ font-weight: 500;
29
+ color: var(--sys-color-on-surface);
30
+ }
31
+
32
+ .steps-container {
33
+ flex: 1;
34
+ overflow-y: auto;
35
+ padding: var(--sys-size-6);
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: var(--sys-size-6);
39
+ }
40
+
41
+ .step-wrapper {
42
+ display: flex;
43
+ flex-direction: column;
44
+ gap: var(--sys-size-5);
45
+ }
46
+
47
+ .step-container {
48
+ display: flex;
49
+ gap: var(--sys-size-5);
50
+ align-items: flex-start;
51
+ }
52
+
53
+ .step-icon {
54
+ color: var(--sys-color-on-surface-subtle);
55
+ width: var(--sys-size-8);
56
+ height: var(--sys-size-8);
57
+ flex-shrink: 0;
58
+ margin-top: var(--sys-size-2);
59
+ }
60
+
61
+ .step-content {
62
+ flex: 1;
63
+ font-size: 11px;
64
+ color: var(--sys-color-on-surface);
65
+ line-height: 1.4;
66
+ }
67
+
68
+ .empty-state {
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ flex: 1;
73
+ color: var(--sys-color-on-surface-subtle);
74
+ font-size: 11px;
75
+ }
76
+
77
+ .walkthrough-inline {
78
+ border-radius: var(--sys-size-5);
79
+ overflow: hidden;
80
+ background-color: var(--sys-color-surface1);
81
+ }
82
+
83
+ .walkthrough-inline summary {
84
+ display: flex;
85
+ align-items: center;
86
+ justify-content: space-between;
87
+ padding: var(--sys-size-5) var(--sys-size-6);
88
+ cursor: pointer;
89
+ background-color: transparent;
90
+ font-weight: 500;
91
+ font-size: 11px;
92
+ user-select: none;
93
+ list-style: none; /* Hide default triangle */
94
+ }
95
+
96
+ .walkthrough-inline summary::-webkit-details-marker {
97
+ display: none;
98
+ }
99
+
100
+ .walkthrough-inline summary:hover {
101
+ background-color: var(--sys-color-state-hover-on-subtle);
102
+ }
103
+
104
+ .walkthrough-inline .steps-container {
105
+ padding: var(--sys-size-6);
106
+ max-height: 300px; /* Limit height for inline view */
107
+ overflow-y: auto;
108
+ border-top: 1px solid var(--sys-color-divider);
109
+ background-color: transparent;
110
+ }
111
+
112
+ .walkthrough-inline > summary > devtools-icon {
113
+ width: var(--sys-size-8);
114
+ height: var(--sys-size-8);
115
+ transition: transform 0.2s;
116
+ }
117
+
118
+ .walkthrough-inline[open] > summary > devtools-icon {
119
+ transform: rotate(180deg);
120
+ }
121
+ }
@@ -8,6 +8,7 @@ import '../../ui/legacy/components/data_grid/data_grid.js';
8
8
  import type * as Common from '../../core/common/common.js';
9
9
  import * as i18n from '../../core/i18n/i18n.js';
10
10
  import * as Protocol from '../../generated/protocol.js';
11
+ import * as SourceFrame from '../../ui/legacy/components/source_frame/source_frame.js';
11
12
  import * as UI from '../../ui/legacy/legacy.js';
12
13
  import {Directives, html, nothing, render, type TemplateResult} from '../../ui/lit/lit.js';
13
14
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
@@ -198,6 +199,22 @@ const UIStrings = {
198
199
  *@description Label for the reason why a session was deleted.
199
200
  */
200
201
  deletionReason: 'Deletion reason',
202
+ /**
203
+ *@description Label for the URL of a failed network request.
204
+ */
205
+ failedRequestUrl: 'Failed request URL',
206
+ /**
207
+ *@description Label for the network error of a failed network request.
208
+ */
209
+ failedRequestNetError: 'Net error',
210
+ /**
211
+ *@description Label for the HTTP response error code of a failed network request.
212
+ */
213
+ failedRequestResponseCode: 'Response error code',
214
+ /**
215
+ *@description Label for the response body of a failed network request.
216
+ */
217
+ failedRequestResponseBody: 'Response body',
201
218
  /**
202
219
  *@description Explanation for an event outcome. Key refers to a cryptographic key.
203
220
  */
@@ -705,6 +722,35 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
705
722
  ` :
706
723
  html`<div class="device-bound-session-no-events-wrapper">${i18nString(UIStrings.noEvents)}</div>`}`;
707
724
 
725
+ const failedRequestDetailsGetter =
726
+ (failedRequest?: Protocol.Network.DeviceBoundSessionFailedRequest): TemplateResult|typeof nothing => {
727
+ if (!failedRequest) {
728
+ return nothing;
729
+ }
730
+ return html`${failedRequest.requestUrl && html`
731
+ <devtools-report-key>${i18nString(UIStrings.failedRequestUrl)}</devtools-report-key>
732
+ <devtools-report-value>${failedRequest.requestUrl}</devtools-report-value>
733
+ `}
734
+ ${failedRequest.netError && html`
735
+ <devtools-report-key>${i18nString(UIStrings.failedRequestNetError)}</devtools-report-key>
736
+ <devtools-report-value>${failedRequest.netError}</devtools-report-value>
737
+ `}
738
+ ${
739
+ failedRequest.responseError !== undefined ? html`
740
+ <devtools-report-key>${i18nString(UIStrings.failedRequestResponseCode)}</devtools-report-key>
741
+ <devtools-report-value>${failedRequest.responseError}</devtools-report-value>
742
+ ` :
743
+ nothing}
744
+ ${failedRequest.responseErrorBody && html`
745
+ <devtools-report-key>${i18nString(UIStrings.failedRequestResponseBody)}</devtools-report-key>
746
+ <devtools-report-value>
747
+ <devtools-widget .widgetConfig=${UI.Widget.widgetConfig(SourceFrame.JSONView.SearchableJsonView, {
748
+ jsonObject: tryParseJson(failedRequest.responseErrorBody),
749
+ })}></devtools-widget>
750
+ </devtools-report-value>
751
+ `}`;
752
+ };
753
+
708
754
  const creationEventDetails =
709
755
  selectedEvent?.creationEventDetails &&
710
756
  html`
@@ -715,7 +761,8 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
715
761
  <devtools-report-key>${i18nString(UIStrings.updatedSessionConfig)}</devtools-report-key>
716
762
  <devtools-report-value>${i18nString(UIStrings.yes)}</devtools-report-value>
717
763
  `}
718
- `;
764
+ ${failedRequestDetailsGetter(selectedEvent.creationEventDetails.failedRequest)}
765
+ `;
719
766
  const refreshEventDetails =
720
767
  selectedEvent?.refreshEventDetails &&
721
768
  html`
@@ -736,7 +783,8 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
736
783
  <devtools-report-key>${i18nString(UIStrings.updatedSessionConfig)}</devtools-report-key>
737
784
  <devtools-report-value>${i18nString(UIStrings.yes)}</devtools-report-value>
738
785
  `}
739
- `;
786
+ ${failedRequestDetailsGetter(selectedEvent.refreshEventDetails.failedRequest)}
787
+ `;
740
788
  const challengeEventDetails =
741
789
  selectedEvent?.challengeEventDetails &&
742
790
  html`
@@ -1105,3 +1153,17 @@ function boolToString(bool: boolean): string {
1105
1153
  function succeededToString(succeeded: boolean): string {
1106
1154
  return succeeded ? i18nString(UIStrings.success) : i18nString(UIStrings.error);
1107
1155
  }
1156
+
1157
+ function tryParseJson(body: string): object {
1158
+ let parsedBody;
1159
+ try {
1160
+ parsedBody = JSON.parse(body);
1161
+ } catch {
1162
+ return {body};
1163
+ }
1164
+
1165
+ if (typeof parsedBody === 'object' && parsedBody !== null) {
1166
+ return parsedBody;
1167
+ }
1168
+ return {body: parsedBody};
1169
+ }
@@ -141,7 +141,7 @@ const UIStrings = {
141
141
  /**
142
142
  * @description Text in Console View of the Console panel
143
143
  */
144
- hideNetwork: 'Hide network',
144
+ networkMessages: 'Network messages',
145
145
  /**
146
146
  * @description Tooltip text that appears on the setting when hovering over it in Console View of the Console panel
147
147
  */
@@ -473,8 +473,8 @@ export class ConsoleView extends UI.Widget.VBox implements
473
473
  const userActivationEvalSetting = Common.Settings.Settings.instance().moduleSetting('console-user-activation-eval');
474
474
  settingsPane.append(
475
475
  SettingsUI.SettingsUI.createSettingCheckbox(
476
- i18nString(UIStrings.hideNetwork), this.filter.hideNetworkMessagesSetting,
477
- this.filter.hideNetworkMessagesSetting.title()),
476
+ i18nString(UIStrings.networkMessages), this.filter.networkMessagesSetting,
477
+ this.filter.networkMessagesSetting.title()),
478
478
  SettingsUI.SettingsUI.createSettingCheckbox(
479
479
  i18nString(UIStrings.logXMLHttpRequests), monitoringXHREnabledSetting),
480
480
  SettingsUI.SettingsUI.createSettingCheckbox(
@@ -1733,7 +1733,7 @@ globalThis.Console.ConsoleView = ConsoleView;
1733
1733
  export class ConsoleViewFilter {
1734
1734
  private readonly filterChanged: () => void;
1735
1735
  messageLevelFiltersSetting: Common.Settings.Setting<LevelsMask>;
1736
- hideNetworkMessagesSetting: Common.Settings.Setting<boolean>;
1736
+ networkMessagesSetting: Common.Settings.Setting<boolean>;
1737
1737
  filterByExecutionContextSetting: Common.Settings.Setting<boolean>;
1738
1738
  private readonly suggestionBuilder: UI.FilterSuggestionBuilder.FilterSuggestionBuilder;
1739
1739
  readonly textFilterUI: UI.Toolbar.ToolbarInput;
@@ -1748,12 +1748,12 @@ export class ConsoleViewFilter {
1748
1748
  this.filterChanged = filterChangedCallback;
1749
1749
 
1750
1750
  this.messageLevelFiltersSetting = ConsoleViewFilter.levelFilterSetting();
1751
- this.hideNetworkMessagesSetting = Common.Settings.Settings.instance().moduleSetting('hide-network-messages');
1751
+ this.networkMessagesSetting = Common.Settings.Settings.instance().moduleSetting('network-messages');
1752
1752
  this.filterByExecutionContextSetting =
1753
1753
  Common.Settings.Settings.instance().moduleSetting('selected-context-filter-enabled');
1754
1754
 
1755
1755
  this.messageLevelFiltersSetting.addChangeListener(this.onFilterChanged.bind(this));
1756
- this.hideNetworkMessagesSetting.addChangeListener(this.onFilterChanged.bind(this));
1756
+ this.networkMessagesSetting.addChangeListener(this.onFilterChanged.bind(this));
1757
1757
  this.filterByExecutionContextSetting.addChangeListener(this.onFilterChanged.bind(this));
1758
1758
  UI.Context.Context.instance().addFlavorChangeListener(
1759
1759
  SDK.RuntimeModel.ExecutionContext, this.onFilterChanged, this);
@@ -1838,7 +1838,7 @@ export class ConsoleViewFilter {
1838
1838
  break;
1839
1839
  }
1840
1840
  }
1841
- if (this.hideNetworkMessagesSetting.get()) {
1841
+ if (!this.networkMessagesSetting.get()) {
1842
1842
  parsedFilters.push(
1843
1843
  {key: FilterType.Source, text: Protocol.Log.LogEntrySource.Network, negative: true, regex: undefined});
1844
1844
  }
@@ -1928,7 +1928,7 @@ export class ConsoleViewFilter {
1928
1928
  reset(): void {
1929
1929
  this.messageLevelFiltersSetting.set(ConsoleFilter.defaultLevelsFilterValue());
1930
1930
  this.filterByExecutionContextSetting.set(false);
1931
- this.hideNetworkMessagesSetting.set(false);
1931
+ this.networkMessagesSetting.set(true);
1932
1932
  this.textFilterUI.setValue('');
1933
1933
  this.onFilterChanged();
1934
1934
  }
@@ -36,9 +36,13 @@ const UIStrings = {
36
36
  /**
37
37
  * @description Title of a setting under the Console category that can be invoked through the Command Menu
38
38
  */
39
+ networkMessages: 'Network messages',
40
+ /**
41
+ * @description Title of an option under the Console category that can be invoked through the Command Menu
42
+ */
39
43
  hideNetworkMessages: 'Hide network messages',
40
44
  /**
41
- * @description Title of a setting under the Console category that can be invoked through the Command Menu
45
+ * @description Title of an option under the Console category that can be invoked through the Command Menu
42
46
  */
43
47
  showNetworkMessages: 'Show network messages',
44
48
  /**
@@ -244,18 +248,18 @@ UI.ActionRegistration.registerActionExtension({
244
248
  Common.Settings.registerSettingExtension({
245
249
  category: Common.Settings.SettingCategory.CONSOLE,
246
250
  storageType: Common.Settings.SettingStorageType.SYNCED,
247
- title: i18nLazyString(UIStrings.hideNetworkMessages),
248
- settingName: 'hide-network-messages',
251
+ title: i18nLazyString(UIStrings.networkMessages),
252
+ settingName: 'network-messages',
249
253
  settingType: Common.Settings.SettingType.BOOLEAN,
250
- defaultValue: false,
254
+ defaultValue: true,
251
255
  options: [
252
256
  {
253
257
  value: true,
254
- title: i18nLazyString(UIStrings.hideNetworkMessages),
258
+ title: i18nLazyString(UIStrings.showNetworkMessages),
255
259
  },
256
260
  {
257
261
  value: false,
258
- title: i18nLazyString(UIStrings.showNetworkMessages),
262
+ title: i18nLazyString(UIStrings.hideNetworkMessages),
259
263
  },
260
264
  ],
261
265
  });
@@ -13,7 +13,7 @@ import * as UI from '../../ui/legacy/legacy.js';
13
13
 
14
14
  import type {StylePropertiesSection} from './StylePropertiesSection.js';
15
15
  import type {StylePropertyTreeElement} from './StylePropertyTreeElement.js';
16
- import type {StylesSidebarPane} from './StylesSidebarPane.js';
16
+ import type {StylesContainer} from './StylesContainer.js';
17
17
 
18
18
  const UIStrings = {
19
19
  /**
@@ -89,7 +89,7 @@ export class BezierPopoverIcon {
89
89
  }
90
90
 
91
91
  this.originalPropertyText = this.treeElement.property.propertyText;
92
- this.treeElement.parentPane().setEditingStyle(true);
92
+ this.treeElement.stylesContainer().setEditingStyle(true);
93
93
  const uiLocation = Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance().propertyUILocation(
94
94
  this.treeElement.property, false /* forName */);
95
95
  if (uiLocation) {
@@ -118,7 +118,7 @@ export class BezierPopoverIcon {
118
118
 
119
119
  const propertyText = commitEdit ? this.treeElement.renderedPropertyText() : this.originalPropertyText || '';
120
120
  void this.treeElement.applyStyleText(propertyText, true);
121
- this.treeElement.parentPane().setEditingStyle(false);
121
+ this.treeElement.stylesContainer().setEditingStyle(false);
122
122
  delete this.originalPropertyText;
123
123
  }
124
124
  }
@@ -218,7 +218,7 @@ export class ColorSwatchPopoverIcon extends Common.ObjectWrapper.ObjectWrapper<C
218
218
  }
219
219
 
220
220
  this.originalPropertyText = this.treeElement.property.propertyText;
221
- this.treeElement.parentPane().setEditingStyle(true);
221
+ this.treeElement.stylesContainer().setEditingStyle(true);
222
222
  const uiLocation = Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance().propertyUILocation(
223
223
  this.treeElement.property, false /* forName */);
224
224
  if (uiLocation) {
@@ -297,7 +297,7 @@ export class ColorSwatchPopoverIcon extends Common.ObjectWrapper.ObjectWrapper<C
297
297
 
298
298
  const propertyText = commitEdit ? this.treeElement.renderedPropertyText() : this.originalPropertyText || '';
299
299
  void this.treeElement.applyStyleText(propertyText, true);
300
- this.treeElement.parentPane().setEditingStyle(false);
300
+ this.treeElement.stylesContainer().setEditingStyle(false);
301
301
  delete this.originalPropertyText;
302
302
 
303
303
  UI.Context.Context.instance().setFlavor(ColorSwatchPopoverIcon, null);
@@ -370,7 +370,7 @@ export class ShadowSwatchPopoverHelper extends Common.ObjectWrapper.ObjectWrappe
370
370
  }
371
371
 
372
372
  this.originalPropertyText = this.treeElement.property.propertyText;
373
- this.treeElement.parentPane().setEditingStyle(true);
373
+ this.treeElement.stylesContainer().setEditingStyle(true);
374
374
  const uiLocation = Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance().propertyUILocation(
375
375
  this.treeElement.property, false /* forName */);
376
376
  if (uiLocation) {
@@ -399,7 +399,7 @@ export class ShadowSwatchPopoverHelper extends Common.ObjectWrapper.ObjectWrappe
399
399
 
400
400
  const propertyText = commitEdit ? this.treeElement.renderedPropertyText() : this.originalPropertyText || '';
401
401
  void this.treeElement.applyStyleText(propertyText, true);
402
- this.treeElement.parentPane().setEditingStyle(false);
402
+ this.treeElement.stylesContainer().setEditingStyle(false);
403
403
  delete this.originalPropertyText;
404
404
  }
405
405
  }
@@ -408,7 +408,7 @@ export class FontEditorSectionManager {
408
408
  private readonly treeElementMap: Map<string, StylePropertyTreeElement>;
409
409
  private readonly swatchPopoverHelper: InlineEditor.SwatchPopoverHelper.SwatchPopoverHelper;
410
410
  private readonly section: StylePropertiesSection;
411
- private parentPane: StylesSidebarPane|null;
411
+ private stylesContainer: StylesContainer|null;
412
412
  private fontEditor: InlineEditor.FontEditor.FontEditor|null;
413
413
  private scrollerElement: Element|null;
414
414
  private readonly boundFontChanged:
@@ -423,7 +423,7 @@ export class FontEditorSectionManager {
423
423
 
424
424
  this.section = section;
425
425
 
426
- this.parentPane = null;
426
+ this.stylesContainer = null;
427
427
 
428
428
  this.fontEditor = null;
429
429
 
@@ -514,12 +514,12 @@ export class FontEditorSectionManager {
514
514
  }
515
515
  }
516
516
 
517
- async showPopover(iconElement: Element, parentPane: StylesSidebarPane): Promise<void> {
517
+ async showPopover(iconElement: Element, stylesContainer: StylesContainer): Promise<void> {
518
518
  if (this.swatchPopoverHelper.isShowing()) {
519
519
  this.swatchPopoverHelper.hide(true);
520
520
  return;
521
521
  }
522
- this.parentPane = parentPane;
522
+ this.stylesContainer = stylesContainer;
523
523
  const propertyValueMap = this.createPropertyValueMap();
524
524
  this.fontEditor = new InlineEditor.FontEditor.FontEditor(propertyValueMap);
525
525
  this.fontEditor.addEventListener(InlineEditor.FontEditor.Events.FONT_CHANGED, this.boundFontChanged);
@@ -530,7 +530,7 @@ export class FontEditorSectionManager {
530
530
  this.scrollerElement.addEventListener('scroll', this.boundOnScroll, false);
531
531
  }
532
532
 
533
- this.parentPane.setEditingStyle(true);
533
+ this.stylesContainer.setEditingStyle(true);
534
534
  }
535
535
 
536
536
  private onScroll(): void {
@@ -546,8 +546,8 @@ export class FontEditorSectionManager {
546
546
  this.fontEditor.removeEventListener(InlineEditor.FontEditor.Events.FONT_CHANGED, this.boundFontChanged);
547
547
  }
548
548
  this.fontEditor = null;
549
- if (this.parentPane) {
550
- this.parentPane.setEditingStyle(false);
549
+ if (this.stylesContainer) {
550
+ this.stylesContainer.setEditingStyle(false);
551
551
  }
552
552
  this.section.resetToolbars();
553
553
  this.section.onpopulate();