chrome-devtools-frontend 1.0.1682249 → 1.0.1684555
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 +1 -0
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +0 -7
- package/front_end/core/sdk/StorageBucketsModel.ts +0 -6
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +2 -1
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -5
- package/front_end/entrypoints/main/MainImpl.ts +6 -4
- package/front_end/entrypoints/main/main-meta.ts +9 -51
- package/front_end/foundation/Universe.ts +7 -0
- package/front_end/generated/InspectorBackendCommands.ts +12 -22
- package/front_end/generated/protocol-mapping.d.ts +9 -59
- package/front_end/generated/protocol-proxy-api.d.ts +7 -47
- package/front_end/generated/protocol.ts +105 -330
- package/front_end/models/ai_assistance/AiAgent2.ts +12 -4
- package/front_end/models/ai_assistance/AiConversation.ts +25 -7
- package/front_end/models/ai_assistance/agents/AiAgent.ts +11 -19
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +6 -6
- package/front_end/models/ai_assistance/ai_assistance.ts +4 -0
- package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +12 -6
- package/front_end/models/ai_assistance/tools/GetStorageValues.ts +1 -1
- package/front_end/models/ai_assistance/tools/ListStorageKeys.ts +1 -1
- package/front_end/models/ai_assistance/tools/RunLighthouse.ts +5 -8
- package/front_end/models/ai_assistance/tools/Tool.ts +19 -6
- package/front_end/models/issues_manager/DOMIssuesManager.ts +144 -0
- package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +13 -1
- package/front_end/models/issues_manager/GenericIssue.ts +14 -2
- package/front_end/models/issues_manager/IssuesManager.ts +0 -1
- package/front_end/models/issues_manager/issues_manager.ts +2 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
- package/front_end/models/trace/Processor.ts +1 -0
- package/front_end/panels/ai_assistance/ExternalHandler.ts +89 -0
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
- package/front_end/panels/application/BackgroundServiceModel.ts +4 -3
- package/front_end/panels/application/IndexedDBModel.ts +0 -7
- package/front_end/panels/console/ConsoleView.ts +17 -16
- package/front_end/panels/console/ConsoleViewMessage.ts +4 -1
- package/front_end/panels/console/console-meta.ts +4 -19
- package/front_end/panels/elements/ElementIssueUtils.ts +10 -2
- package/front_end/panels/elements/ElementsPanel.ts +8 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +82 -161
- package/front_end/panels/elements/ElementsTreeOutline.ts +26 -105
- package/front_end/panels/elements/StandaloneStylesContainer.ts +5 -11
- package/front_end/panels/elements/StylePropertyTreeElement.ts +2 -0
- package/front_end/panels/elements/StylesContainer.ts +1 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +174 -151
- package/front_end/panels/network/RequestPayloadView.ts +5 -2
- package/front_end/panels/security/SecurityPanelSidebar.ts +0 -32
- package/front_end/panels/settings/KeybindsSettingsTab.ts +5 -2
- package/front_end/panels/sources/SourcesPanel.ts +6 -3
- package/front_end/panels/timeline/components/BreadcrumbsUI.ts +2 -6
- package/front_end/panels/timeline/components/CWVMetrics.ts +9 -10
- package/front_end/panels/timeline/components/DetailsView.ts +12 -16
- package/front_end/panels/timeline/components/ExportTraceOptions.ts +13 -13
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +19 -19
- package/front_end/panels/timeline/components/IgnoreListSetting.ts +7 -9
- package/front_end/panels/timeline/components/InteractionBreakdown.ts +3 -3
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +13 -13
- package/front_end/panels/timeline/components/LiveMetricsView.ts +64 -64
- package/front_end/panels/timeline/components/MetricCard.ts +25 -25
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +22 -22
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +9 -9
- package/front_end/panels/timeline/components/OriginMap.ts +7 -7
- package/front_end/panels/timeline/components/RelatedInsightChips.ts +2 -2
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +19 -20
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -1
- package/front_end/panels/timeline/components/TimelineSummary.ts +2 -2
- package/front_end/panels/timeline/components/Utils.ts +2 -6
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +6 -9
- package/front_end/panels/timeline/components/insights/Checklist.ts +2 -2
- package/front_end/panels/timeline/components/insights/Table.ts +1 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/comments/CommentAnchorResolver.ts +94 -0
- package/front_end/ui/comments/CommentOverlayManager.ts +16 -32
- package/front_end/ui/components/text_editor/config.ts +2 -1
- package/front_end/ui/legacy/DockController.ts +4 -1
- package/front_end/ui/legacy/InspectorView.ts +3 -1
- package/front_end/ui/legacy/KeyboardShortcut.ts +4 -7
- package/front_end/ui/legacy/SearchableView.ts +2 -1
- package/front_end/ui/legacy/ShortcutRegistry.ts +6 -3
- package/front_end/ui/legacy/UIUtils.ts +10 -6
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +23 -24
- package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -6
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +14 -15
- package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/NetworkPriorities.ts +5 -5
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +5 -5
- package/front_end/ui/legacy/components/perf_ui/PieChart.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +4 -6
- package/front_end/ui/legacy/components/source_frame/FontView.ts +2 -2
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +13 -13
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/PreviewFactory.ts +2 -2
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +15 -18
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/source_frame-meta.ts +10 -10
- package/front_end/ui/legacy/theme_support/ThemeSupport.ts +5 -2
- package/front_end/ui/settings/ConsoleSettings.ts +32 -0
- package/front_end/ui/settings/InspectorMainSettings.ts +7 -0
- package/front_end/ui/settings/MainSettings.ts +80 -0
- package/front_end/ui/settings/settings.ts +4 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
- package/package.json +1 -1
|
@@ -7,39 +7,39 @@ import * as i18n from '../../../../core/i18n/i18n.js';
|
|
|
7
7
|
|
|
8
8
|
const UIStrings = {
|
|
9
9
|
/**
|
|
10
|
-
* @description Title of a setting under the Sources category in
|
|
10
|
+
* @description Title of a setting under the Sources category in settings.
|
|
11
11
|
*/
|
|
12
|
-
defaultIndentation: 'Default indentation
|
|
12
|
+
defaultIndentation: 'Default indentation',
|
|
13
13
|
/**
|
|
14
|
-
* @description Title of a setting under the Sources category that can be invoked through the
|
|
14
|
+
* @description Title of a setting under the Sources category that can be invoked through the command menu.
|
|
15
15
|
*/
|
|
16
16
|
setIndentationToSpaces: 'Set indentation to 2 spaces',
|
|
17
17
|
/**
|
|
18
|
-
* @description
|
|
18
|
+
* @description Option in a dropdown menu to set indentation to 2 spaces.
|
|
19
19
|
*/
|
|
20
20
|
Spaces: '2 spaces',
|
|
21
21
|
/**
|
|
22
|
-
* @description Title of a setting under the Sources category that can be invoked through the
|
|
22
|
+
* @description Title of a setting under the Sources category that can be invoked through the command menu.
|
|
23
23
|
*/
|
|
24
24
|
setIndentationToFSpaces: 'Set indentation to 4 spaces',
|
|
25
25
|
/**
|
|
26
|
-
* @description
|
|
26
|
+
* @description Option in a dropdown menu to set indentation to 4 spaces.
|
|
27
27
|
*/
|
|
28
28
|
fSpaces: '4 spaces',
|
|
29
29
|
/**
|
|
30
|
-
* @description Title of a setting under the Sources category that can be invoked through the
|
|
30
|
+
* @description Title of a setting under the Sources category that can be invoked through the command menu.
|
|
31
31
|
*/
|
|
32
32
|
setIndentationToESpaces: 'Set indentation to 8 spaces',
|
|
33
33
|
/**
|
|
34
|
-
* @description
|
|
34
|
+
* @description Option in a dropdown menu to set indentation to 8 spaces.
|
|
35
35
|
*/
|
|
36
36
|
eSpaces: '8 spaces',
|
|
37
37
|
/**
|
|
38
|
-
* @description Title of a setting under the Sources category that can be invoked through the
|
|
38
|
+
* @description Title of a setting under the Sources category that can be invoked through the command menu.
|
|
39
39
|
*/
|
|
40
40
|
setIndentationToTabCharacter: 'Set indentation to tab character',
|
|
41
41
|
/**
|
|
42
|
-
* @description
|
|
42
|
+
* @description Option in a dropdown menu to set indentation to tab character.
|
|
43
43
|
*/
|
|
44
44
|
tabCharacter: 'Tab character',
|
|
45
45
|
} as const;
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
import * as Common from '../../../core/common/common.js';
|
|
38
38
|
import * as Host from '../../../core/host/host.js';
|
|
39
39
|
import * as Root from '../../../core/root/root.js';
|
|
40
|
+
import * as SettingsUI from '../../settings/settings.js';
|
|
40
41
|
|
|
41
42
|
let themeSupportInstance: ThemeSupport;
|
|
42
43
|
|
|
@@ -159,7 +160,8 @@ export class ThemeSupport extends EventTarget {
|
|
|
159
160
|
this.#themeName = useSystemPreferred ? systemPreferredTheme : this.setting.get();
|
|
160
161
|
document.documentElement.classList.toggle('theme-with-dark-background', this.#themeName === 'dark');
|
|
161
162
|
|
|
162
|
-
const useChromeTheme =
|
|
163
|
+
const useChromeTheme =
|
|
164
|
+
Common.Settings.Settings.instance().resolve(SettingsUI.MainSettings.chromeThemeColorsSettingDescriptor).get();
|
|
163
165
|
const isIncognito = Root.Runtime.hostConfig.isOffTheRecord === true;
|
|
164
166
|
// Baseline is the name of Chrome's default color theme and there are two of these: default and grayscale.
|
|
165
167
|
// The collective name for the rest of the color themes is dynamic.
|
|
@@ -191,7 +193,8 @@ export class ThemeSupport extends EventTarget {
|
|
|
191
193
|
}
|
|
192
194
|
|
|
193
195
|
#fetchColorsAndApplyHostTheme(document: Document): void {
|
|
194
|
-
const useChromeTheme =
|
|
196
|
+
const useChromeTheme =
|
|
197
|
+
Common.Settings.Settings.instance().resolve(SettingsUI.MainSettings.chromeThemeColorsSettingDescriptor).get();
|
|
195
198
|
if (Host.InspectorFrontendHost.InspectorFrontendHostInstance.isHostedMode() || !useChromeTheme) {
|
|
196
199
|
this.#applyThemeToDocument(document);
|
|
197
200
|
return;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 Common from '../../core/common/common.js';
|
|
6
|
+
|
|
7
|
+
export const networkMessagesSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
8
|
+
name: 'network-messages',
|
|
9
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
10
|
+
defaultValue: true,
|
|
11
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const selectedContextFilterEnabledSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
15
|
+
name: 'selected-context-filter-enabled',
|
|
16
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
17
|
+
defaultValue: false,
|
|
18
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const consoleTimestampsEnabledSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
22
|
+
name: 'console-timestamps-enabled',
|
|
23
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
24
|
+
defaultValue: false,
|
|
25
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const consoleHistoryAutocompleteSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
29
|
+
name: 'console-history-autocomplete',
|
|
30
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
31
|
+
defaultValue: true,
|
|
32
|
+
};
|
|
@@ -10,3 +10,10 @@ export const adBlockingEnabledSettingDescriptor: Common.Settings.SettingDescript
|
|
|
10
10
|
defaultValue: false,
|
|
11
11
|
storageType: Common.Settings.SettingStorageType.SESSION,
|
|
12
12
|
};
|
|
13
|
+
|
|
14
|
+
export const autoAttachToCreatedPagesSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
15
|
+
name: 'auto-attach-to-created-pages',
|
|
16
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
17
|
+
defaultValue: false,
|
|
18
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
19
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
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 Common from '../../core/common/common.js';
|
|
6
|
+
|
|
7
|
+
export const uiThemeSettingDescriptor: Common.Settings.SettingDescriptor<string> = {
|
|
8
|
+
name: 'ui-theme',
|
|
9
|
+
type: Common.Settings.SettingType.ENUM,
|
|
10
|
+
defaultValue: 'systemPreferred',
|
|
11
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const chromeThemeColorsSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
15
|
+
name: 'chrome-theme-colors',
|
|
16
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
17
|
+
defaultValue: true,
|
|
18
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const sidebarPositionSettingDescriptor: Common.Settings.SettingDescriptor<string> = {
|
|
22
|
+
name: 'sidebar-position',
|
|
23
|
+
type: Common.Settings.SettingType.ENUM,
|
|
24
|
+
defaultValue: 'auto',
|
|
25
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const languageSettingDescriptor: Common.Settings.SettingDescriptor<string> = {
|
|
29
|
+
name: 'language',
|
|
30
|
+
type: Common.Settings.SettingType.ENUM,
|
|
31
|
+
defaultValue: 'en-US',
|
|
32
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const shortcutPanelSwitchSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
36
|
+
name: 'shortcut-panel-switch',
|
|
37
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
38
|
+
defaultValue: false,
|
|
39
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const currentDockStateSettingDescriptor: Common.Settings.SettingDescriptor<string> = {
|
|
43
|
+
name: 'currentDockState',
|
|
44
|
+
type: Common.Settings.SettingType.ENUM,
|
|
45
|
+
defaultValue: 'right',
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const activeKeybindSetSettingDescriptor: Common.Settings.SettingDescriptor<string> = {
|
|
49
|
+
name: 'active-keybind-set',
|
|
50
|
+
type: Common.Settings.SettingType.ENUM,
|
|
51
|
+
defaultValue: 'devToolsDefault',
|
|
52
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// This name must be kept in sync with DevToolsSettings::kSyncDevToolsPreferencesFrontendName.
|
|
56
|
+
export const syncPreferencesSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
57
|
+
name: 'sync-preferences',
|
|
58
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
59
|
+
defaultValue: false,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export interface UserShortcut {
|
|
63
|
+
action: string;
|
|
64
|
+
descriptors: Array<{key: number, name: string}>;
|
|
65
|
+
type: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const userShortcutsSettingDescriptor: Common.Settings.SettingDescriptor<UserShortcut[]> = {
|
|
69
|
+
name: 'user-shortcuts',
|
|
70
|
+
type: Common.Settings.SettingType.ARRAY,
|
|
71
|
+
defaultValue: [],
|
|
72
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const searchAsYouTypeSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
76
|
+
name: 'search-as-you-type',
|
|
77
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
78
|
+
defaultValue: true,
|
|
79
|
+
storageType: Common.Settings.SettingStorageType.LOCAL,
|
|
80
|
+
};
|
|
@@ -2,10 +2,14 @@
|
|
|
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
4
|
|
|
5
|
+
import * as ConsoleSettings from './ConsoleSettings.js';
|
|
5
6
|
import * as InspectorMainSettings from './InspectorMainSettings.js';
|
|
7
|
+
import * as MainSettings from './MainSettings.js';
|
|
6
8
|
import * as SettingUIRegistration from './SettingUIRegistration.js';
|
|
7
9
|
|
|
8
10
|
export {
|
|
11
|
+
ConsoleSettings,
|
|
9
12
|
InspectorMainSettings,
|
|
13
|
+
MainSettings,
|
|
10
14
|
SettingUIRegistration,
|
|
11
15
|
};
|
|
@@ -727,6 +727,7 @@ export const knownContextValues = new Set([
|
|
|
727
727
|
'breakpoints-active',
|
|
728
728
|
'browser-debugger.refresh-global-event-listeners',
|
|
729
729
|
'browser-language',
|
|
730
|
+
'browserLanguage',
|
|
730
731
|
'bs',
|
|
731
732
|
'buffered-rendering',
|
|
732
733
|
'button',
|
|
@@ -1629,6 +1630,8 @@ export const knownContextValues = new Set([
|
|
|
1629
1630
|
'emulation.toggle-device-mode',
|
|
1630
1631
|
'emulation.toolbar-controls-enabled',
|
|
1631
1632
|
'emulation.touch',
|
|
1633
|
+
'en-GB',
|
|
1634
|
+
'en-US',
|
|
1632
1635
|
'en-gb',
|
|
1633
1636
|
'en-us',
|
|
1634
1637
|
'en-xl',
|
|
@@ -1834,6 +1837,7 @@ export const knownContextValues = new Set([
|
|
|
1834
1837
|
'form-factors',
|
|
1835
1838
|
'fourth',
|
|
1836
1839
|
'fr',
|
|
1840
|
+
'fr-CA',
|
|
1837
1841
|
'fr-ca',
|
|
1838
1842
|
'frame',
|
|
1839
1843
|
'frame-creation-stack-trace',
|
|
@@ -3305,6 +3309,7 @@ export const knownContextValues = new Set([
|
|
|
3305
3309
|
'pseudo-property',
|
|
3306
3310
|
'pseudotype',
|
|
3307
3311
|
'pt',
|
|
3312
|
+
'pt-PT',
|
|
3308
3313
|
'pt-pt',
|
|
3309
3314
|
'push-message',
|
|
3310
3315
|
'push-messaging',
|
|
@@ -3977,6 +3982,7 @@ export const knownContextValues = new Set([
|
|
|
3977
3982
|
'spread',
|
|
3978
3983
|
'sq',
|
|
3979
3984
|
'sr',
|
|
3985
|
+
'sr-Latn',
|
|
3980
3986
|
'sr-latn',
|
|
3981
3987
|
'src',
|
|
3982
3988
|
'srgb',
|
|
@@ -4653,6 +4659,8 @@ export const knownContextValues = new Set([
|
|
|
4653
4659
|
'y-offset',
|
|
4654
4660
|
'z-index',
|
|
4655
4661
|
'zh',
|
|
4662
|
+
'zh-HK',
|
|
4663
|
+
'zh-TW',
|
|
4656
4664
|
'zh-hk',
|
|
4657
4665
|
'zh-tw',
|
|
4658
4666
|
'zoo',
|
package/package.json
CHANGED