chrome-devtools-frontend 1.0.1597624 → 1.0.1599001

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 (140) hide show
  1. package/.agents/README.md +13 -0
  2. package/{agents/prompts/creating-a-model.md → .agents/skills/creating-a-model/SKILL.md} +7 -1
  3. package/{agents/prompts/devtools-imports.md → .agents/skills/devtools-imports/SKILL.md} +10 -5
  4. package/{agents/prompts/merging-devtools-module.md → .agents/skills/merging-devtools-module/SKILL.md} +5 -0
  5. package/{agents/prompts/ui-widgets.md → .agents/skills/ui-widgets/SKILL.md} +5 -0
  6. package/{agents/prompts/verification.md → .agents/skills/verification/SKILL.md} +5 -0
  7. package/docs/ui_engineering.md +6 -6
  8. package/front_end/core/host/AidaClient.ts +2 -0
  9. package/front_end/core/host/GcaTypes.ts +518 -0
  10. package/front_end/core/host/UserMetrics.ts +0 -1
  11. package/front_end/core/host/host.ts +2 -0
  12. package/front_end/core/root/ExperimentNames.ts +0 -1
  13. package/front_end/entrypoints/main/MainImpl.ts +0 -2
  14. package/front_end/generated/InspectorBackendCommands.ts +1 -1
  15. package/front_end/generated/protocol.ts +2 -1
  16. package/front_end/models/ai_assistance/AiConversation.ts +28 -15
  17. package/front_end/models/ai_assistance/AiHistoryStorage.snapshot.txt +1 -1
  18. package/front_end/models/ai_assistance/AiHistoryStorage.ts +1 -0
  19. package/front_end/models/ai_assistance/ConversationHandler.ts +8 -2
  20. package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +3 -18
  21. package/front_end/models/ai_assistance/agents/AiAgent.ts +39 -5
  22. package/front_end/models/ai_assistance/agents/BreakpointDebuggerAgent.ts +0 -1
  23. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +1 -0
  24. package/front_end/models/ai_assistance/agents/ConversationSummaryAgent.ts +108 -0
  25. package/front_end/models/ai_assistance/agents/FileAgent.ts +0 -15
  26. package/front_end/models/ai_assistance/agents/NetworkAgent.ts +0 -5
  27. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +76 -13
  28. package/front_end/models/ai_assistance/agents/PerformanceAnnotationsAgent.ts +0 -10
  29. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +0 -6
  30. package/front_end/models/ai_assistance/agents/StylingAgent.ts +0 -5
  31. package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
  32. package/front_end/models/emulation/DeviceModeModel.ts +5 -1
  33. package/front_end/models/emulation/EmulatedDevices.ts +3 -2
  34. package/front_end/models/issues_manager/SharedDictionaryIssue.ts +15 -5
  35. package/front_end/models/issues_manager/descriptions/sharedDictionaryUseErrorNoCorpCrossOriginNoCorsRequest.md +3 -0
  36. package/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNoCorpCossOriginNoCorsRequest.md +3 -0
  37. package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
  38. package/front_end/models/lighthouse/RunTypes.ts +41 -0
  39. package/front_end/models/lighthouse/lighthouse.ts +2 -0
  40. package/front_end/models/trace/ModelImpl.ts +4 -0
  41. package/front_end/models/trace/helpers/SamplesIntegrator.ts +1 -8
  42. package/front_end/models/trace/types/Configuration.ts +0 -5
  43. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +90 -14
  44. package/front_end/panels/ai_assistance/PatchWidget.ts +1 -1
  45. package/front_end/panels/ai_assistance/components/ChatInput.ts +2 -0
  46. package/front_end/panels/ai_assistance/components/ChatMessage.ts +153 -42
  47. package/front_end/panels/ai_assistance/components/ChatView.ts +1 -1
  48. package/front_end/panels/ai_assistance/components/chatMessage.css +61 -0
  49. package/front_end/panels/application/AppManifestView.ts +2 -2
  50. package/front_end/panels/application/CookieItemsView.ts +9 -15
  51. package/front_end/panels/application/DeviceBoundSessionsView.ts +3 -5
  52. package/front_end/panels/application/FrameDetailsView.ts +2 -2
  53. package/front_end/panels/application/ReportingApiView.ts +2 -2
  54. package/front_end/panels/application/preloading/PreloadingView.ts +20 -7
  55. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +6 -3
  56. package/front_end/panels/application/preloading/components/PreloadingString.ts +15 -2
  57. package/front_end/panels/application/preloading/helper/PreloadingForward.ts +31 -2
  58. package/front_end/panels/changes/ChangesView.ts +7 -11
  59. package/front_end/panels/coverage/CoverageView.ts +4 -4
  60. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
  61. package/front_end/panels/elements/ElementsTreeOutline.ts +34 -8
  62. package/front_end/panels/elements/StylePropertiesSection.ts +129 -1
  63. package/front_end/panels/elements/StylePropertyHighlighter.ts +3 -0
  64. package/front_end/panels/elements/stylesSidebarPane.css +34 -0
  65. package/front_end/panels/issues/AffectedSelectivePermissionsInterventionView.ts +3 -5
  66. package/front_end/panels/layer_viewer/LayerDetailsView.ts +2 -1
  67. package/front_end/panels/lighthouse/LighthouseController.ts +148 -162
  68. package/front_end/panels/lighthouse/LighthousePanel.ts +2 -7
  69. package/front_end/panels/lighthouse/LighthouseStartView.ts +7 -6
  70. package/front_end/panels/lighthouse/LighthouseStatusView.ts +3 -3
  71. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +7 -3
  72. package/front_end/panels/network/RequestConditionsDrawer.ts +4 -4
  73. package/front_end/panels/network/RequestCookiesView.ts +2 -2
  74. package/front_end/panels/network/RequestHeadersView.ts +4 -4
  75. package/front_end/panels/network/RequestResponseView.ts +2 -2
  76. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
  77. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
  78. package/front_end/panels/recorder/components/StepView.ts +2 -1
  79. package/front_end/panels/search/SearchView.ts +2 -2
  80. package/front_end/panels/sensors/SensorsView.ts +32 -22
  81. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +18 -4
  82. package/front_end/panels/timeline/StatusDialog.ts +159 -83
  83. package/front_end/panels/timeline/TimelineController.ts +0 -4
  84. package/front_end/panels/timeline/TimelineDetailsView.ts +8 -6
  85. package/front_end/panels/timeline/TimelinePanel.ts +29 -2
  86. package/front_end/panels/timeline/components/LiveMetricsView.ts +2 -2
  87. package/front_end/panels/timeline/components/Sidebar.ts +1 -1
  88. package/front_end/panels/timeline/components/SidebarInsightsTab.ts +1 -1
  89. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +62 -34
  90. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +53 -28
  91. package/front_end/panels/timeline/components/insights/CharacterSet.ts +2 -6
  92. package/front_end/panels/timeline/components/insights/EventRef.ts +2 -2
  93. package/front_end/panels/timeline/components/insights/baseInsightComponent.css +7 -0
  94. package/front_end/panels/timeline/components/insights/insights.ts +0 -2
  95. package/front_end/panels/timeline/timeline-meta.ts +11 -0
  96. package/front_end/panels/webauthn/WebauthnPane.ts +2 -2
  97. package/front_end/third_party/chromium/README.chromium +1 -1
  98. package/front_end/third_party/puppeteer/README.chromium +2 -2
  99. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js +1 -1
  100. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js.map +1 -1
  101. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.d.ts +4 -0
  102. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.d.ts.map +1 -1
  103. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js +13 -0
  104. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js.map +1 -1
  105. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  106. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
  107. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
  108. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
  109. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  110. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  111. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  112. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/mitt/mitt.js +2 -2
  113. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/parsel-js/parsel-js.js +1 -1
  114. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/rxjs/rxjs.js +446 -446
  115. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +166 -167
  116. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js +2 -2
  117. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js.map +1 -1
  118. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.d.ts +4 -0
  119. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.d.ts.map +1 -1
  120. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.js +12 -0
  121. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.js.map +1 -1
  122. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
  123. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
  124. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  126. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  127. package/front_end/third_party/puppeteer/package/lib/esm/third_party/mitt/mitt.js +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/esm/third_party/parsel-js/parsel-js.js +1 -1
  129. package/front_end/third_party/puppeteer/package/lib/esm/third_party/rxjs/rxjs.js +97 -97
  130. package/front_end/third_party/puppeteer/package/package.json +1 -1
  131. package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +2 -2
  132. package/front_end/third_party/puppeteer/package/src/bidi/util.ts +17 -0
  133. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  134. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  135. package/front_end/ui/legacy/Widget.ts +47 -9
  136. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -1
  137. package/package.json +1 -1
  138. package/agents/prompts/README.md +0 -18
  139. package/front_end/models/issues_manager/descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +0 -1
  140. package/front_end/panels/timeline/components/insights/InsightRenderer.ts +0 -93
@@ -47,6 +47,7 @@ import * as ComputedStyle from '../../models/computed_style/computed_style.js';
47
47
  import * as TextUtils from '../../models/text_utils/text_utils.js';
48
48
  import * as Buttons from '../../ui/components/buttons/buttons.js';
49
49
  import * as Tooltips from '../../ui/components/tooltips/tooltips.js';
50
+ import {createIcon, type Icon} from '../../ui/kit/kit.js';
50
51
  import type * as Components from '../../ui/legacy/components/utils/utils.js';
51
52
  import * as UI from '../../ui/legacy/legacy.js';
52
53
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
@@ -115,6 +116,14 @@ const UIStrings = {
115
116
  * @example {(0,0,1)} PH1
116
117
  */
117
118
  specificity: 'Specificity: {PH1}',
119
+ /**
120
+ * @description Accessibility label for the button that expands a collapsed CSS rule in the Styles pane.
121
+ */
122
+ expandCollapsedRule: 'Expand collapsed rule',
123
+ /**
124
+ * @description Accessibility label for the button that collapses an expanded CSS rule in the Styles pane.
125
+ */
126
+ collapseExpandedRule: 'Collapse expanded rule',
118
127
  } as const;
119
128
 
120
129
  const str_ = i18n.i18n.registerUIStrings('panels/elements/StylePropertiesSection.ts', UIStrings);
@@ -151,6 +160,8 @@ export class StylePropertiesSection {
151
160
  protected readonly selectorRefElement: HTMLElement;
152
161
  private hoverableSelectorsMode: boolean;
153
162
  #isHidden: boolean;
163
+ #isCollapsed: boolean;
164
+ #collapseIcon: Icon|null = null;
154
165
  protected customPopulateCallback: () => void;
155
166
 
156
167
  nestingLevel = 0;
@@ -228,6 +239,25 @@ export class StylePropertiesSection {
228
239
  const selectorContainer = document.createElement('div');
229
240
  selectorContainer.createChild('span', 'styles-clipboard-only').textContent = indent.repeat(this.nestingLevel);
230
241
  selectorContainer.classList.add('selector-container');
242
+
243
+ // Collapse/expand toggle icon for rules that can be manually toggled.
244
+ this.#collapseIcon = createIcon('triangle-right', 'section-collapse-icon');
245
+ UI.ARIAUtils.markAsButton(this.#collapseIcon);
246
+ UI.ARIAUtils.setControls(this.#collapseIcon, this.propertiesTreeOutline.element);
247
+ this.#collapseIcon.tabIndex = 0;
248
+ this.#collapseIcon.addEventListener('click', (event: Event) => {
249
+ event.consume(true);
250
+ this.#toggleCollapsed();
251
+ });
252
+ this.#collapseIcon.addEventListener('keydown', (event: KeyboardEvent) => {
253
+ if (!Platform.KeyboardUtilities.isEnterOrSpaceKey(event)) {
254
+ return;
255
+ }
256
+ event.consume(true);
257
+ this.#toggleCollapsed();
258
+ });
259
+ selectorContainer.appendChild(this.#collapseIcon);
260
+
231
261
  this.selectorElement = document.createElement('span');
232
262
  UI.ARIAUtils.setLabel(this.selectorElement, i18nString(UIStrings.cssSelector));
233
263
  this.selectorElement.classList.add('selector');
@@ -324,8 +354,10 @@ export class StylePropertiesSection {
324
354
  }
325
355
  this.hoverableSelectorsMode = false;
326
356
  this.#isHidden = false;
357
+ this.#isCollapsed = false;
327
358
  this.markSelectorMatches();
328
359
  this.onpopulate();
360
+ this.#updateCollapsedState();
329
361
 
330
362
  this.stylesContainer.computedStyleModel().addEventListener(
331
363
  ComputedStyle.ComputedStyleModel.Events.CSS_MODEL_CHANGED, this.#onCSSModelChanged, this);
@@ -620,9 +652,18 @@ export class StylePropertiesSection {
620
652
  keyboardEvent.metaKey) {
621
653
  return;
622
654
  }
655
+
656
+ // Only handle section-level edit shortcuts when the event originated from
657
+ // the section itself. Child editors dispatch key events that bubble up to
658
+ // the section, and we must not treat those as section shortcuts.
659
+ const isSectionLevelShortcut = keyboardEvent.target === this.element;
660
+
623
661
  switch (keyboardEvent.key) {
624
662
  case 'Enter':
625
663
  case ' ':
664
+ if (!isSectionLevelShortcut) {
665
+ return;
666
+ }
626
667
  this.startEditingAtFirstPosition();
627
668
  keyboardEvent.consume(true);
628
669
  break;
@@ -634,7 +675,7 @@ export class StylePropertiesSection {
634
675
  break;
635
676
  default:
636
677
  // Filter out non-printable key strokes.
637
- if (keyboardEvent.key.length === 1) {
678
+ if (isSectionLevelShortcut && keyboardEvent.key.length === 1) {
638
679
  this.addNewBlankProperty(0).startEditingName();
639
680
  }
640
681
  break;
@@ -1333,6 +1374,82 @@ export class StylePropertiesSection {
1333
1374
  return this.#isHidden;
1334
1375
  }
1335
1376
 
1377
+ /**
1378
+ * Checks whether the section should be collapsed because it does not
1379
+ * contribute any active styles. A section is collapsed when:
1380
+ * - It has no leading properties (empty rule), OR
1381
+ * - All its leading properties have PropertyState.OVERLOADED
1382
+ *
1383
+ * Sections containing only user-disabled properties are NOT collapsed,
1384
+ * since the user intentionally toggled them off and they should remain visible.
1385
+ */
1386
+ #shouldCollapse(): boolean {
1387
+ const style = this.styleInternal;
1388
+ const properties = style.leadingProperties();
1389
+
1390
+ // Never collapse the element's own inline style section.
1391
+ if (style.type === SDK.CSSStyleDeclaration.Type.Inline) {
1392
+ return false;
1393
+ }
1394
+
1395
+ // Empty rule (e.g. from CSS nesting): collapse.
1396
+ if (properties.length === 0) {
1397
+ return true;
1398
+ }
1399
+
1400
+ // If any property is user-disabled (toggled off via checkbox), do not
1401
+ // collapse. The user deliberately disabled them.
1402
+ const hasDisabledProperty = properties.some(p => p.disabled);
1403
+ if (hasDisabledProperty) {
1404
+ return false;
1405
+ }
1406
+
1407
+ // If every property is OVERLOADED, collapse.
1408
+ const allOverloaded =
1409
+ properties.every(p => this.matchedStyles.propertyState(p) === SDK.CSSMatchedStyles.PropertyState.OVERLOADED);
1410
+ return allOverloaded;
1411
+ }
1412
+
1413
+ #updateCollapsedState(): void {
1414
+ const shouldCollapse = this.#shouldCollapse();
1415
+ // Mark as collapsible so the toggle icon is always shown for
1416
+ // sections that can be collapsed, even after manual expansion.
1417
+ this.element.classList.toggle('collapsible', shouldCollapse);
1418
+ this.#setCollapsed(shouldCollapse);
1419
+ }
1420
+
1421
+ #setCollapsed(collapsed: boolean): void {
1422
+ this.#isCollapsed = collapsed;
1423
+ this.element.classList.toggle('collapsed', collapsed);
1424
+ this.propertiesTreeOutline.element.classList.toggle('hidden', collapsed);
1425
+ if (this.#collapseIcon) {
1426
+ this.#collapseIcon.name = collapsed ? 'triangle-right' : 'triangle-down';
1427
+ UI.ARIAUtils.setExpanded(this.#collapseIcon, !collapsed);
1428
+ UI.ARIAUtils.setLabel(
1429
+ this.#collapseIcon,
1430
+ collapsed ? i18nString(UIStrings.expandCollapsedRule) : i18nString(UIStrings.collapseExpandedRule));
1431
+ }
1432
+ }
1433
+
1434
+ #toggleCollapsed(): void {
1435
+ this.#setCollapsed(!this.#isCollapsed);
1436
+ }
1437
+
1438
+ /**
1439
+ * Expand a collapsed section, e.g. when navigating to a property
1440
+ * via a var() link.
1441
+ */
1442
+ expand(): void {
1443
+ if (!this.#isCollapsed) {
1444
+ return;
1445
+ }
1446
+ this.#setCollapsed(false);
1447
+ }
1448
+
1449
+ isCollapsed(): boolean {
1450
+ return this.#isCollapsed;
1451
+ }
1452
+
1336
1453
  markSelectorMatches(): void {
1337
1454
  const rule = this.styleInternal.parentRule;
1338
1455
  if (!rule || !(rule instanceof SDK.CSSRule.CSSStyleRule)) {
@@ -1395,6 +1512,10 @@ export class StylePropertiesSection {
1395
1512
 
1396
1513
  addNewBlankProperty(index: number|undefined = this.propertiesTreeOutline.rootElement().childCount()):
1397
1514
  StylePropertyTreeElement {
1515
+ if (this.#isCollapsed) {
1516
+ this.expand();
1517
+ }
1518
+
1398
1519
  const property = this.styleInternal.newBlankProperty(index);
1399
1520
  const item = new StylePropertyTreeElement({
1400
1521
  stylesContainer: this.stylesContainer,
@@ -1416,6 +1537,13 @@ export class StylePropertiesSection {
1416
1537
  }
1417
1538
 
1418
1539
  private handleEmptySpaceClick(event: Event): void {
1540
+ // If collapsed, clicking anywhere on the section should expand it.
1541
+ if (this.#isCollapsed) {
1542
+ this.#toggleCollapsed();
1543
+ event.consume(true);
1544
+ return;
1545
+ }
1546
+
1419
1547
  // `this.willCauseCancelEditing` is a hacky way to understand whether we should
1420
1548
  // create a new property or not on empty space click.
1421
1549
  // For empty space clicks, the order of events are:
@@ -24,6 +24,7 @@ export class StylePropertyHighlighter {
24
24
  if (!section) {
25
25
  return;
26
26
  }
27
+ section.expand();
27
28
  section.showAllItems();
28
29
  const populatePromises: Array<Promise<void>> = [];
29
30
  for (let treeElement = section.propertiesTreeOutline.firstChild(); treeElement;
@@ -57,6 +58,7 @@ export class StylePropertyHighlighter {
57
58
  return;
58
59
  }
59
60
  block.expand(true);
61
+ section.expand();
60
62
  section.showAllItems();
61
63
  PanelUtils.highlightElement(section.element);
62
64
  }
@@ -78,6 +80,7 @@ export class StylePropertyHighlighter {
78
80
  continue;
79
81
  }
80
82
  block?.expand(true);
83
+ section.expand();
81
84
  section.showAllItems();
82
85
  const treeElement = this.findTreeElementFromSection(
83
86
  treeElement => treeElement.property.name === propertyName && !treeElement.overloaded(), section);
@@ -94,6 +94,40 @@
94
94
  --override-styles-section-text-hover-text-decoration: underline;
95
95
  --override-styles-section-text-hover-cursor: default;
96
96
  }
97
+
98
+ & .section-collapse-icon {
99
+ width: 12px;
100
+ height: 12px;
101
+ margin-right: 2px;
102
+ margin-left: -2px;
103
+ vertical-align: middle;
104
+ cursor: pointer;
105
+ display: none;
106
+ }
107
+
108
+ &.collapsible .section-collapse-icon {
109
+ display: inline-block;
110
+ }
111
+
112
+ &.collapsed {
113
+ opacity: 60%;
114
+
115
+ & .style-properties {
116
+ display: none;
117
+ }
118
+
119
+ & .styles-section-subtitle {
120
+ display: none;
121
+ }
122
+
123
+ & .sidebar-pane-closing-brace {
124
+ display: none;
125
+ }
126
+
127
+ & .sidebar-pane-open-brace::after {
128
+ content: "}";
129
+ }
130
+ }
97
131
  }
98
132
 
99
133
  .sidebar-pane-closing-brace {
@@ -42,6 +42,7 @@ const UIStrings = {
42
42
  } as const;
43
43
  const str_ = i18n.i18n.registerUIStrings('panels/issues/AffectedSelectivePermissionsInterventionView.ts', UIStrings);
44
44
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
45
+ const {widget} = UI.Widget;
45
46
 
46
47
  export class AffectedSelectivePermissionsInterventionView extends AffectedResourcesView {
47
48
  readonly #linkifier = new Components.Linkifier.Linkifier();
@@ -103,13 +104,10 @@ export class AffectedSelectivePermissionsInterventionView extends AffectedResour
103
104
  const debuggerWorkspaceBinding = Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance();
104
105
  const stackTraceTranslated =
105
106
  await debuggerWorkspaceBinding.createStackTraceFromProtocolRuntime(stackTrace, issuesModel.target());
106
- return html`
107
- <devtools-widget .widgetConfig=${UI.Widget.widgetConfig(Components.JSPresentationUtils.StackTracePreviewContent, {
107
+ return html`${widget(Components.JSPresentationUtils.StackTracePreviewContent, {
108
108
  stackTrace: stackTraceTranslated,
109
109
  options: {expandable: true},
110
- })}>
111
- </devtools-widget>
112
- `;
110
+ })}`;
113
111
  }
114
112
 
115
113
  update(): void {
@@ -20,6 +20,7 @@ import {
20
20
  } from './LayerViewHost.js';
21
21
 
22
22
  const {html, nothing} = Lit;
23
+ const {widget} = UI.Widget;
23
24
 
24
25
  const UIStrings = {
25
26
  /**
@@ -157,7 +158,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
157
158
  if (!layer) {
158
159
  // clang-format off
159
160
  Lit.render(html`<div class="layer-details-container">
160
- <devtools-widget class="learn-more" .widgetConfig=${UI.Widget.widgetConfig(UI.EmptyWidget.EmptyWidget, {
161
+ <devtools-widget class="learn-more" ${widget(UI.EmptyWidget.EmptyWidget, {
161
162
  header: i18nString(UIStrings.noLayerSelected),
162
163
  text: i18nString(UIStrings.selectALayerToSeeItsDetails)})}>
163
164
  </devtools-widget>