chrome-devtools-frontend 1.0.1739869 → 1.0.1742811
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/.agents/rules/ui-and-widgets/ui-accessibility-and-semantic-html.md +1 -1
- package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +44 -7
- package/.agents/rules/ui-and-widgets/ui-lit-declarative-templates-and-directives.md +1 -1
- package/.agents/rules/ui-and-widgets/ui-view-output-and-callback-contracts.md +2 -2
- package/.agents/rules/ui-and-widgets/ui-widget-dom-and-listener-lifecycle.md +1 -1
- package/.agents/skills/code-review/SKILL.md +23 -6
- package/.agents/skills/devtools-verification/SKILL.md +2 -1
- package/.agents/skills/migrate-chromium-test/SKILL.md +1 -0
- package/.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md +27 -11
- package/.agents/skills/ui-eng-vision-orchestrator/SKILL.md +41 -23
- package/.agents/skills/ui-eng-vision-test-scaffolder/SKILL.md +12 -7
- package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +3 -0
- package/.agents/skills/ui-widgets/SKILL.md +22 -7
- package/.agents/skills/version-control/SKILL.md +10 -1
- package/.agents/skills/visual-regression-audit/SKILL.md +88 -0
- package/.gitallowed +2 -1
- package/.stylelintignore +1 -0
- package/.stylelintrc.json +2 -0
- package/AUTHORS +1 -0
- package/DIR_METADATA +2 -1
- package/PRESUBMIT_test.py +143 -0
- package/config/owner/INFRA_OWNERS +0 -1
- package/docs/contributing/infrastructure.md +2 -2
- package/docs/ui_engineering.md +14 -4
- package/eslint.config.mjs +1 -18
- package/front_end/application_tokens.css +0 -35
- package/front_end/core/host/AidaClient.ts +1 -1
- package/front_end/core/host/AidaClientTypes.ts +2 -0
- package/front_end/core/host/AidaErrors.ts +3 -3
- package/front_end/core/host/AidaGcaTranslation.ts +39 -0
- package/front_end/core/host/GcaClient.ts +32 -20
- package/front_end/core/host/GcaTypes.ts +4 -2
- package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
- package/front_end/core/i18n/DevToolsLocale.ts +0 -1
- package/front_end/core/sdk/DebuggerModel.ts +25 -13
- package/front_end/core/sdk/PreloadingModel.ts +2 -2
- package/front_end/core/sdk/RehydratingConnection.ts +59 -30
- package/front_end/core/sdk/StorageKeyManager.ts +0 -1
- package/front_end/core/sdk/Target.ts +6 -0
- package/front_end/core/sdk/TargetManager.ts +10 -4
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +12 -2
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +159 -52
- package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +77 -25
- package/front_end/entrypoints/main/MainImpl.ts +32 -15
- package/front_end/models/ai_assistance/AiAgent2.ts +95 -46
- package/front_end/models/ai_assistance/AiConversation.ts +1 -1
- package/front_end/models/ai_assistance/agents/AiAgent.ts +9 -2
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +3 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +5 -4
- package/front_end/models/ai_assistance/performance/AICallTree.ts +7 -9
- package/front_end/models/ai_assistance/performance/AIQueries.ts +4 -8
- package/front_end/models/ai_assistance/skills/SkillRegistry.ts +11 -1
- package/front_end/models/ai_assistance/skills/lighthouse.md +1 -0
- package/front_end/models/ai_assistance/skills/network.md +3 -4
- package/front_end/models/ai_assistance/skills/sources.md +1 -2
- package/front_end/models/ai_assistance/skills/styling.md +3 -4
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +11 -3
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +84 -23
- package/front_end/models/ai_assistance/tools/ListSources.ts +41 -13
- package/front_end/models/badges/Badge.ts +0 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +1 -1
- package/front_end/models/breakpoints/BreakpointManager.ts +2 -4
- package/front_end/models/breakpoints/RecurringPauseDetector.ts +140 -0
- package/front_end/models/breakpoints/breakpoints.ts +2 -1
- package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +2 -2
- package/front_end/models/persistence/Automapping.ts +0 -1
- package/front_end/models/trace/Processor.ts +16 -7
- package/front_end/models/trace/README.md +17 -1
- package/front_end/models/trace/extras/ThirdParties.ts +4 -6
- package/front_end/models/trace/extras/TraceTree.ts +69 -72
- package/front_end/models/trace/handlers/MetaHandler.ts +3 -0
- package/front_end/models/trace/handlers/types.ts +15 -0
- package/front_end/models/trace/helpers/Trace.ts +5 -3
- package/front_end/models/trace/lantern/simulation/Simulator.ts +4 -1
- package/front_end/models/web_mcp/WebMCPModel.ts +19 -9
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +30 -3
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +2 -4
- package/front_end/panels/ai_assistance/components/chatMessage.css +1 -22
- package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -19
- package/front_end/panels/ai_assistance/components/optInChangeDialog.css +1 -1
- package/front_end/panels/ai_assistance/components/walkthroughView.css +0 -13
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +3 -2
- package/front_end/panels/animation/AnimationTimeline.ts +5 -3
- package/front_end/panels/animation/animationTimeline.css +10 -8
- package/front_end/panels/application/ApplicationPanelSidebar.ts +14 -11
- package/front_end/panels/application/ReportingApiView.ts +0 -1
- package/front_end/panels/application/SubAppsView.ts +0 -1
- package/front_end/panels/application/WebMCPTreeElement.ts +3 -6
- package/front_end/panels/application/WebMCPView.ts +30 -0
- package/front_end/panels/application/components/ReportsGrid.ts +0 -1
- package/front_end/panels/application/components/backForwardCacheView.css +0 -7
- package/front_end/panels/application/components/permissionsPolicySection.css +2 -2
- package/front_end/panels/application/components/protocolHandlersView.css +46 -39
- package/front_end/panels/application/components/trustTokensView.css +0 -4
- package/front_end/panels/application/cookieItemsView.css +0 -7
- package/front_end/panels/application/indexedDBViews.css +0 -6
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +0 -2
- package/front_end/panels/application/preloading/components/PreloadingString.ts +0 -1
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +4 -5
- package/front_end/panels/application/preloading/components/preloadingGrid.css +0 -9
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -9
- package/front_end/panels/application/serviceWorkersView.css +5 -4
- package/front_end/panels/application/storageView.css +0 -5
- package/front_end/panels/application/webMCPView.css +17 -0
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +15 -20
- package/front_end/panels/changes/changesView.css +0 -5
- package/front_end/panels/common/ExtensionServer.ts +80 -10
- package/front_end/panels/console/ConsolePanel.ts +92 -18
- package/front_end/panels/console/consoleContextSelector.css +1 -8
- package/front_end/panels/console/consoleInsightTeaser.css +10 -17
- package/front_end/panels/console/consolePinPane.css +3 -1
- package/front_end/panels/console/consoleView.css +13 -17
- package/front_end/panels/coverage/coverageListView.css +0 -4
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +0 -22
- package/front_end/panels/css_overview/cssOverviewStartView.css +0 -43
- package/front_end/panels/developer_resources/developerResourcesListView.css +0 -4
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +52 -45
- package/front_end/panels/elements/LayoutPane.ts +1 -3
- package/front_end/panels/elements/PropertiesWidget.ts +26 -8
- package/front_end/panels/elements/PropertyRenderer.ts +45 -21
- package/front_end/panels/elements/StandaloneStylesContainer.ts +6 -7
- package/front_end/panels/elements/StyleEditorWidget.ts +110 -63
- package/front_end/panels/elements/StylePropertiesSection.ts +14 -5
- package/front_end/panels/elements/StylePropertyTreeElement.ts +529 -518
- package/front_end/panels/elements/StylesContainer.ts +5 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +12 -15
- package/front_end/panels/elements/components/CSSVariableValueView.ts +17 -4
- package/front_end/panels/elements/components/StylePropertyEditor.ts +178 -140
- package/front_end/panels/elements/components/cssQuery.css +1 -1
- package/front_end/panels/elements/components/stylePropertyEditor.css +60 -56
- package/front_end/panels/elements/layoutPane.css +2 -2
- package/front_end/panels/elements/metricsSidebarPane.css +6 -7
- package/front_end/panels/elements/platformFontsWidget.css +1 -1
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +1 -6
- package/front_end/panels/elements/stylesSidebarPane.css +3 -4
- package/front_end/panels/emulation/deviceModeView.css +1 -1
- package/front_end/panels/event_listeners/EventListenersView.ts +9 -2
- package/front_end/panels/event_listeners/eventListenersView.css +1 -1
- package/front_end/panels/explain/components/consoleInsight.css +1 -2
- package/front_end/panels/issues/issuesTree.css +6 -43
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layer_viewer/paintProfiler.css +4 -3
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +1 -6
- package/front_end/panels/lighthouse/lighthouseStartView.css +5 -16
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +0 -1
- package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +1 -1
- package/front_end/panels/media/playerListView.css +1 -2
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +2 -2
- package/front_end/panels/network/NetworkLogView.ts +594 -580
- package/front_end/panels/network/RequestCookiesView.ts +0 -1
- package/front_end/panels/network/networkConfigView.css +1 -2
- package/front_end/panels/network/networkLogView.css +363 -364
- package/front_end/panels/network/networkPanel.css +1 -5
- package/front_end/panels/network/networkTimingTable.css +1 -1
- package/front_end/panels/network/networkWaterfallColumn.css +1 -1
- package/front_end/panels/network/requestConditionsDrawer.css +0 -4
- package/front_end/panels/network/requestCookiesView.css +7 -1
- package/front_end/panels/network/requestPayloadTree.css +0 -4
- package/front_end/panels/profiler/HeapProfileView.ts +1 -3
- package/front_end/panels/profiler/HeapSnapshotView.ts +0 -7
- package/front_end/panels/recorder/RecorderPanel.ts +1 -1
- package/front_end/panels/recorder/RecordingView.ts +10 -10
- package/front_end/panels/recorder/StepView.ts +5 -4
- package/front_end/panels/recorder/createRecordingView.css +1 -1
- package/front_end/panels/recorder/recorderPanel.css +0 -8
- package/front_end/panels/recorder/recordingListView.css +4 -4
- package/front_end/panels/recorder/recordingView.css +12 -20
- package/front_end/panels/recorder/stepEditor.css +4 -4
- package/front_end/panels/recorder/stepView.css +31 -9
- package/front_end/panels/recorder/timelineSection.css +4 -0
- package/front_end/panels/screencast/ScreencastApp.ts +0 -1
- package/front_end/panels/security/mainView.css +1 -1
- package/front_end/panels/security/originView.css +2 -2
- package/front_end/panels/sensors/SensorsView.ts +273 -346
- package/front_end/panels/settings/BackendLinkingSettingsTab.ts +0 -1
- package/front_end/panels/settings/backendLinkingSettingsTab.css +7 -7
- package/front_end/panels/settings/components/syncSection.css +0 -1
- package/front_end/panels/settings/workspaceSettingsTab.css +0 -5
- package/front_end/panels/sources/CSSPlugin.ts +177 -98
- package/front_end/panels/sources/DebuggerPausedMessage.ts +100 -27
- package/front_end/panels/sources/NavigatorView.ts +926 -946
- package/front_end/panels/sources/SourcesPanel.ts +9 -2
- package/front_end/panels/sources/breakpointsView.css +6 -29
- package/front_end/panels/sources/components/HeadersView.css +2 -2
- package/front_end/panels/sources/debuggerPausedMessage.css +7 -0
- package/front_end/panels/sources/navigatorTree.css +7 -2
- package/front_end/panels/sources/sourcesNavigator.css +0 -9
- package/front_end/panels/sources/watchExpressionsSidebarPane.css +0 -10
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +3 -0
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +0 -10
- package/front_end/panels/timeline/ModificationsManager.ts +0 -1
- package/front_end/panels/timeline/ThreadAppender.ts +2 -6
- package/front_end/panels/timeline/TimelinePanel.ts +2 -2
- package/front_end/panels/timeline/TimelineTreeView.ts +38 -41
- package/front_end/panels/timeline/TimelineUIUtils.ts +8 -10
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +0 -2
- package/front_end/panels/timeline/components/fieldSettingsDialog.css +1 -6
- package/front_end/panels/timeline/components/insights/baseInsightComponent.css +0 -12
- package/front_end/panels/timeline/components/interactionBreakdown.css +1 -2
- package/front_end/panels/timeline/components/layoutShiftDetails.css +2 -9
- package/front_end/panels/timeline/components/liveMetricsView.css +0 -16
- package/front_end/panels/timeline/components/metricCard.css +1 -5
- package/front_end/panels/timeline/components/networkRequestDetails.css +3 -4
- package/front_end/panels/timeline/components/networkRequestTooltip.css +6 -4
- package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +1 -1
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -2
- package/front_end/panels/timeline/timelineDetailsView.css +1 -12
- package/front_end/panels/timeline/timelineFlamechartPopover.css +0 -4
- package/front_end/panels/timeline/timelineMiniMap.css +1 -4
- package/front_end/panels/timeline/timelinePanel.css +0 -4
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
- package/front_end/panels/timeline/timelineTreeView.css +0 -12
- package/front_end/panels/timeline/utils/EntryNodes.ts +1 -1
- package/front_end/panels/webauthn/webauthnPane.css +1 -7
- package/front_end/panels/whats_new/ReleaseNoteText.ts +1 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/adorners/adorner.css +1 -1
- package/front_end/ui/components/buttons/button.css +0 -28
- package/front_end/ui/components/buttons/textButton.css +1 -45
- package/front_end/ui/components/input/checkbox.css +3 -3
- package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
- package/front_end/ui/components/menus/Menu.ts +14 -0
- package/front_end/ui/components/menus/menu.css +2 -14
- package/front_end/ui/components/menus/menuItem.css +0 -4
- package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/survey_link/surveyLink.css +3 -3
- package/front_end/ui/components/switch/switch.css +3 -2
- package/front_end/ui/components/text_editor/theme.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +3 -3
- package/front_end/ui/components/tree_outline/treeOutline.css +0 -23
- package/front_end/ui/legacy/ContextMenu.ts +5 -5
- package/front_end/ui/legacy/SoftContextMenu.ts +24 -8
- package/front_end/ui/legacy/Toolbar.ts +1 -1
- package/front_end/ui/legacy/Treeoutline.ts +31 -78
- package/front_end/ui/legacy/UIUtils.ts +9 -17
- package/front_end/ui/legacy/checkboxTextLabel.css +2 -44
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +39 -27
- package/front_end/ui/legacy/components/color_picker/spectrum.css +2 -10
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +2 -6
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +34 -26
- package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/swatchPopover.css +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +49 -1
- package/front_end/ui/legacy/components/object_ui/objectPopover.css +0 -4
- package/front_end/ui/legacy/components/perf_ui/chartViewport.css +1 -9
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +2 -1
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +0 -5
- package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +6 -3
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +95 -1
- package/front_end/ui/legacy/filter.css +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +6 -28
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
- package/front_end/ui/legacy/listWidget.css +1 -1
- package/front_end/ui/legacy/progressIndicator.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +6 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
- package/front_end/ui/visual_logging/LoggingDriver.ts +4 -0
- package/front_end/ui/visual_logging/visual_logging.ts +1 -1
- package/inspector_overlay/common.ts +0 -3
- package/inspector_overlay/main.ts +1 -3
- package/inspector_overlay/tool_source_order.css +0 -4
- package/package.json +1 -1
- package/front_end/generated/SupportedCSSProperties.ts +0 -9705
|
@@ -551,6 +551,11 @@ export abstract class ObjectTreeNodeBase extends Common.ObjectWrapper.ObjectWrap
|
|
|
551
551
|
if (this.#expanded !== val) {
|
|
552
552
|
this.#expanded = val;
|
|
553
553
|
this.dispatchEventToListeners(ObjectTreeNodeBase.Events.EXPANDED_CHANGED, val);
|
|
554
|
+
if (val) {
|
|
555
|
+
for (let ancestor = this.parent; ancestor; ancestor = ancestor.parent) {
|
|
556
|
+
ancestor.dispatchEventToListeners(ObjectTreeNodeBase.Events.NODE_EXPANDED, this);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
554
559
|
}
|
|
555
560
|
}
|
|
556
561
|
|
|
@@ -804,12 +809,14 @@ export namespace ObjectTreeNodeBase {
|
|
|
804
809
|
CHILDREN_CHANGED = 'children-changed',
|
|
805
810
|
FILTER_CHANGED = 'filter-changed',
|
|
806
811
|
EXPANDED_CHANGED = 'expanded-changed',
|
|
812
|
+
NODE_EXPANDED = 'node-expanded',
|
|
807
813
|
}
|
|
808
814
|
export interface EventTypes {
|
|
809
815
|
[Events.VALUE_CHANGED]: void;
|
|
810
816
|
[Events.CHILDREN_CHANGED]: void;
|
|
811
817
|
[Events.FILTER_CHANGED]: void;
|
|
812
818
|
[Events.EXPANDED_CHANGED]: boolean;
|
|
819
|
+
[Events.NODE_EXPANDED]: ObjectTreeNodeBase;
|
|
813
820
|
}
|
|
814
821
|
}
|
|
815
822
|
|
|
@@ -889,7 +896,7 @@ class ArrayGroupTreeNode extends ObjectTreeNodeBase {
|
|
|
889
896
|
|
|
890
897
|
export class ObjectTreeNode extends ObjectTreeNodeBase {
|
|
891
898
|
#path?: string;
|
|
892
|
-
showAllChildren
|
|
899
|
+
#showAllChildren = false;
|
|
893
900
|
constructor(
|
|
894
901
|
readonly property: SDK.RemoteObject.RemoteObjectProperty,
|
|
895
902
|
parent: ObjectTreeNodeBase|undefined,
|
|
@@ -897,6 +904,17 @@ export class ObjectTreeNode extends ObjectTreeNodeBase {
|
|
|
897
904
|
) {
|
|
898
905
|
super(parent, options);
|
|
899
906
|
}
|
|
907
|
+
|
|
908
|
+
get showAllChildren(): boolean {
|
|
909
|
+
return this.#showAllChildren;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
set showAllChildren(value: boolean) {
|
|
913
|
+
if (this.#showAllChildren !== value) {
|
|
914
|
+
this.#showAllChildren = value;
|
|
915
|
+
this.dispatchEventToListeners(ObjectTreeNodeBase.Events.CHILDREN_CHANGED);
|
|
916
|
+
}
|
|
917
|
+
}
|
|
900
918
|
override get object(): SDK.RemoteObject.RemoteObject|undefined {
|
|
901
919
|
return this.property.value;
|
|
902
920
|
}
|
|
@@ -1043,6 +1061,36 @@ export class ObjectTreeNode extends ObjectTreeNodeBase {
|
|
|
1043
1061
|
}
|
|
1044
1062
|
}
|
|
1045
1063
|
|
|
1064
|
+
// 3. Fall back to matching the property path (e.g. items[1].id) if name and value did not match
|
|
1065
|
+
if (results.length === 0 && !this.property.synthetic && this.path !== this.name) {
|
|
1066
|
+
const parentPath =
|
|
1067
|
+
(this.parent instanceof ObjectTreeNode && !this.parent.property.synthetic) ? this.parent.path : '';
|
|
1068
|
+
const matchesLeafInPath = (candidatePath: string, candidateParentPath: string): boolean => {
|
|
1069
|
+
const leafStart = candidateParentPath.length + 1;
|
|
1070
|
+
for (const m of candidatePath.matchAll(nameGlobalRegex)) {
|
|
1071
|
+
const start = m.index ?? 0;
|
|
1072
|
+
const end = start + m[0].length;
|
|
1073
|
+
if (start < leafStart && end > leafStart) {
|
|
1074
|
+
return true;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
return false;
|
|
1078
|
+
};
|
|
1079
|
+
// Also support dot-notation array indexing by translating e.g. items[1].id into items.1.id.
|
|
1080
|
+
const normalizedPath = this.path.replace(/\[(\d+)\]/g, '.$1');
|
|
1081
|
+
const normalizedParentPath = parentPath.replace(/\[(\d+)\]/g, '.$1');
|
|
1082
|
+
if (matchesLeafInPath(this.path, parentPath) ||
|
|
1083
|
+
(normalizedPath !== this.path && matchesLeafInPath(normalizedPath, normalizedParentPath))) {
|
|
1084
|
+
results.push({
|
|
1085
|
+
node: this,
|
|
1086
|
+
isPostOrderMatch: false,
|
|
1087
|
+
matchIndexInNode: 0,
|
|
1088
|
+
matchType: 'name',
|
|
1089
|
+
range: new TextUtils.TextRange.SourceRange(0, nameText.length),
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1046
1094
|
return results;
|
|
1047
1095
|
}
|
|
1048
1096
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
:host-context(.platform-mac) ::-webkit-scrollbar-thumb {
|
|
33
33
|
background-color: var(--color-scrollbar-mac); /* stylelint-disable-line plugin/use_theme_colors */
|
|
34
|
-
border-radius:
|
|
34
|
+
border-radius: var(--sys-shape-corner-full);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
:host-context(.platform-mac) .chart-viewport-v-scroll:hover::-webkit-scrollbar-thumb {
|
|
@@ -63,11 +63,3 @@
|
|
|
63
63
|
bottom: 0;
|
|
64
64
|
text-align: center;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
.chart-viewport-selection-overlay .time-span {
|
|
68
|
-
white-space: nowrap;
|
|
69
|
-
position: absolute;
|
|
70
|
-
left: 0;
|
|
71
|
-
right: 0;
|
|
72
|
-
bottom: 0;
|
|
73
|
-
}
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.overview-grid-window-resizer::after {
|
|
46
|
-
left
|
|
46
|
+
/* 2px (--sys-size-2) ::before left inset + 1px (--sys-size-1) ::before width + 2px (--sys-size-2) inter-grip gap */
|
|
47
|
+
left: calc(2 * var(--sys-size-2) + var(--sys-size-1));
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
.overview-grid-window-resizer:focus-visible {
|
|
@@ -114,11 +114,6 @@ devtools-text-prompt {
|
|
|
114
114
|
flex-shrink: 0;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
.filtered-list-widget-item .deprecated-tag {
|
|
118
|
-
font-size: var(--sys-typescale-body5-size);
|
|
119
|
-
color: var(--sys-color-token-subtle);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
117
|
.not-found-text {
|
|
123
118
|
display: flex;
|
|
124
119
|
align-items: center;
|
|
@@ -42,8 +42,11 @@ export function createSettingCheckbox(
|
|
|
42
42
|
return label;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
/**
|
|
46
|
+
* @param optionTextOverrides maps option values to the text that is shown instead of the registered option text.
|
|
47
|
+
*/
|
|
48
|
+
export function renderSettingSelect(setting: Common.Settings.Setting<unknown>, subtitle?: string, disabled?: boolean,
|
|
49
|
+
optionTextOverrides?: ReadonlyMap<string, string>): TemplateResult {
|
|
47
50
|
const uiDescriptor = SettingUIRegistration.SettingUIRegistration.resolve(setting.descriptor());
|
|
48
51
|
const name = uiDescriptor.title;
|
|
49
52
|
const options = uiDescriptor.options;
|
|
@@ -86,7 +89,7 @@ export function renderSettingSelect(setting: Common.Settings.Setting<unknown>, s
|
|
|
86
89
|
.selected=${setting.get() === option.value}
|
|
87
90
|
jslog=${VisualLogging.item(Platform.StringUtilities.toKebabCase(option.value)).track({click: true})}
|
|
88
91
|
>
|
|
89
|
-
${option.text}
|
|
92
|
+
${optionTextOverrides?.get(option.value) ?? option.text}
|
|
90
93
|
</option>
|
|
91
94
|
`;
|
|
92
95
|
}
|
|
@@ -109,6 +109,7 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
|
|
|
109
109
|
}
|
|
110
110
|
this.#parsedJSON = parsedJSON;
|
|
111
111
|
this.objectTree = null;
|
|
112
|
+
this.#autoExpandCanceled = false;
|
|
112
113
|
this.onSearchCanceled();
|
|
113
114
|
this.requestUpdate();
|
|
114
115
|
}
|
|
@@ -196,6 +197,7 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
|
|
|
196
197
|
});
|
|
197
198
|
if (!this.startCollapsed) {
|
|
198
199
|
this.objectTree.expanded = true;
|
|
200
|
+
void this.#autoExpandInitial(this.objectTree);
|
|
199
201
|
}
|
|
200
202
|
this.objectTree.addEventListener(ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase.Events.CHILDREN_CHANGED,
|
|
201
203
|
this.#onChildrenChanged, this);
|
|
@@ -203,6 +205,73 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
|
|
|
203
205
|
this.#onChildrenChanged, this);
|
|
204
206
|
}
|
|
205
207
|
|
|
208
|
+
static readonly #AUTO_EXPAND_ROW_BUDGET = 30;
|
|
209
|
+
static readonly #AUTO_EXPAND_MAX_DEPTH = 4;
|
|
210
|
+
#autoExpandCanceled = false;
|
|
211
|
+
|
|
212
|
+
async #autoExpandInitial(tree: ObjectUI.ObjectPropertiesSection.ObjectTree): Promise<void> {
|
|
213
|
+
await tree.populateChildrenIfNeeded();
|
|
214
|
+
if (this.objectTree !== tree || !tree.expanded || this.#autoExpandCanceled) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const rootChildren = Array.from(tree.treeNodeChildren());
|
|
219
|
+
let visibleRows = Math.max(rootChildren.length, tree.arrayLength);
|
|
220
|
+
let frontier = rootChildren.filter(n => n.hasChildren && n.canExpandRecursively);
|
|
221
|
+
|
|
222
|
+
for (let depth = 1; depth < JSONView.#AUTO_EXPAND_MAX_DEPTH && frontier.length > 0; depth++) {
|
|
223
|
+
// Rule 1: always unwrap a single-child wrapper chain (e.g. {data: {user: ...}}).
|
|
224
|
+
if (frontier.length === 1 && visibleRows <= JSONView.#AUTO_EXPAND_ROW_BUDGET) {
|
|
225
|
+
const only = frontier[0];
|
|
226
|
+
await only.populateChildrenIfNeeded();
|
|
227
|
+
if (this.objectTree !== tree || !tree.expanded || this.#autoExpandCanceled) {
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
const onlyChildren = Array.from(only.treeNodeChildren());
|
|
231
|
+
const added = Math.max(onlyChildren.length, only.arrayLength);
|
|
232
|
+
if (added > 1 && visibleRows + added > JSONView.#AUTO_EXPAND_ROW_BUDGET) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
only.expanded = true;
|
|
236
|
+
visibleRows += added;
|
|
237
|
+
frontier = onlyChildren.filter(n => n.hasChildren && n.canExpandRecursively);
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Rule 2: level-atomic expansion — expand every node at this depth or none.
|
|
242
|
+
let addedRows = 0;
|
|
243
|
+
for (const node of frontier) {
|
|
244
|
+
await node.populateChildrenIfNeeded();
|
|
245
|
+
if (this.objectTree !== tree || !tree.expanded || this.#autoExpandCanceled) {
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
const nodeChildren = Array.from(node.treeNodeChildren());
|
|
249
|
+
addedRows += Math.max(nodeChildren.length, node.arrayLength);
|
|
250
|
+
if (visibleRows + addedRows > JSONView.#AUTO_EXPAND_ROW_BUDGET) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (visibleRows + addedRows > JSONView.#AUTO_EXPAND_ROW_BUDGET) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
const nextFrontier: ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase[] = [];
|
|
259
|
+
for (const node of frontier) {
|
|
260
|
+
node.expanded = true;
|
|
261
|
+
for (const child of node.treeNodeChildren()) {
|
|
262
|
+
if (child.hasChildren && child.canExpandRecursively) {
|
|
263
|
+
nextFrontier.push(child);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
visibleRows += addedRows;
|
|
268
|
+
frontier = nextFrontier;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
tree.dispatchEventToListeners(ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase.Events.CHILDREN_CHANGED);
|
|
272
|
+
this.requestUpdate();
|
|
273
|
+
}
|
|
274
|
+
|
|
206
275
|
#onChildrenChanged(): void {
|
|
207
276
|
this.requestUpdate();
|
|
208
277
|
}
|
|
@@ -215,6 +284,26 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
|
|
|
215
284
|
this.view({objectTree: this.objectTree, parsedJSON: this.#parsedJSON}, undefined, this.contentElement);
|
|
216
285
|
}
|
|
217
286
|
|
|
287
|
+
static readonly #MAX_SEARCH_NODES = 10000;
|
|
288
|
+
|
|
289
|
+
async #populateForSearch(root: ObjectUI.ObjectPropertiesSection.ObjectTree): Promise<void> {
|
|
290
|
+
const queue: ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase[] = [root];
|
|
291
|
+
let visited = 0;
|
|
292
|
+
while (queue.length > 0 && visited < JSONView.#MAX_SEARCH_NODES) {
|
|
293
|
+
const node = queue.shift();
|
|
294
|
+
if (!node || !node.canExpandRecursively) {
|
|
295
|
+
continue;
|
|
296
|
+
}
|
|
297
|
+
visited++;
|
|
298
|
+
await node.populateChildrenIfNeeded();
|
|
299
|
+
for (const child of node.treeNodeChildren()) {
|
|
300
|
+
if (child.hasChildren) {
|
|
301
|
+
queue.push(child);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
218
307
|
private jumpToMatch(): void {
|
|
219
308
|
if (this.searchableView) {
|
|
220
309
|
this.search.updateSearchableView(this.searchableView);
|
|
@@ -223,9 +312,13 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
|
|
|
223
312
|
if (currentMatch) {
|
|
224
313
|
let current = currentMatch.node.parent;
|
|
225
314
|
while (current) {
|
|
315
|
+
if (current instanceof ObjectUI.ObjectPropertiesSection.ObjectTreeNode) {
|
|
316
|
+
current.showAllChildren = true;
|
|
317
|
+
}
|
|
226
318
|
current.expanded = true;
|
|
227
319
|
current = current.parent;
|
|
228
320
|
}
|
|
321
|
+
this.requestUpdate();
|
|
229
322
|
}
|
|
230
323
|
}
|
|
231
324
|
|
|
@@ -239,13 +332,14 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
|
|
|
239
332
|
async performSearch(searchConfig: UI.SearchableView.SearchConfig, shouldJump: boolean,
|
|
240
333
|
jumpBackwards?: boolean): Promise<void> {
|
|
241
334
|
this.initialize();
|
|
335
|
+
this.#autoExpandCanceled = true;
|
|
242
336
|
this.onSearchCanceled();
|
|
243
337
|
const searchRegex = searchConfig.toSearchRegex(true).regex;
|
|
244
338
|
if (!this.objectTree) {
|
|
245
339
|
return;
|
|
246
340
|
}
|
|
247
341
|
|
|
248
|
-
await this.objectTree
|
|
342
|
+
await this.#populateForSearch(this.objectTree);
|
|
249
343
|
|
|
250
344
|
this.search.search(this.objectTree, jumpBackwards ?? false, (node, closeTag) => {
|
|
251
345
|
if (closeTag || !searchRegex) {
|
|
@@ -274,18 +274,6 @@ input[type='radio'] {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
@media (forced-colors: active) {
|
|
278
|
-
input[type='radio'] {
|
|
279
|
-
--gradient-start: ButtonFace;
|
|
280
|
-
--gradient-end: ButtonFace;
|
|
281
|
-
|
|
282
|
-
&:checked {
|
|
283
|
-
--gradient-start: Highlight;
|
|
284
|
-
--gradient-end: Highlight;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
277
|
/* Range inputs */
|
|
290
278
|
input[type='range'] {
|
|
291
279
|
appearance: none;
|
|
@@ -297,8 +285,7 @@ input[type='range'] {
|
|
|
297
285
|
background: none;
|
|
298
286
|
}
|
|
299
287
|
|
|
300
|
-
input[type='range']::-webkit-slider-thumb
|
|
301
|
-
.-theme-preserve {
|
|
288
|
+
input[type='range']::-webkit-slider-thumb {
|
|
302
289
|
appearance: none;
|
|
303
290
|
margin: 0;
|
|
304
291
|
padding: 0;
|
|
@@ -602,7 +589,7 @@ dt-icon-label {
|
|
|
602
589
|
button.link {
|
|
603
590
|
border: none;
|
|
604
591
|
background: none;
|
|
605
|
-
padding:
|
|
592
|
+
padding: var(--sys-size-2);
|
|
606
593
|
}
|
|
607
594
|
|
|
608
595
|
button.link:focus-visible {
|
|
@@ -645,7 +632,7 @@ button.link:focus-visible {
|
|
|
645
632
|
border: var(--override-spinner-size, 3px) solid
|
|
646
633
|
var(--override-spinner-color, var(--sys-color-token-subtle));
|
|
647
634
|
border-radius: var(--sys-shape-corner-medium-small);
|
|
648
|
-
clip-path: rect(0
|
|
635
|
+
clip-path: rect(0 var(--clip-size, 15px) var(--clip-size, 15px) 0);
|
|
649
636
|
content: '';
|
|
650
637
|
position: absolute;
|
|
651
638
|
animation: spinner-animation 1s linear infinite;
|
|
@@ -678,7 +665,7 @@ button.link:focus-visible {
|
|
|
678
665
|
:host-context(.theme-with-dark-background) devtools-adorner {
|
|
679
666
|
--override-adorner-border-color: var(--sys-color-tonal-outline);
|
|
680
667
|
--override-adorner-active-background-color: var(
|
|
681
|
-
--sys-color-state-
|
|
668
|
+
--sys-color-state-ripple-neutral-on-subtle
|
|
682
669
|
);
|
|
683
670
|
}
|
|
684
671
|
|
|
@@ -710,7 +697,6 @@ iframe.panel.extension {
|
|
|
710
697
|
|
|
711
698
|
@media (forced-colors: active) {
|
|
712
699
|
:root {
|
|
713
|
-
--legacy-accent-color: Highlight;
|
|
714
700
|
--legacy-focus-ring-inactive-shadow-color: ButtonText;
|
|
715
701
|
}
|
|
716
702
|
}
|
|
@@ -791,16 +777,8 @@ devtools-toolbar {
|
|
|
791
777
|
}
|
|
792
778
|
}
|
|
793
779
|
|
|
794
|
-
.toolbar-item-search {
|
|
795
|
-
min-width: 5.2em;
|
|
796
|
-
max-width: 300px;
|
|
797
|
-
flex: 1 1 auto;
|
|
798
|
-
justify-content: start;
|
|
799
|
-
overflow: revert;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
780
|
.toolbar-text {
|
|
803
|
-
margin: 0
|
|
781
|
+
margin: 0 var(--sys-size-3);
|
|
804
782
|
flex: none;
|
|
805
783
|
color: var(--ui-text);
|
|
806
784
|
}
|
|
@@ -988,7 +966,7 @@ devtools-toolbar {
|
|
|
988
966
|
.toolbar-divider {
|
|
989
967
|
background-color: var(--sys-color-divider);
|
|
990
968
|
width: var(--sys-size-1);
|
|
991
|
-
margin:
|
|
969
|
+
margin: var(--sys-size-3);
|
|
992
970
|
height: var(--sys-size-8);
|
|
993
971
|
}
|
|
994
972
|
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
width: auto;
|
|
244
244
|
flex: 0 0 auto;
|
|
245
245
|
flex-direction: column;
|
|
246
|
-
padding-top:
|
|
246
|
+
padding-top: var(--sys-size-3);
|
|
247
247
|
overflow: hidden;
|
|
248
248
|
}
|
|
249
249
|
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
color: var(--sys-color-on-surface);
|
|
278
278
|
position: relative;
|
|
279
279
|
|
|
280
|
-
& > .tabbed-pane-header-tab-icon
|
|
280
|
+
& > .tabbed-pane-header-tab-icon {
|
|
281
281
|
margin: 0;
|
|
282
282
|
margin-right: var(--sys-size-6);
|
|
283
283
|
}
|
|
@@ -289,6 +289,10 @@
|
|
|
289
289
|
& > .tabbed-pane-header-tab-icon devtools-icon {
|
|
290
290
|
color: var(--app-color-navigation-drawer-label-selected);
|
|
291
291
|
}
|
|
292
|
+
|
|
293
|
+
& > .tabbed-pane-header-tab-icon slot::slotted(devtools-icon) {
|
|
294
|
+
color: var(--app-color-navigation-drawer-label-selected);
|
|
295
|
+
}
|
|
292
296
|
}
|
|
293
297
|
|
|
294
298
|
&:focus-visible {
|
|
@@ -429,6 +429,7 @@ export const knownContextValues: Set<string> = new Set([
|
|
|
429
429
|
'ai-permission-revoked',
|
|
430
430
|
'ai-remove-allowed-tool',
|
|
431
431
|
'ai-show-walkthrough-sidebar',
|
|
432
|
+
'ai-v2-auto-learn-skill',
|
|
432
433
|
'ai-v2-context-agent-change',
|
|
433
434
|
'ai-v2-context-user-add',
|
|
434
435
|
'ai-v2-context-user-change',
|
|
@@ -54,6 +54,10 @@ export function isLogging(): boolean {
|
|
|
54
54
|
return logging;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
export function enableLogging(): void {
|
|
58
|
+
logging = true;
|
|
59
|
+
}
|
|
60
|
+
|
|
57
61
|
export async function startLogging(options?: {
|
|
58
62
|
processingThrottler?: Common.Throttler.Throttler,
|
|
59
63
|
keyboardLogThrottler?: Common.Throttler.Throttler,
|
|
@@ -20,7 +20,7 @@ export {
|
|
|
20
20
|
parseJsLog,
|
|
21
21
|
VisualElements,
|
|
22
22
|
} from './LoggingConfig.js';
|
|
23
|
-
export {addDocument, startLogging, stopLogging} from './LoggingDriver.js';
|
|
23
|
+
export {addDocument, enableLogging, startLogging, stopLogging} from './LoggingDriver.js';
|
|
24
24
|
export {logImpressions, logSettingAccess, logFunctionCall} from './LoggingEvents.js';
|
|
25
25
|
export const logClick = (loggable: Loggable, event: Event, options: {doubleClick?: boolean} = {}): void =>
|
|
26
26
|
LoggingEvents.logClick(LoggingDriver.clickLogThrottler)(loggable, event, options);
|
|
@@ -136,9 +136,6 @@ export class Overlay {
|
|
|
136
136
|
setPlatform(platform: string): void {
|
|
137
137
|
this.platform = platform;
|
|
138
138
|
this.document.body.classList.add('platform-' + platform);
|
|
139
|
-
if (!this._installed) {
|
|
140
|
-
this.install();
|
|
141
|
-
}
|
|
142
139
|
}
|
|
143
140
|
|
|
144
141
|
dispatch(message: unknown[]): void {
|
|
@@ -89,15 +89,13 @@ const dispatch = <K extends keyof MessageLookup>(message: [a: K, b: MessageLooku
|
|
|
89
89
|
}
|
|
90
90
|
currentOverlay = overlays[overlayName];
|
|
91
91
|
currentOverlay.setPlatform(platformName);
|
|
92
|
-
// TODO: setPlatform invokes install() for compatibility with the backend.
|
|
93
|
-
// The call to install() can be removed from setPlatform() after the backend is updated.
|
|
94
92
|
if (!currentOverlay.installed) {
|
|
95
93
|
currentOverlay.install();
|
|
96
94
|
}
|
|
97
95
|
} else if (functionName === 'setPlatform') {
|
|
98
96
|
platformName = message[1] as PlatformName;
|
|
99
97
|
} else if (functionName === 'drawingFinished') {
|
|
100
|
-
//
|
|
98
|
+
// Sent by InspectorOverlayAgent::PaintOverlayPage after drawing commands.
|
|
101
99
|
} else {
|
|
102
100
|
currentOverlay.dispatch(message);
|
|
103
101
|
}
|
|
@@ -27,10 +27,6 @@
|
|
|
27
27
|
border-bottom-right-radius: var(--border-radius);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.bottom-corner {
|
|
31
|
-
border-top-right-radius: var(--border-radius);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
30
|
.above-element {
|
|
35
31
|
border-top-right-radius: var(--border-radius);
|
|
36
32
|
border-top-left-radius: var(--border-radius);
|
package/package.json
CHANGED