chrome-devtools-frontend 1.0.1730971 → 1.0.1732697

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 (210) hide show
  1. package/docs/get_the_code.md +1 -73
  2. package/front_end/Tests.js +15 -0
  3. package/front_end/core/host/AidaClient.ts +47 -3
  4. package/front_end/core/host/AidaClientTypes.ts +27 -3
  5. package/front_end/core/host/AidaGcaTranslation.ts +1 -1
  6. package/front_end/core/sdk/DOMModel.ts +8 -3
  7. package/front_end/core/sdk/NetworkManager.ts +2 -1
  8. package/front_end/entrypoints/formatter_worker/ScopeParser.ts +2 -2
  9. package/front_end/generated/Deprecation.ts +0 -8
  10. package/front_end/generated/InspectorBackendCommands.ts +2 -1
  11. package/front_end/generated/SupportedCSSProperties.ts +2 -2
  12. package/front_end/generated/protocol.ts +9 -0
  13. package/front_end/models/ai-utils/debug.ts +127 -22
  14. package/front_end/models/ai_assistance/README.md +1 -1
  15. package/front_end/models/ai_assistance/agents/AiAgent.ts +10 -5
  16. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +1 -1
  17. package/front_end/models/ai_assistance/contexts/DOMNodeContext.ts +4 -3
  18. package/front_end/models/ai_assistance/contexts/LighthouseContext.snapshot.txt +9 -2
  19. package/front_end/models/ai_assistance/contexts/LighthouseContext.ts +4 -3
  20. package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.snapshot.txt +97 -11
  21. package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.ts +92 -43
  22. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +1 -1
  23. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +26 -26
  24. package/front_end/models/ai_assistance/skills/styling.md +4 -2
  25. package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +31 -36
  26. package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -1
  27. package/front_end/models/ai_code_completion/ai_code_completion.ts +11 -2
  28. package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -1
  29. package/front_end/models/ai_code_generation/ai_code_generation.ts +11 -2
  30. package/front_end/models/bindings/CompilerScriptMapping.ts +0 -1
  31. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +0 -1
  32. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +0 -1
  33. package/front_end/models/har/HARFormat.ts +1 -0
  34. package/front_end/models/har/Importer.ts +7 -1
  35. package/front_end/models/har/Log.snapshot.txt +2 -0
  36. package/front_end/models/har/Log.ts +2 -0
  37. package/front_end/models/javascript_metadata/NativeFunctions.ts +0 -4
  38. package/front_end/models/trace/LanternComputationData.ts +4 -0
  39. package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +126 -1
  40. package/front_end/models/trace/lantern/types/Lantern.ts +3 -0
  41. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +33 -1
  42. package/front_end/panels/ai_assistance/ExternalHandler.ts +1 -1
  43. package/front_end/panels/ai_assistance/components/ChatInput.ts +2 -0
  44. package/front_end/panels/ai_assistance/components/PermissionPrompt.ts +4 -4
  45. package/front_end/panels/ai_assistance/components/chatInput.css +1 -1
  46. package/front_end/panels/ai_assistance/components/chatMessage.css +3 -4
  47. package/front_end/panels/ai_assistance/components/exploreWidget.css +3 -3
  48. package/front_end/panels/animation/animationTimeline.css +11 -9
  49. package/front_end/panels/application/IndexedDBViews.ts +2 -2
  50. package/front_end/panels/application/PrivateVerificationTokensView.ts +217 -9
  51. package/front_end/panels/application/ServiceWorkerCacheViews.ts +1 -1
  52. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  53. package/front_end/panels/application/StorageView.ts +1 -1
  54. package/front_end/panels/application/appManifestView.css +0 -6
  55. package/front_end/panels/application/backgroundServiceView.css +0 -21
  56. package/front_end/panels/application/components/backForwardCacheView.css +1 -9
  57. package/front_end/panels/application/components/endpointsGrid.css +1 -1
  58. package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
  59. package/front_end/panels/application/components/reportsGrid.css +1 -1
  60. package/front_end/panels/application/components/serviceWorkerRouterView.css +2 -2
  61. package/front_end/panels/application/components/trustTokensView.css +1 -1
  62. package/front_end/panels/application/cookieItemsView.css +0 -1
  63. package/front_end/panels/application/frameDetailsReportView.css +0 -10
  64. package/front_end/panels/application/indexedDBViews.css +0 -10
  65. package/front_end/panels/application/privateVerificationTokensView.css +12 -0
  66. package/front_end/panels/application/resourcesPanel.css +0 -23
  67. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +7 -7
  68. package/front_end/panels/application/serviceWorkersView.css +4 -3
  69. package/front_end/panels/changes/CombinedDiffView.ts +1 -1
  70. package/front_end/panels/comments/CommentsPane.ts +7 -11
  71. package/front_end/panels/common/CommentThreadWidget.ts +11 -3
  72. package/front_end/panels/common/CommentsOverlayWidget.ts +337 -117
  73. package/front_end/panels/console/consoleContextSelector.css +1 -1
  74. package/front_end/panels/console/consolePinPane.css +1 -1
  75. package/front_end/panels/console/consolePrompt.css +4 -2
  76. package/front_end/panels/console/consoleView.css +5 -3
  77. package/front_end/panels/coverage/CoverageView.ts +0 -1
  78. package/front_end/panels/coverage/coverageView.css +4 -3
  79. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +0 -1
  80. package/front_end/panels/elements/AccessibilityTreeView.ts +1 -1
  81. package/front_end/panels/elements/CSSValueTraceView.ts +2 -4
  82. package/front_end/panels/elements/ComputedStyleWidget.ts +8 -19
  83. package/front_end/panels/elements/DOMTreeContextMenu.ts +1 -1
  84. package/front_end/panels/elements/DOMTreeWidget.ts +14 -0
  85. package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
  86. package/front_end/panels/elements/PlatformFontsWidget.ts +0 -1
  87. package/front_end/panels/elements/PropertiesWidget.ts +1 -1
  88. package/front_end/panels/elements/PropertyRenderer.ts +7 -27
  89. package/front_end/panels/elements/StylePropertyTreeElement.ts +61 -72
  90. package/front_end/panels/elements/StylesSidebarPane.ts +2 -0
  91. package/front_end/panels/elements/WebCustomData.ts +1 -1
  92. package/front_end/panels/elements/components/cssHintDetailsView.css +1 -1
  93. package/front_end/panels/elements/components/cssVariableValueView.css +3 -1
  94. package/front_end/panels/elements/components/elementsBreadcrumbs.css +1 -1
  95. package/front_end/panels/elements/components/elementsTreeExpandButton.css +3 -2
  96. package/front_end/panels/elements/components/stylePropertyEditor.css +2 -2
  97. package/front_end/panels/elements/layoutPane.css +1 -1
  98. package/front_end/panels/elements/metricsSidebarPane.css +6 -6
  99. package/front_end/panels/elements/platformFontsWidget.css +1 -1
  100. package/front_end/panels/elements/propertiesWidget.css +0 -5
  101. package/front_end/panels/elements/stylesSidebarPane.css +1 -1
  102. package/front_end/panels/emulation/DeviceModeView.ts +4 -3
  103. package/front_end/panels/emulation/deviceModeView.css +9 -10
  104. package/front_end/panels/event_listeners/eventListenersView.css +5 -5
  105. package/front_end/panels/explain/components/consoleInsight.css +5 -20
  106. package/front_end/panels/issues/issuesTree.css +11 -10
  107. package/front_end/panels/layer_viewer/LayerDetailsView.ts +4 -2
  108. package/front_end/panels/layer_viewer/TransformController.ts +106 -54
  109. package/front_end/panels/layer_viewer/layerTreeOutline.css +1 -1
  110. package/front_end/panels/lighthouse/lighthousePanel.css +5 -8
  111. package/front_end/panels/lighthouse/lighthouseStartView.css +1 -2
  112. package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +4 -4
  113. package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +1 -1
  114. package/front_end/panels/media/EventTimelineView.ts +1 -4
  115. package/front_end/panels/media/TickingFlameChart.ts +3 -2
  116. package/front_end/panels/media/playerListView.css +14 -7
  117. package/front_end/panels/media/playerMessagesView.css +11 -7
  118. package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +1 -1
  119. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +5 -7
  120. package/front_end/panels/network/NetworkConfigView.ts +1 -1
  121. package/front_end/panels/network/NetworkWaterfallColumn.ts +92 -55
  122. package/front_end/panels/network/binaryResourceView.css +0 -7
  123. package/front_end/panels/network/networkConfigView.css +3 -3
  124. package/front_end/panels/network/networkLogView.css +5 -11
  125. package/front_end/panels/network/networkManageCustomHeadersView.css +1 -1
  126. package/front_end/panels/network/networkTimingTable.css +6 -6
  127. package/front_end/panels/network/requestConditionsDrawer.css +1 -24
  128. package/front_end/panels/network/requestPayloadView.css +1 -1
  129. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +1 -1
  130. package/front_end/panels/performance_monitor/performanceMonitor.css +2 -2
  131. package/front_end/panels/profiler/ModuleUIStrings.ts +12 -0
  132. package/front_end/panels/protocol_monitor/JSONEditor.css +4 -3
  133. package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
  134. package/front_end/panels/protocol_monitor/protocolMonitor.css +1 -1
  135. package/front_end/panels/recorder/createRecordingView.css +2 -2
  136. package/front_end/panels/recorder/extensionView.css +1 -1
  137. package/front_end/panels/recorder/recorderPanel.css +3 -3
  138. package/front_end/panels/recorder/recordingListView.css +1 -1
  139. package/front_end/panels/recorder/stepEditor.css +2 -2
  140. package/front_end/panels/recorder/stepView.css +0 -31
  141. package/front_end/panels/recorder/timelineSection.css +1 -1
  142. package/front_end/panels/screencast/screencastView.css +3 -2
  143. package/front_end/panels/search/searchView.css +4 -3
  144. package/front_end/panels/security/SecurityPanelSidebar.ts +0 -1
  145. package/front_end/panels/security/mainView.css +2 -2
  146. package/front_end/panels/security/originView.css +1 -5
  147. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +2 -1
  148. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +1 -2
  149. package/front_end/panels/sources/breakpointsView.css +3 -4
  150. package/front_end/panels/sources/tabbedEditorContainer.css +1 -1
  151. package/front_end/panels/sources/watchExpressionsSidebarPane.css +4 -3
  152. package/front_end/panels/timeline/CompatibilityTracksAppender.ts +30 -10
  153. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +1 -1
  154. package/front_end/panels/timeline/components/OriginMap.ts +1 -1
  155. package/front_end/panels/timeline/components/fieldSettingsDialog.css +1 -1
  156. package/front_end/panels/timeline/components/metricCard.css +1 -1
  157. package/front_end/panels/timeline/components/networkRequestDetails.css +0 -1
  158. package/front_end/panels/timeline/components/networkRequestTooltip.css +4 -4
  159. package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
  160. package/front_end/panels/timeline/timelineFlameChartView.css +4 -4
  161. package/front_end/panels/timeline/timelineFlamechartPopover.css +3 -3
  162. package/front_end/panels/timeline/timelineHistoryManager.css +1 -1
  163. package/front_end/panels/timeline/timelineMiniMap.css +3 -2
  164. package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
  165. package/front_end/panels/web_audio/webAudio.css +0 -20
  166. package/front_end/third_party/chromium/README.chromium +1 -1
  167. package/front_end/ui/comments/CommentAnchorResolver.ts +166 -8
  168. package/front_end/ui/comments/CommentOverlayManager.ts +17 -2
  169. package/front_end/ui/components/buttons/button.css +0 -1
  170. package/front_end/ui/components/diff_view/diffView.css +2 -2
  171. package/front_end/ui/components/markdown_view/codeBlock.css +3 -3
  172. package/front_end/ui/components/markdown_view/markdownView.css +3 -3
  173. package/front_end/ui/components/menus/Menu.ts +1 -1
  174. package/front_end/ui/components/menus/menuItem.css +1 -1
  175. package/front_end/ui/components/panel_feedback/panelFeedback.css +5 -4
  176. package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +1 -1
  177. package/front_end/ui/components/report_view/reportValue.css +5 -2
  178. package/front_end/ui/components/suggestion_input/suggestionInput.css +6 -6
  179. package/front_end/ui/legacy/ContextMenu.ts +3 -0
  180. package/front_end/ui/legacy/GlassPane.ts +3 -3
  181. package/front_end/ui/legacy/SoftContextMenu.ts +7 -1
  182. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -0
  183. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +7 -6
  184. package/front_end/ui/legacy/components/inline_editor/colorSwatch.css +1 -2
  185. package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -3
  186. package/front_end/ui/legacy/components/perf_ui/chartViewport.css +1 -1
  187. package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -1
  188. package/front_end/ui/legacy/components/perf_ui/flameChart.css +12 -9
  189. package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +11 -7
  190. package/front_end/ui/legacy/components/perf_ui/pieChart.css +3 -4
  191. package/front_end/ui/legacy/components/source_frame/imageView.css +4 -4
  192. package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
  193. package/front_end/ui/legacy/components/utils/jsUtils.css +2 -1
  194. package/front_end/ui/legacy/dropTarget.css +1 -1
  195. package/front_end/ui/legacy/filter.css +4 -3
  196. package/front_end/ui/legacy/inspectorCommon.css +16 -48
  197. package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
  198. package/front_end/ui/legacy/progressIndicator.css +1 -2
  199. package/front_end/ui/legacy/reportView.css +4 -1
  200. package/front_end/ui/legacy/searchableView.css +1 -1
  201. package/front_end/ui/legacy/suggestBox.css +2 -1
  202. package/front_end/ui/legacy/tabbedPane.css +7 -4
  203. package/front_end/ui/legacy/toolbar.css +2 -1
  204. package/front_end/ui/legacy/treeoutline.css +6 -5
  205. package/front_end/ui/legacy/viewContainers.css +3 -2
  206. package/front_end/ui/visual_logging/KnownContextValues.ts +15 -0
  207. package/inspector_overlay/highlight_anchor.ts +8 -11
  208. package/package.json +1 -1
  209. package/front_end/models/ai_code_completion/debug.ts +0 -33
  210. package/front_end/models/ai_code_generation/debug.ts +0 -33
@@ -16,13 +16,16 @@
16
16
  .overview-grid-window-resizer {
17
17
  position: absolute;
18
18
  top: 0;
19
- height: 19px;
20
- width: 10px;
21
- margin-left: -5px; /* half width (incl the border) */
19
+ /* 20px (--sys-size-9) timeline header height minus 1px (--sys-size-1) bottom clearance */
20
+ height: calc(var(--sys-size-9) - var(--sys-size-1));
21
+ /* 8px (--sys-size-5) inner grip box plus 2x 1px (--sys-size-1) for left and right borders */
22
+ width: calc(var(--sys-size-5) + 2 * var(--sys-size-1));
23
+ /* Negative half of the 10px outer width: 4px (--sys-size-3) inner half-width plus 1px (--sys-size-1) border */
24
+ margin-left: calc(-1 * (var(--sys-size-3) + var(--sys-size-1)));
22
25
  background-color: var(--sys-color-tonal-container);
23
26
  border: var(--sys-size-1) solid var(--sys-color-tonal-outline);
24
27
  z-index: 500;
25
- border-radius: 3px;
28
+ border-radius: var(--sys-shape-corner-extra-small);
26
29
  }
27
30
 
28
31
  /* Grip lines within the handle */
@@ -31,10 +34,11 @@
31
34
  content: "";
32
35
  width: var(--sys-size-1);
33
36
  background: var(--sys-color-primary);
34
- height: 7px;
35
37
  position: absolute;
36
38
  left: var(--sys-size-2);
37
- top: 5px;
39
+ /* 6px (--sys-size-4) outer offset minus 1px (--sys-size-1) handle border
40
+ * gives symmetric 5px top/bottom insets (7px grip line) in 17px box */
41
+ inset-block: calc(var(--sys-size-4) - var(--sys-size-1));
38
42
  border-radius: var(--sys-size-1);
39
43
  }
40
44
 
@@ -92,7 +96,7 @@
92
96
  transition: opacity 100ms 250ms;
93
97
  display: flex;
94
98
  position: absolute;
95
- top: 15px;
99
+ top: var(--sys-size-8);
96
100
  justify-content: center;
97
101
  z-index: 600;
98
102
  left: 0;
@@ -10,7 +10,7 @@
10
10
 
11
11
  .root {
12
12
  align-items: flex-start; /* keep chart at top so it doesnt change position as the legend changes height */
13
- gap: var(--sys-size-6) 30px;
13
+ gap: var(--sys-size-6) var(--sys-size-12);
14
14
  display: flex;
15
15
  flex-wrap: wrap;
16
16
  justify-content: flex-start;
@@ -34,7 +34,6 @@
34
34
 
35
35
  .pie-chart-total {
36
36
  margin: auto;
37
- padding: var(--sys-size-2) 5px;
38
37
  pointer-events: auto;
39
38
  }
40
39
 
@@ -55,8 +54,8 @@
55
54
  }
56
55
 
57
56
  .pie-chart-legend-row {
58
- margin: 5px var(--sys-size-2) 5px auto;
59
- padding-right: 25px;
57
+ margin: var(--sys-size-3) var(--sys-size-2) var(--sys-size-3) auto;
58
+ padding-right: var(--sys-size-11);
60
59
  }
61
60
 
62
61
  .pie-chart-legend-row.selected {
@@ -5,23 +5,23 @@
5
5
  */
6
6
 
7
7
  @scope to (devtools-widget > *) {
8
- .image-view {
8
+ :scope {
9
9
  overflow: auto;
10
10
  }
11
11
 
12
- .image-view > .image {
12
+ :scope > .image {
13
13
  flex: 1;
14
14
  overflow: auto;
15
15
  padding: var(--sys-size-9) var(--sys-size-9) 10px;
16
16
  text-align: center;
17
17
  }
18
18
 
19
- .image-view > devtools-toolbar {
19
+ :scope > devtools-toolbar {
20
20
  border-top: var(--sys-size-1) solid var(--sys-color-divider);
21
21
  background-color: var(--sys-color-surface1);
22
22
  }
23
23
 
24
- .image-view img.resource-image-view {
24
+ img.resource-image-view {
25
25
  max-width: 100%;
26
26
  max-height: 1000px;
27
27
  background-image: var(--image-file-checker);
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  .image-container > div {
28
- min-height: 50px;
28
+ min-height: var(--sys-size-16);
29
29
  display: flex;
30
30
  align-items: center;
31
31
  justify-content: center;
@@ -5,7 +5,8 @@
5
5
  */
6
6
 
7
7
  .stack-preview-async-description {
8
- padding: 3px 0 var(--sys-size-1);
8
+ /* 4px total vertical padding (--sys-size-3) split into 3px top and 1px bottom (--sys-size-1) so 16px line-height (--sys-size-8) + 4px padding = 20px row height (--sys-size-9). */
9
+ padding: calc(var(--sys-size-3) - var(--sys-size-1)) 0 var(--sys-size-1);
9
10
  font-weight: bold;
10
11
  }
11
12
 
@@ -14,7 +14,7 @@
14
14
 
15
15
  .drop-target-message {
16
16
  flex: auto;
17
- font-size: 30px;
17
+ font-size: var(--sys-typescale-headline1-size);
18
18
  color: var(--sys-color-token-subtle);
19
19
  display: flex;
20
20
  justify-content: center;
@@ -40,13 +40,14 @@
40
40
  display: inline-block;
41
41
  flex: none;
42
42
  margin: auto var(--sys-size-2);
43
- padding: 3px var(--sys-size-4);
43
+ /* 16px line-height (--sys-typescale-body5-medium) + 2*2px vertical padding (--sys-size-2)
44
+ * = 20px (--sys-size-9) pill inside 24px (--sys-size-11) .filter-bitset-filter bar. */
45
+ padding: var(--sys-size-2) var(--sys-size-4);
44
46
  background: transparent;
45
47
  border-radius: var(--sys-size-4);
46
48
  overflow: hidden;
47
49
  cursor: pointer;
48
- font-weight: 500;
49
- font-size: var(--sys-typescale-body5-size);
50
+ font: var(--sys-typescale-body5-medium);
50
51
  }
51
52
 
52
53
  .filter-bitset-filter span:focus-visible {
@@ -209,9 +209,9 @@ input {
209
209
 
210
210
  &:not(:disabled):focus-visible::before {
211
211
  content: '';
212
- height: 15px;
213
- width: 15px;
214
- border-radius: 5px;
212
+ height: var(--sys-size-7);
213
+ width: var(--sys-size-7);
214
+ border-radius: var(--sys-shape-corner-extra-small);
215
215
  position: absolute;
216
216
  border: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
217
217
  }
@@ -260,12 +260,12 @@ input::placeholder {
260
260
 
261
261
  /* Radio inputs */
262
262
  input[type='radio'] {
263
- height: 17px;
264
- width: 17px;
265
- min-width: 17px;
263
+ height: var(--sys-size-8);
264
+ width: var(--sys-size-8);
265
+ min-width: var(--sys-size-8);
266
266
  border-radius: var(--sys-shape-corner-small);
267
267
  vertical-align: sub;
268
- margin: 0 5px 5px 0;
268
+ margin: 0 var(--sys-size-4) var(--sys-size-4) 0;
269
269
  accent-color: var(--sys-color-primary-bright);
270
270
  color: var(--sys-color-on-primary);
271
271
 
@@ -560,13 +560,13 @@ dt-icon-label {
560
560
  background-color: var(--sys-color-cdt-base-container);
561
561
  color: var(--sys-color-on-surface);
562
562
  cursor: pointer;
563
- border-radius: 3px;
563
+ border-radius: var(--sys-shape-corner-extra-small);
564
564
  }
565
565
 
566
566
  .undisplayable-text,
567
567
  .expandable-inline-button {
568
568
  border: none;
569
- padding: var(--sys-size-1) 3px;
569
+ padding: var(--sys-size-1) var(--sys-size-3);
570
570
  margin: 0 var(--sys-size-2);
571
571
  font-size: var(--sys-typescale-body5-size);
572
572
  font-family: inherit;
@@ -613,7 +613,9 @@ button.link:focus-visible {
613
613
  .data-grid-data-grid-node button.link:focus-visible {
614
614
  border-radius: var(--sys-shape-corner-extra-small);
615
615
  padding: 0;
616
- margin-top: 3px;
616
+ /* 4px focus ring clearance (--sys-size-3: 2px outline + 2px outline-offset)
617
+ minus 1px data-grid cell top padding (--sys-size-1) = 3px. */
618
+ margin-top: calc(var(--sys-size-3) - var(--sys-size-1));
617
619
  }
618
620
 
619
621
  @media (forced-colors: active) {
@@ -634,23 +636,6 @@ button.link:focus-visible {
634
636
  border: var(--sys-size-1) solid Highlight;
635
637
  }
636
638
  }
637
- /* search input with customized styling */
638
- input.custom-search-input::-webkit-search-cancel-button {
639
- appearance: none;
640
- width: var(--sys-size-8);
641
- height: 15px;
642
- margin-right: 0;
643
- opacity: 70%;
644
- mask-image: var(--image-file-cross-circle-filled);
645
- mask-position: center;
646
- mask-repeat: no-repeat;
647
- mask-size: 99%;
648
- background-color: var(--icon-default);
649
- }
650
-
651
- input.custom-search-input::-webkit-search-cancel-button:hover {
652
- opacity: 99%;
653
- }
654
639
  /* loading spinner */
655
640
  .spinner::before {
656
641
  display: block;
@@ -686,7 +671,7 @@ input.custom-search-input::-webkit-search-cancel-button:hover {
686
671
  }
687
672
 
688
673
  .adorner-container devtools-adorner {
689
- margin-left: 3px;
674
+ margin-left: var(--sys-size-2);
690
675
  }
691
676
 
692
677
  :host-context(.theme-with-dark-background) devtools-adorner {
@@ -893,19 +878,6 @@ devtools-toolbar {
893
878
  opacity: 50%;
894
879
  }
895
880
 
896
- .toolbar-button.copied-to-clipboard::after {
897
- content: attr(data-content);
898
- position: fixed;
899
- margin-top: calc(2 * var(--toolbar-height));
900
- padding: 3px 5px;
901
- color: var(--sys-color-token-subtle);
902
- background: var(--sys-color-cdt-base-container);
903
- animation: 2s fade-out;
904
- font-weight: normal;
905
- border: var(--sys-size-1) solid var(--sys-color-divider);
906
- border-radius: 3px;
907
- }
908
-
909
881
  .toolbar-button.toolbar-state-on .toolbar-glyph {
910
882
  color: var(--icon-toggled);
911
883
  }
@@ -989,12 +961,12 @@ devtools-toolbar {
989
961
  .toolbar-input {
990
962
  box-shadow: inset 0 0 0 var(--sys-size-2) transparent;
991
963
  box-sizing: border-box;
992
- width: 120px;
964
+ width: var(--sys-size-20);
993
965
  height: var(--sys-size-9);
994
966
  padding: 0 var(--sys-size-2) 0 var(--sys-size-5);
995
- margin: var(--sys-size-1) 3px;
967
+ margin: var(--sys-size-1) var(--sys-size-2);
996
968
  border-radius: var(--sys-shape-corner-full);
997
- min-width: 35px;
969
+ min-width: var(--sys-size-14);
998
970
  position: relative;
999
971
 
1000
972
  &.focused {
@@ -1092,10 +1064,6 @@ devtools-toolbar {
1092
1064
  }
1093
1065
  }
1094
1066
 
1095
- devtools-icon.leading-issue-icon {
1096
- margin: 0 7px;
1097
- }
1098
-
1099
1067
  @media (forced-colors: active) {
1100
1068
  .toolbar-button:disabled {
1101
1069
  opacity: 100%;
@@ -38,7 +38,7 @@ devtools-toolbar.collapsed-vertical-drawer-toolbar-content {
38
38
  align-items: center;
39
39
  justify-content: center;
40
40
  height: auto !important; /* stylelint-disable-line declaration-no-important */
41
- width: 27px;
41
+ width: 100%;
42
42
  padding: 0 !important; /* stylelint-disable-line declaration-no-important */
43
43
  gap: 0;
44
44
  }
@@ -7,7 +7,6 @@
7
7
  .progress-indicator-shadow-stop-button {
8
8
  background-color: var(--sys-color-error-bright);
9
9
  border: 0;
10
- width: 10px;
11
10
  height: var(--sys-size-6);
12
11
  border-radius: var(--sys-size-2);
13
12
  }
@@ -29,5 +28,5 @@
29
28
  .progress-indicator-shadow-container progress {
30
29
  flex: auto;
31
30
  margin: 0 var(--sys-size-2);
32
- width: 100px;
31
+ width: var(--sys-size-19);
33
32
  }
@@ -43,7 +43,10 @@
43
43
 
44
44
  .report-section {
45
45
  display: flex;
46
- padding: var(--sys-size-7) var(--sys-size-9) 11px var(--sys-size-9);
46
+ /* 12px bottom padding (--sys-size-6) minus 1px border (--sys-size-1) = 11px. */
47
+ padding:
48
+ var(--sys-size-7) var(--sys-size-9)
49
+ calc(var(--sys-size-6) - var(--sys-size-1)) var(--sys-size-9);
47
50
  border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
48
51
  flex-direction: column;
49
52
  }
@@ -117,7 +117,7 @@
117
117
  grid-auto-rows: var(--sys-size-12);
118
118
  flex-grow: 1;
119
119
  align-items: center;
120
- min-width: 150px;
120
+ min-width: var(--sys-size-23);
121
121
  }
122
122
 
123
123
  .first-row-buttons {
@@ -46,7 +46,8 @@
46
46
  flex: auto;
47
47
  text-align: right;
48
48
  color: var(--sys-color-token-subtle);
49
- margin-right: 3px;
49
+ /* 4px total right inset (--sys-size-3) minus 1px transparent item border (--sys-size-1). */
50
+ margin-right: calc(var(--sys-size-3) - var(--sys-size-1));
50
51
  overflow: hidden;
51
52
  text-overflow: ellipsis;
52
53
  }
@@ -52,7 +52,8 @@
52
52
 
53
53
  .tabbed-pane-header {
54
54
  display: flex;
55
- flex: 0 0 27px;
55
+ /* 28px standard toolbar height (--sys-size-12) minus 1px bottom border (--sys-size-1). */
56
+ flex: 0 0 calc(var(--sys-size-12) - var(--sys-size-1));
56
57
  border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
57
58
  overflow: visible;
58
59
  width: 100%;
@@ -99,7 +100,8 @@
99
100
  }
100
101
 
101
102
  &:has(.status-dot) {
102
- width: 9px;
103
+ /* 6px (.status-dot width) + 2px (padding-left) + 1px (.status-dot margin-left) */
104
+ width: calc(var(--sys-size-4) + var(--sys-size-2) + var(--sys-size-1));
103
105
  }
104
106
  }
105
107
 
@@ -146,7 +148,7 @@
146
148
  color: var(--sys-color-on-surface-subtle);
147
149
  height: var(--sys-size-12);
148
150
  float: left;
149
- padding: 0 10px;
151
+ padding: 0 var(--sys-size-5);
150
152
  white-space: nowrap;
151
153
  cursor: default;
152
154
  display: flex;
@@ -305,7 +307,8 @@
305
307
  }
306
308
 
307
309
  .tabbed-pane-tab-slider {
308
- height: 3px;
310
+ /* 2px indicator above header + 1px border-bottom overlap (3px total). */
311
+ height: calc(var(--sys-size-2) + var(--sys-size-1));
309
312
  position: absolute;
310
313
  bottom: calc(-1 * var(--sys-size-1));
311
314
  background-color: var(--sys-color-primary);
@@ -14,7 +14,8 @@
14
14
  align-items: center;
15
15
  z-index: 0;
16
16
 
17
- --toolbar-height: 26px;
17
+ /* 28px outer toolbar track (--sys-size-12) minus 2px vertical border/inset allowance (--sys-size-2). */
18
+ --toolbar-height: calc(var(--sys-size-12) - var(--sys-size-2));
18
19
  }
19
20
 
20
21
  :host([floating]) {
@@ -32,7 +32,8 @@
32
32
  .tree-outline li .selection {
33
33
  display: none;
34
34
  z-index: -1;
35
- margin-left: -10000px;
35
+ /* Extend selection background leftward across any tree nesting depth. */
36
+ margin-left: -100vw;
36
37
  }
37
38
 
38
39
  .tree-outline:not(.hide-selection-when-blurred, .elements-tree-outline) li.selected {
@@ -58,10 +59,10 @@
58
59
 
59
60
  .tree-outline:not(.hide-selection-when-blurred) li.hovered:not(.selected) .selection {
60
61
  display: block;
61
- left: 3px;
62
- right: 3px;
62
+ left: var(--sys-size-2);
63
+ right: var(--sys-size-2);
63
64
  background-color: var(--sys-color-state-hover-on-subtle);
64
- border-radius: 5px;
65
+ border-radius: var(--sys-shape-corner-extra-small);
65
66
  }
66
67
 
67
68
  .tree-outline:not(.hide-selection-when-blurred) li.in-clipboard .highlight {
@@ -168,7 +169,7 @@ ol.tree-outline:not(.hide-selection-when-blurred, .elements-tree-outline) li.sel
168
169
 
169
170
  .tree-outline-disclosure:not(.tree-outline-disclosure-hide-overflow) .tree-outline.hide-selection-when-blurred .selected:focus-visible {
170
171
  width: fit-content;
171
- padding-right: 3px;
172
+ padding-right: var(--sys-size-3);
172
173
  }
173
174
 
174
175
  /* Navigation tree variant */
@@ -36,7 +36,7 @@ found in the LICENSE file. */
36
36
  align-items: center;
37
37
  background-color: var(--sys-color-surface2);
38
38
  height: var(--sys-size-10);
39
- padding: 0 5px;
39
+ padding: 0 var(--sys-size-3);
40
40
  white-space: nowrap;
41
41
  overflow: hidden;
42
42
  position: relative;
@@ -49,7 +49,8 @@ found in the LICENSE file. */
49
49
  }
50
50
 
51
51
  .expandable-view-title devtools-toolbar {
52
- margin-top: -3px;
52
+ /* Center the 26px (--toolbar-height) toolbar in the 22px (--sys-size-10) header: (22px - 26px) / 2 = -2px. */
53
+ margin-top: calc(-1 * var(--sys-size-2));
53
54
  }
54
55
 
55
56
  .expandable-view-title > devtools-toolbar {
@@ -413,6 +413,14 @@ export const knownContextValues: Set<string> = new Set([
413
413
  'ai-export-for-agents.save-as-markdown',
414
414
  'ai-hide-walkthrough-sidebar',
415
415
  'ai-open-allowed-tools-settings',
416
+ 'ai-permission-allow-always',
417
+ 'ai-permission-allow-once',
418
+ 'ai-permission-allowed-always',
419
+ 'ai-permission-allowed-once',
420
+ 'ai-permission-prompt',
421
+ 'ai-permission-prompt-shown',
422
+ 'ai-permission-reject',
423
+ 'ai-permission-rejected',
416
424
  'ai-remove-allowed-tool',
417
425
  'ai-show-walkthrough-sidebar',
418
426
  'ai-v2-context-agent-change',
@@ -1232,6 +1240,7 @@ export const knownContextValues: Set<string> = new Set([
1232
1240
  'create-profile',
1233
1241
  'create-recording',
1234
1242
  'create-recording-view',
1243
+ 'creation-time',
1235
1244
  'creator-ad-script-ancestry',
1236
1245
  'credential',
1237
1246
  'credential-id',
@@ -1753,6 +1762,7 @@ export const knownContextValues: Set<string> = new Set([
1753
1762
  'experimental-item',
1754
1763
  'experiments',
1755
1764
  'experiments-filter',
1765
+ 'expiration',
1756
1766
  'expires',
1757
1767
  'explain.console-message.context.error',
1758
1768
  'explain.console-message.context.other',
@@ -2277,9 +2287,11 @@ export const knownContextValues: Set<string> = new Set([
2277
2287
  'ip-protection',
2278
2288
  'is',
2279
2289
  'is-ad-related',
2290
+ 'is-issuer',
2280
2291
  'is-landscape',
2281
2292
  'is-mobile',
2282
2293
  'is-preloaded',
2294
+ 'is-redeemer',
2283
2295
  'is-resident-credential',
2284
2296
  'is-u',
2285
2297
  'is-user-active-false-is-screen-unlocked-false',
@@ -2348,6 +2360,7 @@ export const knownContextValues: Set<string> = new Set([
2348
2360
  'keep-alive',
2349
2361
  'keep-me-updated',
2350
2362
  'key',
2363
+ 'key-id',
2351
2364
  'keybinds',
2352
2365
  'keyboard',
2353
2366
  'keydown',
@@ -4572,6 +4585,7 @@ export const knownContextValues: Set<string> = new Set([
4572
4585
  'toggle-recording',
4573
4586
  'toggle-similar-issues',
4574
4587
  'toggle-url-decoding',
4588
+ 'token',
4575
4589
  'tool',
4576
4590
  'tool-details',
4577
4591
  'tool-list',
@@ -4687,6 +4701,7 @@ export const knownContextValues: Set<string> = new Set([
4687
4701
  'vector-effect',
4688
4702
  'verbose',
4689
4703
  'verdana',
4704
+ 'version',
4690
4705
  'vertical-align',
4691
4706
  'vertical-drawer',
4692
4707
  'very-slow',
@@ -87,30 +87,27 @@ function drawBadge(context: CanvasRenderingContext2D, text: string, x: number, y
87
87
  export function drawAnchorHighlight(highlight: AnchorHighlight, context: CanvasRenderingContext2D,
88
88
  emulationScaleFactor: number, canvasWidth = 0, canvasHeight = 0): void {
89
89
  const config = highlight.imcbHighlightConfig;
90
+ const imcbBounds = emptyBounds();
91
+ const imcbPath = buildPath(highlight.imcbBorder, imcbBounds, emulationScaleFactor);
90
92
 
91
93
  // 1. Inset modifiers: If containingBlockBorder is provided, shade the difference between CB and IMCB.
92
94
  if (highlight.containingBlockBorder && (config.insetsFillColor || config.insetsHatchColor)) {
93
95
  const cbBounds = emptyBounds();
94
96
  const cbPath = buildPath(highlight.containingBlockBorder, cbBounds, emulationScaleFactor);
97
+ const clipPath = new Path2D();
98
+ clipPath.addPath(cbPath);
99
+ clipPath.addPath(imcbPath);
100
+
101
+ context.save();
102
+ context.clip(clipPath, 'evenodd');
95
103
  fillPathWithBoxStyle(context, cbPath, cbBounds, 0, {
96
104
  fillColor: config.insetsFillColor,
97
105
  hatchColor: config.insetsHatchColor,
98
106
  });
99
-
100
- // Clear the IMCB area from the containing block fill so only the insets remain.
101
- context.save();
102
- context.globalCompositeOperation = 'destination-out';
103
- const clearBounds = emptyBounds();
104
- const clearPath = buildPath(highlight.imcbBorder, clearBounds, emulationScaleFactor);
105
- context.fillStyle = 'white';
106
- context.fill(clearPath);
107
107
  context.restore();
108
108
  }
109
109
 
110
110
  // 2. IMCB Rectangle
111
- const imcbBounds = emptyBounds();
112
- const imcbPath = buildPath(highlight.imcbBorder, imcbBounds, emulationScaleFactor);
113
-
114
111
  if (config.imcbFillColor) {
115
112
  context.save();
116
113
  context.fillStyle = config.imcbFillColor;
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.1730971"
94
+ "version": "1.0.1732697"
95
95
  }
@@ -1,33 +0,0 @@
1
- // Copyright 2025 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
- /**
6
- * @file Local debugging utilities.
7
- */
8
-
9
- import * as Platform from '../../core/platform/platform.js';
10
-
11
- export function isDebugMode(): boolean {
12
- return Boolean(Platform.HostRuntime.HOST_RUNTIME.getLocalStorage()?.getItem('debugAiCodeCompletionEnabled'));
13
- }
14
-
15
- export function debugLog(...log: unknown[]): void {
16
- if (!isDebugMode()) {
17
- return;
18
- }
19
-
20
- // eslint-disable-next-line no-console
21
- console.log(...log);
22
- }
23
-
24
- function setDebugAiCodeCompletionEnabled(enabled: boolean): void {
25
- const localStorage = Platform.HostRuntime.HOST_RUNTIME.getLocalStorage();
26
- if (enabled) {
27
- localStorage?.setItem('debugAiCodeCompletionEnabled', 'true');
28
- } else {
29
- localStorage?.removeItem('debugAiCodeCompletionEnabled');
30
- }
31
- }
32
- // @ts-expect-error
33
- globalThis.setDebugAiCodeCompletionEnabled = setDebugAiCodeCompletionEnabled;
@@ -1,33 +0,0 @@
1
- // Copyright 2025 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
- /**
6
- * @file Local debugging utilities.
7
- */
8
-
9
- import * as Platform from '../../core/platform/platform.js';
10
-
11
- export function isDebugMode(): boolean {
12
- return Boolean(Platform.HostRuntime.HOST_RUNTIME.getLocalStorage()?.getItem('debugAiCodeGenerationEnabled'));
13
- }
14
-
15
- export function debugLog(...log: unknown[]): void {
16
- if (!isDebugMode()) {
17
- return;
18
- }
19
-
20
- // eslint-disable-next-line no-console
21
- console.log(...log);
22
- }
23
-
24
- function setDebugAiCodeGenerationEnabled(enabled: boolean): void {
25
- const localStorage = Platform.HostRuntime.HOST_RUNTIME.getLocalStorage();
26
- if (enabled) {
27
- localStorage?.setItem('debugAiCodeGenerationEnabled', 'true');
28
- } else {
29
- localStorage?.removeItem('debugAiCodeGenerationEnabled');
30
- }
31
- }
32
- // @ts-expect-error
33
- globalThis.setDebugAiCodeGenerationEnabled = setDebugAiCodeGenerationEnabled;