chrome-devtools-frontend 1.0.1656291 → 1.0.1657110
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/AUTHORS +2 -0
- package/docs/get_the_code.md +6 -6
- package/front_end/Tests.js +1 -1
- package/front_end/core/common/Settings.ts +0 -8
- package/front_end/core/host/Platform.ts +4 -0
- package/front_end/core/sdk/CSSMetadata.ts +11 -0
- package/front_end/core/sdk/CSSModel.ts +3 -0
- package/front_end/core/sdk/DOMModel.ts +44 -13
- package/front_end/core/sdk/DebuggerModel.ts +5 -4
- package/front_end/core/sdk/EmulationModel.ts +6 -4
- package/front_end/core/sdk/NetworkManager.ts +21 -14
- package/front_end/core/sdk/RuntimeModel.ts +1 -1
- package/front_end/core/sdk/SourceMapCache.ts +2 -4
- package/front_end/core/sdk/SourceMapManager.ts +8 -7
- package/front_end/core/sdk/TargetManager.ts +10 -0
- package/front_end/design_system_tokens.css +6 -0
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -11
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -1
- package/front_end/entrypoints/main/GlobalAiButton.ts +29 -35
- package/front_end/entrypoints/main/MainImpl.ts +1 -1
- package/front_end/entrypoints/main/SimpleApp.ts +0 -13
- package/front_end/entrypoints/main/main-meta.ts +2 -2
- package/front_end/entrypoints/node_app/app/NodeConnectionsPanel.ts +2 -3
- package/front_end/foundation/Universe.ts +44 -0
- package/front_end/generated/InspectorBackendCommands.ts +2 -2
- package/front_end/generated/protocol.ts +5 -5
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +2 -1
- package/front_end/models/crux-manager/CrUXManager.ts +16 -11
- package/front_end/models/emulation/DeviceModeModel.ts +43 -24
- package/front_end/models/live-metrics/LiveMetrics.ts +47 -23
- package/front_end/models/project_settings/ProjectSettingsModel.ts +2 -37
- package/front_end/models/workspace/FileManager.ts +9 -6
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +2 -1
- package/front_end/panels/application/ServiceWorkersView.ts +177 -163
- package/front_end/panels/application/components/StorageMetadataView.ts +7 -2
- package/front_end/panels/application/serviceWorkersView.css +8 -0
- package/front_end/panels/common/BadgeNotification.ts +1 -1
- package/front_end/panels/console/ConsoleInsightTeaser.ts +2 -1
- package/front_end/panels/elements/ElementsPanel.ts +35 -28
- package/front_end/panels/elements/ElementsTreeElement.ts +208 -143
- package/front_end/panels/elements/ElementsTreeOutline.ts +3 -2
- package/front_end/panels/elements/components/AdornerManager.ts +1 -0
- package/front_end/panels/elements/elements-meta.ts +3 -2
- package/front_end/panels/emulation/DeviceModeToolbar.ts +19 -19
- package/front_end/panels/explain/components/ConsoleInsight.ts +2 -1
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +13 -12
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +8 -7
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +6 -7
- package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +3 -2
- package/front_end/panels/settings/components/SyncSection.ts +2 -1
- package/front_end/panels/timeline/AppenderUtils.ts +12 -4
- package/front_end/panels/timeline/ThreadAppender.ts +3 -3
- package/front_end/panels/timeline/TimelinePanel.ts +5 -5
- package/front_end/panels/timeline/timelineFlameChartView.css +2 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/chromium/ahem/ahem.js +792 -0
- package/front_end/tsconfig.json +7 -1
- package/front_end/ui/legacy/ActionRegistration.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +109 -23
- package/front_end/ui/legacy/theme_support/ThemeSupport.ts +2 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
- package/package.json +1 -1
|
@@ -506,22 +506,24 @@ export class DeviceModeToolbar extends UI.Widget.Widget {
|
|
|
506
506
|
|
|
507
507
|
const device = this.model.device();
|
|
508
508
|
|
|
509
|
-
if (this.model.type()
|
|
510
|
-
|
|
511
|
-
|
|
509
|
+
if (this.model.type() !== EmulationModel.DeviceModeModel.Type.None) {
|
|
510
|
+
if (this.model.type() === EmulationModel.DeviceModeModel.Type.Device && device) {
|
|
511
|
+
this.lastMode.set(device, (this.model.mode() as EmulationModel.EmulatedDevices.Mode));
|
|
512
|
+
}
|
|
512
513
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
514
|
+
const value = this.persistenceSetting.get();
|
|
515
|
+
const currentMode = this.model.mode();
|
|
516
|
+
if (device) {
|
|
517
|
+
value.device = device.title;
|
|
518
|
+
value.orientation = currentMode ? currentMode.orientation : '';
|
|
519
|
+
value.mode = currentMode ? currentMode.title : '';
|
|
520
|
+
} else {
|
|
521
|
+
value.device = '';
|
|
522
|
+
value.orientation = '';
|
|
523
|
+
value.mode = '';
|
|
524
|
+
}
|
|
525
|
+
this.persistenceSetting.set(value);
|
|
523
526
|
}
|
|
524
|
-
this.persistenceSetting.set(value);
|
|
525
527
|
|
|
526
528
|
let modeButtonTitle = i18nString(UIStrings.rotate);
|
|
527
529
|
let modeButtonDisabled = false;
|
|
@@ -760,10 +762,8 @@ export class DeviceModeToolbar extends UI.Widget.Widget {
|
|
|
760
762
|
|
|
761
763
|
private appendOptionsMenuItems(contextMenu: UI.ContextMenu.ContextMenu): void {
|
|
762
764
|
const model = this.model;
|
|
763
|
-
appendToggleItem(
|
|
764
|
-
|
|
765
|
-
i18nString(UIStrings.showDeviceFrame), model.type() !== EmulationModel.DeviceModeModel.Type.Device,
|
|
766
|
-
'device-frame');
|
|
765
|
+
appendToggleItem(contextMenu.headerSection(), this.deviceOutlineSetting, i18nString(UIStrings.hideDeviceFrame),
|
|
766
|
+
i18nString(UIStrings.showDeviceFrame), !model.canShowDeviceFrame(), 'device-frame');
|
|
767
767
|
appendToggleItem(
|
|
768
768
|
contextMenu.headerSection(), this.showMediaInspectorSetting, i18nString(UIStrings.hideMediaQueries),
|
|
769
769
|
i18nString(UIStrings.showMediaQueries), undefined, 'media-queries');
|
|
@@ -792,7 +792,7 @@ export class DeviceModeToolbar extends UI.Widget.Widget {
|
|
|
792
792
|
disabled = model.type() === EmulationModel.DeviceModeModel.Type.None;
|
|
793
793
|
}
|
|
794
794
|
|
|
795
|
-
const isEnabled = setting.get();
|
|
795
|
+
const isEnabled = Boolean(setting.get() && !disabled);
|
|
796
796
|
const jslogContext = `${context}-${isEnabled ? 'disable' : 'enable'}`;
|
|
797
797
|
section.appendItem(
|
|
798
798
|
isEnabled ? title1 : title2, setting.set.bind(setting, !setting.get()), {disabled, jslogContext});
|
|
@@ -861,7 +861,8 @@ export class ConsoleInsight extends UI.Widget.Widget {
|
|
|
861
861
|
// on -> entrypoints are shown, and console insights can be generated
|
|
862
862
|
#getConsoleInsightsEnabledSetting(): Common.Settings.Setting<boolean>|undefined {
|
|
863
863
|
try {
|
|
864
|
-
return Common.Settings.moduleSetting('console-insights-enabled') as
|
|
864
|
+
return Common.Settings.Settings.instance().moduleSetting('console-insights-enabled') as
|
|
865
|
+
Common.Settings.Setting<boolean>;
|
|
865
866
|
} catch {
|
|
866
867
|
return;
|
|
867
868
|
}
|
|
@@ -167,6 +167,7 @@ export interface EventTypes {
|
|
|
167
167
|
|
|
168
168
|
export class NetworkThrottlingSelect extends Common.ObjectWrapper.eventMixin<EventTypes, typeof UI.Widget.Widget>(
|
|
169
169
|
UI.Widget.Widget) {
|
|
170
|
+
readonly #settings: Common.Settings.Settings;
|
|
170
171
|
#recommendedConditions: SDK.NetworkManager.Conditions|null = null;
|
|
171
172
|
#jslogContext?: string;
|
|
172
173
|
#currentConditions: SDK.NetworkManager.ThrottlingConditions|undefined;
|
|
@@ -185,16 +186,16 @@ export class NetworkThrottlingSelect extends Common.ObjectWrapper.eventMixin<Eve
|
|
|
185
186
|
return select;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
|
-
constructor(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
view = DEFAULT_VIEW) {
|
|
189
|
+
constructor(element?: HTMLElement, options: {
|
|
190
|
+
title?: string,
|
|
191
|
+
jslogContext?: string,
|
|
192
|
+
currentConditions?: SDK.NetworkManager.Conditions,
|
|
193
|
+
includeBlocking?: true,
|
|
194
|
+
} = {},
|
|
195
|
+
settings = Common.Settings.Settings.instance(), view = DEFAULT_VIEW) {
|
|
196
196
|
super(element);
|
|
197
|
-
|
|
197
|
+
this.#settings = settings;
|
|
198
|
+
SDK.NetworkManager.customUserNetworkConditionsSetting(settings).addChangeListener(this.requestUpdate, this);
|
|
198
199
|
this.#jslogContext = options.jslogContext;
|
|
199
200
|
this.#currentConditions = options.currentConditions;
|
|
200
201
|
this.#title = options.title;
|
|
@@ -258,7 +259,7 @@ export class NetworkThrottlingSelect extends Common.ObjectWrapper.eventMixin<Eve
|
|
|
258
259
|
const multitargetNetworkManager = SDK.NetworkManager.MultitargetNetworkManager.instance();
|
|
259
260
|
|
|
260
261
|
if (bind) {
|
|
261
|
-
this.#jslogContext = SDK.NetworkManager.activeNetworkThrottlingKeySetting().name;
|
|
262
|
+
this.#jslogContext = SDK.NetworkManager.activeNetworkThrottlingKeySetting(this.#settings).name;
|
|
262
263
|
ThrottlingManager.instance(); // Instantiate the throttling manager to connect network manager with the setting
|
|
263
264
|
this.#currentConditions = multitargetNetworkManager.networkConditions();
|
|
264
265
|
|
|
@@ -298,10 +299,10 @@ export class NetworkThrottlingSelect extends Common.ObjectWrapper.eventMixin<Eve
|
|
|
298
299
|
}
|
|
299
300
|
|
|
300
301
|
override performUpdate(): void {
|
|
301
|
-
const customNetworkConditionsSetting = SDK.NetworkManager.customUserNetworkConditionsSetting();
|
|
302
|
+
const customNetworkConditionsSetting = SDK.NetworkManager.customUserNetworkConditionsSetting(this.#settings);
|
|
302
303
|
const customNetworkConditions = customNetworkConditionsSetting.get();
|
|
303
304
|
const onAddCustomConditions = (): void => {
|
|
304
|
-
void Common.Revealer.reveal(
|
|
305
|
+
void Common.Revealer.reveal(customNetworkConditionsSetting);
|
|
305
306
|
};
|
|
306
307
|
|
|
307
308
|
const onSelect = (conditions: SDK.NetworkManager.ThrottlingConditions): void => {
|
|
@@ -126,7 +126,7 @@ export class ThrottlingManager extends Common.ObjectWrapper.ObjectWrapper<Thrott
|
|
|
126
126
|
return this.#hardwareConcurrencyOverrideEnabled;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
private constructor() {
|
|
129
|
+
private constructor(settings: Common.Settings.Settings) {
|
|
130
130
|
super();
|
|
131
131
|
this.cpuThrottlingManager = SDK.CPUThrottlingManager.CPUThrottlingManager.instance();
|
|
132
132
|
this.cpuThrottlingManager.addEventListener(
|
|
@@ -134,12 +134,12 @@ export class ThrottlingManager extends Common.ObjectWrapper.ObjectWrapper<Thrott
|
|
|
134
134
|
(event: Common.EventTarget.EventTargetEvent<number>) => this.onCPUThrottlingRateChangedOnSDK(event.data));
|
|
135
135
|
this.cpuThrottlingControls = new Set();
|
|
136
136
|
this.cpuThrottlingOptions = ThrottlingPresets.cpuThrottlingPresets;
|
|
137
|
-
this.customNetworkConditionsSetting = SDK.NetworkManager.customUserNetworkConditionsSetting();
|
|
137
|
+
this.customNetworkConditionsSetting = SDK.NetworkManager.customUserNetworkConditionsSetting(settings);
|
|
138
138
|
|
|
139
|
-
this.currentNetworkThrottlingConditionKeySetting = SDK.NetworkManager.activeNetworkThrottlingKeySetting();
|
|
139
|
+
this.currentNetworkThrottlingConditionKeySetting = SDK.NetworkManager.activeNetworkThrottlingKeySetting(settings);
|
|
140
140
|
|
|
141
141
|
this.calibratedCpuThrottlingSetting =
|
|
142
|
-
|
|
142
|
+
settings.createSetting<PanelsCommon.CPUThrottlingOption.CalibratedCPUThrottling>(
|
|
143
143
|
'calibrated-cpu-throttling', {}, Common.Settings.SettingStorageType.GLOBAL);
|
|
144
144
|
this.calibratedCpuThrottlingSetting.addChangeListener(this.onCalibratedSettingChanged, this);
|
|
145
145
|
|
|
@@ -168,10 +168,11 @@ export class ThrottlingManager extends Common.ObjectWrapper.ObjectWrapper<Thrott
|
|
|
168
168
|
return custom ?? SDK.NetworkManager.NoThrottlingConditions;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
static instance(opts: {forceNew: boolean|null} = {forceNew: null}):
|
|
172
|
-
|
|
171
|
+
static instance(opts: {forceNew: boolean|null, settings?: Common.Settings.Settings} = {forceNew: null}):
|
|
172
|
+
ThrottlingManager {
|
|
173
|
+
const {forceNew, settings} = opts;
|
|
173
174
|
if (!throttlingManagerInstance || forceNew) {
|
|
174
|
-
throttlingManagerInstance = new ThrottlingManager();
|
|
175
|
+
throttlingManagerInstance = new ThrottlingManager(settings ?? Common.Settings.Settings.instance());
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
return throttlingManagerInstance;
|
|
@@ -230,10 +230,9 @@ export class CPUThrottlingCard {
|
|
|
230
230
|
private state: 'cta'|'prompting'|'calibrating' = 'cta';
|
|
231
231
|
private warnings: string[] = [];
|
|
232
232
|
|
|
233
|
-
constructor() {
|
|
234
|
-
this.setting =
|
|
235
|
-
Common.Settings.
|
|
236
|
-
'calibrated-cpu-throttling', {}, Common.Settings.SettingStorageType.GLOBAL);
|
|
233
|
+
constructor(settings: Common.Settings.Settings) {
|
|
234
|
+
this.setting = settings.createSetting<PanelsCommon.CPUThrottlingOption.CalibratedCPUThrottling>(
|
|
235
|
+
'calibrated-cpu-throttling', {}, Common.Settings.SettingStorageType.GLOBAL);
|
|
237
236
|
|
|
238
237
|
this.element = document.createElement('devtools-card');
|
|
239
238
|
this.element.heading = i18nString(UIStrings.cpuThrottlingPresets);
|
|
@@ -475,7 +474,7 @@ export class ThrottlingSettingsTab extends UI.Widget.VBox implements
|
|
|
475
474
|
*/
|
|
476
475
|
#customUserConditionsCount: number;
|
|
477
476
|
|
|
478
|
-
constructor() {
|
|
477
|
+
constructor(settings: Common.Settings.Settings) {
|
|
479
478
|
super({
|
|
480
479
|
jslog: `${VisualLogging.pane('throttling-conditions')}`,
|
|
481
480
|
useShadowDom: true,
|
|
@@ -486,7 +485,7 @@ export class ThrottlingSettingsTab extends UI.Widget.VBox implements
|
|
|
486
485
|
this.contentElement.createChild('div', 'settings-card-container-wrapper').createChild('div');
|
|
487
486
|
settingsContent.classList.add('settings-card-container', 'throttling-conditions-settings');
|
|
488
487
|
|
|
489
|
-
this.cpuThrottlingCard = new CPUThrottlingCard();
|
|
488
|
+
this.cpuThrottlingCard = new CPUThrottlingCard(settings);
|
|
490
489
|
settingsContent.append(this.cpuThrottlingCard.element);
|
|
491
490
|
|
|
492
491
|
const addButton = new Buttons.Button.Button();
|
|
@@ -512,7 +511,7 @@ export class ThrottlingSettingsTab extends UI.Widget.VBox implements
|
|
|
512
511
|
const customContainer = createProfilesCard(i18nString(UIStrings.customProfiles), this.customList, settingsContent);
|
|
513
512
|
customContainer.appendChild(addButton);
|
|
514
513
|
|
|
515
|
-
this.customUserConditions = SDK.NetworkManager.customUserNetworkConditionsSetting();
|
|
514
|
+
this.customUserConditions = SDK.NetworkManager.customUserNetworkConditionsSetting(settings);
|
|
516
515
|
this.customUserConditions.addChangeListener(this.conditionsUpdated, this);
|
|
517
516
|
|
|
518
517
|
const customConditions = this.customUserConditions.get();
|
|
@@ -62,9 +62,10 @@ UI.ViewManager.registerViewExtension({
|
|
|
62
62
|
title: i18nLazyString(UIStrings.throttling),
|
|
63
63
|
commandPrompt: i18nLazyString(UIStrings.showThrottling),
|
|
64
64
|
order: 35,
|
|
65
|
-
async loadView() {
|
|
65
|
+
async loadView(universe) {
|
|
66
66
|
const MobileThrottling = await loadMobileThrottlingModule();
|
|
67
|
-
|
|
67
|
+
const {settings} = universe;
|
|
68
|
+
return new MobileThrottling.ThrottlingSettingsTab.ThrottlingSettingsTab(settings);
|
|
68
69
|
},
|
|
69
70
|
settings: [
|
|
70
71
|
'custom-network-conditions',
|
|
@@ -276,7 +276,8 @@ export class SyncSection extends UI.Widget.Widget {
|
|
|
276
276
|
super(element);
|
|
277
277
|
this.#view = view;
|
|
278
278
|
this.#receiveBadgesSetting = Common.Settings.Settings.instance().moduleSetting('receive-gdp-badges');
|
|
279
|
-
this.#syncSetting =
|
|
279
|
+
this.#syncSetting =
|
|
280
|
+
Common.Settings.Settings.instance().moduleSetting('sync-preferences') as Common.Settings.Setting<boolean>;
|
|
280
281
|
}
|
|
281
282
|
|
|
282
283
|
override wasShown(): void {
|
|
@@ -56,13 +56,15 @@ export function buildGroupStyle(extra?: Partial<PerfUI.FlameChart.GroupStyle>):
|
|
|
56
56
|
* @param style the GroupStyle for the track header.
|
|
57
57
|
* @param selectable if the track is selectable.
|
|
58
58
|
* @param expanded if the track is expanded.
|
|
59
|
-
* @param track this is set only when `selectable` is true, and it is used for selecting a track in the details panel.
|
|
60
59
|
* @param showStackContextMenu whether menu with options to merge/collapse entries in track is shown.
|
|
60
|
+
* @param fullTrackName a full, non-truncated description of the track to be shown in the tooltip on hover.
|
|
61
|
+
* @param url the raw URL of the track, if applicable, used for right-click copy actions.
|
|
61
62
|
* @returns the group that built from the give data
|
|
62
63
|
*/
|
|
63
|
-
export function buildTrackHeader(
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
export function buildTrackHeader(jslogContext: VisualLoggingTrackName|null, startLevel: number, name: string,
|
|
65
|
+
style: PerfUI.FlameChart.GroupStyle, selectable: boolean, expanded?: boolean,
|
|
66
|
+
showStackContextMenu?: boolean, fullTrackName?: string,
|
|
67
|
+
url?: string): PerfUI.FlameChart.Group {
|
|
66
68
|
const group: PerfUI.FlameChart.Group = {
|
|
67
69
|
startLevel,
|
|
68
70
|
name: name as Common.UIString.LocalizedString,
|
|
@@ -74,6 +76,12 @@ export function buildTrackHeader(
|
|
|
74
76
|
if (jslogContext !== null) {
|
|
75
77
|
group.jslogContext = jslogContext;
|
|
76
78
|
}
|
|
79
|
+
if (fullTrackName !== undefined) {
|
|
80
|
+
group.fullTrackName = fullTrackName;
|
|
81
|
+
}
|
|
82
|
+
if (url !== undefined) {
|
|
83
|
+
group.url = url;
|
|
84
|
+
}
|
|
77
85
|
return group;
|
|
78
86
|
}
|
|
79
87
|
|
|
@@ -265,9 +265,9 @@ export class ThreadAppender implements TrackAppender {
|
|
|
265
265
|
style.nestingLevel = this.#headerNestingLevel;
|
|
266
266
|
}
|
|
267
267
|
const visualLoggingName = this.#visualLoggingNameForThread();
|
|
268
|
-
const group = buildTrackHeader(
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
const group = buildTrackHeader(visualLoggingName, currentLevel, this.trackName(), style, /* selectable= */ true,
|
|
269
|
+
this.#expanded,
|
|
270
|
+
/* showStackContextMenu= */ true, this.trackName(), this.#url || undefined);
|
|
271
271
|
this.#compatibilityBuilder.registerTrackForGroup(group, this);
|
|
272
272
|
}
|
|
273
273
|
|
|
@@ -1162,7 +1162,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
1162
1162
|
}
|
|
1163
1163
|
|
|
1164
1164
|
#setupNavigationSetting(): HTMLElement {
|
|
1165
|
-
const currentNavSetting = Common.Settings.moduleSetting('flamechart-selected-navigation').get();
|
|
1165
|
+
const currentNavSetting = Common.Settings.Settings.instance().moduleSetting('flamechart-selected-navigation').get();
|
|
1166
1166
|
const hideTheDialogForTests: string|null = localStorage.getItem('hide-shortcuts-dialog-for-test');
|
|
1167
1167
|
const userHadShortcutsDialogOpenedOnce = this.#userHadShortcutsDialogOpenedOnce.get();
|
|
1168
1168
|
|
|
@@ -1189,11 +1189,11 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
1189
1189
|
// Change EventListener is only triggered when the radio button is selected
|
|
1190
1190
|
this.#modernNavRadioButton.radio.addEventListener('change', () => {
|
|
1191
1191
|
this.#shortcutsDialog.data = {shortcuts: this.#getShortcutsInfo(/* isNavClassic */ false)};
|
|
1192
|
-
Common.Settings.moduleSetting('flamechart-selected-navigation').set('modern');
|
|
1192
|
+
Common.Settings.Settings.instance().moduleSetting('flamechart-selected-navigation').set('modern');
|
|
1193
1193
|
});
|
|
1194
1194
|
this.#classicNavRadioButton.radio.addEventListener('change', () => {
|
|
1195
1195
|
this.#shortcutsDialog.data = {shortcuts: this.#getShortcutsInfo(/* isNavClassic */ true)};
|
|
1196
|
-
Common.Settings.moduleSetting('flamechart-selected-navigation').set('classic');
|
|
1196
|
+
Common.Settings.Settings.instance().moduleSetting('flamechart-selected-navigation').set('classic');
|
|
1197
1197
|
});
|
|
1198
1198
|
|
|
1199
1199
|
this.#navigationRadioButtons.appendChild(this.#modernNavRadioButton.label);
|
|
@@ -1204,7 +1204,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
1206
|
#updateNavigationSettingSelection(): void {
|
|
1207
|
-
const currentNavSetting = Common.Settings.moduleSetting('flamechart-selected-navigation').get();
|
|
1207
|
+
const currentNavSetting = Common.Settings.Settings.instance().moduleSetting('flamechart-selected-navigation').get();
|
|
1208
1208
|
if (currentNavSetting === 'classic') {
|
|
1209
1209
|
this.#classicNavRadioButton.radio.checked = true;
|
|
1210
1210
|
Host.userMetrics.navigationSettingAtFirstTimelineLoad(
|
|
@@ -2237,7 +2237,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
2237
2237
|
// Logging the setting on the first timeline load will allow us to get an estimate number of people using each option.
|
|
2238
2238
|
if (this.#traceEngineModel.size() === 1) {
|
|
2239
2239
|
this.#setupNavigationSetting();
|
|
2240
|
-
if (Common.Settings.moduleSetting('flamechart-selected-navigation').get() === 'classic') {
|
|
2240
|
+
if (Common.Settings.Settings.instance().moduleSetting('flamechart-selected-navigation').get() === 'classic') {
|
|
2241
2241
|
Host.userMetrics.navigationSettingAtFirstTimelineLoad(
|
|
2242
2242
|
Host.UserMetrics.TimelineNavigationSetting.CLASSIC_AT_SESSION_FIRST_TRACE);
|
|
2243
2243
|
} else {
|
|
@@ -146,7 +146,8 @@
|
|
|
146
146
|
pointer-events: none;
|
|
147
147
|
padding: var(--sys-size-3) var(--sys-size-4);
|
|
148
148
|
border-radius: var(--sys-shape-corner-extra-small);
|
|
149
|
-
white-space:
|
|
149
|
+
white-space: pre-wrap;
|
|
150
|
+
word-break: break-all;
|
|
150
151
|
max-width: 80%;
|
|
151
152
|
box-shadow: var(--sys-elevation-level2);
|
|
152
153
|
}
|
|
@@ -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: 5b4c0fb18c574481d5449ad96d165caf343e8be8
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|