chrome-devtools-frontend 1.0.1736236 → 1.0.1738725

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.
Files changed (134) hide show
  1. package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +1 -1
  2. package/.agents/skills/version-control/SKILL.md +63 -11
  3. package/docs/devtools-protocol.md +3 -1
  4. package/eslint.config.mjs +0 -6
  5. package/front_end/core/host/AidaClient.ts +14 -36
  6. package/front_end/core/host/AidaGcaTranslation.ts +8 -5
  7. package/front_end/core/root/Runtime.ts +0 -5
  8. package/front_end/design_system_tokens.css +1 -0
  9. package/front_end/entrypoints/main/GlobalAiButton.ts +2 -9
  10. package/front_end/entrypoints/main/MainImpl.ts +0 -4
  11. package/front_end/generated/SupportedCSSProperties.ts +8 -23
  12. package/front_end/models/ai-utils/AiUtils.ts +1 -5
  13. package/front_end/models/ai_assistance/agents/AiAgent.ts +2 -18
  14. package/front_end/models/ai_assistance/contexts/FileContext.ts +1 -2
  15. package/front_end/models/ai_assistance/tools/ListSources.ts +3 -1
  16. package/front_end/models/ai_code_generation/AiCodeGeneration.ts +0 -6
  17. package/front_end/models/javascript_metadata/NativeFunctions.ts +9 -5
  18. package/front_end/models/trace/EventsSerializer.ts +0 -8
  19. package/front_end/models/workspace/UISourceCode.ts +30 -8
  20. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -7
  21. package/front_end/panels/ai_assistance/ai_assistance-meta.ts +15 -34
  22. package/front_end/panels/ai_assistance/components/ChatView.ts +2 -16
  23. package/front_end/panels/ai_assistance/components/chatView.css +0 -32
  24. package/front_end/panels/ai_assistance/components/walkthroughView.css +1 -1
  25. package/front_end/panels/animation/AnimationTimeline.ts +1 -1
  26. package/front_end/panels/animation/animationTimeline.css +5 -3
  27. package/front_end/panels/application/PrivateVerificationTokensView.ts +114 -26
  28. package/front_end/panels/application/ResourcesPanel.ts +1 -0
  29. package/front_end/panels/application/backgroundServiceView.css +2 -2
  30. package/front_end/panels/application/components/permissionsPolicySection.css +0 -4
  31. package/front_end/panels/application/frameDetailsReportView.css +0 -7
  32. package/front_end/panels/application/indexedDBViews.css +3 -3
  33. package/front_end/panels/application/privateVerificationTokensView.css +6 -0
  34. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +1 -1
  35. package/front_end/panels/application/serviceWorkersView.css +2 -2
  36. package/front_end/panels/comments/CommentsPane.ts +1 -1
  37. package/front_end/panels/comments/commentsPane.css +1 -1
  38. package/front_end/panels/common/common.ts +0 -1
  39. package/front_end/panels/console/ConsoleView.ts +11 -1
  40. package/front_end/panels/console/ConsoleViewMessage.ts +5 -1
  41. package/front_end/panels/console/consolePinPane.css +1 -1
  42. package/front_end/panels/console/consoleView.css +5 -4
  43. package/front_end/panels/elements/DOMTreeWidget.ts +47 -5
  44. package/front_end/panels/elements/layoutPane.css +0 -1
  45. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -0
  46. package/front_end/panels/emulation/deviceModeView.css +0 -1
  47. package/front_end/panels/issues/issuesTree.css +2 -2
  48. package/front_end/panels/layer_viewer/LayerDetailsView.ts +34 -17
  49. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +39 -17
  50. package/front_end/panels/layer_viewer/Layers3DView.ts +34 -13
  51. package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
  52. package/front_end/panels/layer_viewer/layers3DView.css +0 -4
  53. package/front_end/panels/media/playerListView.css +0 -18
  54. package/front_end/panels/media/playerPropertiesView.css +1 -1
  55. package/front_end/panels/network/NetworkWaterfallColumn.ts +22 -10
  56. package/front_end/panels/network/RequestPreviewView.ts +182 -63
  57. package/front_end/panels/network/SignedExchangeInfoView.ts +242 -158
  58. package/front_end/panels/network/networkConfigView.css +1 -1
  59. package/front_end/panels/network/networkLogView.css +2 -1
  60. package/front_end/panels/network/networkPanel.css +0 -5
  61. package/front_end/panels/network/networkTimingTable.css +1 -1
  62. package/front_end/panels/network/signedExchangeInfoView.css +12 -8
  63. package/front_end/panels/performance_monitor/performanceMonitor.css +2 -2
  64. package/front_end/panels/profiler/IsolateSelector.ts +31 -10
  65. package/front_end/panels/profiler/profilesPanel.css +0 -8
  66. package/front_end/panels/protocol_monitor/JSONEditor.css +1 -1
  67. package/front_end/panels/screencast/screencastView.css +2 -2
  68. package/front_end/panels/security/SecurityPanel.ts +474 -418
  69. package/front_end/panels/security/SecurityPanelSidebar.ts +68 -48
  70. package/front_end/panels/security/lockIcon.css +52 -50
  71. package/front_end/panels/security/mainView.css +149 -145
  72. package/front_end/panels/security/originView.css +117 -115
  73. package/front_end/panels/sensors/LocationsSettingsTab.ts +2 -50
  74. package/front_end/panels/sensors/locationsSettingsTab.css +1 -21
  75. package/front_end/panels/settings/AISettingsTab.ts +1 -2
  76. package/front_end/panels/settings/SettingsScreen.ts +1 -1
  77. package/front_end/panels/sources/CallStackSidebarPane.ts +31 -6
  78. package/front_end/panels/sources/NavigatorView.ts +105 -31
  79. package/front_end/panels/sources/breakpointsView.css +2 -1
  80. package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
  81. package/front_end/panels/timeline/ThirdPartyTreeView.ts +1 -0
  82. package/front_end/panels/timeline/TimelineLayersView.ts +108 -46
  83. package/front_end/panels/timeline/TimelinePanel.ts +4 -2
  84. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +1 -1
  85. package/front_end/panels/timeline/components/networkRequestDetails.css +1 -1
  86. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +0 -7
  87. package/front_end/panels/web_audio/webAudio.css +1 -2
  88. package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
  89. package/front_end/panels/whats_new/ReleaseNoteText.ts +6 -6
  90. package/front_end/panels/whats_new/resources/WNDT.md +6 -6
  91. package/front_end/third_party/chromium/README.chromium +1 -1
  92. package/front_end/ui/comments/CommentAnchorResolver.ts +45 -4
  93. package/front_end/ui/comments/CommentOverlayManager.ts +45 -12
  94. package/front_end/ui/components/buttons/FloatingButton.ts +2 -6
  95. package/front_end/ui/components/buttons/button.css +2 -2
  96. package/front_end/ui/components/buttons/floatingButton.css +0 -44
  97. package/front_end/ui/components/icon_button/iconButton.css +1 -1
  98. package/front_end/ui/components/markdown_view/markdownView.css +1 -1
  99. package/front_end/ui/legacy/ContextMenu.ts +7 -5
  100. package/front_end/ui/legacy/InspectorDrawerView.ts +1 -0
  101. package/front_end/ui/legacy/InspectorView.ts +5 -1
  102. package/front_end/ui/legacy/PopoverHelper.ts +1 -0
  103. package/front_end/ui/legacy/RootView.ts +9 -3
  104. package/front_end/ui/legacy/SplitWidget.ts +1 -0
  105. package/front_end/ui/legacy/Treeoutline.ts +9 -0
  106. package/front_end/ui/legacy/UIUtils.ts +1 -1
  107. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +130 -137
  108. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
  109. package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
  110. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +1 -1
  111. package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -1
  112. package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +7 -6
  113. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +2 -0
  114. package/front_end/ui/legacy/components/perf_ui/pieChart.css +2 -2
  115. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -10
  116. package/front_end/ui/legacy/filter.css +1 -1
  117. package/front_end/ui/legacy/infobar.css +1 -1
  118. package/front_end/ui/legacy/inspectorCommon.css +2 -2
  119. package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +3 -3
  120. package/front_end/ui/legacy/listWidget.css +2 -7
  121. package/front_end/ui/legacy/softDropDownButton.css +1 -1
  122. package/front_end/ui/legacy/tabbedPane.css +2 -1
  123. package/front_end/ui/legacy/treeoutline.css +3 -2
  124. package/front_end/ui/visual_logging/KnownContextValues.ts +133 -0
  125. package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
  126. package/package.json +1 -1
  127. package/front_end/Images/geminiInDevTools.png +0 -0
  128. package/front_end/Images/geminiInDevTools_2x.png +0 -0
  129. package/front_end/generated/InspectorBackendCommands.ts +0 -1690
  130. package/front_end/generated/protocol-mapping.d.ts +0 -5986
  131. package/front_end/generated/protocol-proxy-api.d.ts +0 -5452
  132. package/front_end/generated/protocol.ts +0 -23364
  133. package/front_end/panels/common/GeminiRebrandPromoDialog.ts +0 -193
  134. package/front_end/panels/common/geminiRebrandPromoDialog.css +0 -47
@@ -1,193 +0,0 @@
1
- // Copyright 2026 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- // This dialog will be shown during M146 and removed by M147.
6
- //
7
- // To enable:
8
- // --enable-features=DevToolsGeminiRebranding
9
-
10
- import '../../ui/components/switch/switch.js';
11
- import '../../ui/kit/kit.js';
12
-
13
- import * as Common from '../../core/common/common.js';
14
- import * as Host from '../../core/host/host.js';
15
- import * as i18n from '../../core/i18n/i18n.js';
16
- import * as Root from '../../core/root/root.js';
17
- import * as Buttons from '../../ui/components/buttons/buttons.js';
18
- import * as Geometry from '../../ui/geometry/geometry.js';
19
- import * as UI from '../../ui/legacy/legacy.js';
20
- import {html, render} from '../../ui/lit/lit.js';
21
- import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
22
-
23
- import styles from './geminiRebrandPromoDialog.css.js';
24
-
25
- const UIStrings = {
26
- /**
27
- * @description ARIA label for the dialog.
28
- */
29
- dialogAriaLabel: '`Gemini 3 Flash` in `DevTools`',
30
- /**
31
- * @description Button text for dismissing the dialog.
32
- */
33
- dismiss: 'Dismiss',
34
- /**
35
- * @description Button text for getting started.
36
- */
37
- getStarted: 'Get started',
38
- /**
39
- * @description Feature item describing Gemini as an AI companion for web development.
40
- */
41
- detailAiCompanion: 'Meet your AI-powered companion for web dev',
42
- /**
43
- * @description Feature item describing instant answers for console errors.
44
- */
45
- detailConsoleErrors: 'Get instant, accurate answers for console errors',
46
- /**
47
- * @description Feature item describing CSS and JS snippet generation.
48
- */
49
- detailGenerateCode: 'Generate CSS and JS snippets on the fly',
50
- /**
51
- * @description Feature item describing automatic issue detection in performance traces.
52
- */
53
- detailPerformance: 'Automatically find issues in performance traces',
54
- } as const;
55
-
56
- const str_ = i18n.i18n.registerUIStrings('panels/common/GeminiRebrandPromoDialog.ts', UIStrings);
57
- const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
58
-
59
- interface ViewInput {
60
- onGetStartedClick: () => void;
61
- onCancelClick: () => void;
62
- }
63
-
64
- type View = (input: ViewInput, output: undefined, target: HTMLElement) => void;
65
-
66
- const PROMO_IMAGE_1X = new URL('../../Images/geminiInDevTools.png', import.meta.url).toString();
67
- const PROMO_IMAGE_2X = new URL('../../Images/geminiInDevTools_2x.png', import.meta.url).toString();
68
-
69
- export const DEFAULT_VIEW: View = (input, _output, target): void => {
70
- // clang-format off
71
- render(
72
- html`
73
- <style>${styles}</style>
74
-
75
- <div class="header">
76
- <div class="title">Gemini 3 Flash in DevTools</div>
77
- <div class="close-button">
78
- <devtools-button
79
- aria-hidden="true"
80
- tabindex="-1"
81
- .iconName=${'cross'}
82
- .variant=${Buttons.Button.Variant.ICON}
83
- .size=${Buttons.Button.Size.REGULAR}
84
- .title=${i18nString(UIStrings.dismiss)}
85
- jslog=${VisualLogging.close().track({click: true}).context('gemini-promo-dismiss')}
86
- @click=${() => input.onCancelClick()}
87
- ></devtools-button>
88
- </div>
89
- </div>
90
-
91
- <img class="banner-image" srcset=${`${PROMO_IMAGE_1X} 1x, ${PROMO_IMAGE_2X} 2x`}>
92
-
93
- <div class="main-content">
94
- <div class="detail-row">
95
- <devtools-icon name="performance"></devtools-icon>
96
- <div>${i18nString(UIStrings.detailAiCompanion)}</div>
97
- </div>
98
- <div class="detail-row">
99
- <devtools-icon name="lightbulb-spark"></devtools-icon>
100
- <div>${i18nString(UIStrings.detailConsoleErrors)}</div>
101
- </div>
102
- <div class="detail-row">
103
- <devtools-icon name="text-analysis"></devtools-icon>
104
- <div>${i18nString(UIStrings.detailGenerateCode)}</div>
105
- </div>
106
- <div class="detail-row">
107
- <devtools-icon name="smart-assistant"></devtools-icon>
108
- <div>${i18nString(UIStrings.detailPerformance)}</div>
109
- </div>
110
- </div>
111
-
112
- <div class="buttons">
113
- <devtools-button
114
- .variant=${Buttons.Button.Variant.OUTLINED}
115
- jslog=${VisualLogging.close().track({click: true}).context('gemini-promo-dismiss')}
116
- @click=${input.onCancelClick}>${i18nString(UIStrings.dismiss)}</devtools-button>
117
- <devtools-button
118
- .variant=${Buttons.Button.Variant.PRIMARY}
119
- .jslogContext=${'gemini-promo-get-started'}
120
- @click=${input.onGetStartedClick}>${i18nString(UIStrings.getStarted)}</devtools-button>
121
- </div>
122
- `,
123
- target,
124
- );
125
- // clang-format on
126
- };
127
-
128
- export class GeminiRebrandPromoDialog extends UI.Widget.VBox {
129
- #view: View;
130
- #dialog: UI.Dialog.Dialog;
131
-
132
- constructor(
133
- options: {
134
- dialog: UI.Dialog.Dialog,
135
- onSuccess?: () => void,
136
- onCancel?: () => void,
137
- },
138
- view?: View) {
139
- super();
140
- this.#dialog = options.dialog;
141
- this.#view = view ?? DEFAULT_VIEW;
142
- this.requestUpdate();
143
- }
144
-
145
- async #onGetStartedClick(): Promise<void> {
146
- this.#dialog.hide();
147
- await UI.ViewManager.ViewManager.instance().showView('freestyler');
148
- }
149
-
150
- #onCancelClick(): void {
151
- this.#dialog.hide();
152
- }
153
-
154
- override performUpdate(): void {
155
- const viewInput: ViewInput = {
156
- onGetStartedClick: this.#onGetStartedClick.bind(this),
157
- onCancelClick: this.#onCancelClick.bind(this),
158
- };
159
-
160
- this.#view(viewInput, undefined, this.contentElement);
161
- }
162
-
163
- static show(): void {
164
- const dialog = new UI.Dialog.Dialog('gemini-promo-dialog');
165
- dialog.setAriaLabel(i18nString(UIStrings.dialogAriaLabel));
166
- dialog.setMaxContentSize(new Geometry.Size(384, 500));
167
- dialog.setSizeBehavior(UI.GlassPane.SizeBehavior.SET_EXACT_WIDTH_MAX_HEIGHT);
168
- dialog.setDimmed(true);
169
-
170
- new GeminiRebrandPromoDialog({dialog}).show(dialog.contentElement);
171
- dialog.show(undefined, /* stack */ true);
172
- }
173
-
174
- static async maybeShow(): Promise<void> {
175
- if (!Root.Runtime.hostConfig.aidaAvailability?.enabled) {
176
- return;
177
- }
178
-
179
- const currentAidaAvailability = Host.AidaClient.HostConfigTracker.instance().aidaAvailability;
180
- if (currentAidaAvailability !== Host.AidaClient.AidaAccessPreconditions.AVAILABLE) {
181
- return;
182
- }
183
-
184
- const setting = Common.Settings.Settings.instance().createSetting<boolean>(
185
- 'gemini-promo-dialog-shown', false, Common.Settings.SettingStorageType.SYNCED);
186
- if (setting.get()) {
187
- return;
188
- }
189
-
190
- setting.set(true);
191
- GeminiRebrandPromoDialog.show();
192
- }
193
- }
@@ -1,47 +0,0 @@
1
- /*
2
- * Copyright 2026 The Chromium Authors
3
- * Use of this source code is governed by a BSD-style license that can be
4
- * found in the LICENSE file.
5
- */
6
-
7
- @scope to (devtools-widget > *) {
8
- :scope {
9
- width: 100%;
10
- box-shadow: none;
11
- padding: var(--sys-size-8);
12
- }
13
-
14
- .header {
15
- display: flex;
16
- justify-content: space-between;
17
- }
18
-
19
- .title {
20
- font-size: var(--sys-typescale-headline2-size);
21
- }
22
-
23
- .banner-image {
24
- margin: 10px 0;
25
- }
26
-
27
- .main-content {
28
- display: flex;
29
- flex-direction: column;
30
- margin: var(--sys-size-6) 0;
31
- gap: var(--sys-size-3);
32
- }
33
-
34
- .detail-row {
35
- display: flex;
36
- align-items: center;
37
- gap: 5px;
38
- margin: 5px;
39
- }
40
-
41
- .buttons {
42
- display: flex;
43
- justify-content: flex-end;
44
- align-items: center;
45
- gap: 10px;
46
- }
47
- }