chrome-devtools-frontend 1.0.1537860 → 1.0.1538523
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 +3 -2
- package/eslint.config.mjs +151 -149
- 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/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/panels/application/PreloadingTreeElement.ts +10 -2
- package/front_end/panels/application/components/OriginTrialTreeView.ts +97 -129
- package/front_end/panels/application/components/originTrialTreeView.css +37 -7
- package/front_end/panels/application/preloading/components/PreloadingString.ts +13 -11
- package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +1 -0
- package/front_end/panels/network/NetworkItemView.ts +1 -1
- package/front_end/panels/network/NetworkWaterfallColumn.ts +5 -6
- package/front_end/panels/network/RequestTimingView.ts +404 -348
- package/front_end/panels/network/networkTimingTable.css +22 -2
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +42 -3
- package/front_end/panels/timeline/components/networkRequestTooltip.css +19 -0
- package/front_end/ui/components/adorners/Adorner.ts +1 -0
- package/front_end/ui/components/icon_button/IconButton.ts +1 -0
- package/front_end/ui/components/settings/SettingCheckbox.ts +1 -0
- package/front_end/ui/legacy/Treeoutline.ts +15 -0
- package/front_end/ui/legacy/UIUtils.ts +3 -0
- package/front_end/ui/legacy/Widget.ts +6 -4
- 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/popover.css +12 -11
- package/package.json +1 -1
- package/front_end/panels/application/components/badge.css +0 -33
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type * as Common from '../../../../core/common/common.js';
|
|
6
6
|
import * as i18n from '../../../../core/i18n/i18n.js';
|
|
7
|
-
import
|
|
7
|
+
import * as Platform from '../../../../core/platform/platform.js';
|
|
8
8
|
import {assertNotNullOrUndefined} from '../../../../core/platform/platform.js';
|
|
9
9
|
import * as SDK from '../../../../core/sdk/sdk.js';
|
|
10
10
|
import * as Protocol from '../../../../generated/protocol.js';
|
|
@@ -743,28 +743,30 @@ export function capitalizedAction(action: Protocol.Preload.SpeculationAction): C
|
|
|
743
743
|
|
|
744
744
|
export function sortOrder(attempt: SDK.PreloadingModel.PreloadingAttempt): number {
|
|
745
745
|
switch (attempt.status) {
|
|
746
|
-
case SDK.PreloadingModel.PreloadingStatus.NOT_TRIGGERED:
|
|
747
|
-
return 0;
|
|
748
746
|
case SDK.PreloadingModel.PreloadingStatus.NOT_SUPPORTED:
|
|
749
|
-
return
|
|
747
|
+
return 0;
|
|
750
748
|
case SDK.PreloadingModel.PreloadingStatus.PENDING:
|
|
751
|
-
return
|
|
749
|
+
return 1;
|
|
752
750
|
case SDK.PreloadingModel.PreloadingStatus.RUNNING:
|
|
753
|
-
return
|
|
751
|
+
return 2;
|
|
754
752
|
case SDK.PreloadingModel.PreloadingStatus.READY:
|
|
755
|
-
return
|
|
753
|
+
return 3;
|
|
756
754
|
case SDK.PreloadingModel.PreloadingStatus.SUCCESS:
|
|
757
|
-
return
|
|
755
|
+
return 4;
|
|
758
756
|
case SDK.PreloadingModel.PreloadingStatus.FAILURE: {
|
|
759
757
|
switch (attempt.action) {
|
|
760
758
|
case Protocol.Preload.SpeculationAction.Prefetch:
|
|
761
|
-
return
|
|
759
|
+
return 5;
|
|
762
760
|
case Protocol.Preload.SpeculationAction.Prerender:
|
|
763
|
-
return
|
|
761
|
+
return 6;
|
|
764
762
|
case Protocol.Preload.SpeculationAction.PrerenderUntilScript:
|
|
765
|
-
return
|
|
763
|
+
return 7;
|
|
766
764
|
}
|
|
767
765
|
}
|
|
766
|
+
case SDK.PreloadingModel.PreloadingStatus.NOT_TRIGGERED:
|
|
767
|
+
return 8;
|
|
768
|
+
default:
|
|
769
|
+
Platform.assertNever(attempt.status, 'Unknown Preloading attempt status');
|
|
768
770
|
}
|
|
769
771
|
}
|
|
770
772
|
|
|
@@ -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(
|
|
@@ -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
|
};
|