chrome-devtools-frontend 1.0.1608868 → 1.0.1611099
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/eslint.config.mjs +3 -1
- package/front_end/core/host/AidaGcaTranslation.ts +13 -0
- package/front_end/core/sdk/PreloadingModel.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/AllocationProfile.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +1 -11
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotWorkerDispatcher.ts +1 -1
- package/front_end/generated/InspectorBackendCommands.ts +1 -2
- package/front_end/generated/SupportedCSSProperties.js +23 -4
- package/front_end/generated/protocol-mapping.d.ts +0 -9
- package/front_end/generated/protocol-proxy-api.d.ts +0 -7
- package/front_end/generated/protocol.ts +0 -20
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +12 -3
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +5 -4
- package/front_end/models/ai_assistance/agents/ConversationSummaryAgent.ts +24 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.snapshot.txt +2 -2
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +41 -22
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +5 -3
- package/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts +10 -5
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +69 -69
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +1 -1
- package/front_end/models/javascript_metadata/NativeFunctions.js +8 -12
- package/front_end/models/live-metrics/LiveMetrics.ts +43 -41
- package/front_end/models/trace/EntityMapper.ts +12 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +7 -9
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +66 -34
- package/front_end/panels/ai_assistance/components/ExportForAgentsDialog.ts +1 -1
- package/front_end/panels/ai_assistance/components/WalkthroughView.ts +1 -0
- package/front_end/panels/ai_assistance/components/chatMessage.css +15 -0
- package/front_end/panels/ai_assistance/components/walkthroughView.css +5 -4
- package/front_end/panels/application/ApplicationPanelSidebar.ts +8 -0
- package/front_end/panels/application/IndexedDBViews.ts +1 -1
- package/front_end/panels/application/ResourcesPanel.ts +8 -0
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +1 -1
- package/front_end/panels/application/application-meta.ts +11 -0
- package/front_end/panels/application/application.ts +1 -0
- package/front_end/panels/application/components/StorageMetadataView.ts +31 -7
- package/front_end/panels/application/components/backForwardCacheView.css +4 -0
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +29 -0
- package/front_end/panels/elements/ElementsTreeElement.ts +4 -0
- package/front_end/panels/lighthouse/LighthousePanel.ts +3 -1
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +1 -1
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +1 -1
- package/front_end/panels/profiler/HeapSnapshotView.ts +1 -1
- package/front_end/panels/timeline/TimelinePanel.ts +2 -6
- package/front_end/panels/timeline/utils/Helpers.ts +1 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/legacy/InspectorDrawerView.ts +188 -15
- package/front_end/ui/legacy/InspectorView.ts +162 -11
- package/front_end/ui/legacy/TabbedPane.ts +2 -2
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +54 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
- package/front_end/ui/visual_logging/LoggingDriver.ts +3 -3
- package/mcp/mcp.ts +2 -1
- package/package.json +4 -5
- /package/front_end/models/{heap_snapshot_model → heap_snapshot}/ChildrenProvider.ts +0 -0
- /package/front_end/models/{heap_snapshot_model → heap_snapshot}/HeapSnapshotModel.ts +0 -0
- /package/front_end/models/{heap_snapshot_model → heap_snapshot}/HeapSnapshotProxy.ts +0 -0
- /package/front_end/models/{heap_snapshot_model/heap_snapshot_model.ts → heap_snapshot/heap_snapshot.ts} +0 -0
|
@@ -85,7 +85,7 @@ export interface TabInfo {
|
|
|
85
85
|
|
|
86
86
|
export class TabbedPane extends Common.ObjectWrapper.eventMixin<EventTypes, typeof VBox>(VBox) {
|
|
87
87
|
readonly #headerElement: HTMLElement;
|
|
88
|
-
|
|
88
|
+
protected readonly headerContentsElement: HTMLElement;
|
|
89
89
|
tabSlider: HTMLDivElement;
|
|
90
90
|
readonly tabsElement: HTMLElement;
|
|
91
91
|
readonly #contentElement: HTMLElement;
|
|
@@ -496,7 +496,7 @@ export class TabbedPane extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
|
|
499
|
+
protected clearMeasuredWidths(): void {
|
|
500
500
|
for (let i = 0; i < this.#tabs.length; ++i) {
|
|
501
501
|
delete this.#tabs[i].measuredWidth;
|
|
502
502
|
}
|
|
@@ -3,3 +3,57 @@
|
|
|
3
3
|
* Use of this source code is governed by a BSD-style license that can be
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
.drawer-tabbed-pane.drawer-minimized-vertical {
|
|
8
|
+
min-width: 27px;
|
|
9
|
+
width: 27px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.hide-element {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.collapsed-vertical-drawer-container {
|
|
17
|
+
height: calc(100% - 27px);
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.collapsed-vertical-drawer-header {
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
flex-basis: 100% !important; /* stylelint-disable-line declaration-no-important */
|
|
25
|
+
border-bottom: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.collapsed-vertical-drawer-right-toolbar {
|
|
29
|
+
margin-left: 0 !important; /* stylelint-disable-line declaration-no-important */
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
align-items: center;
|
|
32
|
+
height: auto;
|
|
33
|
+
width: 27px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
devtools-toolbar.collapsed-vertical-drawer-toolbar-content {
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
height: auto !important; /* stylelint-disable-line declaration-no-important */
|
|
41
|
+
width: 27px;
|
|
42
|
+
padding: 0 !important; /* stylelint-disable-line declaration-no-important */
|
|
43
|
+
gap: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
devtools-toolbar.collapsed-vertical-drawer-toolbar-content .toolbar-button {
|
|
47
|
+
margin: 0 auto;
|
|
48
|
+
padding: 0;
|
|
49
|
+
padding-right: 1px;
|
|
50
|
+
width: 27px;
|
|
51
|
+
height: 26px;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
devtools-toolbar.collapsed-vertical-drawer-toolbar-content .toolbar-spacer {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
@@ -1850,6 +1850,7 @@ export const knownContextValues = new Set([
|
|
|
1850
1850
|
'gu',
|
|
1851
1851
|
'gutter',
|
|
1852
1852
|
'gzip',
|
|
1853
|
+
'hanging-punctuation',
|
|
1853
1854
|
'hardware-concurrency',
|
|
1854
1855
|
'hardware-concurrency-reset',
|
|
1855
1856
|
'hardware-concurrency-selector',
|
|
@@ -2651,6 +2652,7 @@ export const knownContextValues = new Set([
|
|
|
2651
2652
|
'min-height',
|
|
2652
2653
|
'min-inline-size',
|
|
2653
2654
|
'min-width',
|
|
2655
|
+
'minimize-drawer',
|
|
2654
2656
|
'missing-debug-info',
|
|
2655
2657
|
'mix-blend-mode',
|
|
2656
2658
|
'mixed-content',
|
|
@@ -76,7 +76,7 @@ export async function startLogging(options?: {
|
|
|
76
76
|
export async function addDocument(document: Document): Promise<void> {
|
|
77
77
|
documents.push(document);
|
|
78
78
|
if (['interactive', 'complete'].includes(document.readyState)) {
|
|
79
|
-
await process
|
|
79
|
+
await RenderCoordinator.read('processForLogging', process);
|
|
80
80
|
}
|
|
81
81
|
document.addEventListener('visibilitychange', scheduleProcessing);
|
|
82
82
|
document.addEventListener('scroll', scheduleProcessing);
|
|
@@ -84,8 +84,8 @@ export async function addDocument(document: Document): Promise<void> {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export async function stopLogging(): Promise<void> {
|
|
87
|
-
await keyboardLogThrottler.schedule(async () => {}, Common.Throttler.Scheduling.AS_SOON_AS_POSSIBLE);
|
|
88
87
|
logging = false;
|
|
88
|
+
await keyboardLogThrottler.schedule(async () => {}, Common.Throttler.Scheduling.AS_SOON_AS_POSSIBLE);
|
|
89
89
|
unregisterAllLoggables();
|
|
90
90
|
for (const document of documents) {
|
|
91
91
|
document.removeEventListener('visibilitychange', scheduleProcessing);
|
|
@@ -139,7 +139,7 @@ const viewportRectFor = (element: Element): DOMRect => {
|
|
|
139
139
|
};
|
|
140
140
|
|
|
141
141
|
export async function process(): Promise<void> {
|
|
142
|
-
if (document.hidden) {
|
|
142
|
+
if (!logging || document.hidden) {
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
145
|
const startTime = performance.now();
|
package/mcp/mcp.ts
CHANGED
|
@@ -28,6 +28,7 @@ export {Target} from '../front_end/core/sdk/Target.js';
|
|
|
28
28
|
export {TargetManager} from '../front_end/core/sdk/TargetManager.js';
|
|
29
29
|
export * as Foundation from '../front_end/foundation/foundation.js';
|
|
30
30
|
export * as Protocol from '../front_end/generated/protocol.js';
|
|
31
|
+
export {NetworkRequestFormatter} from '../front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.js';
|
|
31
32
|
export {
|
|
32
33
|
PerformanceInsightFormatter
|
|
33
34
|
} from '../front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.js';
|
|
@@ -38,6 +39,7 @@ export {AgentFocus} from '../front_end/models/ai_assistance/performance/AIContex
|
|
|
38
39
|
export {DebuggerWorkspaceBinding} from '../front_end/models/bindings/DebuggerWorkspaceBinding.js';
|
|
39
40
|
export {CrUXManager} from '../front_end/models/crux-manager/CrUXManager.js';
|
|
40
41
|
export * as Formatter from '../front_end/models/formatter/formatter.js';
|
|
42
|
+
export * as HeapSnapshotModel from '../front_end/models/heap_snapshot/heap_snapshot.js';
|
|
41
43
|
export {Issue} from '../front_end/models/issues_manager/Issue.js';
|
|
42
44
|
export {
|
|
43
45
|
AggregatedIssue,
|
|
@@ -53,7 +55,6 @@ export {
|
|
|
53
55
|
export * as MarkdownIssueDescription from '../front_end/models/issues_manager/MarkdownIssueDescription.js';
|
|
54
56
|
export * as StackTrace from '../front_end/models/stack_trace/stack_trace.js';
|
|
55
57
|
export * as TraceEngine from '../front_end/models/trace/trace.js';
|
|
56
|
-
export {IgnoreListManager} from '../front_end/models/workspace/IgnoreListManager.js';
|
|
57
58
|
export * as Marked from '../front_end/third_party/marked/marked.js';
|
|
58
59
|
|
|
59
60
|
installInspectorFrontendHost(new McpHostBindings());
|
package/package.json
CHANGED
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@types/webidl2": "24.4.3",
|
|
50
50
|
"@types/yargs": "17.0.35",
|
|
51
51
|
"@types/yargs-unparser": "2.0.3",
|
|
52
|
-
"@typescript-eslint/rule-tester": "8.
|
|
53
|
-
"@typescript-eslint/utils": "8.
|
|
52
|
+
"@typescript-eslint/rule-tester": "8.58.0",
|
|
53
|
+
"@typescript-eslint/utils": "8.58.0",
|
|
54
54
|
"@web/rollup-plugin-import-meta-assets": "2.3.0",
|
|
55
55
|
"chai": "4.3.4",
|
|
56
56
|
"cssnano": "7.1.2",
|
|
@@ -90,14 +90,13 @@
|
|
|
90
90
|
"terser": "5.44.1",
|
|
91
91
|
"ts-lit-plugin": "2.0.2",
|
|
92
92
|
"typescript": "5.9.3",
|
|
93
|
-
"typescript-eslint": "8.
|
|
93
|
+
"typescript-eslint": "8.58.0",
|
|
94
94
|
"uuid": "13.0.0",
|
|
95
95
|
"webidl2": "24.5.0",
|
|
96
96
|
"yargs": "17.7.2",
|
|
97
97
|
"js-rouge": "3.2.0"
|
|
98
98
|
},
|
|
99
99
|
"overrides": {
|
|
100
|
-
"@typescript-eslint/types": "8.47.0",
|
|
101
100
|
"baseline-browser-mapping": "2.8.25",
|
|
102
101
|
"electron-to-chromium": "1.5.248",
|
|
103
102
|
"caniuse-lite": "1.0.30001754",
|
|
@@ -105,5 +104,5 @@
|
|
|
105
104
|
"flat-cache": "6.1.12"
|
|
106
105
|
}
|
|
107
106
|
},
|
|
108
|
-
"version": "1.0.
|
|
107
|
+
"version": "1.0.1611099"
|
|
109
108
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|