chrome-devtools-frontend 1.0.1730971 → 1.0.1732418

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 (153) hide show
  1. package/front_end/Tests.js +20 -0
  2. package/front_end/core/host/AidaClient.ts +47 -3
  3. package/front_end/core/host/AidaClientTypes.ts +8 -1
  4. package/front_end/core/host/AidaGcaTranslation.ts +1 -1
  5. package/front_end/core/sdk/NetworkManager.ts +2 -1
  6. package/front_end/generated/Deprecation.ts +0 -8
  7. package/front_end/generated/InspectorBackendCommands.ts +2 -1
  8. package/front_end/generated/protocol.ts +9 -0
  9. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +1 -1
  10. package/front_end/models/ai_assistance/contexts/LighthouseContext.snapshot.txt +6 -1
  11. package/front_end/models/ai_assistance/contexts/LighthouseContext.ts +4 -3
  12. package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.snapshot.txt +91 -11
  13. package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.ts +90 -43
  14. package/front_end/models/ai_assistance/skills/styling.md +4 -2
  15. package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +31 -36
  16. package/front_end/models/bindings/CompilerScriptMapping.ts +0 -1
  17. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +0 -1
  18. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +0 -1
  19. package/front_end/models/har/HARFormat.ts +1 -0
  20. package/front_end/models/har/Importer.ts +7 -1
  21. package/front_end/models/har/Log.snapshot.txt +2 -0
  22. package/front_end/models/har/Log.ts +2 -0
  23. package/front_end/models/javascript_metadata/NativeFunctions.ts +0 -4
  24. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -1
  25. package/front_end/panels/ai_assistance/components/ChatInput.ts +2 -0
  26. package/front_end/panels/ai_assistance/components/chatInput.css +1 -1
  27. package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -1
  28. package/front_end/panels/animation/animationTimeline.css +11 -9
  29. package/front_end/panels/application/IndexedDBViews.ts +2 -2
  30. package/front_end/panels/application/PrivateVerificationTokensView.ts +217 -9
  31. package/front_end/panels/application/ServiceWorkerCacheViews.ts +1 -1
  32. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  33. package/front_end/panels/application/StorageView.ts +1 -1
  34. package/front_end/panels/application/appManifestView.css +0 -6
  35. package/front_end/panels/application/backgroundServiceView.css +0 -21
  36. package/front_end/panels/application/components/backForwardCacheView.css +1 -9
  37. package/front_end/panels/application/components/endpointsGrid.css +1 -1
  38. package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
  39. package/front_end/panels/application/cookieItemsView.css +0 -1
  40. package/front_end/panels/application/frameDetailsReportView.css +0 -10
  41. package/front_end/panels/application/indexedDBViews.css +0 -6
  42. package/front_end/panels/application/privateVerificationTokensView.css +12 -0
  43. package/front_end/panels/application/resourcesPanel.css +0 -14
  44. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +4 -4
  45. package/front_end/panels/application/serviceWorkersView.css +1 -1
  46. package/front_end/panels/changes/CombinedDiffView.ts +1 -1
  47. package/front_end/panels/comments/CommentsPane.ts +5 -0
  48. package/front_end/panels/common/CommentsOverlayWidget.ts +337 -117
  49. package/front_end/panels/console/consoleView.css +5 -3
  50. package/front_end/panels/coverage/CoverageView.ts +0 -1
  51. package/front_end/panels/coverage/coverageView.css +4 -3
  52. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +0 -1
  53. package/front_end/panels/elements/AccessibilityTreeView.ts +1 -1
  54. package/front_end/panels/elements/CSSValueTraceView.ts +2 -4
  55. package/front_end/panels/elements/DOMTreeContextMenu.ts +1 -1
  56. package/front_end/panels/elements/DOMTreeWidget.ts +14 -0
  57. package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
  58. package/front_end/panels/elements/PlatformFontsWidget.ts +0 -1
  59. package/front_end/panels/elements/PropertiesWidget.ts +1 -1
  60. package/front_end/panels/elements/StylesSidebarPane.ts +2 -0
  61. package/front_end/panels/elements/WebCustomData.ts +1 -1
  62. package/front_end/panels/elements/components/cssHintDetailsView.css +1 -1
  63. package/front_end/panels/elements/components/cssVariableValueView.css +3 -1
  64. package/front_end/panels/elements/components/elementsTreeExpandButton.css +3 -2
  65. package/front_end/panels/elements/components/stylePropertyEditor.css +2 -2
  66. package/front_end/panels/elements/layoutPane.css +1 -1
  67. package/front_end/panels/elements/metricsSidebarPane.css +4 -4
  68. package/front_end/panels/elements/platformFontsWidget.css +1 -1
  69. package/front_end/panels/elements/stylesSidebarPane.css +1 -1
  70. package/front_end/panels/emulation/DeviceModeView.ts +4 -3
  71. package/front_end/panels/emulation/deviceModeView.css +6 -7
  72. package/front_end/panels/event_listeners/eventListenersView.css +4 -4
  73. package/front_end/panels/explain/components/consoleInsight.css +3 -18
  74. package/front_end/panels/issues/issuesTree.css +5 -6
  75. package/front_end/panels/layer_viewer/LayerDetailsView.ts +4 -2
  76. package/front_end/panels/layer_viewer/TransformController.ts +106 -54
  77. package/front_end/panels/lighthouse/lighthousePanel.css +4 -7
  78. package/front_end/panels/lighthouse/lighthouseStartView.css +1 -2
  79. package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +4 -4
  80. package/front_end/panels/media/EventTimelineView.ts +1 -4
  81. package/front_end/panels/media/TickingFlameChart.ts +3 -2
  82. package/front_end/panels/media/playerListView.css +6 -3
  83. package/front_end/panels/media/playerMessagesView.css +2 -2
  84. package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +1 -1
  85. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +5 -7
  86. package/front_end/panels/network/NetworkConfigView.ts +1 -1
  87. package/front_end/panels/network/binaryResourceView.css +0 -7
  88. package/front_end/panels/network/networkLogView.css +0 -7
  89. package/front_end/panels/network/networkTimingTable.css +2 -2
  90. package/front_end/panels/network/requestConditionsDrawer.css +1 -24
  91. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +1 -1
  92. package/front_end/panels/performance_monitor/performanceMonitor.css +1 -1
  93. package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
  94. package/front_end/panels/protocol_monitor/protocolMonitor.css +1 -1
  95. package/front_end/panels/recorder/extensionView.css +1 -1
  96. package/front_end/panels/recorder/recorderPanel.css +3 -3
  97. package/front_end/panels/recorder/recordingListView.css +1 -1
  98. package/front_end/panels/recorder/stepEditor.css +2 -2
  99. package/front_end/panels/recorder/stepView.css +0 -24
  100. package/front_end/panels/screencast/screencastView.css +2 -1
  101. package/front_end/panels/search/searchView.css +4 -3
  102. package/front_end/panels/security/SecurityPanelSidebar.ts +0 -1
  103. package/front_end/panels/security/mainView.css +1 -1
  104. package/front_end/panels/security/originView.css +0 -4
  105. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +2 -1
  106. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +1 -2
  107. package/front_end/panels/sources/breakpointsView.css +0 -1
  108. package/front_end/panels/sources/tabbedEditorContainer.css +1 -1
  109. package/front_end/panels/sources/watchExpressionsSidebarPane.css +2 -2
  110. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +1 -1
  111. package/front_end/panels/timeline/components/OriginMap.ts +1 -1
  112. package/front_end/panels/timeline/components/fieldSettingsDialog.css +1 -1
  113. package/front_end/panels/timeline/components/metricCard.css +1 -1
  114. package/front_end/panels/timeline/components/networkRequestDetails.css +0 -1
  115. package/front_end/panels/timeline/components/networkRequestTooltip.css +2 -2
  116. package/front_end/panels/timeline/timelineFlamechartPopover.css +1 -1
  117. package/front_end/panels/timeline/timelineHistoryManager.css +1 -1
  118. package/front_end/panels/timeline/timelineMiniMap.css +1 -1
  119. package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
  120. package/front_end/panels/web_audio/webAudio.css +0 -20
  121. package/front_end/third_party/chromium/README.chromium +1 -1
  122. package/front_end/ui/comments/CommentAnchorResolver.ts +166 -8
  123. package/front_end/ui/comments/CommentOverlayManager.ts +17 -2
  124. package/front_end/ui/components/diff_view/diffView.css +1 -1
  125. package/front_end/ui/components/markdown_view/markdownView.css +1 -1
  126. package/front_end/ui/components/menus/Menu.ts +1 -1
  127. package/front_end/ui/components/menus/menuItem.css +1 -1
  128. package/front_end/ui/components/panel_feedback/panelFeedback.css +2 -2
  129. package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +1 -1
  130. package/front_end/ui/components/report_view/reportValue.css +5 -2
  131. package/front_end/ui/components/suggestion_input/suggestionInput.css +4 -4
  132. package/front_end/ui/legacy/ContextMenu.ts +3 -0
  133. package/front_end/ui/legacy/GlassPane.ts +3 -3
  134. package/front_end/ui/legacy/SoftContextMenu.ts +7 -1
  135. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -0
  136. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +7 -6
  137. package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -3
  138. package/front_end/ui/legacy/components/perf_ui/flameChart.css +7 -6
  139. package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +4 -3
  140. package/front_end/ui/legacy/components/perf_ui/pieChart.css +3 -3
  141. package/front_end/ui/legacy/components/source_frame/imageView.css +4 -4
  142. package/front_end/ui/legacy/components/utils/jsUtils.css +2 -1
  143. package/front_end/ui/legacy/dropTarget.css +1 -1
  144. package/front_end/ui/legacy/filter.css +4 -3
  145. package/front_end/ui/legacy/inspectorCommon.css +8 -23
  146. package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
  147. package/front_end/ui/legacy/suggestBox.css +2 -1
  148. package/front_end/ui/legacy/toolbar.css +2 -1
  149. package/front_end/ui/legacy/treeoutline.css +5 -4
  150. package/front_end/ui/legacy/viewContainers.css +2 -1
  151. package/front_end/ui/visual_logging/KnownContextValues.ts +7 -0
  152. package/inspector_overlay/highlight_anchor.ts +8 -11
  153. package/package.json +1 -1
@@ -272,6 +272,7 @@ type View = (input: ServiceWorkersViewInput, output: undefined, target: HTMLElem
272
272
  export const DEFAULT_VIEW: View = (input, _output, target): void => {
273
273
  // clang-format off
274
274
  render(html`
275
+ <style>${serviceWorkersViewStyles}</style>
275
276
  <!-- This Origin Report -->
276
277
  ${renderOriginReport(input)}
277
278
  ${renderOthersOriginView()}`,
@@ -307,7 +308,6 @@ export class ServiceWorkersView extends UI.Widget.VBox implements
307
308
  useShadowDom: true,
308
309
  });
309
310
  this.#view = view;
310
- this.registerRequiredCSS(serviceWorkersViewStyles);
311
311
 
312
312
  this.sections = new Map();
313
313
 
@@ -339,6 +339,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
339
339
 
340
340
  // clang-format off
341
341
  render(html`
342
+ <style>${storageViewStyles}</style>
342
343
  <devtools-report class="clear-storage-header" .data=${{reportTitle: i18nString(UIStrings.storageTitle)}}>
343
344
  ${input.subtitle ? html`<div class="report-subtitle" slot="toolbar">${input.subtitle}</div>` : nothing}
344
345
  ${renderClearSiteData()}
@@ -383,7 +384,6 @@ export class StorageView extends UI.Widget.VBox {
383
384
  constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
384
385
  super(element, {useShadowDom: true});
385
386
  this.#view = view;
386
- this.registerRequiredCSS(storageViewStyles);
387
387
  this.pieColors = storagePieColors;
388
388
 
389
389
  this.settings = new Map();
@@ -7,12 +7,6 @@
7
7
  flex-basis: 152px;
8
8
  }
9
9
 
10
- .manifest-view-header {
11
- min-width: 600px;
12
- flex-shrink: 0;
13
- flex-grow: 0;
14
- }
15
-
16
10
  :host {
17
11
  overflow: auto;
18
12
  }
@@ -30,27 +30,6 @@
30
30
  flex-direction: column;
31
31
  }
32
32
 
33
- .background-service-preview {
34
- position: absolute;
35
- background-color: var(--sys-color-cdt-base-container);
36
- justify-content: center;
37
- align-items: center;
38
- overflow: auto;
39
- font-size: var(--sys-typescale-body3-size);
40
- color: var(--sys-color-on-surface-subtle);
41
- }
42
-
43
- .background-service-preview > div {
44
- max-width: 450px;
45
- margin: 10px;
46
- text-align: center;
47
- }
48
-
49
- .background-service-preview > div > p {
50
- flex: none;
51
- white-space: pre-line;
52
- }
53
-
54
33
  .background-service-shortcut {
55
34
  color: var(--sys-color-on-surface-subtle);
56
35
  }
@@ -38,7 +38,7 @@ devtools-report-value {
38
38
  }
39
39
 
40
40
  .circled-exclamation-icon {
41
- margin-right: 10px;
41
+ margin-right: var(--sys-size-5);
42
42
  flex-shrink: 0;
43
43
  }
44
44
 
@@ -47,14 +47,6 @@ devtools-report-value {
47
47
  flex-shrink: 0;
48
48
  }
49
49
 
50
- .report-line {
51
- grid-column-start: span 2;
52
- display: flex;
53
- align-items: center;
54
- margin: 0 30px;
55
- line-height: 26px;
56
- }
57
-
58
50
  .report-key {
59
51
  color: var(--sys-color-token-subtle);
60
52
  min-width: auto;
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  .endpoints-header {
21
- font-size: 15px;
21
+ font-size: var(--sys-typescale-headline5-size);
22
22
  background-color: var(--sys-color-surface2);
23
23
  padding: var(--sys-size-1) var(--sys-size-3);
24
24
  flex-shrink: 0;
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  .feature-name {
47
- width: 135px;
47
+ width: var(--sys-size-22);
48
48
  }
49
49
 
50
50
  .allowed-icon {
@@ -20,7 +20,6 @@
20
20
  }
21
21
 
22
22
  .cookie-preview-widget-header-label {
23
- line-height: 18px;
24
23
  flex-shrink: 0;
25
24
  }
26
25
 
@@ -46,11 +46,6 @@ devtools-button.help-button {
46
46
  position: relative;
47
47
  }
48
48
 
49
- button.text-link {
50
- padding-left: var(--sys-size-2);
51
- height: 26px;
52
- }
53
-
54
49
  .inline-button {
55
50
  padding-left: 1ex;
56
51
  }
@@ -109,11 +104,6 @@ button.text-link {
109
104
  font-weight: bold;
110
105
  }
111
106
 
112
- .link:not(button):has(devtools-icon) {
113
- vertical-align: baseline;
114
- margin-inline-start: 3px;
115
- }
116
-
117
107
  .inline-icon {
118
108
  margin-bottom: -5px;
119
109
  width: 18px;
@@ -42,12 +42,6 @@
42
42
  overflow: auto;
43
43
  }
44
44
 
45
- .indexed-db-header {
46
- min-width: 400px;
47
- flex-shrink: 0;
48
- flex-grow: 0;
49
- }
50
-
51
45
  .source-code.indexed-db-key-path {
52
46
  font-size: unset !important; /* stylelint-disable-line declaration-no-important */
53
47
  }
@@ -18,3 +18,15 @@
18
18
  flex: auto;
19
19
  overflow: hidden;
20
20
  }
21
+
22
+ .table-container {
23
+ display: flex;
24
+ flex-direction: column;
25
+ flex: auto;
26
+ overflow: auto;
27
+ }
28
+
29
+ devtools-data-grid {
30
+ width: 100%;
31
+ border: none;
32
+ }
@@ -55,16 +55,6 @@
55
55
  flex: auto;
56
56
  }
57
57
 
58
- .storage-view .storage-table-error {
59
- color: var(--sys-color-error);
60
- font-size: var(--sys-typescale-headline1-size);
61
- font-weight: bold;
62
- padding: 10px;
63
- display: flex;
64
- align-items: center;
65
- justify-content: center;
66
- }
67
-
68
58
  .storage-view.query {
69
59
  padding: var(--sys-size-2) 0;
70
60
  overflow: hidden auto;
@@ -98,10 +88,6 @@
98
88
  user-select: none;
99
89
  }
100
90
 
101
- .database-user-query .prompt-icon {
102
- margin-top: -10px;
103
- }
104
-
105
91
  .database-query-prompt-container .prompt-icon {
106
92
  top: var(--sys-size-4);
107
93
  }
@@ -77,14 +77,14 @@
77
77
  }
78
78
 
79
79
  .service-worker-update-timing-bar.activate {
80
- top: 5px;
81
- height: 10px;
80
+ margin-block: auto;
81
+ height: var(--sys-size-5);
82
82
  background-color: var(--sys-color-yellow-bright);
83
83
  }
84
84
 
85
85
  .service-worker-update-timing-bar.wait {
86
- top: 5px;
87
- height: 10px;
86
+ margin-block: auto;
87
+ height: var(--sys-size-5);
88
88
  background-color: var(--sys-color-purple-bright);
89
89
  }
90
90
 
@@ -79,7 +79,7 @@
79
79
  }
80
80
 
81
81
  .link {
82
- margin-left: 7px;
82
+ margin-left: var(--sys-size-4);
83
83
  }
84
84
 
85
85
  .service-worker-editor-with-button {
@@ -106,6 +106,7 @@ const DEFAULT_VIEW: View = (input, output, target) => {
106
106
  // clang-format off
107
107
  Lit.render(
108
108
  html`
109
+ <style>${combinedDiffViewStyles}</style>
109
110
  <div class="combined-diff-view">
110
111
  ${input.singleDiffViewInputs.map(singleDiffViewInput => renderSingleDiffView(singleDiffViewInput))}
111
112
  </div>
@@ -128,7 +129,6 @@ export class CombinedDiffView extends UI.Widget.Widget {
128
129
  #viewOutput: ViewOutput = {};
129
130
  constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
130
131
  super(element);
131
- this.registerRequiredCSS(combinedDiffViewStyles);
132
132
  this.#view = view;
133
133
  }
134
134
 
@@ -493,6 +493,11 @@ export class CommentsPane extends UI.Widget.Widget {
493
493
  thread: CommentManager.CommentManager.CommentThread,
494
494
  position?: {left: number, top: number},
495
495
  ): void => {
496
+ // Generated comments can only be revealed once resolved, to read the response.
497
+ if (thread.isGeneratedComment && thread.status !== 'RESOLVED') {
498
+ return;
499
+ }
500
+
496
501
  void Common.Revealer.reveal(new CommentManager.CommentThread.RevealableThread(thread, position));
497
502
  };
498
503