chrome-devtools-frontend 1.0.1522585 → 1.0.1525561

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 (357) hide show
  1. package/AUTHORS +1 -0
  2. package/docs/README.md +1 -0
  3. package/docs/policy/README.md +1 -0
  4. package/docs/policy/console-policy.md +144 -0
  5. package/docs/policy/images/console-policy1.png +0 -0
  6. package/docs/policy/images/console-policy2.png +0 -0
  7. package/docs/policy/images/console-policy3.png +0 -0
  8. package/docs/policy/slow-close.md +22 -19
  9. package/docs/ui_engineering.md +22 -0
  10. package/front_end/Tests.js +1 -1
  11. package/front_end/core/common/Color.ts +13 -9
  12. package/front_end/core/common/ColorConverter.ts +9 -7
  13. package/front_end/core/common/Gzip.ts +1 -1
  14. package/front_end/core/common/MapWithDefault.ts +5 -3
  15. package/front_end/core/common/ResourceType.ts +0 -12
  16. package/front_end/core/common/ReturnToPanel.ts +6 -4
  17. package/front_end/core/common/Trie.ts +4 -2
  18. package/front_end/core/host/AidaClient.ts +3 -3
  19. package/front_end/core/host/GdpClient.ts +7 -5
  20. package/front_end/core/host/InspectorFrontendHostAPI.ts +7 -5
  21. package/front_end/core/host/Platform.ts +5 -3
  22. package/front_end/core/host/UserMetrics.ts +6 -4
  23. package/front_end/core/platform/ArrayUtilities.ts +1 -1
  24. package/front_end/core/platform/StringUtilities.ts +34 -31
  25. package/front_end/core/root/Runtime.ts +1 -1
  26. package/front_end/core/sdk/CSSMetadata.ts +6 -4
  27. package/front_end/core/sdk/CSSPropertyParser.ts +17 -13
  28. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +19 -13
  29. package/front_end/core/sdk/ChildTargetManager.ts +35 -0
  30. package/front_end/core/sdk/DOMModel.ts +1 -1
  31. package/front_end/core/sdk/EventBreakpointsModel.ts +4 -2
  32. package/front_end/core/sdk/HttpReasonPhraseStrings.ts +4 -2
  33. package/front_end/core/sdk/NetworkManager.ts +8 -48
  34. package/front_end/core/sdk/NetworkRequest.ts +0 -28
  35. package/front_end/core/sdk/PageResourceLoader.ts +1 -1
  36. package/front_end/core/sdk/PreloadingModel.ts +22 -18
  37. package/front_end/core/sdk/RehydratingConnection.ts +1 -1
  38. package/front_end/core/sdk/RehydratingObject.ts +1 -1
  39. package/front_end/core/sdk/RemoteObject.ts +1 -1
  40. package/front_end/core/sdk/ResourceTreeModel.ts +2 -0
  41. package/front_end/{models/source_map_scopes → core/sdk}/ScopeTreeCache.ts +8 -7
  42. package/front_end/core/sdk/ScreenCaptureModel.ts +24 -20
  43. package/front_end/core/sdk/Target.ts +7 -1
  44. package/front_end/core/sdk/TraceObject.ts +2 -2
  45. package/front_end/core/sdk/sdk.ts +2 -0
  46. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +7 -0
  47. package/front_end/entrypoints/formatter_worker/ScopeParser.ts +15 -12
  48. package/front_end/entrypoints/formatter_worker/Substitute.ts +6 -4
  49. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +24 -16
  50. package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +2 -1
  51. package/front_end/entrypoints/main/MainImpl.ts +6 -4
  52. package/front_end/generated/InspectorBackendCommands.js +2 -2
  53. package/front_end/generated/protocol-mapping.d.ts +3 -2
  54. package/front_end/generated/protocol-proxy-api.d.ts +3 -1
  55. package/front_end/generated/protocol.ts +7 -1
  56. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +55 -14
  57. package/front_end/models/ai_assistance/agents/StylingAgent.ts +83 -222
  58. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +23 -0
  59. package/front_end/models/ai_assistance/performance/AIContext.ts +19 -4
  60. package/front_end/models/ai_code_completion/AiCodeCompletion.ts +4 -2
  61. package/front_end/models/autofill_manager/AutofillManager.ts +4 -2
  62. package/front_end/models/cpu_profile/CPUProfileDataModel.ts +1 -1
  63. package/front_end/models/crux-manager/CrUXManager.ts +1 -1
  64. package/front_end/models/extensions/HostUrlPattern.ts +13 -5
  65. package/front_end/models/formatter/FormatterWorkerPool.ts +1 -1
  66. package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +1 -1
  67. package/front_end/models/issues_manager/CookieIssue.ts +2 -2
  68. package/front_end/models/issues_manager/MarkdownIssueDescription.ts +1 -1
  69. package/front_end/models/issues_manager/SharedDictionaryIssue.ts +20 -0
  70. package/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
  71. package/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
  72. package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
  73. package/front_end/models/network_time_calculator/Calculator.ts +4 -2
  74. package/front_end/models/network_time_calculator/RequestTimeRanges.ts +6 -4
  75. package/front_end/models/source_map_scopes/NamesResolver.ts +8 -8
  76. package/front_end/models/source_map_scopes/source_map_scopes.ts +0 -2
  77. package/front_end/models/text_utils/ContentProvider.ts +6 -4
  78. package/front_end/models/trace/extras/TraceTree.ts +1 -1
  79. package/front_end/models/trace/handlers/FramesHandler.ts +7 -5
  80. package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +13 -7
  81. package/front_end/models/trace/handlers/MetaHandler.ts +16 -14
  82. package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +20 -8
  83. package/front_end/models/trace/handlers/helpers.ts +1 -1
  84. package/front_end/models/trace/handlers/types.ts +23 -19
  85. package/front_end/models/trace/helpers/Timing.ts +4 -2
  86. package/front_end/models/trace/helpers/Trace.ts +8 -4
  87. package/front_end/models/trace/insights/DocumentLatency.ts +1 -1
  88. package/front_end/models/trace/insights/INPBreakdown.ts +13 -2
  89. package/front_end/models/trace/insights/LCPBreakdown.ts +14 -2
  90. package/front_end/models/trace/insights/NetworkDependencyTree.ts +2 -2
  91. package/front_end/models/trace/types/File.ts +12 -8
  92. package/front_end/models/trace/types/Timing.ts +1 -1
  93. package/front_end/models/trace/types/TraceEvents.ts +37 -23
  94. package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +1 -1
  95. package/front_end/panels/ai_assistance/components/MarkdownRendererWithCodeBlock.ts +12 -10
  96. package/front_end/panels/application/KeyValueStorageItemsView.ts +31 -33
  97. package/front_end/panels/application/components/InterestGroupAccessGrid.ts +6 -11
  98. package/front_end/panels/application/components/OriginTrialTreeView.ts +7 -5
  99. package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -0
  100. package/front_end/panels/application/components/ReportsGrid.ts +4 -10
  101. package/front_end/panels/application/components/SharedStorageAccessGrid.ts +5 -13
  102. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
  103. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +3 -7
  104. package/front_end/panels/application/preloading/components/PreloadingString.ts +2 -2
  105. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +3 -10
  106. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +4 -2
  107. package/front_end/panels/browser_debugger/browser_debugger-meta.ts +7 -5
  108. package/front_end/panels/changes/ChangesSidebar.ts +105 -96
  109. package/front_end/panels/changes/ChangesView.ts +69 -69
  110. package/front_end/panels/changes/CombinedDiffView.ts +1 -1
  111. package/front_end/panels/changes/changesSidebar.css +3 -0
  112. package/front_end/panels/changes/changesView.css +4 -0
  113. package/front_end/panels/console/ConsoleView.ts +2 -2
  114. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +22 -35
  115. package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
  116. package/front_end/panels/elements/ElementStatePaneWidget.ts +12 -0
  117. package/front_end/panels/elements/ElementsTreeElement.ts +9 -5
  118. package/front_end/panels/elements/ElementsTreeOutline.ts +11 -8
  119. package/front_end/panels/elements/PropertyRenderer.ts +19 -15
  120. package/front_end/panels/elements/StylePropertyTreeElement.ts +6 -4
  121. package/front_end/panels/elements/StylesSidebarPane.ts +2 -2
  122. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +4 -2
  123. package/front_end/panels/elements/components/AdornerManager.ts +5 -3
  124. package/front_end/panels/lighthouse/LighthouseController.ts +5 -0
  125. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +43 -46
  126. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +260 -157
  127. package/front_end/panels/linear_memory_inspector/components/linearMemoryInspector.css +28 -21
  128. package/front_end/panels/media/PlayerPropertiesView.ts +1 -1
  129. package/front_end/panels/network/NetworkDataGridNode.ts +2 -44
  130. package/front_end/panels/network/NetworkLogView.ts +6 -4
  131. package/front_end/panels/network/RequestPreviewView.ts +0 -7
  132. package/front_end/panels/network/components/RequestHeadersView.ts +0 -6
  133. package/front_end/panels/network/components/components.ts +0 -2
  134. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +1 -1
  135. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +4 -2
  136. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +12 -19
  137. package/front_end/panels/search/SearchResultsPane.ts +2 -3
  138. package/front_end/panels/security/IPProtectionView.ts +1 -1
  139. package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +4 -0
  140. package/front_end/panels/settings/emulation/utils/StructuredHeaders.ts +45 -37
  141. package/front_end/panels/sources/BreakpointsViewUtils.ts +11 -9
  142. package/front_end/panels/sources/DebuggerPlugin.ts +8 -4
  143. package/front_end/panels/sources/SourcesPanel.ts +1 -1
  144. package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
  145. package/front_end/panels/timeline/CompatibilityTracksAppender.ts +4 -2
  146. package/front_end/panels/timeline/CountersGraph.ts +12 -5
  147. package/front_end/panels/timeline/EasterEgg.d.ts +5 -3
  148. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +8 -6
  149. package/front_end/panels/timeline/ModificationsManager.ts +5 -3
  150. package/front_end/panels/timeline/ThreadAppender.ts +7 -5
  151. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +10 -8
  152. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +1 -1
  153. package/front_end/panels/timeline/TimelinePanel.ts +10 -8
  154. package/front_end/panels/timeline/TimelineSelection.ts +4 -2
  155. package/front_end/panels/timeline/TimelineUIUtils.ts +5 -3
  156. package/front_end/panels/timeline/components/BreadcrumbsUI.ts +6 -4
  157. package/front_end/panels/timeline/components/Utils.ts +1 -1
  158. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +5 -3
  159. package/front_end/panels/timeline/utils/Helpers.ts +1 -1
  160. package/front_end/panels/utils/utils.ts +1 -7
  161. package/front_end/services/trace_bounds/TraceBounds.ts +4 -2
  162. package/front_end/services/tracing/PerformanceTracing.ts +1 -1
  163. package/front_end/third_party/chromium/README.chromium +1 -1
  164. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  165. package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
  166. package/front_end/third_party/codemirror.next/chunk/php.js +1 -1
  167. package/front_end/third_party/codemirror.next/chunk/php.js.map +1 -1
  168. package/front_end/third_party/codemirror.next/package.json +3 -2
  169. package/front_end/third_party/puppeteer/README.chromium +2 -2
  170. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.d.ts +8 -10
  171. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.d.ts.map +1 -1
  172. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.js +8 -10
  173. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.js.map +1 -1
  174. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +28 -30
  175. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
  176. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js +27 -29
  177. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
  178. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts +34 -38
  179. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts.map +1 -1
  180. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +34 -38
  181. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js.map +1 -1
  182. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts +8 -1
  183. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts.map +1 -1
  184. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js +12 -14
  185. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js.map +1 -1
  186. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +92 -108
  187. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
  188. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +33 -39
  189. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
  190. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
  191. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +5 -3
  192. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
  193. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
  194. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +1 -1
  195. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
  196. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts +4 -2
  197. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
  198. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js +14 -5
  199. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js.map +1 -1
  200. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +1 -0
  201. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
  202. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +12 -6
  203. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
  204. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.d.ts.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js +24 -2
  206. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js.map +1 -1
  207. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +2 -2
  208. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts +1 -0
  209. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
  210. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js +3 -0
  211. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
  212. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.d.ts +13 -22
  213. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.d.ts.map +1 -1
  214. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.js +13 -22
  215. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.js.map +1 -1
  216. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts +6 -8
  217. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts.map +1 -1
  218. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.js +6 -8
  219. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.js.map +1 -1
  220. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
  221. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
  222. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  223. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +1 -1
  224. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  225. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +6 -3
  226. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
  227. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts +5 -7
  228. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
  229. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js +5 -7
  230. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js.map +1 -1
  231. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
  232. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
  233. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
  234. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  235. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +188 -224
  236. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +140 -166
  237. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.d.ts +8 -10
  238. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.d.ts.map +1 -1
  239. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.js +8 -10
  240. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.js.map +1 -1
  241. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +28 -30
  242. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
  243. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js +27 -29
  244. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
  245. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts +34 -38
  246. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts.map +1 -1
  247. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +34 -38
  248. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js.map +1 -1
  249. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts +8 -1
  250. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts.map +1 -1
  251. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.js +12 -14
  252. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.js.map +1 -1
  253. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +92 -108
  254. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
  255. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +33 -39
  256. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
  257. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
  258. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +5 -3
  259. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
  260. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
  261. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +1 -1
  262. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
  263. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts +4 -2
  264. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
  265. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js +15 -6
  266. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js.map +1 -1
  267. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +1 -0
  268. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
  269. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +12 -6
  270. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
  271. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.d.ts.map +1 -1
  272. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js +24 -2
  273. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js.map +1 -1
  274. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts +1 -0
  275. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
  276. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js +3 -0
  277. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
  278. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.d.ts +13 -22
  279. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.d.ts.map +1 -1
  280. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +13 -22
  281. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js.map +1 -1
  282. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts +6 -8
  283. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts.map +1 -1
  284. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.js +6 -8
  285. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.js.map +1 -1
  286. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
  287. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
  288. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +1 -1
  289. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  290. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +6 -3
  291. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
  292. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts +5 -7
  293. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
  294. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js +5 -7
  295. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js.map +1 -1
  296. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
  297. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
  298. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
  299. package/front_end/third_party/puppeteer/package/lib/types.d.ts +188 -224
  300. package/front_end/third_party/puppeteer/package/package.json +3 -3
  301. package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +8 -10
  302. package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +27 -29
  303. package/front_end/third_party/puppeteer/package/src/api/Frame.ts +34 -38
  304. package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +17 -14
  305. package/front_end/third_party/puppeteer/package/src/api/Page.ts +92 -108
  306. package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +5 -3
  307. package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +5 -1
  308. package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +28 -3
  309. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +16 -7
  310. package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +28 -2
  311. package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +4 -0
  312. package/front_end/third_party/puppeteer/package/src/cdp/PredefinedNetworkConditions.ts +13 -22
  313. package/front_end/third_party/puppeteer/package/src/common/Device.ts +6 -8
  314. package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
  315. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +6 -3
  316. package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +5 -7
  317. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  318. package/front_end/ui/components/chrome_link/ChromeLink.ts +4 -2
  319. package/front_end/ui/components/dialogs/Dialog.ts +13 -9
  320. package/front_end/ui/components/docs/linear_memory_inspector/basic.ts +21 -9
  321. package/front_end/ui/components/highlighting/HighlightElement.ts +77 -0
  322. package/front_end/ui/components/highlighting/HighlightManager.ts +58 -1
  323. package/front_end/ui/components/highlighting/highlighting.ts +2 -0
  324. package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +5 -3
  325. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +5 -3
  326. package/front_end/ui/components/menus/SelectMenu.ts +6 -4
  327. package/front_end/ui/components/survey_link/SurveyLink.ts +4 -2
  328. package/front_end/ui/components/text_editor/config.ts +10 -6
  329. package/front_end/ui/components/text_editor/javascript.ts +8 -4
  330. package/front_end/ui/components/tooltips/Tooltip.ts +22 -5
  331. package/front_end/ui/legacy/ForwardedInputEventHandler.ts +4 -2
  332. package/front_end/ui/legacy/GlassPane.ts +1 -1
  333. package/front_end/ui/legacy/SettingsUI.ts +1 -5
  334. package/front_end/ui/legacy/Treeoutline.ts +12 -33
  335. package/front_end/ui/legacy/UIUtils.ts +19 -1
  336. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +12 -10
  337. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +30 -32
  338. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  339. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +25 -25
  340. package/front_end/ui/legacy/components/data_grid/dataGrid.css +5 -0
  341. package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +4 -2
  342. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +4 -2
  343. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +8 -6
  344. package/front_end/ui/legacy/components/perf_ui/PieChart.ts +6 -4
  345. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +3 -3
  346. package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +18 -20
  347. package/front_end/ui/legacy/components/source_frame/XMLView.ts +22 -16
  348. package/front_end/ui/legacy/components/source_frame/xmlView.css +0 -2
  349. package/front_end/ui/legacy/components/utils/Linkifier.ts +6 -4
  350. package/front_end/ui/visual_logging/Debugging.ts +10 -6
  351. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -3
  352. package/inspector_overlay/common.ts +5 -3
  353. package/inspector_overlay/highlight_grid_common.ts +1 -1
  354. package/package.json +1 -1
  355. package/front_end/Images/src/bundle.svg +0 -3
  356. package/front_end/panels/network/components/WebBundleInfoView.css +0 -27
  357. package/front_end/panels/network/components/WebBundleInfoView.ts +0 -95
@@ -71,9 +71,14 @@ export class CountersGraph extends UI.Widget.VBox {
71
71
 
72
72
  #noEventsFoundMessage = document.createElement('div');
73
73
  #showNoEventsMessage = false;
74
+ #defaultNumberFormatter: Intl.NumberFormat;
74
75
 
75
76
  constructor(delegate: TimelineModeViewDelegate) {
76
77
  super();
78
+ this.#defaultNumberFormatter = new Intl.NumberFormat(
79
+ i18n.DevToolsLocale.DevToolsLocale.instance().locale,
80
+ );
81
+
77
82
  this.element.id = 'memory-graphs-container';
78
83
 
79
84
  this.delegate = delegate;
@@ -180,6 +185,7 @@ export class CountersGraph extends UI.Widget.VBox {
180
185
  }
181
186
  }
182
187
  this.#showNoEventsMessage = counterEventsFound === 0;
188
+ this.requestUpdate();
183
189
  }
184
190
 
185
191
  private createCurrentValuesBar(): void {
@@ -192,7 +198,8 @@ export class CountersGraph extends UI.Widget.VBox {
192
198
  formatter?: ((arg0: number) => string)): Counter {
193
199
  const counter = new Counter();
194
200
  this.counters.push(counter);
195
- this.counterUI.push(new CounterUI(this, uiName, settingsKey, color, counter, formatter));
201
+ this.counterUI.push(
202
+ new CounterUI(this, uiName, settingsKey, color, counter, formatter ?? this.#defaultNumberFormatter.format));
196
203
  return counter;
197
204
  }
198
205
 
@@ -388,7 +395,7 @@ export class Counter {
388
395
  export class CounterUI {
389
396
  private readonly countersPane: CountersGraph;
390
397
  counter: Counter;
391
- private readonly formatter: (arg0: number) => string;
398
+ readonly formatter: (arg0: number) => string;
392
399
  private readonly setting: Common.Settings.Setting<boolean>;
393
400
  private readonly filter: UI.Toolbar.ToolbarSettingCheckbox;
394
401
  private readonly value: HTMLElement;
@@ -401,10 +408,10 @@ export class CounterUI {
401
408
 
402
409
  constructor(
403
410
  countersPane: CountersGraph, title: Common.UIString.LocalizedString, settingsKey: string, graphColor: string,
404
- counter: Counter, formatter?: (arg0: number) => string) {
411
+ counter: Counter, formatter: (arg0: number) => string) {
405
412
  this.countersPane = countersPane;
406
413
  this.counter = counter;
407
- this.formatter = formatter || Platform.NumberUtilities.withThousandsSeparator;
414
+ this.formatter = formatter;
408
415
 
409
416
  this.setting = Common.Settings.Settings.instance().createSetting('timeline-counters-graph-' + settingsKey, true);
410
417
  this.setting.setTitle(title);
@@ -474,7 +481,7 @@ export class CounterUI {
474
481
  return;
475
482
  }
476
483
  const index = this.recordIndexAt(x);
477
- const value = Platform.NumberUtilities.withThousandsSeparator(this.counter.values[index]);
484
+ const value = this.formatter(this.counter.values[index]);
478
485
  this.value.textContent = `${this.counterName}: ${value}`;
479
486
  const y = this.graphYValues[index] / window.devicePixelRatio;
480
487
  this.marker.style.left = x + 'px';
@@ -1,4 +1,6 @@
1
- // Copyright 2024 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.
1
+ /**
2
+ * Copyright 2024 The Chromium Authors
3
+ * Use of this source code is governed by a BSD-style license that can be
4
+ * found in the LICENSE file.
5
+ **/
4
6
  export const SHOULD_SHOW_EASTER_EGG: boolean;
@@ -40,12 +40,14 @@ const UIStrings = {
40
40
  const str_ = i18n.i18n.registerUIStrings('panels/timeline/LayoutShiftsTrackAppender.ts', UIStrings);
41
41
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
42
42
 
43
- // Bit of a hack: LayoutShifts are instant events, so have no duration. But
44
- // OPP doesn't do well at making tiny events easy to spot and click. So we
45
- // set it to a small duration so that the user is able to see and click
46
- // them more easily. Long term we will explore a better UI solution to
47
- // allow us to do this properly and not hack around it.
48
- // TODO: Delete this once the new Layout Shift UI ships out of the TIMELINE_LAYOUT_SHIFT_DETAILS experiment
43
+ /**
44
+ * Bit of a hack: LayoutShifts are instant events, so have no duration. But
45
+ * OPP doesn't do well at making tiny events easy to spot and click. So we
46
+ * set it to a small duration so that the user is able to see and click
47
+ * them more easily. Long term we will explore a better UI solution to
48
+ * allow us to do this properly and not hack around it.
49
+ * TODO: Delete this once the new Layout Shift UI ships out of the TIMELINE_LAYOUT_SHIFT_DETAILS experiment
50
+ **/
49
51
  export const LAYOUT_SHIFT_SYNTHETIC_DURATION = Trace.Types.Timing.Micro(5_000);
50
52
 
51
53
  export class LayoutShiftsTrackAppender implements TrackAppender {
@@ -16,9 +16,11 @@ let activeManager: ModificationsManager|null;
16
16
  export type UpdateAction =
17
17
  'Remove'|'Add'|'UpdateLabel'|'UpdateTimeRange'|'UpdateLinkToEntry'|'EnterLabelEditState'|'LabelBringForward';
18
18
 
19
- // Event dispatched after an annotation was added, removed or updated.
20
- // The event argument is the Overlay that needs to be created,removed
21
- // or updated by `Overlays.ts` and the action that needs to be applied to it.
19
+ /**
20
+ * Event dispatched after an annotation was added, removed or updated.
21
+ * The event argument is the Overlay that needs to be created,removed
22
+ * or updated by `Overlays.ts` and the action that needs to be applied to it.
23
+ **/
22
24
  export class AnnotationModifiedEvent extends Event {
23
25
  static readonly eventName = 'annotationmodifiedevent';
24
26
 
@@ -135,11 +135,13 @@ const UIStrings = {
135
135
  const str_ = i18n.i18n.registerUIStrings('panels/timeline/ThreadAppender.ts', UIStrings);
136
136
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
137
137
 
138
- // This appender is only triggered when the Renderer handler is run. At
139
- // the moment this only happens in the basic component server example.
140
- // In the future, once this appender fully supports the behaviour of the
141
- // old engine's thread/sync tracks we can always run it by enabling the
142
- // Renderer and Samples handler by default.
138
+ /**
139
+ * This appender is only triggered when the Renderer handler is run. At
140
+ * the moment this only happens in the basic component server example.
141
+ * In the future, once this appender fully supports the behaviour of the
142
+ * old engine's thread/sync tracks we can always run it by enabling the
143
+ * Renderer and Samples handler by default.
144
+ **/
143
145
  export class ThreadAppender implements TrackAppender {
144
146
  readonly appenderName: TrackAppenderName = 'Thread';
145
147
 
@@ -1111,7 +1111,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
1111
1111
  context.fillRect(barX, barY - 0.5, desiredBoxStartX - barX, barHeight);
1112
1112
  context.fillRect(desiredBoxEndX, barY - 0.5, entireBarEndXPixel - desiredBoxEndX, barHeight);
1113
1113
 
1114
- // Draws left and right whiskers
1114
+ /** Draws left and right whiskers **/
1115
1115
  function drawTick(begin: number, end: number, y: number): void {
1116
1116
  const tickHeightPx = 6;
1117
1117
  context.moveTo(begin, y - tickHeightPx / 2);
@@ -1398,13 +1398,15 @@ export interface EventTypes {
1398
1398
  };
1399
1399
  }
1400
1400
 
1401
- // an entry is a trace event, they are classified into "entry types"
1402
- // because some events are rendered differently. For example, screenshot
1403
- // events are rendered as images. Checks for entry types allow to have
1404
- // different styles, names, etc. for events that look differently.
1405
- // In the future we won't have this checks: instead we will forward
1406
- // the event to the corresponding "track appender" and it will determine
1407
- // how the event shall be rendered.
1401
+ /**
1402
+ * an entry is a trace event, they are classified into "entry types"
1403
+ * because some events are rendered differently. For example, screenshot
1404
+ * events are rendered as images. Checks for entry types allow to have
1405
+ * different styles, names, etc. for events that look differently.
1406
+ * In the future we won't have this checks: instead we will forward
1407
+ * the event to the corresponding "track appender" and it will determine
1408
+ * how the event shall be rendered.
1409
+ **/
1408
1410
  export const enum EntryType {
1409
1411
  FRAME = 'Frame',
1410
1412
  TRACK_APPENDER = 'TrackAppender',
@@ -307,7 +307,7 @@ export class TimelineFlameChartNetworkDataProvider implements PerfUI.FlameChart.
307
307
  context.fillRect(barX, barY - 0.5, sendStart - barX, barHeight);
308
308
  context.fillRect(finish, barY - 0.5, barX + barWidth - finish, barHeight);
309
309
 
310
- // Draws left and right whiskers
310
+ /** Draws left and right whiskers **/
311
311
  function drawTick(begin: number, end: number, y: number): void {
312
312
  const /** @constant */ tickHeightPx = 6;
313
313
  context.moveTo(begin, y - tickHeightPx / 2);
@@ -1810,11 +1810,13 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1810
1810
  return;
1811
1811
  }
1812
1812
 
1813
- // To clear out the page and any state from prior test runs, we
1814
- // navigate to about:blank before initiating the trace recording.
1815
- // Once we have navigated to about:blank, we start recording and
1816
- // then navigate to the original page URL, to ensure we profile the
1817
- // page load.
1813
+ /**
1814
+ * To clear out the page and any state from prior test runs, we
1815
+ * navigate to about:blank before initiating the trace recording.
1816
+ * Once we have navigated to about:blank, we start recording and
1817
+ * then navigate to the original page URL, to ensure we profile the
1818
+ * page load.
1819
+ **/
1818
1820
  function waitForAboutBlank(event: Common.EventTarget.EventTargetEvent<SDK.ResourceTreeModel.ResourceTreeFrame>):
1819
1821
  void {
1820
1822
  if (event.data.url === 'about:blank') {
@@ -2024,14 +2026,14 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
2024
2026
  this.toggleRecordAction.setToggled(this.state === State.RECORDING);
2025
2027
  this.toggleRecordAction.setEnabled(this.state === State.RECORDING || this.state === State.IDLE);
2026
2028
  this.askAiButton?.setEnabled(this.state === State.IDLE && this.#hasActiveTrace());
2029
+ this.panelToolbar.setEnabled(this.state !== State.LOADING);
2030
+ this.panelRightToolbar.setEnabled(this.state !== State.LOADING);
2027
2031
 
2028
2032
  if (!this.canRecord()) {
2029
2033
  return;
2030
2034
  }
2031
2035
 
2032
2036
  this.recordReloadAction.setEnabled(isNode ? false : this.state === State.IDLE);
2033
- this.panelToolbar.setEnabled(this.state !== State.LOADING);
2034
- this.panelRightToolbar.setEnabled(this.state !== State.LOADING);
2035
2037
  this.homeButton?.setEnabled(this.state === State.IDLE && this.#hasActiveTrace());
2036
2038
  }
2037
2039
 
@@ -3154,7 +3156,7 @@ export const enum State {
3154
3156
  RECORDING_FAILED = 'RecordingFailed',
3155
3157
  }
3156
3158
 
3157
- // Define row and header height, should be in sync with styles for timeline graphs.
3159
+ /** Define row and header height, should be in sync with styles for timeline graphs. **/
3158
3160
  export const rowHeight = 18;
3159
3161
 
3160
3162
  export const headerHeight = 20;
@@ -5,8 +5,10 @@
5
5
  import * as Platform from '../../core/platform/platform.js';
6
6
  import * as Trace from '../../models/trace/trace.js';
7
7
 
8
- // We could add a `type` field here to distinguish them, but it is not needed
9
- // as we use the existence of "event" or "bounds" to do that.
8
+ /**
9
+ * We could add a `type` field here to distinguish them, but it is not needed
10
+ * as we use the existence of "event" or "bounds" to do that.
11
+ **/
10
12
  export interface EventSelection {
11
13
  event: Trace.Types.Events.Event;
12
14
  }
@@ -480,7 +480,7 @@ const UIStrings = {
480
480
  const str_ = i18n.i18n.registerUIStrings('panels/timeline/TimelineUIUtils.ts', UIStrings);
481
481
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
482
482
 
483
- // Look for scheme:// plus text and exclude any punctuation at the end.
483
+ /** Look for scheme:// plus text and exclude any punctuation at the end. **/
484
484
  export const URL_REGEX = /(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\/\/)[^\s"]{2,}[^\s"'\)\}\],:;.!?]/u;
485
485
 
486
486
  let eventDispatchDesciptors: EventDispatchTypeDescriptor[];
@@ -1684,8 +1684,10 @@ export class TimelineUIUtils {
1684
1684
  elem.textContent = eventStr;
1685
1685
  // Highlighting is done async (shrug), but we'll return the container immediately.
1686
1686
  void CodeHighlighter.CodeHighlighter.highlightNode(elem, 'text/javascript').then(() => {
1687
- // Linkify any URLs within the text nodes.
1688
- // Use a TreeWalker to find all our text nodes
1687
+ /**
1688
+ * Linkify any URLs within the text nodes.
1689
+ * Use a TreeWalker to find all our text nodes
1690
+ **/
1689
1691
  function* iterateTreeWalker(walker: TreeWalker): IterableIterator<Node> {
1690
1692
  while (walker.nextNode()) {
1691
1693
  yield walker.currentNode;
@@ -33,10 +33,12 @@ const UIStrings = {
33
33
  const str_ = i18n.i18n.registerUIStrings('panels/timeline/components/BreadcrumbsUI.ts', UIStrings);
34
34
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
35
35
 
36
- // `initialBreadcrumb` is the first breadcrumb in the breadcrumbs linked list. Since
37
- // breadcrumbs are a linked list, the first breadcrumb is enought to be able to iterate through all of them.
38
- //
39
- // `activeBreadcrumb` is the currently active breadcrumb that the timeline is limited to.
36
+ /**
37
+ * `initialBreadcrumb` is the first breadcrumb in the breadcrumbs linked list. Since
38
+ * breadcrumbs are a linked list, the first breadcrumb is enough to be able to iterate through all of them.
39
+ *
40
+ * `activeBreadcrumb` is the currently active breadcrumb that the timeline is limited to.
41
+ **/
40
42
  export interface BreadcrumbsUIData {
41
43
  initialBreadcrumb: Trace.Types.File.Breadcrumb;
42
44
  activeBreadcrumb: Trace.Types.File.Breadcrumb;
@@ -119,7 +119,7 @@ export function colorForNetworkRequest(request: Trace.Types.Events.SyntheticNetw
119
119
  export type MetricRating = 'good'|'needs-improvement'|'poor';
120
120
  export type MetricThresholds = [number, number];
121
121
 
122
- // TODO: Consolidate our metric rating logic with the trace engine.
122
+ /** TODO: Consolidate our metric rating logic with the trace engine. **/
123
123
  export const LCP_THRESHOLDS = [2500, 4000] as MetricThresholds;
124
124
  export const CLS_THRESHOLDS = [0.1, 0.25] as MetricThresholds;
125
125
  export const INP_THRESHOLDS = [200, 500] as MetricThresholds;
@@ -209,9 +209,11 @@ export interface OverlayEntryQueries {
209
209
  firstVisibleParentForEntry: (entry: Trace.Types.Events.Event) => Trace.Types.Events.Event | null;
210
210
  }
211
211
 
212
- // An event dispatched when one of the Annotation Overlays (overlay created by the user,
213
- // ex. Trace.Types.Overlays.EntryLabel) is removed or updated. When one of the Annotation Overlays is removed or updated,
214
- // ModificationsManager listens to this event and updates the current annotations.
212
+ /**
213
+ * An event dispatched when one of the Annotation Overlays (overlay created by the user,
214
+ * ex. Trace.Types.Overlays.EntryLabel) is removed or updated. When one of the Annotation Overlays is removed or updated,
215
+ * ModificationsManager listens to this event and updates the current annotations.
216
+ **/
215
217
  export type UpdateAction = 'Remove'|'Update';
216
218
  export class AnnotationOverlayActionEvent extends Event {
217
219
  static readonly eventName = 'annotationoverlayactionsevent';
@@ -147,7 +147,7 @@ export function formatOriginWithEntity(
147
147
  return originWithEntity;
148
148
  }
149
149
 
150
- // Thin wrapper class to enable revealing an individual insight in Timeline panel.
150
+ /** Thin wrapper class to enable revealing an individual insight in Timeline panel. **/
151
151
  export class RevealableInsight {
152
152
  constructor(public insight: Trace.Insights.Types.InsightModel) {
153
153
  }
@@ -40,7 +40,7 @@ const UIStrings = {
40
40
  const str_ = i18n.i18n.registerUIStrings('panels/utils/utils.ts', UIStrings);
41
41
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
42
42
 
43
- // These utilities are packaged in a class to allow unittests to stub or spy the implementation.
43
+ /** These utilities are packaged in a class to allow unittests to stub or spy the implementation. **/
44
44
  export class PanelUtils {
45
45
  static isFailedNetworkRequest(request: SDK.NetworkRequest.NetworkRequest|null): boolean {
46
46
  if (!request) {
@@ -56,9 +56,6 @@ export class PanelUtils {
56
56
  if (signedExchangeInfo !== null && Boolean(signedExchangeInfo.errors)) {
57
57
  return true;
58
58
  }
59
- if (request.webBundleInfo()?.errorMessage || request.webBundleInnerRequestInfo()?.errorMessage) {
60
- return true;
61
- }
62
59
  if (request.corsErrorStatus()) {
63
60
  return true;
64
61
  }
@@ -186,9 +183,6 @@ export class PanelUtils {
186
183
  if (resourceType.name() === Common.ResourceType.resourceTypes.Media.name()) {
187
184
  return {iconName: 'file-media'};
188
185
  }
189
- if (resourceType.isWebbundle()) {
190
- return {iconName: 'bundle'};
191
- }
192
186
 
193
187
  if (resourceType.name() === Common.ResourceType.resourceTypes.Fetch.name() ||
194
188
  resourceType.name() === Common.ResourceType.resourceTypes.XHR.name()) {
@@ -19,8 +19,10 @@ export class StateChangedEvent extends Event {
19
19
  }
20
20
  }
21
21
 
22
- // Exposed as a shortcut to BoundsManager.instance().addEventListener, which
23
- // also takes care of type-casting the event to StateChangedEvent.
22
+ /**
23
+ * Exposed as a shortcut to BoundsManager.instance().addEventListener, which
24
+ * also takes care of type-casting the event to StateChangedEvent.
25
+ **/
24
26
  export function onChange(cb: (event: StateChangedEvent) => void): void {
25
27
  BoundsManager.instance().addEventListener(
26
28
  StateChangedEvent.eventName,
@@ -82,7 +82,7 @@ interface Delegate {
82
82
  tracingComplete(events: Object[]): void;
83
83
  }
84
84
 
85
- // Used by an implementation of Common.Revealer to transfer data from the recorder to the performance panel.
85
+ /** Used by an implementation of Common.Revealer to transfer data from the recorder to the performance panel. **/
86
86
  export class RawTraceEvents {
87
87
  constructor(private events: Object[]) {
88
88
  }
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: https://source.chromium.org/chromium/chromium/src/+/main:components/variations/proto/devtools/
3
3
  Version: N/A
4
- Revision: c7c3037a902ef52ab055674cd106721ea54d13d1
4
+ Revision: 21c0e9d79181fd991f782bb74b0eb1c8bce10209
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE