chrome-devtools-frontend 1.0.1537268 → 1.0.1538310
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/.env.template +10 -0
- package/docs/get_the_code.md +27 -0
- package/eslint.config.mjs +151 -149
- package/front_end/core/common/SettingRegistration.ts +10 -7
- package/front_end/core/common/Settings.ts +3 -0
- package/front_end/core/host/AidaClient.ts +1 -0
- package/front_end/core/host/UserMetrics.ts +3 -1
- package/front_end/core/root/Runtime.ts +8 -0
- package/front_end/core/sdk/sdk-meta.ts +8 -2
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +4 -3
- package/front_end/generated/SupportedCSSProperties.js +1 -0
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +23 -7
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +110 -5
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +50 -45
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +151 -0
- package/front_end/models/ai_code_generation/ai_code_generation.ts +6 -0
- package/front_end/models/ai_code_generation/debug.ts +30 -0
- package/front_end/models/cpu_profile/ProfileTreeModel.ts +7 -7
- package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +1 -1
- package/front_end/panels/application/PreloadingTreeElement.ts +10 -2
- package/front_end/panels/application/StorageView.ts +3 -2
- package/front_end/panels/application/components/BackForwardCacheView.ts +34 -51
- package/front_end/panels/application/components/OriginTrialTreeView.ts +141 -170
- package/front_end/panels/application/components/backForwardCacheView.css +4 -0
- package/front_end/panels/application/components/originTrialTreeView.css +37 -7
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +2 -2
- package/front_end/panels/application/preloading/components/PreloadingString.ts +30 -1
- package/front_end/panels/autofill/AutofillView.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +11 -9
- package/front_end/panels/coverage/CoverageView.ts +1 -2
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
- package/front_end/panels/elements/ElementStatePaneWidget.ts +1 -1
- package/front_end/panels/elements/EventListenersWidget.ts +1 -2
- package/front_end/panels/elements/PropertiesWidget.ts +1 -1
- package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +1 -0
- package/front_end/panels/network/NetworkConfigView.ts +2 -1
- package/front_end/panels/network/NetworkItemView.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +5 -4
- package/front_end/panels/network/NetworkWaterfallColumn.ts +5 -6
- package/front_end/panels/network/RequestCookiesView.ts +2 -1
- package/front_end/panels/network/RequestTimingView.ts +404 -348
- package/front_end/panels/network/networkTimingTable.css +22 -2
- package/front_end/panels/profiler/HeapSnapshotView.ts +3 -2
- package/front_end/panels/sensors/SensorsView.ts +4 -3
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +8 -6
- package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -2
- package/front_end/panels/settings/SettingsScreen.ts +2 -1
- package/front_end/panels/settings/WorkspaceSettingsTab.ts +1 -1
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +2 -1
- package/front_end/panels/sources/SourcesPanel.ts +2 -1
- package/front_end/panels/sources/sources-meta.ts +8 -1
- package/front_end/panels/timeline/TimelinePanel.ts +4 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +4 -20
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -0
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +42 -3
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +2 -0
- package/front_end/panels/timeline/components/networkRequestTooltip.css +19 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/adorners/Adorner.ts +3 -1
- package/front_end/ui/components/buttons/Button.docs.ts +195 -0
- package/front_end/ui/components/icon_button/IconButton.ts +1 -0
- package/front_end/ui/components/settings/SettingCheckbox.ts +50 -14
- package/front_end/ui/components/settings/settingCheckbox.css +6 -1
- package/front_end/ui/components/spinners/Spinners.docs.ts +13 -0
- package/front_end/ui/components/tooltips/Tooltip.docs.ts +76 -0
- package/front_end/ui/legacy/FilterBar.ts +1 -2
- package/front_end/ui/legacy/RadioButton.docs.ts +41 -0
- package/front_end/ui/legacy/SelectMenu.docs.ts +98 -0
- package/front_end/ui/legacy/Toolbar.ts +4 -6
- package/front_end/ui/legacy/Treeoutline.ts +15 -0
- package/front_end/ui/legacy/UIUtils.ts +117 -1
- package/front_end/ui/legacy/Widget.ts +68 -38
- package/front_end/ui/legacy/XLink.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/Swatches.ts +1 -0
- package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +1 -0
- package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +125 -0
- package/front_end/ui/legacy/components/settings_ui/settings_ui.ts +8 -0
- package/front_end/ui/legacy/legacy.ts +0 -2
- package/front_end/ui/legacy/popover.css +12 -11
- package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
- package/package.json +1 -1
- package/front_end/models/trace/lantern/testing/MetricTestUtils.ts +0 -62
- package/front_end/models/trace/lantern/testing/testing.ts +0 -5
- package/front_end/panels/application/components/badge.css +0 -25
- package/front_end/ui/components/docs/button/basic.html +0 -44
- package/front_end/ui/components/docs/button/basic.ts +0 -175
- package/front_end/ui/components/docs/radio_button/basic.html +0 -23
- package/front_end/ui/components/docs/radio_button/basic.ts +0 -50
- package/front_end/ui/components/docs/select_menu/basic.html +0 -19
- package/front_end/ui/components/docs/select_menu/basic.ts +0 -95
- package/front_end/ui/components/docs/select_menu/wide-option.html +0 -38
- package/front_end/ui/components/docs/select_menu/wide-option.ts +0 -43
- package/front_end/ui/components/docs/spinners/basic.html +0 -17
- package/front_end/ui/components/docs/spinners/basic.ts +0 -22
- package/front_end/ui/components/docs/tooltip/basic.html +0 -20
- package/front_end/ui/components/docs/tooltip/basic.ts +0 -82
- package/front_end/ui/legacy/SettingsUI.ts +0 -240
|
@@ -39,8 +39,7 @@ import {html, render} from '../../ui/lit/lit.js';
|
|
|
39
39
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
40
40
|
import * as EventListeners from '../event_listeners/event_listeners.js';
|
|
41
41
|
|
|
42
|
-
const {bindToSetting} = UI.
|
|
43
|
-
const {bindToAction} = UI.UIUtils;
|
|
42
|
+
const {bindToAction, bindToSetting} = UI.UIUtils;
|
|
44
43
|
|
|
45
44
|
const UIStrings = {
|
|
46
45
|
/**
|
|
@@ -8,6 +8,7 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
8
8
|
import * as Platform from '../../core/platform/platform.js';
|
|
9
9
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
10
10
|
import * as Protocol from '../../generated/protocol.js';
|
|
11
|
+
import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
|
|
11
12
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
12
13
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
13
14
|
import * as MobileThrottling from '../mobile_throttling/mobile_throttling.js';
|
|
@@ -208,7 +209,7 @@ export class NetworkConfigView extends UI.Widget.VBox {
|
|
|
208
209
|
|
|
209
210
|
private createCacheSection(): void {
|
|
210
211
|
const section = this.createSection(i18nString(UIStrings.caching), 'network-config-disable-cache');
|
|
211
|
-
section.appendChild(
|
|
212
|
+
section.appendChild(SettingsUI.SettingsUI.createSettingCheckbox(
|
|
212
213
|
i18nString(UIStrings.disableCache), Common.Settings.Settings.instance().moduleSetting('cache-disabled')));
|
|
213
214
|
}
|
|
214
215
|
|
|
@@ -232,7 +232,7 @@ export class NetworkItemView extends UI.TabbedPane.TabbedPane {
|
|
|
232
232
|
|
|
233
233
|
this.appendTab(
|
|
234
234
|
NetworkForward.UIRequestLocation.UIRequestTabs.TIMING, i18nString(UIStrings.timing),
|
|
235
|
-
|
|
235
|
+
RequestTimingView.create(request, calculator), i18nString(UIStrings.requestAndResponseTimeline));
|
|
236
236
|
|
|
237
237
|
if (request.trustTokenParams()) {
|
|
238
238
|
this.appendTab(
|
|
@@ -48,6 +48,7 @@ import type * as PanelCommon from '../../panels/common/common.js';
|
|
|
48
48
|
import * as NetworkForward from '../../panels/network/forward/forward.js';
|
|
49
49
|
import * as Tracing from '../../services/tracing/tracing.js';
|
|
50
50
|
import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
|
|
51
|
+
import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
|
|
51
52
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
52
53
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
53
54
|
import * as MobileThrottling from '../mobile_throttling/mobile_throttling.js';
|
|
@@ -259,17 +260,17 @@ export class NetworkPanel extends UI.Panel.Panel implements
|
|
|
259
260
|
|
|
260
261
|
const settingsPane = panel.contentElement.createChild('div', 'network-settings-pane');
|
|
261
262
|
settingsPane.append(
|
|
262
|
-
|
|
263
|
+
SettingsUI.SettingsUI.createSettingCheckbox(
|
|
263
264
|
i18nString(UIStrings.useLargeRequestRows), this.networkLogLargeRowsSetting,
|
|
264
265
|
i18nString(UIStrings.showMoreInformationInRequestRows)),
|
|
265
|
-
|
|
266
|
+
SettingsUI.SettingsUI.createSettingCheckbox(
|
|
266
267
|
i18nString(UIStrings.groupByFrame),
|
|
267
268
|
Common.Settings.Settings.instance().moduleSetting('network.group-by-frame'),
|
|
268
269
|
i18nString(UIStrings.groupRequestsByTopLevelRequest)),
|
|
269
|
-
|
|
270
|
+
SettingsUI.SettingsUI.createSettingCheckbox(
|
|
270
271
|
i18nString(UIStrings.showOverview), this.networkLogShowOverviewSetting,
|
|
271
272
|
i18nString(UIStrings.showOverviewOfNetworkRequests)),
|
|
272
|
-
|
|
273
|
+
SettingsUI.SettingsUI.createSettingCheckbox(
|
|
273
274
|
i18nString(UIStrings.captureScreenshots), this.networkRecordFilmStripSetting,
|
|
274
275
|
i18nString(UIStrings.captureScreenshotsWhenLoadingA)),
|
|
275
276
|
|
|
@@ -13,7 +13,6 @@ import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
|
|
|
13
13
|
|
|
14
14
|
import type {NetworkNode} from './NetworkDataGridNode.js';
|
|
15
15
|
import {RequestTimeRangeNameToColor} from './NetworkOverview.js';
|
|
16
|
-
import networkingTimingTableStyles from './networkTimingTable.css.js';
|
|
17
16
|
import networkWaterfallColumnStyles from './networkWaterfallColumn.css.js';
|
|
18
17
|
import {RequestTimingView} from './RequestTimingView.js';
|
|
19
18
|
|
|
@@ -288,11 +287,11 @@ export class NetworkWaterfallColumn extends UI.Widget.VBox {
|
|
|
288
287
|
|
|
289
288
|
return {
|
|
290
289
|
box: anchorBox,
|
|
291
|
-
show: (popover: UI.GlassPane.GlassPane) => {
|
|
292
|
-
const content = RequestTimingView.
|
|
293
|
-
|
|
294
|
-
popover.contentElement
|
|
295
|
-
return
|
|
290
|
+
show: async (popover: UI.GlassPane.GlassPane) => {
|
|
291
|
+
const content = RequestTimingView.create(request, this.calculator);
|
|
292
|
+
await content.updateComplete;
|
|
293
|
+
content.show(popover.contentElement);
|
|
294
|
+
return true;
|
|
296
295
|
},
|
|
297
296
|
hide: undefined,
|
|
298
297
|
};
|
|
@@ -10,6 +10,7 @@ import * as Protocol from '../../generated/protocol.js';
|
|
|
10
10
|
import * as IconButton from '../../ui/components/icon_button/icon_button.js';
|
|
11
11
|
import * as uiI18n from '../../ui/i18n/i18n.js';
|
|
12
12
|
import * as CookieTable from '../../ui/legacy/components/cookie_table/cookie_table.js';
|
|
13
|
+
import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
|
|
13
14
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
14
15
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
15
16
|
|
|
@@ -104,7 +105,7 @@ export class RequestCookiesView extends UI.Widget.Widget {
|
|
|
104
105
|
titleText.textContent = i18nString(UIStrings.requestCookies);
|
|
105
106
|
UI.Tooltip.Tooltip.install(titleText, i18nString(UIStrings.cookiesThatWereSentToTheServerIn));
|
|
106
107
|
|
|
107
|
-
const requestCookiesCheckbox =
|
|
108
|
+
const requestCookiesCheckbox = SettingsUI.SettingsUI.createSettingCheckbox(
|
|
108
109
|
i18nString(UIStrings.showFilteredOutRequestCookies), this.showFilteredOutCookiesSetting);
|
|
109
110
|
requestCookiesCheckbox.addEventListener('change', () => {
|
|
110
111
|
this.refreshRequestCookiesView();
|