chrome-devtools-frontend 1.0.1555174 → 1.0.1556696
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/front_end/core/protocol_client/InspectorBackend.ts +1 -1
- package/front_end/core/root/Runtime.ts +0 -4
- package/front_end/core/sdk/DOMModel.ts +101 -7
- package/front_end/entrypoints/formatter_worker/FormatterActions.ts +2 -0
- package/front_end/entrypoints/formatter_worker/ScopeParser.ts +75 -7
- package/front_end/entrypoints/formatter_worker/Substitute.ts +1 -1
- package/front_end/generated/InspectorBackendCommands.ts +1 -1
- package/front_end/generated/protocol.ts +0 -1
- package/front_end/models/ai_assistance/AiConversation.ts +71 -10
- package/front_end/models/ai_assistance/ArtifactsManager.ts +67 -0
- package/front_end/models/ai_assistance/ConversationHandler.ts +3 -2
- package/front_end/models/ai_assistance/agents/AiAgent.ts +17 -27
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +152 -4
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +2 -2
- package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
- package/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +0 -2
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +1 -1
- package/front_end/{ui/components → models}/annotations/AnnotationRepository.ts +4 -4
- package/front_end/models/annotations/README.md +7 -0
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +8 -0
- package/front_end/models/greendev/Prototypes.ts +56 -0
- package/front_end/models/greendev/README.md +5 -0
- package/front_end/models/greendev/greendev.ts +5 -0
- package/front_end/models/stack_trace/StackTrace.ts +13 -2
- package/front_end/models/stack_trace/StackTraceImpl.ts +81 -6
- package/front_end/models/stack_trace/StackTraceModel.ts +35 -3
- package/front_end/models/trace/extras/TraceTree.ts +4 -2
- package/front_end/models/trace/insights/LCPDiscovery.ts +0 -2
- package/front_end/models/trace/types/TraceEvents.ts +0 -1
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +116 -70
- package/front_end/panels/ai_assistance/aiAssistancePanel.css +16 -0
- package/front_end/panels/ai_assistance/components/ArtifactsViewer.ts +159 -0
- package/front_end/panels/ai_assistance/components/ChatView.ts +3 -2
- package/front_end/panels/ai_assistance/components/CollapsibleAssistanceContentWidget.ts +7 -8
- package/front_end/panels/ai_assistance/components/PerformanceAgentFlameChart.ts +15 -8
- package/front_end/panels/ai_assistance/components/PerformanceAgentMarkdownRenderer.ts +9 -9
- package/front_end/panels/ai_assistance/components/artifactsViewer.css +15 -0
- package/front_end/panels/ai_assistance/components/collapsibleAssistanceContentWidget.css +5 -6
- package/front_end/panels/application/AppManifestView.ts +263 -205
- package/front_end/panels/application/ApplicationPanelSidebar.ts +24 -57
- package/front_end/panels/application/OpenedWindowDetailsView.ts +2 -0
- package/front_end/panels/application/ServiceWorkersView.ts +2 -0
- package/front_end/panels/application/StorageView.ts +1 -0
- package/front_end/panels/application/appManifestView.css +48 -0
- package/front_end/panels/application/components/ProtocolHandlersView.ts +2 -2
- package/front_end/panels/application/preloading/PreloadingView.ts +12 -6
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +230 -237
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +96 -79
- package/front_end/panels/application/preloading/components/preloadingGrid.css +26 -29
- package/front_end/panels/application/preloading/preloadingView.css +6 -0
- package/front_end/panels/common/Annotation.ts +1 -1
- package/front_end/panels/common/AnnotationManager.ts +1 -1
- package/front_end/panels/common/ExtensionView.ts +1 -0
- package/front_end/panels/console/ConsoleContextSelector.ts +74 -9
- package/front_end/panels/console/consoleContextSelector.css +31 -29
- package/front_end/panels/coverage/coverageListView.css +59 -57
- package/front_end/panels/elements/ElementsPanel.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +39 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +23 -21
- package/front_end/panels/elements/TopLayerContainer.ts +26 -91
- package/front_end/panels/explain/components/ConsoleInsight.ts +3 -3
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +4 -8
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +148 -97
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +37 -35
- package/front_end/panels/network/NetworkItemView.ts +1 -1
- package/front_end/panels/network/NetworkLogView.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +1 -1
- package/front_end/panels/recorder/RecorderController.ts +0 -1
- package/front_end/panels/security/SecurityPanelSidebar.ts +5 -0
- package/front_end/panels/settings/SettingsScreen.ts +133 -1
- package/front_end/panels/settings/settings-meta.ts +24 -0
- package/front_end/panels/settings/settingsScreen.css +4 -0
- package/front_end/panels/sources/UISourceCodeFrame.ts +3 -17
- package/front_end/panels/timeline/TimelineUIUtils.ts +5 -8
- package/front_end/panels/timeline/components/TimelineSummary.ts +75 -54
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +18 -26
- package/front_end/panels/timeline/components/insights/Cache.ts +12 -8
- package/front_end/panels/timeline/components/insights/DOMSize.ts +25 -21
- package/front_end/panels/timeline/components/insights/DuplicatedJavaScript.ts +7 -7
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +7 -5
- package/front_end/panels/timeline/components/insights/ForcedReflow.ts +11 -9
- package/front_end/panels/timeline/components/insights/INPBreakdown.ts +7 -6
- package/front_end/panels/timeline/components/insights/ImageDelivery.ts +7 -5
- package/front_end/panels/timeline/components/insights/InsightRenderer.ts +20 -18
- package/front_end/panels/timeline/components/insights/LCPBreakdown.ts +12 -12
- package/front_end/panels/timeline/components/insights/LegacyJavaScript.ts +7 -7
- package/front_end/panels/timeline/components/insights/ModernHTTP.ts +7 -5
- package/front_end/panels/timeline/components/insights/NetworkDependencyTree.ts +15 -13
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +2 -2
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +15 -14
- package/front_end/panels/timeline/components/insights/Table.ts +152 -130
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +11 -9
- package/front_end/panels/timeline/components/timelineSummary.css +58 -57
- package/front_end/panels/timeline/thirdPartyTreeView.css +109 -0
- package/front_end/panels/timeline/timelineDetailsView.css +2 -4
- package/front_end/panels/timeline/timelinePanel.css +0 -110
- package/front_end/third_party/acorn/estree-legacy.d.ts +2 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +21 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +15 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +21 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/package.json +2 -2
- package/front_end/third_party/puppeteer/package/src/api/CDPSession.ts +1 -2
- package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +2 -4
- package/front_end/third_party/puppeteer/package/src/api/Frame.ts +2 -4
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +2 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/Connection.ts +3 -2
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +29 -10
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/report_view/ReportView.docs.ts +37 -0
- package/front_end/ui/components/report_view/ReportView.ts +1 -4
- package/front_end/ui/components/settings/SettingCheckbox.ts +1 -1
- package/front_end/ui/legacy/Floaty.ts +5 -9
- package/front_end/ui/legacy/InspectorView.ts +2 -1
- package/front_end/ui/legacy/ReportView.ts +5 -4
- package/front_end/ui/legacy/TabbedPane.ts +1 -1
- package/front_end/ui/legacy/ViewManager.ts +2 -32
- package/front_end/ui/legacy/Widget.ts +7 -0
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +0 -1
- package/front_end/ui/legacy/reportView.css +0 -24
- package/front_end/ui/visual_logging/KnownContextValues.ts +7 -0
- package/package.json +1 -1
- /package/front_end/{ui/components → models}/annotations/AnnotationType.ts +0 -0
- /package/front_end/{ui/components → models}/annotations/annotations.ts +0 -0
|
@@ -9,8 +9,8 @@ import './Toolbar.js';
|
|
|
9
9
|
import * as Common from '../../core/common/common.js';
|
|
10
10
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
11
11
|
import * as Platform from '../../core/platform/platform.js';
|
|
12
|
+
import * as Annotations from '../../models/annotations/annotations.js';
|
|
12
13
|
import * as Geometry from '../../models/geometry/geometry.js';
|
|
13
|
-
import * as Annotations from '../../ui/components/annotations/annotations.js';
|
|
14
14
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
15
15
|
import {type LitTemplate, render} from '../../ui/lit/lit.js';
|
|
16
16
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
@@ -9,7 +9,7 @@ import * as Common from '../../core/common/common.js';
|
|
|
9
9
|
import * as Host from '../../core/host/host.js';
|
|
10
10
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
11
11
|
import * as Platform from '../../core/platform/platform.js';
|
|
12
|
-
import * as Root from '../../core/root/root.js';
|
|
12
|
+
import type * as Root from '../../core/root/root.js';
|
|
13
13
|
import type * as Foundation from '../../foundation/foundation.js';
|
|
14
14
|
import {createIcon, type Icon} from '../kit/kit.js';
|
|
15
15
|
import * as VisualLogging from '../visual_logging/visual_logging.js';
|
|
@@ -18,7 +18,7 @@ import * as ARIAUtils from './ARIAUtils.js';
|
|
|
18
18
|
import type {ContextMenu} from './ContextMenu.js';
|
|
19
19
|
import {type EventData, Events as TabbedPaneEvents, TabbedPane} from './TabbedPane.js';
|
|
20
20
|
import {type ItemsProvider, type ToolbarItem, ToolbarMenuButton} from './Toolbar.js';
|
|
21
|
-
import {createTextChild
|
|
21
|
+
import {createTextChild} from './UIUtils.js';
|
|
22
22
|
import type {TabbedViewLocation, View, ViewLocation} from './View.js';
|
|
23
23
|
import viewContainersStyles from './viewContainers.css.js';
|
|
24
24
|
import {
|
|
@@ -756,31 +756,6 @@ class TabbedLocation extends Location implements TabbedViewLocation {
|
|
|
756
756
|
const views = Array.from(this.views.values());
|
|
757
757
|
views.sort((viewa, viewb) => viewa.title().localeCompare(viewb.title()));
|
|
758
758
|
|
|
759
|
-
const freestylerView = views.find(view => view.viewId() === 'freestyler');
|
|
760
|
-
if (freestylerView) {
|
|
761
|
-
const featureName = Root.Runtime.hostConfig.devToolsFreestyler?.featureName;
|
|
762
|
-
const promotionId =
|
|
763
|
-
(freestylerView instanceof PreRegisteredView) ? freestylerView.featurePromotionId() : undefined;
|
|
764
|
-
// Register this with the PromotionManager and the back-end, in order to make sure that
|
|
765
|
-
// showing the general ai assistance panel new badge is synchronized.
|
|
766
|
-
const handler = (): void => {
|
|
767
|
-
void this.showView(freestylerView, undefined, true);
|
|
768
|
-
if (promotionId) {
|
|
769
|
-
PromotionManager.instance().recordFeatureInteraction(promotionId);
|
|
770
|
-
}
|
|
771
|
-
};
|
|
772
|
-
contextMenu.defaultSection().appendItem(freestylerView.title(), handler, {
|
|
773
|
-
isPreviewFeature: freestylerView.isPreviewFeature(),
|
|
774
|
-
jslogContext: freestylerView.viewId(),
|
|
775
|
-
// Request to show a new badge in the native context menu only if:
|
|
776
|
-
// 1. The promotion manager agrees that we may show it, or 2. the promotion manager doesn't track this badge.
|
|
777
|
-
// Note that this is only a request to show the new badge, the back-end will decide whether
|
|
778
|
-
// or not it will show it depending on the user education service.
|
|
779
|
-
featureName: !promotionId || PromotionManager.instance().maybeShowPromotion(promotionId) ? featureName :
|
|
780
|
-
undefined,
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
|
|
784
759
|
for (const view of views) {
|
|
785
760
|
const title = view.title();
|
|
786
761
|
|
|
@@ -792,11 +767,6 @@ class TabbedLocation extends Location implements TabbedViewLocation {
|
|
|
792
767
|
continue;
|
|
793
768
|
}
|
|
794
769
|
|
|
795
|
-
if (view.viewId() === 'freestyler') {
|
|
796
|
-
// We have already taken care of this.
|
|
797
|
-
continue;
|
|
798
|
-
}
|
|
799
|
-
|
|
800
770
|
const isPreviewFeature = view.isPreviewFeature();
|
|
801
771
|
contextMenu.defaultSection().appendItem(
|
|
802
772
|
title, this.showView.bind(this, view, undefined, true), {isPreviewFeature, jslogContext: view.viewId()});
|
|
@@ -247,6 +247,13 @@ export class WidgetElement<WidgetT extends Widget> extends HTMLElement {
|
|
|
247
247
|
};
|
|
248
248
|
return clone;
|
|
249
249
|
}
|
|
250
|
+
|
|
251
|
+
override focus(): void {
|
|
252
|
+
const widget = Widget.get(this);
|
|
253
|
+
if (widget) {
|
|
254
|
+
widget.focus();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
250
257
|
}
|
|
251
258
|
|
|
252
259
|
customElements.define('devtools-widget', WidgetElement);
|
|
@@ -1513,7 +1513,6 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
1515
1515
|
#handleFlameChartTransformEvent(event: KeyboardEvent): void {
|
|
1516
|
-
// TODO(crbug.com/1469887): Indicate Shortcuts to the user when the designs are complete.
|
|
1517
1516
|
if (this.selectedEntryIndex === -1) {
|
|
1518
1517
|
return;
|
|
1519
1518
|
}
|
|
@@ -123,30 +123,6 @@
|
|
|
123
123
|
user-select: text;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.image-wrapper,
|
|
127
|
-
.image-wrapper img {
|
|
128
|
-
max-width: 200px;
|
|
129
|
-
max-height: 200px;
|
|
130
|
-
display: block;
|
|
131
|
-
object-fit: contain;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.image-wrapper {
|
|
135
|
-
height: fit-content;
|
|
136
|
-
margin-right: 8px;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.show-mask img {
|
|
140
|
-
/* The safe zone is a centrally positioned circle, with radius 2/5
|
|
141
|
-
* (40%) of the minimum of the icon's width and height.
|
|
142
|
-
* https://w3c.github.io/manifest/#icon-masks */
|
|
143
|
-
clip-path: circle(40% at 50% 50%);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.show-mask .image-wrapper {
|
|
147
|
-
background: var(--image-file-checker);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
126
|
@media (forced-colors: active) {
|
|
151
127
|
.report-field-value .inline-icon {
|
|
152
128
|
color: ButtonText;
|
|
@@ -1742,6 +1742,11 @@ export const knownContextValues = new Set([
|
|
|
1742
1742
|
'gotpointercapture',
|
|
1743
1743
|
'grace-period-link',
|
|
1744
1744
|
'grace-period-mitigation-disabled',
|
|
1745
|
+
'greendev-ai-annotations-enabled',
|
|
1746
|
+
'greendev-artifact-viewer-enabled',
|
|
1747
|
+
'greendev-in-devtools-floaty-enabled',
|
|
1748
|
+
'greendev-inline-widgets-enabled',
|
|
1749
|
+
'greendev-prototypes',
|
|
1745
1750
|
'grid',
|
|
1746
1751
|
'grid-align',
|
|
1747
1752
|
'grid-area',
|
|
@@ -3234,6 +3239,7 @@ export const knownContextValues = new Set([
|
|
|
3234
3239
|
'screen',
|
|
3235
3240
|
'screen-rotation',
|
|
3236
3241
|
'screencast-enabled',
|
|
3242
|
+
'screenshots',
|
|
3237
3243
|
'script',
|
|
3238
3244
|
'script-blocked-by-csp',
|
|
3239
3245
|
'script-first-statement',
|
|
@@ -4196,6 +4202,7 @@ export const knownContextValues = new Set([
|
|
|
4196
4202
|
'width',
|
|
4197
4203
|
'will-change',
|
|
4198
4204
|
'window',
|
|
4205
|
+
'window-controls',
|
|
4199
4206
|
'window-controls-overlay',
|
|
4200
4207
|
'windows',
|
|
4201
4208
|
'word-break',
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|