chrome-devtools-frontend 1.0.1536371 → 1.0.1537860

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 (231) hide show
  1. package/.env.template +9 -0
  2. package/docs/get_the_code.md +27 -0
  3. package/front_end/core/common/SettingRegistration.ts +10 -7
  4. package/front_end/core/common/Settings.ts +3 -0
  5. package/front_end/core/host/AidaClient.ts +64 -5
  6. package/front_end/core/host/DispatchHttpRequestClient.ts +62 -0
  7. package/front_end/core/host/GdpClient.ts +8 -57
  8. package/front_end/core/host/host.ts +2 -0
  9. package/front_end/core/protocol_client/CDPConnection.ts +10 -8
  10. package/front_end/core/protocol_client/InspectorBackend.ts +36 -42
  11. package/front_end/core/sdk/EnhancedTracesParser.ts +20 -5
  12. package/front_end/core/sdk/RehydratingConnection.ts +112 -4
  13. package/front_end/core/sdk/RehydratingObject.ts +8 -0
  14. package/front_end/core/sdk/TraceObject.ts +5 -1
  15. package/front_end/core/sdk/sdk-meta.ts +8 -2
  16. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +4 -3
  17. package/front_end/generated/SupportedCSSProperties.js +1 -0
  18. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +23 -7
  19. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +110 -5
  20. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +50 -45
  21. package/front_end/models/cpu_profile/ProfileTreeModel.ts +7 -7
  22. package/front_end/models/javascript_metadata/NativeFunctions.js +1 -1
  23. package/front_end/models/trace/types/File.ts +9 -0
  24. package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +1 -1
  25. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +5 -9
  26. package/front_end/panels/ai_assistance/components/ChatView.ts +58 -70
  27. package/front_end/panels/application/BackForwardCacheTreeElement.ts +2 -6
  28. package/front_end/panels/application/StorageView.ts +3 -2
  29. package/front_end/panels/application/components/BackForwardCacheView.ts +96 -108
  30. package/front_end/panels/application/components/FrameDetailsView.ts +8 -11
  31. package/front_end/panels/application/components/OriginTrialTreeView.ts +136 -137
  32. package/front_end/panels/application/components/backForwardCacheView.css +8 -0
  33. package/front_end/panels/application/components/badge.css +9 -1
  34. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +2 -2
  35. package/front_end/panels/application/preloading/components/PreloadingString.ts +27 -0
  36. package/front_end/panels/autofill/AutofillView.ts +1 -1
  37. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +44 -53
  38. package/front_end/panels/console/ConsoleView.ts +11 -9
  39. package/front_end/panels/coverage/CoverageView.ts +1 -2
  40. package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +1 -1
  41. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
  42. package/front_end/panels/elements/ElementStatePaneWidget.ts +1 -1
  43. package/front_end/panels/elements/EventListenersWidget.ts +1 -2
  44. package/front_end/panels/elements/PropertiesWidget.ts +1 -1
  45. package/front_end/panels/network/NetworkConfigView.ts +2 -1
  46. package/front_end/panels/network/NetworkPanel.ts +5 -4
  47. package/front_end/panels/network/RequestCookiesView.ts +2 -1
  48. package/front_end/panels/profiler/HeapSnapshotView.ts +3 -2
  49. package/front_end/panels/recorder/RecorderController.ts +1 -2
  50. package/front_end/panels/recorder/components/CreateRecordingView.ts +153 -129
  51. package/front_end/panels/sensors/SensorsView.ts +4 -3
  52. package/front_end/panels/settings/AISettingsTab.ts +162 -171
  53. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +8 -6
  54. package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -2
  55. package/front_end/panels/settings/SettingsScreen.ts +5 -8
  56. package/front_end/panels/settings/WorkspaceSettingsTab.ts +1 -1
  57. package/front_end/panels/settings/aiSettingsTab.css +151 -148
  58. package/front_end/panels/settings/settings-meta.ts +1 -2
  59. package/front_end/panels/sources/AddSourceMapURLDialog.ts +23 -26
  60. package/front_end/panels/sources/AiCodeCompletionPlugin.ts +2 -1
  61. package/front_end/panels/sources/SourcesPanel.ts +2 -1
  62. package/front_end/panels/sources/sources-meta.ts +8 -1
  63. package/front_end/panels/timeline/TimelinePanel.ts +64 -14
  64. package/front_end/panels/timeline/TimelineUIUtils.ts +4 -20
  65. package/front_end/panels/timeline/components/ExportTraceOptions.ts +33 -34
  66. package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -0
  67. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +2 -0
  68. package/front_end/third_party/chromium/README.chromium +2 -2
  69. package/front_end/third_party/puppeteer/README.chromium +2 -2
  70. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +9 -1
  71. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
  72. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
  73. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +2 -2
  74. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
  75. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
  76. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +13 -1
  77. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
  78. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
  79. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +2 -2
  80. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
  81. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +5 -2
  82. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
  83. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +2 -2
  84. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
  85. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +3 -1
  86. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
  87. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +1 -12
  88. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts.map +1 -1
  89. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts +6 -0
  90. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
  91. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +1 -0
  92. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
  93. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +2 -2
  94. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
  95. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +6 -1
  96. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
  97. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +2 -1
  98. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
  99. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +2 -2
  100. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
  101. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +2 -2
  102. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
  103. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +3 -1
  104. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
  105. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  106. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
  107. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
  108. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
  109. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  110. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/disposable.d.ts +2 -2
  111. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/disposable.d.ts.map +1 -1
  112. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/disposable.js +3 -1
  113. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/disposable.js.map +1 -1
  114. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.d.ts +1 -0
  115. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.d.ts.map +1 -1
  116. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.js +1 -0
  117. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.js.map +1 -1
  118. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  120. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +28 -3
  121. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +21 -10
  122. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +9 -1
  123. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
  124. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +2 -2
  126. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
  127. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.d.ts +1 -1
  129. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.d.ts.map +1 -1
  130. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +13 -1
  131. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
  132. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
  133. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +2 -2
  134. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
  135. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +5 -2
  136. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
  137. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +2 -2
  138. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
  139. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +3 -1
  140. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
  141. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Realm.d.ts +1 -12
  142. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Realm.d.ts.map +1 -1
  143. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts +6 -0
  144. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +1 -0
  146. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
  147. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +2 -2
  148. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
  149. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +6 -1
  150. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
  151. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +2 -1
  152. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
  153. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +2 -2
  154. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
  155. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +2 -2
  156. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
  157. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +3 -1
  158. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
  159. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
  160. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
  161. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
  162. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/disposable.d.ts +2 -2
  163. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/disposable.d.ts.map +1 -1
  164. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/disposable.js +2 -2
  165. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/disposable.js.map +1 -1
  166. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.d.ts +1 -0
  167. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.d.ts.map +1 -1
  168. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.js +1 -0
  169. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.js.map +1 -1
  170. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  171. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  172. package/front_end/third_party/puppeteer/package/lib/types.d.ts +28 -3
  173. package/front_end/third_party/puppeteer/package/package.json +2 -2
  174. package/front_end/third_party/puppeteer/package/src/api/Browser.ts +13 -1
  175. package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +7 -2
  176. package/front_end/third_party/puppeteer/package/src/api/Page.ts +14 -1
  177. package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +8 -5
  178. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +5 -2
  179. package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +8 -0
  180. package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +11 -2
  181. package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +3 -2
  182. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +5 -5
  183. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  184. package/front_end/third_party/puppeteer/package/src/util/disposable.ts +2 -2
  185. package/front_end/third_party/puppeteer/package/src/util/util.ts +1 -0
  186. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  187. package/front_end/ui/components/adorners/Adorner.ts +2 -1
  188. package/front_end/ui/components/buttons/Button.docs.ts +195 -0
  189. package/front_end/ui/components/settings/SettingCheckbox.ts +49 -14
  190. package/front_end/ui/components/settings/settingCheckbox.css +6 -1
  191. package/front_end/ui/components/spinners/Spinners.docs.ts +13 -0
  192. package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +280 -0
  193. package/front_end/ui/components/text_editor/text_editor.ts +1 -0
  194. package/front_end/ui/components/tooltips/Tooltip.docs.ts +76 -0
  195. package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
  196. package/front_end/ui/legacy/Dialog.ts +0 -1
  197. package/front_end/ui/legacy/FilterBar.ts +1 -2
  198. package/front_end/ui/legacy/RadioButton.docs.ts +41 -0
  199. package/front_end/ui/legacy/SelectMenu.docs.ts +98 -0
  200. package/front_end/ui/legacy/Toolbar.ts +4 -6
  201. package/front_end/ui/legacy/UIUtils.ts +114 -1
  202. package/front_end/ui/legacy/Widget.ts +62 -34
  203. package/front_end/ui/legacy/XLink.ts +0 -3
  204. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +9 -0
  205. package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +125 -0
  206. package/front_end/ui/legacy/components/settings_ui/settings_ui.ts +8 -0
  207. package/front_end/ui/legacy/components/utils/Linkifier.ts +9 -3
  208. package/front_end/ui/legacy/legacy.ts +0 -2
  209. package/front_end/ui/visual_logging/KnownContextValues.ts +4 -1
  210. package/mcp/mcp.ts +5 -0
  211. package/package.json +1 -1
  212. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatterBounds.snapshot.txt +0 -4
  213. package/front_end/models/trace/lantern/testing/MetricTestUtils.ts +0 -62
  214. package/front_end/models/trace/lantern/testing/testing.ts +0 -5
  215. package/front_end/ui/components/docs/breadcrumbs_perf/initial-breadcrumb-perf.html +0 -20
  216. package/front_end/ui/components/docs/breadcrumbs_perf/initial-breadcrumb-perf.ts +0 -25
  217. package/front_end/ui/components/docs/breadcrumbs_perf/nested-breadcrumbs-perf.html +0 -20
  218. package/front_end/ui/components/docs/breadcrumbs_perf/nested-breadcrumbs-perf.ts +0 -36
  219. package/front_end/ui/components/docs/button/basic.html +0 -44
  220. package/front_end/ui/components/docs/button/basic.ts +0 -175
  221. package/front_end/ui/components/docs/radio_button/basic.html +0 -23
  222. package/front_end/ui/components/docs/radio_button/basic.ts +0 -50
  223. package/front_end/ui/components/docs/select_menu/basic.html +0 -19
  224. package/front_end/ui/components/docs/select_menu/basic.ts +0 -95
  225. package/front_end/ui/components/docs/select_menu/wide-option.html +0 -38
  226. package/front_end/ui/components/docs/select_menu/wide-option.ts +0 -43
  227. package/front_end/ui/components/docs/spinners/basic.html +0 -17
  228. package/front_end/ui/components/docs/spinners/basic.ts +0 -22
  229. package/front_end/ui/components/docs/tooltip/basic.html +0 -20
  230. package/front_end/ui/components/docs/tooltip/basic.ts +0 -82
  231. package/front_end/ui/legacy/SettingsUI.ts +0 -254
@@ -42,7 +42,7 @@ import * as i18n from '../../core/i18n/i18n.js';
42
42
  import * as Platform from '../../core/platform/platform.js';
43
43
  import * as Root from '../../core/root/root.js';
44
44
  import * as SDK from '../../core/sdk/sdk.js';
45
- import type * as Protocol from '../../generated/protocol.js';
45
+ import * as Protocol from '../../generated/protocol.js';
46
46
  import * as AiAssistanceModel from '../../models/ai_assistance/ai_assistance.js';
47
47
  import * as Badges from '../../models/badges/badges.js';
48
48
  import * as CrUXManager from '../../models/crux-manager/crux-manager.js';
@@ -57,6 +57,7 @@ import * as Dialogs from '../../ui/components/dialogs/dialogs.js';
57
57
  import * as LegacyWrapper from '../../ui/components/legacy_wrapper/legacy_wrapper.js';
58
58
  import * as Snackbars from '../../ui/components/snackbars/snackbars.js';
59
59
  import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
60
+ import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
60
61
  import * as UI from '../../ui/legacy/legacy.js';
61
62
  import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
62
63
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
@@ -1290,7 +1291,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1290
1291
  this.cpuThrottlingSelect = MobileThrottling.ThrottlingManager.throttlingManager().createCPUThrottlingSelector();
1291
1292
  cpuThrottlingPane.append(this.cpuThrottlingSelect.control.element);
1292
1293
 
1293
- this.settingsPane.append(UI.SettingsUI.createSettingCheckbox(
1294
+ this.settingsPane.append(SettingsUI.SettingsUI.createSettingCheckbox(
1294
1295
  this.captureSelectorStatsSetting.title(), this.captureSelectorStatsSetting,
1295
1296
  i18nString(UIStrings.capturesSelectorStats)));
1296
1297
 
@@ -1298,11 +1299,11 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1298
1299
  networkThrottlingPane.append(i18nString(UIStrings.network));
1299
1300
  networkThrottlingPane.append(this.createNetworkConditionsSelectToolbarItem().element);
1300
1301
 
1301
- this.settingsPane.append(UI.SettingsUI.createSettingCheckbox(
1302
+ this.settingsPane.append(SettingsUI.SettingsUI.createSettingCheckbox(
1302
1303
  this.captureLayersAndPicturesSetting.title(), this.captureLayersAndPicturesSetting,
1303
1304
  i18nString(UIStrings.capturesAdvancedPaint)));
1304
1305
 
1305
- this.settingsPane.append(UI.SettingsUI.createSettingCheckbox(
1306
+ this.settingsPane.append(SettingsUI.SettingsUI.createSettingCheckbox(
1306
1307
  this.disableCaptureJSProfileSetting.title(), this.disableCaptureJSProfileSetting,
1307
1308
  i18nString(UIStrings.disablesJavascriptSampling)));
1308
1309
 
@@ -1364,7 +1365,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1364
1365
  }
1365
1366
 
1366
1367
  async saveToFile(config: {
1367
- includeScriptContent: boolean,
1368
+ includeResourceContent: boolean,
1368
1369
  includeSourceMaps: boolean,
1369
1370
  /**
1370
1371
  * Includes many things:
@@ -1399,9 +1400,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1399
1400
  if (Trace.Types.Events.isAnyScriptSourceEvent(event) && event.name !== 'StubScriptCatchup') {
1400
1401
  const mappedScript = scriptByIdMap.get(`${event.args.data.isolate}.${event.args.data.scriptId}`);
1401
1402
 
1402
- // If the checkbox to include script content is not checked or if it comes from and
1403
- // extension we dont include the script content.
1404
- if (!config.includeScriptContent ||
1403
+ if (!config.includeResourceContent ||
1405
1404
  (mappedScript?.url && Trace.Helpers.Trace.isExtensionUrl(mappedScript.url))) {
1406
1405
  return {
1407
1406
  cat: event.cat,
@@ -1434,7 +1433,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1434
1433
 
1435
1434
  try {
1436
1435
  await this.innerSaveToFile(traceEvents, metadata, {
1437
- includeScriptContent: config.includeScriptContent,
1436
+ includeResourceContent: config.includeResourceContent,
1438
1437
  includeSourceMaps: config.includeSourceMaps,
1439
1438
  addModifications: config.addModifications,
1440
1439
  shouldCompress: config.shouldCompress,
@@ -1454,7 +1453,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1454
1453
  }
1455
1454
 
1456
1455
  async innerSaveToFile(traceEvents: readonly Trace.Types.Events.Event[], metadata: Trace.Types.File.MetaData, config: {
1457
- includeScriptContent: boolean,
1456
+ includeResourceContent: boolean,
1458
1457
  includeSourceMaps: boolean,
1459
1458
  addModifications: boolean,
1460
1459
  shouldCompress: boolean,
@@ -1464,9 +1463,9 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1464
1463
  Platform.DateUtilities.toISO8601Compact(metadata.startTime ? new Date(metadata.startTime) : new Date());
1465
1464
 
1466
1465
  const isCpuProfile = metadata.dataOrigin === Trace.Types.File.DataOrigin.CPU_PROFILE;
1467
- const {includeScriptContent, includeSourceMaps} = config;
1466
+ const {includeResourceContent, includeSourceMaps} = config;
1468
1467
  metadata.enhancedTraceVersion =
1469
- includeScriptContent ? SDK.EnhancedTracesParser.EnhancedTracesParser.enhancedTraceVersion : undefined;
1468
+ includeResourceContent ? SDK.EnhancedTracesParser.EnhancedTracesParser.enhancedTraceVersion : undefined;
1470
1469
 
1471
1470
  let fileName =
1472
1471
  (isCpuProfile ? `CPU-${isoDate}.cpuprofile` : `Trace-${isoDate}.json`) as Platform.DevToolsPath.RawPathString;
@@ -1477,10 +1476,12 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1477
1476
  blobParts = [JSON.stringify(profile)];
1478
1477
  } else {
1479
1478
  const filteredMetadataSourceMaps =
1480
- includeScriptContent && includeSourceMaps ? this.#filterMetadataSourceMaps(metadata) : undefined;
1479
+ includeResourceContent && includeSourceMaps ? this.#filterMetadataSourceMaps(metadata) : undefined;
1480
+ const filteredResources = includeResourceContent ? this.#filterMetadataResoures(metadata) : undefined;
1481
1481
  const formattedTraceIter = traceJsonGenerator(traceEvents, {
1482
1482
  ...metadata,
1483
1483
  sourceMaps: filteredMetadataSourceMaps,
1484
+ resources: filteredResources,
1484
1485
  });
1485
1486
  blobParts = Array.from(formattedTraceIter);
1486
1487
  }
@@ -1531,7 +1532,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1531
1532
  this.saveButton.element as TimelineComponents.ExportTraceOptions.ExportTraceOptions;
1532
1533
  const state = exportTraceOptionsElement.state;
1533
1534
  await this.saveToFile({
1534
- includeScriptContent: state.includeScriptContent,
1535
+ includeResourceContent: state.includeResourceContent,
1535
1536
  includeSourceMaps: state.includeSourceMaps,
1536
1537
  addModifications: state.includeAnnotations,
1537
1538
  shouldCompress: state.shouldCompress,
@@ -1550,6 +1551,14 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
1550
1551
  });
1551
1552
  }
1552
1553
 
1554
+ #filterMetadataResoures(metadata: Trace.Types.File.MetaData): Trace.Types.File.MetadataResource[]|undefined {
1555
+ if (!metadata.resources) {
1556
+ return undefined;
1557
+ }
1558
+
1559
+ return metadata.resources;
1560
+ }
1561
+
1553
1562
  #showExportTraceErrorDialog(error: Error): void {
1554
1563
  if (this.statusDialog) {
1555
1564
  this.statusDialog.remove();
@@ -2744,6 +2753,45 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
2744
2753
  };
2745
2754
  }
2746
2755
 
2756
+ async #retainResourceContentsForEnhancedTrace(
2757
+ parsedTrace: Trace.TraceModel.ParsedTrace, metadata: Trace.Types.File.MetaData): Promise<void> {
2758
+ // Scripts are already stored as trace events.
2759
+ const resourceTypesToRetain =
2760
+ new Set([Protocol.Network.ResourceType.Document, Protocol.Network.ResourceType.Stylesheet]);
2761
+
2762
+ for (const request of parsedTrace.data.NetworkRequests.byId.values()) {
2763
+ if (!resourceTypesToRetain.has(request.args.data.resourceType)) {
2764
+ continue;
2765
+ }
2766
+
2767
+ const url = request.args.data.url as Platform.DevToolsPath.UrlString;
2768
+ const resource = SDK.ResourceTreeModel.ResourceTreeModel.resourceForURL(url);
2769
+ if (!resource) {
2770
+ continue;
2771
+ }
2772
+
2773
+ const content = await resource.requestContentData();
2774
+ if ('error' in content) {
2775
+ continue;
2776
+ }
2777
+
2778
+ if (!content.isTextContent) {
2779
+ continue;
2780
+ }
2781
+
2782
+ if (!metadata.resources) {
2783
+ metadata.resources = [];
2784
+ }
2785
+
2786
+ metadata.resources.push({
2787
+ url,
2788
+ frame: resource.frameId ?? '',
2789
+ content: content.text,
2790
+ mimeType: content.mimeType,
2791
+ });
2792
+ }
2793
+ }
2794
+
2747
2795
  async #executeNewTrace(
2748
2796
  collectedEvents: Trace.Types.Events.Event[], isFreshRecording: boolean,
2749
2797
  metadata: Trace.Types.File.MetaData|null): Promise<void> {
@@ -2772,11 +2820,13 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
2772
2820
 
2773
2821
  // Store all source maps on the trace metadata.
2774
2822
  // If not fresh, we can't validate the maps are still accurate.
2823
+ // Also handle HTML content.
2775
2824
  if (isFreshRecording && metadata) {
2776
2825
  const traceIndex = this.#traceEngineModel.lastTraceIndex();
2777
2826
  const parsedTrace = this.#traceEngineModel.parsedTrace(traceIndex);
2778
2827
  if (parsedTrace) {
2779
2828
  await this.#retainSourceMapsForEnhancedTrace(parsedTrace, metadata);
2829
+ await this.#retainResourceContentsForEnhancedTrace(parsedTrace, metadata);
2780
2830
  }
2781
2831
  }
2782
2832
  }
@@ -732,26 +732,6 @@ export class TimelineUIUtils {
732
732
  break;
733
733
  }
734
734
 
735
- case Trace.Types.Events.Name.COMPILE_SCRIPT:
736
- case Trace.Types.Events.Name.CACHE_SCRIPT:
737
- case Trace.Types.Events.Name.EVALUATE_SCRIPT: {
738
- const url = unsafeEventData['url'];
739
- if (url) {
740
- const {lineNumber} = Trace.Helpers.Trace.getZeroIndexedLineAndColumnForEvent(event);
741
- details = this.linkifyLocation({
742
- scriptId: null,
743
- url,
744
- lineNumber: lineNumber || 0,
745
- columnNumber: 0,
746
- target,
747
- isFreshOrEnhanced,
748
- linkifier,
749
- omitOrigin: true,
750
- });
751
- }
752
- break;
753
- }
754
-
755
735
  case Trace.Types.Events.Name.BACKGROUND_DESERIALIZE:
756
736
  case Trace.Types.Events.Name.STREAMING_COMPILE_SCRIPT: {
757
737
  const url = unsafeEventData['url'];
@@ -1710,6 +1690,7 @@ export class TimelineUIUtils {
1710
1690
  return {callFrames} as Protocol.Runtime.StackTrace;
1711
1691
  }
1712
1692
 
1693
+ /** This renders a stack trace... and other cool stuff. */
1713
1694
  static async generateCauses(
1714
1695
  event: Trace.Types.Events.Event, contentHelper: TimelineDetailsContentHelper,
1715
1696
  parsedTrace: Trace.TraceModel.ParsedTrace): Promise<void> {
@@ -2478,6 +2459,9 @@ export class TimelineDetailsContentHelper {
2478
2459
  if (!this.#linkifier) {
2479
2460
  return;
2480
2461
  }
2462
+
2463
+ // We resolve the original function name here. StackTracePreviewContent uses
2464
+ // Linkifier to resolve the source code location.
2481
2465
  const resolvedStackTrace: Protocol.Runtime.StackTrace = structuredClone(stackTrace);
2482
2466
  let currentResolvedStackTrace: Protocol.Runtime.StackTrace|undefined = resolvedStackTrace;
2483
2467
  while (currentResolvedStackTrace) {
@@ -31,7 +31,7 @@ const UIStrings = {
31
31
  /**
32
32
  * @description Text for the include script content option.
33
33
  */
34
- includeScriptContent: 'Include script content',
34
+ includeResourceContent: 'Include resource content',
35
35
  /**
36
36
  * @description Text for the include script source maps option.
37
37
  */
@@ -49,9 +49,9 @@ const UIStrings = {
49
49
  */
50
50
  saveButtonTitle: 'Save',
51
51
  /**
52
- * @description Text shown in the information pop-up next to the "Include script content" option.
52
+ * @description Text shown in the information pop-up next to the "Include resource content" option.
53
53
  */
54
- scriptContentPrivacyInfo: 'Includes the full content of all loaded scripts (except extensions).',
54
+ resourceContentPrivacyInfo: 'Includes the full content of all loaded HTML, CSS, and scripts (except extensions).',
55
55
  /**
56
56
  * @description Text shown in the information pop-up next to the "Include script sourcemaps" option.
57
57
  */
@@ -67,7 +67,7 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
67
67
 
68
68
  export interface ExportTraceOptionsData {
69
69
  onExport: (config: {
70
- includeScriptContent: boolean,
70
+ includeResourceContent: boolean,
71
71
  includeSourceMaps: boolean,
72
72
  addModifications: boolean,
73
73
  shouldCompress: boolean,
@@ -80,30 +80,30 @@ export type ExportTraceDialogState = Dialogs.Dialog.DialogState;
80
80
  export interface ExportTraceOptionsState {
81
81
  dialogState: ExportTraceDialogState;
82
82
  includeAnnotations: boolean;
83
- includeScriptContent: boolean;
83
+ includeResourceContent: boolean;
84
84
  includeSourceMaps: boolean;
85
85
  shouldCompress: boolean;
86
86
  displayAnnotationsCheckbox?: boolean;
87
- displayScriptContentCheckbox?: boolean;
87
+ displayResourceContentCheckbox?: boolean;
88
88
  displaySourceMapsCheckbox?: boolean;
89
89
  }
90
90
 
91
- type CheckboxId = 'annotations'|'script-content'|'script-source-maps'|'compress-with-gzip';
92
- const checkboxesWithInfoDialog = new Set<CheckboxId>(['script-content', 'script-source-maps']);
91
+ type CheckboxId = 'annotations'|'resource-content'|'script-source-maps'|'compress-with-gzip';
92
+ const checkboxesWithInfoDialog = new Set<CheckboxId>(['resource-content', 'script-source-maps']);
93
93
 
94
94
  export class ExportTraceOptions extends HTMLElement {
95
95
  readonly #shadow = this.attachShadow({mode: 'open'});
96
96
  #data: ExportTraceOptionsData|null = null;
97
97
 
98
98
  static readonly #includeAnnotationsSettingString: string = 'export-performance-trace-include-annotations';
99
- static readonly #includeScriptContentSettingString: string = 'export-performance-trace-include-scripts';
99
+ static readonly #includeResourceContentSettingString: string = 'export-performance-trace-include-resources';
100
100
  static readonly #includeSourceMapsSettingString: string = 'export-performance-trace-include-sourcemaps';
101
101
  static readonly #shouldCompressSettingString: string = 'export-performance-trace-should-compress';
102
102
 
103
103
  #includeAnnotationsSetting: Common.Settings.Setting<boolean> = Common.Settings.Settings.instance().createSetting(
104
104
  ExportTraceOptions.#includeAnnotationsSettingString, true, Common.Settings.SettingStorageType.SESSION);
105
- #includeScriptContentSetting: Common.Settings.Setting<boolean> = Common.Settings.Settings.instance().createSetting(
106
- ExportTraceOptions.#includeScriptContentSettingString, false, Common.Settings.SettingStorageType.SESSION);
105
+ #includeResourceContentSetting: Common.Settings.Setting<boolean> = Common.Settings.Settings.instance().createSetting(
106
+ ExportTraceOptions.#includeResourceContentSettingString, false, Common.Settings.SettingStorageType.SESSION);
107
107
  #includeSourceMapsSetting: Common.Settings.Setting<boolean> = Common.Settings.Settings.instance().createSetting(
108
108
  ExportTraceOptions.#includeSourceMapsSettingString, false, Common.Settings.SettingStorageType.SESSION);
109
109
  #shouldCompressSetting: Common.Settings.Setting<boolean> = Common.Settings.Settings.instance().createSetting(
@@ -112,7 +112,7 @@ export class ExportTraceOptions extends HTMLElement {
112
112
  #state: ExportTraceOptionsState = {
113
113
  dialogState: Dialogs.Dialog.DialogState.COLLAPSED,
114
114
  includeAnnotations: this.#includeAnnotationsSetting.get(),
115
- includeScriptContent: this.#includeScriptContentSetting.get(),
115
+ includeResourceContent: this.#includeResourceContentSetting.get(),
116
116
  includeSourceMaps: this.#includeSourceMapsSetting.get(),
117
117
  shouldCompress: this.#shouldCompressSetting.get(),
118
118
  };
@@ -121,10 +121,10 @@ export class ExportTraceOptions extends HTMLElement {
121
121
  /* title*/ i18nString(UIStrings.includeAnnotations), /* checked*/ this.#state.includeAnnotations,
122
122
  /* subtitle*/ undefined,
123
123
  /* jslogContext*/ 'timeline.export-trace-options.annotations-checkbox');
124
- #includeScriptContentCheckbox = UI.UIUtils.CheckboxLabel.create(
125
- /* title*/ i18nString(UIStrings.includeScriptContent), /* checked*/ this.#state.includeScriptContent,
124
+ #includeResourceContentCheckbox = UI.UIUtils.CheckboxLabel.create(
125
+ /* title*/ i18nString(UIStrings.includeResourceContent), /* checked*/ this.#state.includeResourceContent,
126
126
  /* subtitle*/ undefined,
127
- /* jslogContext*/ 'timeline.export-trace-options.script-content-checkbox');
127
+ /* jslogContext*/ 'timeline.export-trace-options.resource-content-checkbox');
128
128
  #includeSourceMapsCheckbox = UI.UIUtils.CheckboxLabel.create(
129
129
  /* title*/ i18nString(UIStrings.includeSourcemap), /* checked*/ this.#state.includeSourceMaps,
130
130
  /* subtitle*/ undefined,
@@ -142,7 +142,7 @@ export class ExportTraceOptions extends HTMLElement {
142
142
  set state(state: ExportTraceOptionsState) {
143
143
  this.#state = state;
144
144
  this.#includeAnnotationsSetting.set(state.includeAnnotations);
145
- this.#includeScriptContentSetting.set(state.includeScriptContent);
145
+ this.#includeResourceContentSetting.set(state.includeResourceContent);
146
146
  this.#includeSourceMapsSetting.set(state.includeSourceMaps);
147
147
  this.#shouldCompressSetting.set(state.shouldCompress);
148
148
 
@@ -154,13 +154,12 @@ export class ExportTraceOptions extends HTMLElement {
154
154
  }
155
155
 
156
156
  updateContentVisibility(options: {annotationsExist: boolean}): void {
157
- const newState = Object.assign({}, this.#state, {
157
+ this.state = {
158
+ ...this.#state,
158
159
  displayAnnotationsCheckbox: options.annotationsExist,
159
- displayScriptContentCheckbox: true,
160
+ displayResourceContentCheckbox: true,
160
161
  displaySourceMapsCheckbox: true
161
- });
162
-
163
- this.state = newState;
162
+ };
164
163
  }
165
164
 
166
165
  #scheduleRender(): void {
@@ -175,11 +174,11 @@ export class ExportTraceOptions extends HTMLElement {
175
174
  newState.includeAnnotations = checked;
176
175
  break;
177
176
  }
178
- case this.#includeScriptContentCheckbox: {
179
- newState.includeScriptContent = checked;
177
+ case this.#includeResourceContentCheckbox: {
178
+ newState.includeResourceContent = checked;
180
179
 
181
180
  // if the `Include Script` is checked off, cascade the change to `Include Script Source`
182
- if (!newState.includeScriptContent) {
181
+ if (!newState.includeResourceContent) {
183
182
  newState.includeSourceMaps = false;
184
183
  }
185
184
 
@@ -203,8 +202,8 @@ export class ExportTraceOptions extends HTMLElement {
203
202
  return i18nString(UIStrings.moreInfoLabel) + ' ' + i18nString(UIStrings.sourceMapsContentPrivacyInfo);
204
203
  }
205
204
 
206
- if (checkboxId === 'script-content') {
207
- return i18nString(UIStrings.moreInfoLabel) + ' ' + i18nString(UIStrings.scriptContentPrivacyInfo);
205
+ if (checkboxId === 'resource-content') {
206
+ return i18nString(UIStrings.moreInfoLabel) + ' ' + i18nString(UIStrings.resourceContentPrivacyInfo);
208
207
  }
209
208
 
210
209
  return '';
@@ -219,7 +218,7 @@ export class ExportTraceOptions extends HTMLElement {
219
218
  'change', this.#checkboxOptionChanged.bind(this, checkboxWithLabel, !checked), false);
220
219
 
221
220
  // Disable the includeSourceMapsSetting when the includeScriptContentSetting is also disabled.
222
- this.#includeSourceMapsCheckbox.disabled = !this.#state.includeScriptContent;
221
+ this.#includeSourceMapsCheckbox.disabled = !this.#state.includeResourceContent;
223
222
 
224
223
  // clang-format off
225
224
  return html`
@@ -252,7 +251,7 @@ export class ExportTraceOptions extends HTMLElement {
252
251
  >
253
252
  <div class="info-tooltip-container">
254
253
  <p>
255
- ${checkboxId === 'script-content' ? i18nString(UIStrings.scriptContentPrivacyInfo) : Lit.nothing}
254
+ ${checkboxId === 'resource-content' ? i18nString(UIStrings.resourceContentPrivacyInfo) : Lit.nothing}
256
255
  ${checkboxId === 'script-source-maps' ? i18nString(UIStrings.sourceMapsContentPrivacyInfo) : Lit.nothing}
257
256
  </p>
258
257
  </div>
@@ -287,9 +286,9 @@ export class ExportTraceOptions extends HTMLElement {
287
286
  ${this.#state.displayAnnotationsCheckbox ? this.#renderCheckbox('annotations', this.#includeAnnotationsCheckbox,
288
287
  i18nString(UIStrings.includeAnnotations),
289
288
  this.#state.includeAnnotations): ''}
290
- ${this.#state.displayScriptContentCheckbox ? this.#renderCheckbox('script-content', this.#includeScriptContentCheckbox,
291
- i18nString(UIStrings.includeScriptContent), this.#state.includeScriptContent): ''}
292
- ${this.#state.displayScriptContentCheckbox && this.#state.displaySourceMapsCheckbox ? this.#renderCheckbox(
289
+ ${this.#state.displayResourceContentCheckbox ? this.#renderCheckbox('resource-content', this.#includeResourceContentCheckbox,
290
+ i18nString(UIStrings.includeResourceContent), this.#state.includeResourceContent): ''}
291
+ ${this.#state.displayResourceContentCheckbox && this.#state.displaySourceMapsCheckbox ? this.#renderCheckbox(
293
292
  'script-source-maps',
294
293
  this.#includeSourceMapsCheckbox, i18nString(UIStrings.includeSourcemap), this.#state.includeSourceMaps): ''}
295
294
  ${this.#renderCheckbox('compress-with-gzip', this.#shouldCompressCheckbox, i18nString(UIStrings.shouldCompress), this.#state.shouldCompress)}
@@ -303,8 +302,8 @@ export class ExportTraceOptions extends HTMLElement {
303
302
  } as Buttons.Button.ButtonData}
304
303
  >${i18nString(UIStrings.saveButtonTitle)}</devtools-button>
305
304
  </div>
306
- ${this.#state.displayScriptContentCheckbox ? this.#renderInfoTooltip('script-content') : Lit.nothing}
307
- ${this.#state.displayScriptContentCheckbox && this.#state.displaySourceMapsCheckbox ? this.#renderInfoTooltip('script-source-maps') : Lit.nothing}
305
+ ${this.#state.displayResourceContentCheckbox ? this.#renderInfoTooltip('resource-content') : Lit.nothing}
306
+ ${this.#state.displayResourceContentCheckbox && this.#state.displaySourceMapsCheckbox ? this.#renderInfoTooltip('script-source-maps') : Lit.nothing}
308
307
  </div>
309
308
  </devtools-button-dialog>
310
309
  `;
@@ -319,7 +318,7 @@ export class ExportTraceOptions extends HTMLElement {
319
318
  async #onExportCallback(): Promise<void> {
320
319
  // Calls passed onExport function with current settings.
321
320
  await this.#data?.onExport({
322
- includeScriptContent: this.#state.includeScriptContent,
321
+ includeResourceContent: this.#state.includeResourceContent,
323
322
  includeSourceMaps: this.#state.includeSourceMaps,
324
323
  // Note: this also includes track configuration ...
325
324
  addModifications: this.#state.includeAnnotations,
@@ -4,6 +4,7 @@
4
4
  /* eslint-disable @devtools/no-imperative-dom-api */
5
5
  /* eslint-disable @devtools/no-lit-render-outside-of-view */
6
6
 
7
+ import '../../../ui/components/settings/settings.js';
7
8
  import '../../../ui/components/icon_button/icon_button.js';
8
9
  import './FieldSettingsDialog.js';
9
10
  import './NetworkThrottlingSelector.js';
@@ -2,6 +2,8 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
+ import '../../../ui/components/settings/settings.js';
6
+
5
7
  import * as Common from '../../../core/common/common.js';
6
8
  import * as i18n from '../../../core/i18n/i18n.js';
7
9
  import * as Platform from '../../../core/platform/platform.js';
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
- URL: https://source.chromium.org/chromium/chromium/src/+/main:components/variations/proto/devtools/
2
+ URL: https://chromium.googlesource.com/chromium/src
3
3
  Version: N/A
4
- Revision: 02e01d70b196feed2ae409aa37b1c99afb6c2ef3
4
+ Revision: b60591ec8cb7d0c80f2661ee8fbbfef966d86046
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE
@@ -1,10 +1,10 @@
1
1
  Name: Puppeteer Core
2
2
  Short Name: Puppeteer Core
3
3
  URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
4
- Version: 24.26.1
4
+ Version: 24.27.0
5
5
  License: Apache-2.0
6
6
  License File: LICENSE
7
- Revision: 6e2348c27e3493e53b609122888e0950d342e4d2
7
+ Revision: f73ebcde308687cd3f8d44596371a02c86626fd6
8
8
  Security Critical: no
9
9
  Shipped: yes
10
10
  Update Mechanism: Autoroll
@@ -136,6 +136,14 @@ export interface BrowserEvents extends Record<EventType, unknown> {
136
136
  export interface DebugInfo {
137
137
  pendingProtocolErrors: Error[];
138
138
  }
139
+ /**
140
+ * @public
141
+ */
142
+ export type CreatePageOptions = {
143
+ type: 'tab';
144
+ } | {
145
+ type: 'window';
146
+ };
139
147
  /**
140
148
  * {@link Browser} represents a browser instance that is either:
141
149
  *
@@ -240,7 +248,7 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
240
248
  * Creates a new {@link Page | page} in the
241
249
  * {@link Browser.defaultBrowserContext | default browser context}.
242
250
  */
243
- abstract newPage(): Promise<Page>;
251
+ abstract newPage(options?: CreatePageOptions): Promise<Page>;
244
252
  /**
245
253
  * Gets all active {@link Target | targets}.
246
254
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAQhD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAC,YAAY,EAAE,KAAK,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAQvE,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAExE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK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AK,CAAC,oBAAU,CAAC,CAAC;IAClD,CAAC;IAED,gBAAgB;IAChB,CAAC,kCAAkB,CAAC;QAClB,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;QACtB,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;CAuBF;AAzSD,0BAySC"}
@@ -7,7 +7,7 @@ import type { Cookie, CookieData, DeleteCookiesRequest } from '../common/Cookie.
7
7
  import { EventEmitter, type EventType } from '../common/EventEmitter.js';
8
8
  import { asyncDisposeSymbol, disposeSymbol } from '../util/disposable.js';
9
9
  import { Mutex } from '../util/Mutex.js';
10
- import type { Browser, Permission, WaitForTargetOptions } from './Browser.js';
10
+ import type { Browser, CreatePageOptions, Permission, WaitForTargetOptions } from './Browser.js';
11
11
  import type { Page } from './Page.js';
12
12
  import type { Target } from './Target.js';
13
13
  /**
@@ -162,7 +162,7 @@ export declare abstract class BrowserContext extends EventEmitter<BrowserContext
162
162
  * Creates a new {@link Page | page} in this
163
163
  * {@link BrowserContext | browser context}.
164
164
  */
165
- abstract newPage(): Promise<Page>;
165
+ abstract newPage(options?: CreatePageOptions): Promise<Page>;
166
166
  /**
167
167
  * Gets the {@link Browser | browser} associated with this
168
168
  * {@link BrowserContext | browser context}.
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserContext.d.ts","sourceRoot":"","sources":["../../../../src/api/BrowserContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,YAAY,EAAE,KAAK,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAOvE,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAEvC,OAAO,KAAK,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;IAC7C,CAAC;IAED,gBAAgB;IAChB,CAAC,kCAAkB,CAAC;QAClB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CACF;AA1PD,wCA0PC"}
@@ -530,6 +530,18 @@ export interface NewDocumentScriptEvaluation {
530
530
  * @internal
531
531
  */
532
532
  export declare function setDefaultScreenshotOptions(options: ScreenshotOptions): void;
533
+ /**
534
+ * @public
535
+ */
536
+ export interface ReloadOptions extends WaitForOptions {
537
+ /**
538
+ * If set to true, the browser caches are ignored for the page reload.
539
+ *
540
+ * @defaultValue true
541
+ * @public
542
+ */
543
+ ignoreCache?: boolean;
544
+ }
533
545
  /**
534
546
  * Page provides methods to interact with a single tab or
535
547
  * {@link https://developer.chrome.com/extensions/background_pages | extension background page}
@@ -1411,7 +1423,7 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
1411
1423
  * multiple redirects, the navigation will resolve with the response of the
1412
1424
  * last redirect.
1413
1425
  */
1414
- abstract reload(options?: WaitForOptions): Promise<HTTPResponse | null>;
1426
+ abstract reload(options?: ReloadOptions): Promise<HTTPResponse | null>;
1415
1427
  /**
1416
1428
  * Waits for the page to navigate to a new URL or to reload. It is useful when
1417
1429
  * you run code that will indirectly cause the page to navigate.