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
@@ -368,8 +368,6 @@ export class CommentsOverlayWidget extends UI.Widget.Widget {
368
368
  override willHide(): void {
369
369
  this.#clearCloseTimeout();
370
370
  this.#clearHover();
371
- this.#removeDocumentListeners();
372
- this.#commentOverlayManager.stop();
373
371
  this.#commentOverlayManager.removeEventListener(
374
372
  Comments.CommentOverlayManager.Events.POSITIONS_UPDATED,
375
373
  this.#onPositionsUpdated,
@@ -396,6 +394,9 @@ export class CommentsOverlayWidget extends UI.Widget.Widget {
396
394
  this.#onAgentAttachedChanged,
397
395
  this,
398
396
  );
397
+ this.#commentOverlayManager.stop();
398
+ this.#syncActiveThreadFromManager();
399
+ this.#removeDocumentListeners();
399
400
 
400
401
  super.willHide();
401
402
  }
@@ -293,7 +293,7 @@
293
293
  }
294
294
 
295
295
  .console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level, .console-warning-level):focus .command-result-icon {
296
- top: 3px;
296
+ top: var(--sys-size-1);
297
297
  }
298
298
 
299
299
  .console-message-wrapper .nesting-level-marker {
@@ -6,7 +6,7 @@
6
6
 
7
7
  @scope to (devtools-widget > *) {
8
8
  .docs-popup-wrapper {
9
- max-width: 420px;
9
+ max-width: var(--sys-size-32);
10
10
  font-size: var(--sys-typescale-body4-size);
11
11
  line-height: 1.4;
12
12
  }
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  .container {
8
- min-width: 170px;
8
+ min-width: var(--sys-size-24);
9
9
  }
10
10
 
11
11
  .row {
@@ -63,10 +63,6 @@
63
63
  cursor: pointer;
64
64
  }
65
65
 
66
- .button:focus-visible {
67
- outline: auto 5px -webkit-focus-ring-color;
68
- }
69
-
70
66
  .button devtools-icon {
71
67
  color: var(--icon-default);
72
68
  }
@@ -79,7 +79,7 @@
79
79
  margin-top: var(--sys-size-6);
80
80
  color: var(--sys-color-token-tag);
81
81
  display: grid;
82
- grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
82
+ grid-template-columns: repeat(auto-fill, minmax(min(var(--sys-size-29), 100%), 1fr));
83
83
  gap: var(--sys-size-5);
84
84
  }
85
85
 
@@ -178,9 +178,10 @@
178
178
  color: var(--sys-color-on-surface);
179
179
  }
180
180
 
181
+ /* 64px (--sys-size-18) matches a 2-row .cls toolbar pane height for full retraction into overflow: hidden. */
181
182
  @keyframes styles-element-state-pane-slidein {
182
183
  from {
183
- margin-top: -60px;
184
+ margin-top: calc(-1 * var(--sys-size-18));
184
185
  }
185
186
 
186
187
  to {
@@ -194,7 +195,7 @@
194
195
  }
195
196
 
196
197
  to {
197
- margin-top: -60px;
198
+ margin-top: calc(-1 * var(--sys-size-18));
198
199
  }
199
200
  }
200
201
 
@@ -234,8 +234,8 @@ devtools-icon.leading-issue-icon {
234
234
 
235
235
  .affected-resources-label,
236
236
  .resolutions-label {
237
- margin-top: 5px;
238
- font-size: 10px;
237
+ margin-top: var(--sys-size-3);
238
+ font-size: var(--sys-typescale-body5-size);
239
239
  font-weight: 500;
240
240
  letter-spacing: 0.06em;
241
241
  text-transform: uppercase;
@@ -348,7 +348,8 @@ ul > li.plain-enum::before {
348
348
  }
349
349
 
350
350
  .affected-resource-list {
351
- border-spacing: 10px 0;
351
+ /* 12px left margin offset minus 2px cell left padding so column 1 aligns flush with parent container */
352
+ border-spacing: calc(var(--sys-size-6) - var(--sys-size-2)) 0;
352
353
  margin-left: calc(-1 * var(--sys-size-6));
353
354
  }
354
355
 
@@ -406,11 +406,26 @@ export class LighthousePanel extends UI.Panel.Panel {
406
406
 
407
407
  static async executeLighthouseRecording(
408
408
  overrides?: LighthouseModel.RunTypes.RunOverrides,
409
+ options?: {signal?: AbortSignal},
409
410
  ): Promise<LighthouseModel.RunTypes.RunResult> {
411
+ if (options?.signal?.aborted) {
412
+ return {status: 'cancelled'};
413
+ }
410
414
  const panel = LighthousePanel.instance();
411
415
  await UI.ViewManager.ViewManager.instance().showView('lighthouse');
416
+ if (options?.signal?.aborted) {
417
+ return {status: 'cancelled'};
418
+ }
412
419
 
413
- return await panel.handleCompleteRun(overrides);
420
+ const onAbort = (): void => {
421
+ void panel.handleRunCancel();
422
+ };
423
+ options?.signal?.addEventListener('abort', onAbort, {once: true});
424
+ try {
425
+ return await panel.handleCompleteRun(overrides);
426
+ } finally {
427
+ options?.signal?.removeEventListener('abort', onAbort);
428
+ }
414
429
  }
415
430
  }
416
431
 
@@ -5,6 +5,7 @@
5
5
  import '../../../ui/kit/kit.js';
6
6
 
7
7
  import * as i18n from '../../../core/i18n/i18n.js';
8
+ import * as Buttons from '../../../ui/components/buttons/buttons.js';
8
9
  import * as UI from '../../../ui/legacy/legacy.js';
9
10
  import {Directives, html, render, type TemplateResult} from '../../../ui/lit/lit.js';
10
11
  import * as VisualLogging from '../../../ui/visual_logging/visual_logging.js';
@@ -70,13 +71,16 @@ function renderChip(highlightInfo: HighlightInfo, input: ViewInput): TemplateRes
70
71
  </span>
71
72
  </button>
72
73
  <div class="delete-highlight-container">
73
- <button class="delete-highlight-button" title=${i18nString(UIStrings.deleteHighlight)}
74
- jslog=${VisualLogging.action('linear-memory-inspector.delete-highlight')
75
- .track({click:true})}
74
+ <devtools-button class="delete-highlight-button"
75
+ .data=${{
76
+ variant: Buttons.Button.Variant.ICON,
77
+ iconName: 'cross',
78
+ size: Buttons.Button.Size.MICRO,
79
+ title: i18nString(UIStrings.deleteHighlight),
80
+ jslogContext: 'linear-memory-inspector.delete-highlight',
81
+ } as Buttons.Button.ButtonData}
76
82
  @click=${() => input.onDeleteHighlight(highlightInfo)}>
77
- <devtools-icon name="cross" class="medium">
78
- </devtools-icon>
79
- </button>
83
+ </devtools-button>
80
84
  </div>
81
85
  </div>`;
82
86
  // clang-format off
@@ -40,23 +40,7 @@
40
40
  border-radius: var(--sys-shape-corner-extra-small);
41
41
  width: var(--sys-size-11);
42
42
  align-items: center;
43
- justify-content: center;
44
- }
45
-
46
- .delete-highlight-button {
47
- cursor: pointer;
48
- width: var(--sys-size-7);
49
- height: var(--sys-size-7);
50
- border: none;
51
- background-color: transparent;
52
- display: flex;
53
- align-items: center;
54
- justify-content: center;
55
- }
56
-
57
- .delete-highlight-button:hover {
58
- background-color: var(--sys-color-state-hover-on-subtle);
59
- border-radius: var(--sys-shape-corner-full);
43
+ justify-content: flex-end;
60
44
  }
61
45
 
62
46
  .jump-to-highlight-button {
@@ -70,15 +54,6 @@
70
54
  overflow: hidden;
71
55
  }
72
56
 
73
- .delete-highlight-button devtools-icon {
74
- width: var(--sys-size-7);
75
- height: var(--sys-size-7);
76
- display: flex;
77
- align-items: center;
78
- justify-content: center;
79
- border-radius: var(--sys-shape-corner-full);
80
- }
81
-
82
57
  .source-code {
83
58
  font-family: var(--source-code-font-family);
84
59
  font-size: var(--source-code-font-size);
@@ -67,11 +67,10 @@ li.storage-group-list-item::before {
67
67
  }
68
68
 
69
69
  .player-entry-frame-title {
70
- height: 26px;
71
- width: 125px;
72
- min-width: 125px;
70
+ width: var(--sys-size-21);
71
+ min-width: var(--sys-size-21);
73
72
  text-overflow: ellipsis;
74
- padding: 0 10px;
73
+ padding: 0 var(--sys-size-5);
75
74
  border-right: var(--sys-size-1) solid var(--sys-color-divider);
76
75
  overflow: hidden;
77
76
  }
@@ -13,10 +13,6 @@
13
13
  table-layout: fixed;
14
14
  }
15
15
 
16
- .network-timing-start {
17
- border-top: 5px solid transparent;
18
- }
19
-
20
16
  .network-timing-start th span.network-timing-hidden-header {
21
17
  height: var(--sys-size-1);
22
18
  width: var(--sys-size-1);
@@ -1,8 +1,6 @@
1
1
  // Copyright 2014 The Chromium Authors
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
- /* eslint-disable @devtools/no-imperative-dom-api */
5
-
6
4
  import * as Common from '../../core/common/common.js';
7
5
  import * as i18n from '../../core/i18n/i18n.js';
8
6
  import * as Platform from '../../core/platform/platform.js';
@@ -10,7 +8,7 @@ import type * as CPUProfile from '../../models/cpu_profile/cpu_profile.js';
10
8
  import type * as NetworkTimeCalculator from '../../models/network_time_calculator/network_time_calculator.js';
11
9
  import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
12
10
  import * as UI from '../../ui/legacy/legacy.js';
13
- import type {TemplateResult} from '../../ui/lit/lit.js';
11
+ import {Directives, html, render, type TemplateResult} from '../../ui/lit/lit.js';
14
12
 
15
13
  let colorGeneratorInstance: Common.Color.Generator|null = null;
16
14
 
@@ -131,6 +129,22 @@ export class ProfileFlameChartDataProvider implements PerfUI.FlameChart.FlameCha
131
129
  }
132
130
  }
133
131
 
132
+ export interface ProfileFlameChartViewInput {
133
+ overviewPane: OverviewPane;
134
+ mainPane: PerfUI.FlameChart.FlameChart;
135
+ }
136
+
137
+ export type ProfileFlameChartView = (input: ProfileFlameChartViewInput, output: undefined, target: HTMLElement) => void;
138
+
139
+ // clang-format off
140
+ export const DEFAULT_VIEW: ProfileFlameChartView = (input, _output, target) => {
141
+ render(html`
142
+ <devtools-widget class="cpu-profile-flame-chart-overview-pane">${input.overviewPane.element}</devtools-widget>
143
+ <devtools-widget class="vbox flex-auto">${input.mainPane.element}</devtools-widget>
144
+ `, target, {container: {attributes: {id: 'cpu-flame-chart'}}});
145
+ };
146
+ // clang-format on
147
+
134
148
  const ProfileFlameChartBase: Common.ObjectWrapper.EventMixin<PerfUI.FlameChart.EventTypes, typeof UI.Widget.VBox> =
135
149
  Common.ObjectWrapper.eventMixin(
136
150
  UI.Widget.VBox,
@@ -144,21 +158,24 @@ export class ProfileFlameChart extends ProfileFlameChartBase implements UI.Searc
144
158
  readonly dataProvider: ProfileFlameChartDataProvider;
145
159
  searchResults: number[];
146
160
  searchResultIndex = -1;
147
-
148
- constructor(searchableView: UI.SearchableView.SearchableView, dataProvider: ProfileFlameChartDataProvider,
149
- element?: HTMLElement) {
161
+ readonly #view: ProfileFlameChartView;
162
+
163
+ constructor(
164
+ searchableView: UI.SearchableView.SearchableView,
165
+ dataProvider: ProfileFlameChartDataProvider,
166
+ element?: HTMLElement,
167
+ view: ProfileFlameChartView = DEFAULT_VIEW,
168
+ ) {
150
169
  super(element);
151
- this.element.id = 'cpu-flame-chart';
170
+ this.#view = view;
152
171
 
153
172
  this.searchableView = searchableView;
154
173
  this.overviewPane = new OverviewPane(dataProvider);
155
- this.overviewPane.show(this.element);
156
174
 
157
175
  this.mainPane = new PerfUI.FlameChart.FlameChart(dataProvider, this.overviewPane);
158
176
  this.mainPane.setBarHeight(15);
159
177
  this.mainPane.setTextBaseline(4);
160
178
  this.mainPane.setTextPadding(2);
161
- this.mainPane.show(this.element);
162
179
  this.mainPane.addEventListener(PerfUI.FlameChart.Events.ENTRY_SELECTED, this.onEntrySelected, this);
163
180
  this.mainPane.addEventListener(PerfUI.FlameChart.Events.ENTRY_INVOKED, this.onEntryInvoked, this);
164
181
  this.entrySelected = false;
@@ -168,6 +185,22 @@ export class ProfileFlameChart extends ProfileFlameChartBase implements UI.Searc
168
185
  this.searchResults = [];
169
186
  }
170
187
 
188
+ override wasShown(): void {
189
+ super.wasShown();
190
+ this.requestUpdate();
191
+ }
192
+
193
+ override performUpdate(): void {
194
+ this.#view(
195
+ {
196
+ overviewPane: this.overviewPane,
197
+ mainPane: this.mainPane,
198
+ },
199
+ undefined,
200
+ this.contentElement,
201
+ );
202
+ }
203
+
171
204
  override focus(): void {
172
205
  this.mainPane.focus();
173
206
  }
@@ -314,35 +347,92 @@ export class OverviewCalculator implements NetworkTimeCalculator.Calculator {
314
347
  }
315
348
  }
316
349
 
350
+ export interface OverviewPaneViewInput {
351
+ overviewGridElement: HTMLElement;
352
+ }
353
+
354
+ export interface OverviewPaneViewOutput {
355
+ canvas?: HTMLCanvasElement;
356
+ container?: HTMLElement;
357
+ }
358
+
359
+ export type OverviewPaneView = (input: OverviewPaneViewInput, output: OverviewPaneViewOutput, target: HTMLElement) =>
360
+ void;
361
+
362
+ // clang-format off
363
+ export const DEFAULT_OVERVIEW_PANE_VIEW: OverviewPaneView = (input, output, target) => {
364
+ render(html`
365
+ <div class="cpu-profile-flame-chart-overview-container" ${Directives.ref(el => {
366
+ output.container = el as HTMLElement | undefined;
367
+ })}>
368
+ <canvas class="cpu-profile-flame-chart-overview-canvas" ${Directives.ref(el => {
369
+ output.canvas = el as HTMLCanvasElement | undefined;
370
+ })}></canvas>
371
+ ${input.overviewGridElement}
372
+ </div>
373
+ `, target, {container: {classes: ['cpu-profile-flame-chart-overview-pane']}});
374
+ };
375
+ // clang-format on
376
+
317
377
  const OverviewPaneBase: Common.ObjectWrapper.EventMixin<OverviewPaneEventTypes, typeof UI.Widget.VBox> =
318
378
  Common.ObjectWrapper.eventMixin(
319
379
  UI.Widget.VBox,
320
380
  );
321
381
 
322
382
  export class OverviewPane extends OverviewPaneBase implements PerfUI.FlameChart.FlameChartDelegate {
323
- overviewContainer: HTMLElement;
383
+ readonly #view: OverviewPaneView;
384
+ readonly #viewOutput: OverviewPaneViewOutput = {};
324
385
  readonly overviewCalculator: OverviewCalculator;
325
386
  readonly overviewGrid: PerfUI.OverviewGrid.OverviewGrid;
326
- overviewCanvas: HTMLCanvasElement;
327
387
  dataProvider: PerfUI.FlameChart.FlameChartDataProvider;
328
388
  windowTimeLeft?: number;
329
389
  windowTimeRight?: number;
330
390
  updateTimerId?: number;
331
391
 
332
- constructor(dataProvider: PerfUI.FlameChart.FlameChartDataProvider) {
333
- super();
334
- this.element.classList.add('cpu-profile-flame-chart-overview-pane');
335
- this.overviewContainer = this.element.createChild('div', 'cpu-profile-flame-chart-overview-container');
392
+ constructor(
393
+ dataProvider: PerfUI.FlameChart.FlameChartDataProvider,
394
+ element?: HTMLElement,
395
+ view: OverviewPaneView = DEFAULT_OVERVIEW_PANE_VIEW,
396
+ ) {
397
+ super(element);
398
+ this.#view = view;
336
399
  this.overviewCalculator = new OverviewCalculator(dataProvider.formatValue);
337
400
  this.overviewGrid = new PerfUI.OverviewGrid.OverviewGrid('cpu-profile-flame-chart', this.overviewCalculator);
338
401
  this.overviewGrid.element.classList.add('fill');
339
- this.overviewCanvas = this.overviewContainer.createChild('canvas', 'cpu-profile-flame-chart-overview-canvas');
340
- this.overviewContainer.appendChild(this.overviewGrid.element);
341
402
  this.dataProvider = dataProvider;
342
403
  this.overviewGrid.addEventListener(
343
404
  PerfUI.OverviewGrid.Events.WINDOW_CHANGED_WITH_POSITION, this.onWindowChanged, this);
344
405
  }
345
406
 
407
+ get overviewContainer(): HTMLElement {
408
+ if (!this.#viewOutput.container) {
409
+ this.performUpdate();
410
+ }
411
+ return this.#viewOutput.container ?? this.contentElement;
412
+ }
413
+
414
+ get overviewCanvas(): HTMLCanvasElement|undefined {
415
+ if (!this.#viewOutput.canvas) {
416
+ this.performUpdate();
417
+ }
418
+ return this.#viewOutput.canvas;
419
+ }
420
+
421
+ override wasShown(): void {
422
+ super.wasShown();
423
+ this.requestUpdate();
424
+ }
425
+
426
+ override performUpdate(): void {
427
+ this.#view(
428
+ {
429
+ overviewGridElement: this.overviewGrid.element,
430
+ },
431
+ this.#viewOutput,
432
+ this.contentElement,
433
+ );
434
+ }
435
+
346
436
  windowChanged(windowStartTime: number, windowEndTime: number): void {
347
437
  this.selectRange(windowStartTime, windowEndTime);
348
438
  }
@@ -386,7 +476,7 @@ export class OverviewPane extends OverviewPaneBase implements PerfUI.FlameChart.
386
476
  update(): void {
387
477
  this.updateTimerId = 0;
388
478
  const timelineData = this.timelineData();
389
- if (!timelineData) {
479
+ if (!timelineData || !this.overviewCanvas) {
390
480
  return;
391
481
  }
392
482
  this.resetCanvas(
@@ -397,6 +487,9 @@ export class OverviewPane extends OverviewPaneBase implements PerfUI.FlameChart.
397
487
  }
398
488
 
399
489
  drawOverviewCanvas(): void {
490
+ if (!this.overviewCanvas) {
491
+ return;
492
+ }
400
493
  const canvasWidth = this.overviewCanvas.width;
401
494
  const canvasHeight = this.overviewCanvas.height;
402
495
  const drawData = this.calculateDrawData(canvasWidth);
@@ -450,6 +543,9 @@ export class OverviewPane extends OverviewPaneBase implements PerfUI.FlameChart.
450
543
  }
451
544
 
452
545
  resetCanvas(width: number, height: number): void {
546
+ if (!this.overviewCanvas) {
547
+ return;
548
+ }
453
549
  const ratio = window.devicePixelRatio;
454
550
  this.overviewCanvas.width = width * ratio;
455
551
  this.overviewCanvas.height = height * ratio;
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  .gap.row {
67
- gap: 5px;
67
+ gap: var(--sys-size-3);
68
68
  }
69
69
 
70
70
  .gap.row devtools-button {
@@ -91,7 +91,7 @@ li.search-match .search-match-line-number {
91
91
  vertical-align: top;
92
92
  word-break: normal;
93
93
  padding: var(--sys-size-2) var(--sys-size-3) var(--sys-size-2) var(--sys-size-4);
94
- margin-right: 5px;
94
+ margin-right: var(--sys-size-3);
95
95
  }
96
96
 
97
97
  .tree-outline .devtools-link {
@@ -154,7 +154,7 @@
154
154
  .security-explanation-text {
155
155
  flex: auto;
156
156
  white-space: normal;
157
- max-width: 400px;
157
+ max-width: var(--sys-size-33);
158
158
  }
159
159
 
160
160
  .origin-button {
@@ -609,6 +609,7 @@ export class AISettingsTab extends UI.Widget.VBox {
609
609
 
610
610
  #removeAllowedTool(name: AiAssistanceModel.Tool.ToolName): void {
611
611
  this.#alwaysAllowedTools.remove(name);
612
+ void VisualLogging.logFunctionCall('ai-permission-revoked', Platform.StringUtilities.toKebabCase(name));
612
613
  }
613
614
 
614
615
  /**