chrome-devtools-frontend 1.0.1732697 → 1.0.1733843

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 (65) hide show
  1. package/front_end/core/host/AidaClientTypes.ts +5 -1
  2. package/front_end/core/host/AidaGcaTranslation.ts +29 -1
  3. package/front_end/core/platform/browser/HostRuntime.ts +5 -1
  4. package/front_end/design_system_tokens.css +5 -0
  5. package/front_end/generated/InspectorBackendCommands.ts +5 -5
  6. package/front_end/generated/SupportedCSSProperties.ts +6 -0
  7. package/front_end/generated/protocol.ts +29 -7
  8. package/front_end/models/ai_assistance/AiConversation.ts +1 -0
  9. package/front_end/models/ai_assistance/agents/AiAgent.ts +59 -6
  10. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -1
  11. package/front_end/models/web_mcp/WebMCPModel.ts +1 -1
  12. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +35 -17
  13. package/front_end/panels/ai_assistance/components/chatMessage.css +1 -1
  14. package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -1
  15. package/front_end/panels/application/backgroundServiceView.css +2 -2
  16. package/front_end/panels/application/deviceBoundSessionsView.css +1 -1
  17. package/front_end/panels/application/frameDetailsReportView.css +0 -4
  18. package/front_end/panels/application/resourcesPanel.css +0 -4
  19. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +346 -286
  20. package/front_end/panels/common/CommentsOverlayWidget.ts +3 -2
  21. package/front_end/panels/console/consoleView.css +1 -1
  22. package/front_end/panels/elements/components/cssPropertyDocsView.css +1 -1
  23. package/front_end/panels/elements/components/stylePropertyEditor.css +1 -5
  24. package/front_end/panels/elements/layoutPane.css +1 -1
  25. package/front_end/panels/elements/stylesSidebarPane.css +3 -2
  26. package/front_end/panels/issues/issuesTree.css +4 -3
  27. package/front_end/panels/lighthouse/LighthousePanel.ts +16 -1
  28. package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +10 -6
  29. package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +1 -26
  30. package/front_end/panels/media/playerListView.css +3 -4
  31. package/front_end/panels/network/networkTimingTable.css +0 -4
  32. package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +114 -18
  33. package/front_end/panels/recorder/stepEditor.css +1 -1
  34. package/front_end/panels/search/searchResultsPane.css +1 -1
  35. package/front_end/panels/security/mainView.css +1 -1
  36. package/front_end/panels/settings/AISettingsTab.ts +1 -0
  37. package/front_end/panels/sources/NavigatorView.ts +120 -49
  38. package/front_end/panels/sources/components/HeadersView.css +2 -2
  39. package/front_end/panels/timeline/TimelinePanel.ts +24 -3
  40. package/front_end/panels/timeline/components/metricCard.css +1 -1
  41. package/front_end/panels/timeline/timelineMiniMap.css +1 -1
  42. package/front_end/panels/web_audio/WebAudioModel.ts +14 -5
  43. package/front_end/panels/web_audio/WebAudioView.ts +34 -1
  44. package/front_end/panels/web_audio/webAudio.css +17 -3
  45. package/front_end/panels/webauthn/webauthnPane.css +2 -4
  46. package/front_end/panels/whats_new/ReleaseNoteText.ts +19 -1
  47. package/front_end/panels/whats_new/ReleaseNoteView.ts +15 -1
  48. package/front_end/panels/whats_new/releaseNoteView.css +49 -0
  49. package/front_end/third_party/chromium/README.chromium +1 -1
  50. package/front_end/third_party/puppeteer-replay/README.chromium +9 -1
  51. package/front_end/third_party/puppeteer-replay/package/lib/main.d.ts +2 -2
  52. package/front_end/ui/components/markdown_view/codeBlock.css +1 -1
  53. package/front_end/ui/components/markdown_view/markdownView.css +1 -5
  54. package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +1 -1
  55. package/front_end/ui/components/switch/switch.css +2 -1
  56. package/front_end/ui/legacy/TabbedPane.ts +1 -1
  57. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +10 -3
  58. package/front_end/ui/legacy/inspectorCommon.css +3 -2
  59. package/front_end/ui/legacy/listWidget.css +1 -1
  60. package/front_end/ui/legacy/reportView.css +1 -1
  61. package/front_end/ui/legacy/searchableView.css +2 -1
  62. package/front_end/ui/legacy/suggestBox.css +2 -1
  63. package/front_end/ui/legacy/tabbedPane.css +1 -1
  64. package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
  65. package/package.json +1 -1
@@ -56,6 +56,46 @@
56
56
  margin: 0 var(--sys-size-9) var(--sys-size-9);
57
57
  }
58
58
 
59
+ .announcement {
60
+ display: flex;
61
+ align-items: flex-start;
62
+ gap: var(--sys-size-6);
63
+ padding: var(--sys-size-8);
64
+ margin: var(--sys-size-9) var(--sys-size-9) 0;
65
+ background: linear-gradient(135deg, var(--sys-color-gradient-primary), var(--sys-color-gradient-tertiary));
66
+ border: var(--sys-size-1) solid var(--sys-color-tonal-outline);
67
+ color: var(--sys-color-on-surface);
68
+ user-select: text;
69
+
70
+ &::before {
71
+ content: "";
72
+ width: var(--sys-size-9);
73
+ height: var(--sys-size-9);
74
+ flex-shrink: 0;
75
+ background-color: var(--sys-color-primary-bright);
76
+ mask-image: var(--image-file-bell);
77
+ mask-repeat: no-repeat;
78
+ mask-position: center;
79
+ mask-size: contain;
80
+ }
81
+ }
82
+
83
+ .announcement-content {
84
+ flex: 1;
85
+ min-width: 0;
86
+
87
+ h3 {
88
+ font: var(--sys-typescale-body2-bold);
89
+ margin: 0 0 var(--sys-size-7);
90
+ }
91
+
92
+ p {
93
+ font: var(--sys-typescale-body4-regular);
94
+ line-height: 18px;
95
+ margin: 0;
96
+ }
97
+ }
98
+
59
99
  .video-container {
60
100
  margin-bottom: var(--sys-size-9);
61
101
 
@@ -117,5 +157,14 @@
117
157
  .video {
118
158
  border: var(--sys-size-1) solid ButtonText;
119
159
  }
160
+
161
+ .announcement {
162
+ border-width: var(--sys-size-2);
163
+
164
+ &::before {
165
+ background-color: ButtonText;
166
+ forced-color-adjust: none;
167
+ }
168
+ }
120
169
  }
121
170
  }
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: Internal
3
3
  Version: N/A
4
- Revision: 481a581fe3e96f2a21db53a085901a0133f30e1d
4
+ Revision: b00d6cf8da7aceb173db8721210cd810c03d2ce4
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE
@@ -16,4 +16,12 @@ To update this package, run:
16
16
 
17
17
  ```bash
18
18
  python3 scripts/deps/roll_front_end_third_party.py @puppeteer/replay puppeteer-replay lib
19
- ```
19
+ ```
20
+
21
+ Local Modifications:
22
+
23
+ - `package/lib/main.d.ts`: the `puppeteer` import points at the vendored copy in
24
+ `front_end/third_party/puppeteer`. The `lighthouse` import is replaced with a
25
+ local `any` stub because `front_end` does not use `LighthouseRunnerExtension`,
26
+ the only API that references `lighthouse` types. The roll script applies both
27
+ changes.
@@ -1,5 +1,5 @@
1
- import { Browser, Page } from 'puppeteer';
2
- import * as lighthouse from 'lighthouse';
1
+ import type { Browser, Page } from '../../../puppeteer/puppeteer.js';
2
+ declare namespace lighthouse { type FlowResult = any; }
3
3
 
4
4
  type ExcludeType<T, U> = {
5
5
  [K in keyof T]-?: T[K] extends U ? K : never;
@@ -27,7 +27,7 @@
27
27
  .codeblock .editor-wrapper {
28
28
  color: var(--sys-color-on-surface);
29
29
  background: var(--code-block-background-color, var(--sys-color-surface2)); /* stylelint-disable-line plugin/use_theme_colors */
30
- padding: 10px 5px 0;
30
+ padding: var(--sys-size-5) var(--sys-size-4) 0;
31
31
  border-bottom-left-radius: var(--sys-shape-corner-extra-small);
32
32
  border-bottom-right-radius: var(--sys-shape-corner-extra-small);
33
33
  }
@@ -57,10 +57,6 @@ devtools-code-block.animating {
57
57
  padding-inline-start: var(--sys-size-8);
58
58
  }
59
59
 
60
- .message ul ul {
61
- padding-inline-start: 19px;
62
- }
63
-
64
60
  .message li {
65
61
  margin-top: var(--sys-size-5);
66
62
  display: list-item;
@@ -100,7 +96,7 @@ devtools-code-block.animating {
100
96
  /* stylelint-disable-next-line plugin/use_theme_colors */
101
97
  background-color: var(--code-background-color, var(--sys-color-surface4));
102
98
  border-radius: var(--sys-size-2);
103
- padding: var(--sys-size-1) 3px;
99
+ padding: var(--sys-size-1) var(--sys-size-3);
104
100
  }
105
101
 
106
102
  devtools-code-block {
@@ -20,7 +20,7 @@ h1 {
20
20
  .intro-steps {
21
21
  counter-reset: custom-counter;
22
22
  list-style: none;
23
- margin: var(--sys-size-8) 0 30px 30px;
23
+ margin: var(--sys-size-8) 0 var(--sys-size-12) var(--sys-size-12);
24
24
  padding: 0;
25
25
  }
26
26
 
@@ -38,7 +38,8 @@ input {
38
38
  width: var(--sys-size-5);
39
39
  border-radius: var(--sys-shape-corner-full);
40
40
  top: calc(50% - var(--sys-size-3));
41
- left: 3px;
41
+ /* Center --sys-size-5 thumb inside --sys-size-8 (:host height) pill cap minus --sys-size-1 (.slider border). */
42
+ left: calc((var(--sys-size-8) - var(--sys-size-5)) / 2 - var(--sys-size-1));
42
43
  background-color: var(--sys-color-outline);
43
44
  transition:
44
45
  transform 80ms linear,
@@ -1407,7 +1407,7 @@ export class TabbedPaneTab {
1407
1407
  const suffixElementContainer = document.createElement('span');
1408
1408
  suffixElementContainer.classList.add('tabbed-pane-header-tab-suffix-element');
1409
1409
  if (this.suffixElement instanceof HTMLElement) {
1410
- const suffixElement = measuring ? this.suffixElement.cloneNode() : this.suffixElement;
1410
+ const suffixElement = measuring ? this.suffixElement.cloneNode(true) : this.suffixElement;
1411
1411
  suffixElementContainer.appendChild(suffixElement);
1412
1412
  } else {
1413
1413
  render(this.suffixElement, suffixElementContainer);
@@ -19,13 +19,20 @@
19
19
  --override-bezier-control-color: var(--sys-color-purple-bright);
20
20
 
21
21
  display: flex;
22
- margin-top: 38px;
22
+ /* 38px top margin (40px - 2px) between preview track and curve box */
23
+ margin-top: calc(var(--sys-size-14) - var(--sys-size-2));
23
24
  flex-shrink: 0;
24
25
  /* overflown bezier visualization must be on top of the source text */
25
26
  z-index: 2;
26
27
  background-image: radial-gradient(circle, var(--sys-color-surface-variant) var(--sys-size-1), var(--color-background-inverted-opacity-0) var(--sys-size-1));
27
- background-size: 17px 17px;
28
- background-position: -5px -10px;
28
+ /* 17px (16px + 1px) divides 136px BezierUI square into an 8x8 grid */
29
+ background-size:
30
+ calc(var(--sys-size-8) + var(--sys-size-1))
31
+ calc(var(--sys-size-8) + var(--sys-size-1));
32
+ /* -5px (-4px - 1px) and -10px (-6px - 4px) align grid dots with endpoints */
33
+ background-position:
34
+ calc(-1 * (var(--sys-size-3) + var(--sys-size-1)))
35
+ calc(-1 * (var(--sys-size-4) + var(--sys-size-3)));
29
36
  }
30
37
 
31
38
  .bezier-preset {
@@ -305,7 +305,8 @@ input[type='range']::-webkit-slider-thumb,
305
305
  border: 0;
306
306
  width: var(--sys-size-6);
307
307
  height: var(--sys-size-6);
308
- margin-top: -5px;
308
+ /* Center 12px (--sys-size-6) thumb over 2px (--sys-size-2) track: (2px - 12px) / 2 = -5px. */
309
+ margin-top: calc((var(--sys-size-2) - var(--sys-size-6)) / 2);
309
310
  border-radius: var(--sys-shape-corner-full);
310
311
  background-color: var(--sys-color-primary);
311
312
  }
@@ -547,7 +548,7 @@ dt-icon-label {
547
548
  background-color: var(--sys-color-tonal-container);
548
549
  color: var(--sys-color-on-tonal-container);
549
550
  font-weight: var(--ref-typeface-weight-bold);
550
- font-size: 9px;
551
+ font-size: var(--sys-typescale-label-size);
551
552
  text-align: center;
552
553
  }
553
554
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  .list-item {
25
25
  flex: none;
26
- min-height: 30px;
26
+ min-height: var(--sys-size-12);
27
27
  display: flex;
28
28
  align-items: center;
29
29
  position: relative;
@@ -24,7 +24,7 @@
24
24
 
25
25
  .report-header devtools-toolbar {
26
26
  margin-bottom: calc(-1 * var(--sys-size-5));
27
- margin-top: 5px;
27
+ margin-top: var(--sys-size-3);
28
28
  margin-left: calc(-1 * var(--sys-size-5));
29
29
  }
30
30
 
@@ -5,7 +5,8 @@
5
5
  */
6
6
 
7
7
  .search-bar {
8
- flex: 0 0 33px;
8
+ /* 32px search toolbar (28px row + 2x2px margin) plus 1px top border. */
9
+ flex: 0 0 calc(var(--sys-size-13) + var(--sys-size-1));
9
10
  border-top: var(--sys-size-1) solid var(--sys-color-divider);
10
11
 
11
12
  devtools-icon[name="search"] {
@@ -13,7 +13,8 @@
13
13
  flex: auto;
14
14
  background-color: var(--sys-color-cdt-base-container);
15
15
  pointer-events: auto;
16
- margin-left: -3px;
16
+ /* Compensate for .suggest-box-content-item border and left padding so suggestion text aligns with the anchor word. */
17
+ margin-left: calc(-2 * var(--sys-size-1));
17
18
  box-shadow: var(--drop-shadow);
18
19
  overflow-x: hidden;
19
20
  }
@@ -95,7 +95,7 @@
95
95
  align-content: center;
96
96
 
97
97
  &:has(.badge) {
98
- width: 17px;
98
+ width: fit-content;
99
99
  margin-left: var(--sys-size-2);
100
100
  }
101
101
 
@@ -371,6 +371,7 @@ export const knownContextValues: Set<string> = new Set([
371
371
  'affected-resources',
372
372
  'affected-sources',
373
373
  'ai-allowed-tools',
374
+ 'ai-allowed-tools-count',
374
375
  'ai-annotations-enabled',
375
376
  'ai-assistance-always-allowed-tools',
376
377
  'ai-assistance-enabled',
@@ -417,10 +418,12 @@ export const knownContextValues: Set<string> = new Set([
417
418
  'ai-permission-allow-once',
418
419
  'ai-permission-allowed-always',
419
420
  'ai-permission-allowed-once',
421
+ 'ai-permission-auto-allowed',
420
422
  'ai-permission-prompt',
421
423
  'ai-permission-prompt-shown',
422
424
  'ai-permission-reject',
423
425
  'ai-permission-rejected',
426
+ 'ai-permission-revoked',
424
427
  'ai-remove-allowed-tool',
425
428
  'ai-show-walkthrough-sidebar',
426
429
  'ai-v2-context-agent-change',
package/package.json CHANGED
@@ -91,5 +91,5 @@
91
91
  "yargs": "18.1.0",
92
92
  "yargs-unparser": "2.0.0"
93
93
  },
94
- "version": "1.0.1732697"
94
+ "version": "1.0.1733843"
95
95
  }