chrome-devtools-frontend 1.0.943182 → 1.0.944903

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 (382) hide show
  1. package/config/gni/devtools_grd_files.gni +3 -0
  2. package/front_end/core/common/ParsedURL.ts +1 -1
  3. package/front_end/core/host/InspectorFrontendHostAPI.ts +5 -5
  4. package/front_end/core/host/UserMetrics.ts +0 -1
  5. package/front_end/core/i18n/locales/af.json +455 -44
  6. package/front_end/core/i18n/locales/am.json +455 -44
  7. package/front_end/core/i18n/locales/ar.json +455 -44
  8. package/front_end/core/i18n/locales/as.json +455 -44
  9. package/front_end/core/i18n/locales/az.json +455 -44
  10. package/front_end/core/i18n/locales/be.json +456 -45
  11. package/front_end/core/i18n/locales/bg.json +455 -44
  12. package/front_end/core/i18n/locales/bn.json +455 -44
  13. package/front_end/core/i18n/locales/bs.json +455 -44
  14. package/front_end/core/i18n/locales/ca.json +457 -46
  15. package/front_end/core/i18n/locales/cs.json +458 -47
  16. package/front_end/core/i18n/locales/cy.json +455 -44
  17. package/front_end/core/i18n/locales/da.json +455 -44
  18. package/front_end/core/i18n/locales/de.json +455 -44
  19. package/front_end/core/i18n/locales/el.json +455 -44
  20. package/front_end/core/i18n/locales/en-GB.json +449 -38
  21. package/front_end/core/i18n/locales/en-US.json +10 -34
  22. package/front_end/core/i18n/locales/en-XL.json +22 -46
  23. package/front_end/core/i18n/locales/es-419.json +455 -44
  24. package/front_end/core/i18n/locales/es.json +455 -44
  25. package/front_end/core/i18n/locales/et.json +455 -44
  26. package/front_end/core/i18n/locales/eu.json +462 -51
  27. package/front_end/core/i18n/locales/fa.json +455 -44
  28. package/front_end/core/i18n/locales/fi.json +455 -44
  29. package/front_end/core/i18n/locales/fil.json +454 -43
  30. package/front_end/core/i18n/locales/fr-CA.json +455 -44
  31. package/front_end/core/i18n/locales/fr.json +456 -45
  32. package/front_end/core/i18n/locales/gl.json +455 -44
  33. package/front_end/core/i18n/locales/gu.json +456 -45
  34. package/front_end/core/i18n/locales/he.json +455 -44
  35. package/front_end/core/i18n/locales/hi.json +455 -44
  36. package/front_end/core/i18n/locales/hr.json +455 -44
  37. package/front_end/core/i18n/locales/hu.json +455 -44
  38. package/front_end/core/i18n/locales/hy.json +455 -44
  39. package/front_end/core/i18n/locales/id.json +455 -44
  40. package/front_end/core/i18n/locales/is.json +455 -44
  41. package/front_end/core/i18n/locales/it.json +502 -91
  42. package/front_end/core/i18n/locales/ja.json +456 -45
  43. package/front_end/core/i18n/locales/ka.json +455 -44
  44. package/front_end/core/i18n/locales/kk.json +456 -45
  45. package/front_end/core/i18n/locales/km.json +455 -44
  46. package/front_end/core/i18n/locales/kn.json +455 -44
  47. package/front_end/core/i18n/locales/ko.json +455 -44
  48. package/front_end/core/i18n/locales/ky.json +456 -45
  49. package/front_end/core/i18n/locales/lo.json +454 -43
  50. package/front_end/core/i18n/locales/lt.json +455 -44
  51. package/front_end/core/i18n/locales/lv.json +458 -47
  52. package/front_end/core/i18n/locales/mk.json +455 -44
  53. package/front_end/core/i18n/locales/ml.json +461 -50
  54. package/front_end/core/i18n/locales/mn.json +455 -44
  55. package/front_end/core/i18n/locales/mr.json +455 -44
  56. package/front_end/core/i18n/locales/ms.json +455 -44
  57. package/front_end/core/i18n/locales/my.json +456 -45
  58. package/front_end/core/i18n/locales/ne.json +456 -45
  59. package/front_end/core/i18n/locales/nl.json +532 -121
  60. package/front_end/core/i18n/locales/no.json +455 -44
  61. package/front_end/core/i18n/locales/or.json +455 -44
  62. package/front_end/core/i18n/locales/pa.json +455 -44
  63. package/front_end/core/i18n/locales/pl.json +455 -44
  64. package/front_end/core/i18n/locales/pt-PT.json +504 -93
  65. package/front_end/core/i18n/locales/pt.json +454 -43
  66. package/front_end/core/i18n/locales/ro.json +455 -44
  67. package/front_end/core/i18n/locales/ru.json +455 -44
  68. package/front_end/core/i18n/locales/si.json +455 -44
  69. package/front_end/core/i18n/locales/sk.json +456 -45
  70. package/front_end/core/i18n/locales/sl.json +455 -44
  71. package/front_end/core/i18n/locales/sq.json +455 -44
  72. package/front_end/core/i18n/locales/sr-Latn.json +455 -44
  73. package/front_end/core/i18n/locales/sr.json +455 -44
  74. package/front_end/core/i18n/locales/sv.json +456 -45
  75. package/front_end/core/i18n/locales/sw.json +455 -44
  76. package/front_end/core/i18n/locales/ta.json +456 -45
  77. package/front_end/core/i18n/locales/te.json +454 -43
  78. package/front_end/core/i18n/locales/th.json +455 -44
  79. package/front_end/core/i18n/locales/tr.json +455 -44
  80. package/front_end/core/i18n/locales/uk.json +455 -44
  81. package/front_end/core/i18n/locales/ur.json +455 -44
  82. package/front_end/core/i18n/locales/uz.json +455 -44
  83. package/front_end/core/i18n/locales/vi.json +455 -44
  84. package/front_end/core/i18n/locales/zh-HK.json +459 -48
  85. package/front_end/core/i18n/locales/zh-TW.json +457 -46
  86. package/front_end/core/i18n/locales/zh.json +460 -49
  87. package/front_end/core/i18n/locales/zu.json +455 -44
  88. package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
  89. package/front_end/core/protocol_client/NodeURL.ts +1 -0
  90. package/front_end/core/sdk/AccessibilityModel.ts +99 -78
  91. package/front_end/core/sdk/CSSStyleDeclaration.ts +4 -0
  92. package/front_end/core/sdk/CSSStyleSheetHeader.ts +2 -3
  93. package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +2 -3
  94. package/front_end/core/sdk/Cookie.ts +17 -0
  95. package/front_end/core/sdk/CookieModel.ts +1 -0
  96. package/front_end/core/sdk/DebuggerModel.ts +5 -4
  97. package/front_end/core/sdk/NetworkManager.ts +6 -0
  98. package/front_end/core/sdk/NetworkRequest.ts +2 -2
  99. package/front_end/core/sdk/OverlayModel.ts +0 -9
  100. package/front_end/core/sdk/Resource.ts +2 -2
  101. package/front_end/core/sdk/Script.ts +2 -7
  102. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +13 -12
  103. package/front_end/core/sdk/sdk-meta.ts +0 -26
  104. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +0 -13
  105. package/front_end/entrypoints/main/MainImpl.ts +2 -4
  106. package/front_end/generated/InspectorBackendCommands.js +3 -1
  107. package/front_end/generated/protocol-mapping.d.ts +1 -0
  108. package/front_end/generated/protocol-proxy-api.d.ts +2 -0
  109. package/front_end/generated/protocol.d.ts +40 -0
  110. package/front_end/models/bindings/BreakpointManager.ts +3 -4
  111. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -9
  112. package/front_end/models/bindings/ResourceMapping.ts +1 -2
  113. package/front_end/models/bindings/ResourceScriptMapping.ts +3 -11
  114. package/front_end/models/bindings/StylesSourceMapping.ts +1 -2
  115. package/front_end/models/formatter/SourceFormatter.ts +0 -15
  116. package/front_end/models/persistence/IsolatedFileSystem.ts +7 -6
  117. package/front_end/models/persistence/IsolatedFileSystemManager.ts +10 -6
  118. package/front_end/models/persistence/PersistenceActions.ts +4 -1
  119. package/front_end/models/persistence/PlatformFileSystem.ts +3 -4
  120. package/front_end/models/text_utils/ContentProvider.ts +1 -2
  121. package/front_end/models/text_utils/StaticContentProvider.ts +2 -3
  122. package/front_end/models/timeline_model/TimelineJSProfile.ts +3 -16
  123. package/front_end/models/timeline_model/TimelineModel.ts +0 -1
  124. package/front_end/models/workspace/UISourceCode.ts +2 -2
  125. package/front_end/panels/animation/animationTimeline.css +2 -0
  126. package/front_end/panels/application/ApplicationPanelCacheSection.ts +1 -1
  127. package/front_end/panels/application/BackForwardCacheView.ts +26 -26
  128. package/front_end/panels/application/ReportingApiView.ts +15 -1
  129. package/front_end/panels/application/components/EndpointsGrid.ts +63 -4
  130. package/front_end/panels/application/components/FrameDetailsView.ts +21 -34
  131. package/front_end/panels/console/ConsolePinPane.ts +1 -0
  132. package/front_end/panels/console/ConsolePrompt.ts +121 -171
  133. package/front_end/panels/console/ConsoleView.ts +1 -1
  134. package/front_end/panels/console/consoleView.css +1 -1
  135. package/front_end/panels/css_overview/cssOverviewCompletedView.css +2 -2
  136. package/front_end/panels/elements/AccessibilityTreeUtils.ts +98 -67
  137. package/front_end/panels/elements/AccessibilityTreeView.ts +76 -125
  138. package/front_end/panels/elements/ElementsPanel.ts +6 -7
  139. package/front_end/panels/elements/ElementsTreeElement.ts +1 -0
  140. package/front_end/panels/elements/StyleEditorWidget.ts +13 -2
  141. package/front_end/panels/elements/StylePropertyHighlighter.ts +29 -19
  142. package/front_end/panels/elements/StylePropertyTreeElement.ts +7 -4
  143. package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
  144. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +27 -3
  145. package/front_end/panels/network/NetworkDataGridNode.ts +5 -1
  146. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
  147. package/front_end/panels/sources/BreakpointEditDialog.ts +1 -0
  148. package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
  149. package/front_end/panels/sources/NavigatorView.ts +1 -1
  150. package/front_end/panels/sources/Plugin.ts +0 -3
  151. package/front_end/panels/sources/UISourceCodeFrame.ts +23 -50
  152. package/front_end/panels/timeline/TimelineController.ts +0 -3
  153. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -34
  154. package/front_end/panels/timeline/TimelineUIUtils.ts +51 -3
  155. package/front_end/services/window_bounds/WindowBoundsService.ts +27 -0
  156. package/front_end/services/window_bounds/window_bounds.ts +9 -0
  157. package/front_end/third_party/codemirror.next/bundle.ts +4 -3
  158. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  159. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +39 -1
  160. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  161. package/front_end/third_party/codemirror.next/package.json +3 -3
  162. package/front_end/third_party/lit-html/README.chromium +2 -2
  163. package/front_end/third_party/lit-html/package/CHANGELOG.md +216 -28
  164. package/front_end/third_party/lit-html/package/LICENSE +9 -9
  165. package/front_end/third_party/lit-html/package/README.md +12 -162
  166. package/front_end/third_party/lit-html/package/async-directive.d.ts +23 -54
  167. package/front_end/third_party/lit-html/package/async-directive.d.ts.map +1 -1
  168. package/front_end/third_party/lit-html/package/async-directive.js +2 -7
  169. package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
  170. package/front_end/third_party/lit-html/package/development/async-directive.d.ts +23 -54
  171. package/front_end/third_party/lit-html/package/development/async-directive.d.ts.map +1 -1
  172. package/front_end/third_party/lit-html/package/development/async-directive.js +44 -194
  173. package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
  174. package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts +6 -5
  175. package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts.map +1 -1
  176. package/front_end/third_party/lit-html/package/development/directive-helpers.js +25 -9
  177. package/front_end/third_party/lit-html/package/development/directive-helpers.js.map +1 -1
  178. package/front_end/third_party/lit-html/package/development/directive.d.ts +3 -16
  179. package/front_end/third_party/lit-html/package/development/directive.d.ts.map +1 -1
  180. package/front_end/third_party/lit-html/package/development/directive.js +6 -1
  181. package/front_end/third_party/lit-html/package/development/directive.js.map +1 -1
  182. package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts +7 -14
  183. package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts.map +1 -1
  184. package/front_end/third_party/lit-html/package/development/directives/async-append.js +17 -58
  185. package/front_end/third_party/lit-html/package/development/directives/async-append.js.map +1 -1
  186. package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts +9 -14
  187. package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts.map +1 -1
  188. package/front_end/third_party/lit-html/package/development/directives/async-replace.js +57 -37
  189. package/front_end/third_party/lit-html/package/development/directives/async-replace.js.map +1 -1
  190. package/front_end/third_party/lit-html/package/development/directives/cache.d.ts +2 -3
  191. package/front_end/third_party/lit-html/package/development/directives/cache.d.ts.map +1 -1
  192. package/front_end/third_party/lit-html/package/development/directives/cache.js +4 -6
  193. package/front_end/third_party/lit-html/package/development/directives/cache.js.map +1 -1
  194. package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts +2 -2
  195. package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts.map +1 -1
  196. package/front_end/third_party/lit-html/package/development/directives/class-map.js +17 -7
  197. package/front_end/third_party/lit-html/package/development/directives/class-map.js.map +1 -1
  198. package/front_end/third_party/lit-html/package/development/directives/guard.d.ts +3 -2
  199. package/front_end/third_party/lit-html/package/development/directives/guard.d.ts.map +1 -1
  200. package/front_end/third_party/lit-html/package/development/directives/guard.js +3 -2
  201. package/front_end/third_party/lit-html/package/development/directives/guard.js.map +1 -1
  202. package/front_end/third_party/lit-html/package/development/directives/live.d.ts +4 -3
  203. package/front_end/third_party/lit-html/package/development/directives/live.d.ts.map +1 -1
  204. package/front_end/third_party/lit-html/package/development/directives/live.js +5 -7
  205. package/front_end/third_party/lit-html/package/development/directives/live.js.map +1 -1
  206. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts +58 -0
  207. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts.map +1 -0
  208. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js +85 -0
  209. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js.map +1 -0
  210. package/front_end/third_party/lit-html/package/development/directives/ref.d.ts +14 -11
  211. package/front_end/third_party/lit-html/package/development/directives/ref.d.ts.map +1 -1
  212. package/front_end/third_party/lit-html/package/development/directives/ref.js +13 -11
  213. package/front_end/third_party/lit-html/package/development/directives/ref.js.map +1 -1
  214. package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts +8 -4
  215. package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts.map +1 -1
  216. package/front_end/third_party/lit-html/package/development/directives/repeat.js +23 -9
  217. package/front_end/third_party/lit-html/package/development/directives/repeat.js.map +1 -1
  218. package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts +1 -2
  219. package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts.map +1 -1
  220. package/front_end/third_party/lit-html/package/development/directives/style-map.js +1 -2
  221. package/front_end/third_party/lit-html/package/development/directives/style-map.js.map +1 -1
  222. package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -2
  223. package/front_end/third_party/lit-html/package/development/directives/template-content.js +1 -2
  224. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts +6 -4
  225. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts.map +1 -1
  226. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js +7 -5
  227. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js.map +1 -1
  228. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts +4 -1
  229. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts.map +1 -1
  230. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js +3 -0
  231. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js.map +1 -1
  232. package/front_end/third_party/lit-html/package/development/directives/until.d.ts +12 -8
  233. package/front_end/third_party/lit-html/package/development/directives/until.d.ts.map +1 -1
  234. package/front_end/third_party/lit-html/package/development/directives/until.js +63 -23
  235. package/front_end/third_party/lit-html/package/development/directives/until.js.map +1 -1
  236. package/front_end/third_party/lit-html/package/development/experimental-hydrate.d.ts.map +1 -1
  237. package/front_end/third_party/lit-html/package/development/experimental-hydrate.js +9 -8
  238. package/front_end/third_party/lit-html/package/development/experimental-hydrate.js.map +1 -1
  239. package/front_end/third_party/lit-html/package/development/lit-html.d.ts +81 -136
  240. package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
  241. package/front_end/third_party/lit-html/package/development/lit-html.js +249 -76
  242. package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
  243. package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts +1 -41
  244. package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts.map +1 -1
  245. package/front_end/third_party/lit-html/package/development/polyfill-support.js +40 -21
  246. package/front_end/third_party/lit-html/package/development/polyfill-support.js.map +1 -1
  247. package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts +12 -10
  248. package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts.map +1 -1
  249. package/front_end/third_party/lit-html/package/development/private-ssr-support.js +11 -3
  250. package/front_end/third_party/lit-html/package/development/private-ssr-support.js.map +1 -1
  251. package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
  252. package/front_end/third_party/lit-html/package/development/static.js +6 -5
  253. package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
  254. package/front_end/third_party/lit-html/package/directive-helpers.d.ts +6 -5
  255. package/front_end/third_party/lit-html/package/directive-helpers.d.ts.map +1 -1
  256. package/front_end/third_party/lit-html/package/directive-helpers.js +2 -2
  257. package/front_end/third_party/lit-html/package/directive-helpers.js.map +1 -1
  258. package/front_end/third_party/lit-html/package/directive.d.ts +3 -16
  259. package/front_end/third_party/lit-html/package/directive.d.ts.map +1 -1
  260. package/front_end/third_party/lit-html/package/directive.js +1 -1
  261. package/front_end/third_party/lit-html/package/directive.js.map +1 -1
  262. package/front_end/third_party/lit-html/package/directives/async-append.d.ts +7 -14
  263. package/front_end/third_party/lit-html/package/directives/async-append.d.ts.map +1 -1
  264. package/front_end/third_party/lit-html/package/directives/async-append.js +2 -6
  265. package/front_end/third_party/lit-html/package/directives/async-append.js.map +1 -1
  266. package/front_end/third_party/lit-html/package/directives/async-replace.d.ts +9 -14
  267. package/front_end/third_party/lit-html/package/directives/async-replace.d.ts.map +1 -1
  268. package/front_end/third_party/lit-html/package/directives/async-replace.js +2 -5
  269. package/front_end/third_party/lit-html/package/directives/async-replace.js.map +1 -1
  270. package/front_end/third_party/lit-html/package/directives/cache.d.ts +2 -3
  271. package/front_end/third_party/lit-html/package/directives/cache.d.ts.map +1 -1
  272. package/front_end/third_party/lit-html/package/directives/cache.js +2 -5
  273. package/front_end/third_party/lit-html/package/directives/cache.js.map +1 -1
  274. package/front_end/third_party/lit-html/package/directives/class-map.d.ts +2 -2
  275. package/front_end/third_party/lit-html/package/directives/class-map.d.ts.map +1 -1
  276. package/front_end/third_party/lit-html/package/directives/class-map.js +2 -4
  277. package/front_end/third_party/lit-html/package/directives/class-map.js.map +1 -1
  278. package/front_end/third_party/lit-html/package/directives/guard.d.ts +3 -2
  279. package/front_end/third_party/lit-html/package/directives/guard.d.ts.map +1 -1
  280. package/front_end/third_party/lit-html/package/directives/guard.js +2 -4
  281. package/front_end/third_party/lit-html/package/directives/guard.js.map +1 -1
  282. package/front_end/third_party/lit-html/package/directives/live.d.ts +4 -3
  283. package/front_end/third_party/lit-html/package/directives/live.d.ts.map +1 -1
  284. package/front_end/third_party/lit-html/package/directives/live.js +1 -4
  285. package/front_end/third_party/lit-html/package/directives/live.js.map +1 -1
  286. package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts +58 -0
  287. package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts.map +1 -0
  288. package/front_end/third_party/lit-html/package/directives/private-async-helpers.js +7 -0
  289. package/front_end/third_party/lit-html/package/directives/private-async-helpers.js.map +1 -0
  290. package/front_end/third_party/lit-html/package/directives/ref.d.ts +14 -11
  291. package/front_end/third_party/lit-html/package/directives/ref.d.ts.map +1 -1
  292. package/front_end/third_party/lit-html/package/directives/ref.js +2 -5
  293. package/front_end/third_party/lit-html/package/directives/ref.js.map +1 -1
  294. package/front_end/third_party/lit-html/package/directives/repeat.d.ts +8 -4
  295. package/front_end/third_party/lit-html/package/directives/repeat.d.ts.map +1 -1
  296. package/front_end/third_party/lit-html/package/directives/repeat.js +2 -5
  297. package/front_end/third_party/lit-html/package/directives/repeat.js.map +1 -1
  298. package/front_end/third_party/lit-html/package/directives/style-map.d.ts +1 -2
  299. package/front_end/third_party/lit-html/package/directives/style-map.d.ts.map +1 -1
  300. package/front_end/third_party/lit-html/package/directives/style-map.js +2 -4
  301. package/front_end/third_party/lit-html/package/directives/style-map.js.map +1 -1
  302. package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -2
  303. package/front_end/third_party/lit-html/package/directives/template-content.js +2 -4
  304. package/front_end/third_party/lit-html/package/directives/template-content.js.map +1 -1
  305. package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts +6 -4
  306. package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts.map +1 -1
  307. package/front_end/third_party/lit-html/package/directives/unsafe-html.js +2 -4
  308. package/front_end/third_party/lit-html/package/directives/unsafe-html.js.map +1 -1
  309. package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts +4 -1
  310. package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts.map +1 -1
  311. package/front_end/third_party/lit-html/package/directives/unsafe-svg.js.map +1 -1
  312. package/front_end/third_party/lit-html/package/directives/until.d.ts +12 -8
  313. package/front_end/third_party/lit-html/package/directives/until.d.ts.map +1 -1
  314. package/front_end/third_party/lit-html/package/directives/until.js +2 -6
  315. package/front_end/third_party/lit-html/package/directives/until.js.map +1 -1
  316. package/front_end/third_party/lit-html/package/experimental-hydrate.d.ts.map +1 -1
  317. package/front_end/third_party/lit-html/package/experimental-hydrate.js +2 -5
  318. package/front_end/third_party/lit-html/package/experimental-hydrate.js.map +1 -1
  319. package/front_end/third_party/lit-html/package/lit-html.d.ts +81 -136
  320. package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
  321. package/front_end/third_party/lit-html/package/lit-html.js +1 -1
  322. package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
  323. package/front_end/third_party/lit-html/package/package.json +75 -24
  324. package/front_end/third_party/lit-html/package/polyfill-support.d.ts +1 -41
  325. package/front_end/third_party/lit-html/package/polyfill-support.d.ts.map +1 -1
  326. package/front_end/third_party/lit-html/package/polyfill-support.js +1 -1
  327. package/front_end/third_party/lit-html/package/polyfill-support.js.map +1 -1
  328. package/front_end/third_party/lit-html/package/private-ssr-support.d.ts +12 -10
  329. package/front_end/third_party/lit-html/package/private-ssr-support.d.ts.map +1 -1
  330. package/front_end/third_party/lit-html/package/private-ssr-support.js +2 -2
  331. package/front_end/third_party/lit-html/package/private-ssr-support.js.map +1 -1
  332. package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
  333. package/front_end/third_party/lit-html/package/static.js +1 -1
  334. package/front_end/third_party/lit-html/package/static.js.map +1 -1
  335. package/front_end/third_party/marked/README.chromium +2 -2
  336. package/front_end/third_party/marked/marked.ts +2 -2
  337. package/front_end/third_party/marked/package/README.md +7 -1
  338. package/front_end/third_party/marked/package/bin/marked.js +214 -0
  339. package/front_end/third_party/marked/package/lib/marked.cjs +2907 -0
  340. package/front_end/third_party/marked/package/lib/marked.esm.d.ts +1 -3
  341. package/front_end/third_party/marked/package/lib/marked.esm.js +627 -586
  342. package/front_end/third_party/marked/package/lib/marked.umd.js +2913 -0
  343. package/front_end/third_party/marked/package/man/marked.1 +5 -24
  344. package/front_end/third_party/marked/package/man/marked.1.txt +21 -31
  345. package/front_end/third_party/marked/package/marked.min.js +1 -1
  346. package/front_end/third_party/marked/package/package.json +41 -32
  347. package/front_end/third_party/marked/package/src/Lexer.js +109 -108
  348. package/front_end/third_party/marked/package/src/Parser.js +38 -15
  349. package/front_end/third_party/marked/package/src/Renderer.js +5 -5
  350. package/front_end/third_party/marked/package/src/Slugger.js +2 -2
  351. package/front_end/third_party/marked/package/src/TextRenderer.js +2 -2
  352. package/front_end/third_party/marked/package/src/Tokenizer.js +215 -190
  353. package/front_end/third_party/marked/package/src/defaults.js +6 -9
  354. package/front_end/third_party/marked/package/src/helpers.js +16 -27
  355. package/front_end/third_party/marked/package/src/marked.js +146 -63
  356. package/front_end/third_party/marked/package/src/rules.js +20 -45
  357. package/front_end/third_party/wasmparser/README.chromium +2 -2
  358. package/front_end/third_party/wasmparser/package/.github/workflows/main.yml +47 -0
  359. package/front_end/third_party/wasmparser/package/CHANGELOG.md +12 -0
  360. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js +53 -53
  361. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js.map +1 -1
  362. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js +53 -53
  363. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js.map +1 -1
  364. package/front_end/third_party/wasmparser/package/package.json +1 -1
  365. package/front_end/third_party/wasmparser/package/src/WasmParser.ts +53 -53
  366. package/front_end/ui/components/text_editor/TextEditor.ts +29 -0
  367. package/front_end/ui/components/text_editor/config.ts +36 -14
  368. package/front_end/ui/components/text_editor/javascript.ts +14 -9
  369. package/front_end/ui/components/text_editor/theme.ts +29 -4
  370. package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -0
  371. package/front_end/ui/legacy/Dialog.ts +8 -3
  372. package/front_end/ui/legacy/ViewManager.ts +6 -0
  373. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +20 -0
  374. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +6 -4
  375. package/front_end/ui/legacy/components/utils/Linkifier.ts +49 -79
  376. package/front_end/ui/legacy/themeColors.css +2 -0
  377. package/inspector_overlay/css_grid_label_helpers.ts +1 -1
  378. package/inspector_overlay/highlight_common.ts +1 -1
  379. package/inspector_overlay/tool_highlight.ts +1 -1
  380. package/package.json +1 -1
  381. package/scripts/eslint_rules/lib/es_modules_import.js +0 -16
  382. package/scripts/eslint_rules/tests/es_modules_import_test.js +0 -16
@@ -95,16 +95,6 @@ const UIStrings = {
95
95
  */
96
96
  highlightsFramesRedDetectedToBe: 'Highlights frames (red) detected to be ads.',
97
97
  /**
98
- * @description The name of a checkbox setting in the Rendering tool. This setting shows borders
99
- * around hit-test regions. 'hit-test regions' are areas on the page where the browser is listening
100
- * for mouse clicks.
101
- */
102
- hittestBorders: 'Hit-test borders',
103
- /**
104
- * @description Explanation text for the 'Hit-test borders' setting in the Rendering tool.
105
- */
106
- showsBordersAroundHittestRegions: 'Shows borders around hit-test regions.',
107
- /**
108
98
  * @description The name of a checkbox setting in the Rendering tool. This setting shows an overlay
109
99
  * with Core Web Vitals. Core Web Vitals: https://support.google.com/webmasters/answer/9205520?hl=en
110
100
  */
@@ -246,9 +236,6 @@ export class RenderingOptionsView extends UI.Widget.VBox {
246
236
  this.appendCheckbox(
247
237
  i18nString(UIStrings.highlightAdFrames), i18nString(UIStrings.highlightsFramesRedDetectedToBe),
248
238
  Common.Settings.Settings.instance().moduleSetting('showAdHighlights'));
249
- this.appendCheckbox(
250
- i18nString(UIStrings.hittestBorders), i18nString(UIStrings.showsBordersAroundHittestRegions),
251
- Common.Settings.Settings.instance().moduleSetting('showHitTestBorders'));
252
239
  this.appendCheckbox(
253
240
  i18nString(UIStrings.coreWebVitals), i18nString(UIStrings.showsAnOverlayWithCoreWebVitals),
254
241
  Common.Settings.Settings.instance().moduleSetting('showWebVitals'));
@@ -299,15 +299,13 @@ export class MainImpl {
299
299
  'keyboardShortcutEditor', 'Enable keyboard shortcut editor', true,
300
300
  'https://developer.chrome.com/blog/new-in-devtools-88/#keyboard-shortcuts');
301
301
 
302
- // Back-Forward Cache
303
- Root.Runtime.experiments.register('bfcacheDebugging', 'Enable Back-Forward Cache debugging support');
302
+ // Back/forward cache
303
+ Root.Runtime.experiments.register('bfcacheDebugging', 'Enable back/forward cache debugging support');
304
304
 
305
305
  // Timeline
306
306
  Root.Runtime.experiments.register('timelineEventInitiators', 'Timeline: event initiators');
307
307
  Root.Runtime.experiments.register('timelineInvalidationTracking', 'Timeline: invalidation tracking', true);
308
308
  Root.Runtime.experiments.register('timelineShowAllEvents', 'Timeline: show all events', true);
309
- Root.Runtime.experiments.register(
310
- 'timelineV8RuntimeCallStats', 'Timeline: V8 Runtime Call Stats on Timeline', true);
311
309
  Root.Runtime.experiments.register('timelineWebGL', 'Timeline: WebGL-based flamechart');
312
310
  Root.Runtime.experiments.register('timelineReplayEvent', 'Timeline: Replay input events', true);
313
311
  Root.Runtime.experiments.register(
@@ -1700,6 +1700,7 @@ export function registerCommands(inspectorBackend) {
1700
1700
  ['innerRequestId', 'innerRequestURL', 'errorMessage', 'bundleRequestId']);
1701
1701
  inspectorBackend.registerEvent('Network.reportingApiReportAdded', ['report']);
1702
1702
  inspectorBackend.registerEvent('Network.reportingApiReportUpdated', ['report']);
1703
+ inspectorBackend.registerEvent('Network.reportingApiEndpointsChangedForOrigin', ['origin', 'endpoints']);
1703
1704
  inspectorBackend.registerCommand(
1704
1705
  'Network.setAcceptedEncodings', [{'name': 'encodings', 'type': 'object', 'optional': false}], []);
1705
1706
  inspectorBackend.registerCommand('Network.clearAcceptedEncodingsOverride', [], []);
@@ -1791,7 +1792,8 @@ export function registerCommands(inspectorBackend) {
1791
1792
  {'name': 'priority', 'type': 'string', 'optional': true},
1792
1793
  {'name': 'sameParty', 'type': 'boolean', 'optional': true},
1793
1794
  {'name': 'sourceScheme', 'type': 'string', 'optional': true},
1794
- {'name': 'sourcePort', 'type': 'number', 'optional': true}
1795
+ {'name': 'sourcePort', 'type': 'number', 'optional': true},
1796
+ {'name': 'partitionKey', 'type': 'string', 'optional': true}
1795
1797
  ],
1796
1798
  ['success']);
1797
1799
  inspectorBackend.registerCommand(
@@ -305,6 +305,7 @@ export namespace ProtocolMapping {
305
305
  */
306
306
  'Network.reportingApiReportAdded': [Protocol.Network.ReportingApiReportAddedEvent];
307
307
  'Network.reportingApiReportUpdated': [Protocol.Network.ReportingApiReportUpdatedEvent];
308
+ 'Network.reportingApiEndpointsChangedForOrigin': [Protocol.Network.ReportingApiEndpointsChangedForOriginEvent];
308
309
  /**
309
310
  * Fired when the node should be inspected. This happens after call to `setInspectMode` or when
310
311
  * user manually inspects an element.
@@ -2182,6 +2182,8 @@ declare namespace ProtocolProxyApi {
2182
2182
  reportingApiReportAdded(params: Protocol.Network.ReportingApiReportAddedEvent): void;
2183
2183
 
2184
2184
  reportingApiReportUpdated(params: Protocol.Network.ReportingApiReportUpdatedEvent): void;
2185
+
2186
+ reportingApiEndpointsChangedForOrigin(params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent): void;
2185
2187
  }
2186
2188
 
2187
2189
  export interface OverlayApi {
@@ -7513,6 +7513,15 @@ declare namespace Protocol {
7513
7513
  * This is a temporary ability and it will be removed in the future.
7514
7514
  */
7515
7515
  sourcePort: integer;
7516
+ /**
7517
+ * Cookie partition key. The site of the top-level URL the browser was visiting at the start
7518
+ * of the request to the endpoint that set the cookie.
7519
+ */
7520
+ partitionKey?: string;
7521
+ /**
7522
+ * True if cookie partition key is opaque.
7523
+ */
7524
+ partitionKeyOpaque?: boolean;
7516
7525
  }
7517
7526
 
7518
7527
  /**
@@ -7653,6 +7662,12 @@ declare namespace Protocol {
7653
7662
  * This is a temporary ability and it will be removed in the future.
7654
7663
  */
7655
7664
  sourcePort?: integer;
7665
+ /**
7666
+ * Cookie partition key. The site of the top-level URL the browser was visiting at the start
7667
+ * of the request to the endpoint that set the cookie.
7668
+ * If not set, the cookie will be set as not partitioned.
7669
+ */
7670
+ partitionKey?: string;
7656
7671
  }
7657
7672
 
7658
7673
  export const enum AuthChallengeSource {
@@ -7976,6 +7991,17 @@ declare namespace Protocol {
7976
7991
  status: ReportStatus;
7977
7992
  }
7978
7993
 
7994
+ export interface ReportingApiEndpoint {
7995
+ /**
7996
+ * The URL of the endpoint to which reports may be delivered.
7997
+ */
7998
+ url: string;
7999
+ /**
8000
+ * Name of the endpoint group.
8001
+ */
8002
+ groupName: string;
8003
+ }
8004
+
7979
8005
  /**
7980
8006
  * An object providing the result of a network resource load.
7981
8007
  */
@@ -8332,6 +8358,12 @@ declare namespace Protocol {
8332
8358
  * This is a temporary ability and it will be removed in the future.
8333
8359
  */
8334
8360
  sourcePort?: integer;
8361
+ /**
8362
+ * Cookie partition key. The site of the top-level URL the browser was visiting at the start
8363
+ * of the request to the endpoint that set the cookie.
8364
+ * If not set, the cookie will be set as not partitioned.
8365
+ */
8366
+ partitionKey?: string;
8335
8367
  }
8336
8368
 
8337
8369
  export interface SetCookieResponse extends ProtocolResponseWithError {
@@ -9098,6 +9130,14 @@ declare namespace Protocol {
9098
9130
  export interface ReportingApiReportUpdatedEvent {
9099
9131
  report: ReportingApiReport;
9100
9132
  }
9133
+
9134
+ export interface ReportingApiEndpointsChangedForOriginEvent {
9135
+ /**
9136
+ * Origin of the document(s) which configured the endpoints.
9137
+ */
9138
+ origin: string;
9139
+ endpoints: ReportingApiEndpoint[];
9140
+ }
9101
9141
  }
9102
9142
 
9103
9143
  /**
@@ -32,7 +32,6 @@
32
32
 
33
33
  import * as Common from '../../core/common/common.js';
34
34
  import * as SDK from '../../core/sdk/sdk.js';
35
- import type * as Platform from '../../core/platform/platform.js';
36
35
  import type * as Protocol from '../../generated/protocol.js';
37
36
  import type * as TextUtils from '../text_utils/text_utils.js';
38
37
  import * as Workspace from '../workspace/workspace.js';
@@ -630,7 +629,7 @@ export class ModelBreakpoint {
630
629
  const positions = debuggerLocations.map(loc => {
631
630
  const script = loc.script() as SDK.Script.Script;
632
631
  return {
633
- url: script.sourceURL as Platform.DevToolsPath.RawPathString,
632
+ url: script.sourceURL,
634
633
  scriptId: script.scriptId,
635
634
  scriptHash: script.hash,
636
635
  lineNumber: loc.lineNumber,
@@ -645,7 +644,7 @@ export class ModelBreakpoint {
645
644
  // at least signal a warning to the developer that this #breakpoint wasn't
646
645
  // really resolved.
647
646
  const position = {
648
- url: this.#breakpoint.url() as Platform.DevToolsPath.RawPathString,
647
+ url: this.#breakpoint.url(),
649
648
  scriptId: '' as Protocol.Runtime.ScriptId,
650
649
  scriptHash: '',
651
650
  lineNumber,
@@ -794,7 +793,7 @@ export class ModelBreakpoint {
794
793
  }
795
794
 
796
795
  interface Position {
797
- url: Platform.DevToolsPath.RawPathString;
796
+ url: string;
798
797
  scriptId: Protocol.Runtime.ScriptId;
799
798
  scriptHash: string;
800
799
  lineNumber: number;
@@ -75,11 +75,7 @@ export class DefaultScriptMapping implements DebuggerSourceMapping {
75
75
  if (!uiSourceCode) {
76
76
  return null;
77
77
  }
78
- const lineNumber = rawLocation.lineNumber - (script.isInlineScriptWithSourceURL() ? script.lineOffset : 0);
79
- let columnNumber = rawLocation.columnNumber || 0;
80
- if (script.isInlineScriptWithSourceURL() && !lineNumber && columnNumber) {
81
- columnNumber -= script.columnOffset;
82
- }
78
+ const {lineNumber, columnNumber = 0} = rawLocation;
83
79
  return uiSourceCode.uiLocation(lineNumber, columnNumber);
84
80
  }
85
81
 
@@ -89,10 +85,6 @@ export class DefaultScriptMapping implements DebuggerSourceMapping {
89
85
  if (!script) {
90
86
  return [];
91
87
  }
92
- if (script.isInlineScriptWithSourceURL()) {
93
- return [this.#debuggerModel.createRawLocation(
94
- script, lineNumber + script.lineOffset, lineNumber ? columnNumber : columnNumber + script.columnOffset)];
95
- }
96
88
  return [this.#debuggerModel.createRawLocation(script, lineNumber, columnNumber)];
97
89
  }
98
90
 
@@ -3,7 +3,6 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import * as Common from '../../core/common/common.js';
6
- import type * as Platform from '../../core/platform/platform.js';
7
6
  import * as SDK from '../../core/sdk/sdk.js';
8
7
  import * as TextUtils from '../text_utils/text_utils.js';
9
8
  import * as Workspace from '../workspace/workspace.js';
@@ -421,7 +420,7 @@ class Binding implements TextUtils.ContentProvider.ContentProvider {
421
420
  return this.resources.values().next().value;
422
421
  }
423
422
 
424
- contentURL(): Platform.DevToolsPath.RawPathString {
423
+ contentURL(): string {
425
424
  return this.firstResource().contentURL();
426
425
  }
427
426
 
@@ -127,30 +127,22 @@ export class ResourceScriptMapping implements DebuggerSourceMapping {
127
127
  if (!scriptFile.hasScripts([script])) {
128
128
  return null;
129
129
  }
130
- const lineNumber = rawLocation.lineNumber - (script.isInlineScriptWithSourceURL() ? script.lineOffset : 0);
131
- let columnNumber = rawLocation.columnNumber || 0;
132
- if (script.isInlineScriptWithSourceURL() && !lineNumber && columnNumber) {
133
- columnNumber -= script.columnOffset;
134
- }
130
+ const {lineNumber, columnNumber = 0} = rawLocation;
135
131
  return uiSourceCode.uiLocation(lineNumber, columnNumber);
136
132
  }
137
133
 
138
134
  uiLocationToRawLocations(uiSourceCode: Workspace.UISourceCode.UISourceCode, lineNumber: number, columnNumber: number):
139
135
  SDK.DebuggerModel.Location[] {
140
136
  const scriptFile = this.#uiSourceCodeToScriptFile.get(uiSourceCode);
141
- if (!scriptFile || typeof scriptFile.script === 'undefined') {
137
+ if (!scriptFile) {
142
138
  return [];
143
139
  }
144
140
 
145
- const script = scriptFile.script;
141
+ const {script} = scriptFile;
146
142
  if (!script) {
147
143
  return [];
148
144
  }
149
145
 
150
- if (script.isInlineScriptWithSourceURL()) {
151
- return [this.debuggerModel.createRawLocation(
152
- script, lineNumber + script.lineOffset, lineNumber ? columnNumber : columnNumber + script.columnOffset)];
153
- }
154
146
  return [this.debuggerModel.createRawLocation(script, lineNumber, columnNumber)];
155
147
  }
156
148
 
@@ -29,7 +29,6 @@
29
29
  */
30
30
 
31
31
  import * as Common from '../../core/common/common.js';
32
- import type * as Platform from '../../core/platform/platform.js';
33
32
  import * as SDK from '../../core/sdk/sdk.js';
34
33
  import type * as TextUtils from '../text_utils/text_utils.js';
35
34
  import * as Workspace from '../workspace/workspace.js';
@@ -298,7 +297,7 @@ export class StyleFile implements TextUtils.ContentProvider.ContentProvider {
298
297
  Common.EventTarget.removeEventListeners(this.#eventListeners);
299
298
  }
300
299
 
301
- contentURL(): Platform.DevToolsPath.RawPathString {
300
+ contentURL(): string {
302
301
  console.assert(this.headers.size > 0);
303
302
  return this.headers.values().next().value.originalContentProvider().contentURL();
304
303
  }
@@ -165,21 +165,6 @@ class ScriptMapping implements Bindings.DebuggerWorkspaceBinding.DebuggerSourceM
165
165
  if (!formatData || !script) {
166
166
  return null;
167
167
  }
168
- if (script.isInlineScriptWithSourceURL()) {
169
- // Inline scripts with #sourceURL= have lineEndings wrt. the inline script (and not wrt. the containing document),
170
- // but `rawLocation` will always use locations wrt. the containing document, because that is what the back-end is
171
- // sending. This is a hack, because what we are really doing here is deciding the location based on /how/ the
172
- // script is displayed, which is really something this layer cannot and should not have to decide: The
173
- // SourceFormatter should not have to know whether a script is displayed inline (in its containing document) or
174
- // stand-alone.
175
- const [relativeLineNumber, relativeColumnNumber] = script.toRelativeLocation(rawLocation);
176
- const [formattedLineNumber, formattedColumnNumber] =
177
- formatData.mapping.originalToFormatted(relativeLineNumber, relativeColumnNumber);
178
- return formatData.formattedSourceCode.uiLocation(formattedLineNumber, formattedColumnNumber);
179
- }
180
- // Here we either have an inline script without a #sourceURL= or a stand-alone script. For stand-alone scripts, no
181
- // translation must be applied. For inline scripts, also no translation must be applied, because the line-endings
182
- // tables in the mapping are the same as in the containing document.
183
168
  const [lineNumber, columnNumber] =
184
169
  formatData.mapping.originalToFormatted(rawLocation.lineNumber, rawLocation.columnNumber || 0);
185
170
  return formatData.formattedSourceCode.uiLocation(lineNumber, columnNumber);
@@ -28,6 +28,8 @@
28
28
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
29
  */
30
30
 
31
+ // TODO(crbug.com/1253323): All casts to UrlString will be removed from this file when migration to branded types is complete.
32
+
31
33
  import * as Common from '../../core/common/common.js';
32
34
  import * as Host from '../../core/host/host.js';
33
35
  import * as i18n from '../../core/i18n/i18n.js';
@@ -82,7 +84,7 @@ export class IsolatedFileSystem extends PlatformFileSystem {
82
84
  constructor(
83
85
  manager: IsolatedFileSystemManager, path: string, embedderPath: string, domFileSystem: FileSystem, type: string) {
84
86
  // TODO(crbug.com/1253323): Cast to UrlString will be removed when migration to branded types is complete.
85
- super(path as Platform.DevToolsPath.UrlString, type);
87
+ super(path, type);
86
88
  this.manager = manager;
87
89
  this.embedderPathInternal = embedderPath;
88
90
  this.domFileSystem = domFileSystem;
@@ -174,9 +176,8 @@ export class IsolatedFileSystem extends PlatformFileSystem {
174
176
  this.initialGitFoldersInternal.add(parentFolder);
175
177
  }
176
178
  if (this.isFileExcluded(entry.fullPath + '/')) {
177
- // TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
178
179
  this.excludedEmbedderFolders.push(Common.ParsedURL.ParsedURL.capFilePrefix(
179
- this.path() + entry.fullPath as Platform.DevToolsPath.RawPathString, Host.Platform.isWin()));
180
+ this.path() + entry.fullPath as Platform.DevToolsPath.UrlString, Host.Platform.isWin()));
180
181
  continue;
181
182
  }
182
183
  ++pendingRequests;
@@ -552,9 +553,9 @@ export class IsolatedFileSystem extends PlatformFileSystem {
552
553
  Common.ResourceType.resourceTypes.Document;
553
554
  }
554
555
 
555
- tooltipForURL(url: Platform.DevToolsPath.RawPathString): string {
556
- const path =
557
- Platform.StringUtilities.trimMiddle(Common.ParsedURL.ParsedURL.capFilePrefix(url, Host.Platform.isWin()), 150);
556
+ tooltipForURL(url: string): string {
557
+ const path = Platform.StringUtilities.trimMiddle(
558
+ Common.ParsedURL.ParsedURL.capFilePrefix(url as Platform.DevToolsPath.UrlString, Host.Platform.isWin()), 150);
558
559
  return i18nString(UIStrings.linkedToS, {PH1: path});
559
560
  }
560
561
 
@@ -28,6 +28,8 @@
28
28
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
29
  */
30
30
 
31
+ // TODO(crbug.com/1253323): All casts to RawPathString will be removed from this file when migration to branded types is complete.
32
+
31
33
  import * as Common from '../../core/common/common.js';
32
34
  import * as Host from '../../core/host/host.js';
33
35
  import * as i18n from '../../core/i18n/i18n.js';
@@ -173,7 +175,8 @@ export class IsolatedFileSystemManager extends Common.ObjectWrapper.ObjectWrappe
173
175
  private innerAddFileSystem(fileSystem: Host.InspectorFrontendHostAPI.DevToolsFileSystem, dispatchEvent: boolean):
174
176
  Promise<IsolatedFileSystem|null> {
175
177
  const embedderPath = fileSystem.fileSystemPath;
176
- const fileSystemURL = Common.ParsedURL.ParsedURL.rawPathToUrlString(fileSystem.fileSystemPath);
178
+ const fileSystemURL =
179
+ Common.ParsedURL.ParsedURL.rawPathToUrlString(fileSystem.fileSystemPath as Platform.DevToolsPath.RawPathString);
177
180
  const promise = IsolatedFileSystem.create(
178
181
  this, fileSystemURL, embedderPath, fileSystem.type, fileSystem.fileSystemName, fileSystem.rootURL);
179
182
  return promise.then(storeFileSystem.bind(this));
@@ -218,9 +221,10 @@ export class IsolatedFileSystemManager extends Common.ObjectWrapper.ObjectWrappe
218
221
  }
219
222
  }
220
223
 
221
- private onFileSystemRemoved(event: Common.EventTarget.EventTargetEvent<Platform.DevToolsPath.RawPathString>): void {
224
+ private onFileSystemRemoved(event: Common.EventTarget.EventTargetEvent<string>): void {
222
225
  const embedderPath = event.data;
223
- const fileSystemPath = Common.ParsedURL.ParsedURL.rawPathToUrlString(embedderPath);
226
+ const fileSystemPath =
227
+ Common.ParsedURL.ParsedURL.rawPathToUrlString(embedderPath as Platform.DevToolsPath.RawPathString);
224
228
  const isolatedFileSystem = this.fileSystemsInternal.get(fileSystemPath);
225
229
  if (!isolatedFileSystem) {
226
230
  return;
@@ -241,11 +245,11 @@ export class IsolatedFileSystemManager extends Common.ObjectWrapper.ObjectWrappe
241
245
  this.dispatchEventToListeners(Events.FileSystemFilesChanged, urlPaths);
242
246
 
243
247
  function groupFilePathsIntoFileSystemPaths(
244
- this: IsolatedFileSystemManager,
245
- embedderPaths: Platform.DevToolsPath.RawPathString[]): Platform.MapUtilities.Multimap<string, string> {
248
+ this: IsolatedFileSystemManager, embedderPaths: string[]): Platform.MapUtilities.Multimap<string, string> {
246
249
  const paths = new Platform.MapUtilities.Multimap<string, string>();
247
250
  for (const embedderPath of embedderPaths) {
248
- const filePath = Common.ParsedURL.ParsedURL.rawPathToUrlString(embedderPath);
251
+ const filePath =
252
+ Common.ParsedURL.ParsedURL.rawPathToUrlString(embedderPath as Platform.DevToolsPath.RawPathString);
249
253
  for (const fileSystemPath of this.fileSystemsInternal.keys()) {
250
254
  const fileSystem = this.fileSystemsInternal.get(fileSystemPath);
251
255
  if (fileSystem && fileSystem.isFileExcluded(embedderPath)) {
@@ -5,6 +5,7 @@
5
5
  import * as Common from '../../core/common/common.js';
6
6
  import * as Host from '../../core/host/host.js';
7
7
  import * as i18n from '../../core/i18n/i18n.js';
8
+ import type * as Platform from '../../core/platform/platform.js';
8
9
  import * as SDK from '../../core/sdk/sdk.js';
9
10
 
10
11
  import type * as TextUtils from '../text_utils/text_utils.js';
@@ -92,7 +93,9 @@ export class ContextMenuProvider implements UI.ContextMenu.Provider {
92
93
  const binding = uiSourceCode && PersistenceImpl.instance().binding(uiSourceCode);
93
94
  const fileURL = binding ? binding.fileSystem.contentURL() : contentProvider.contentURL();
94
95
  if (fileURL.startsWith('file://')) {
95
- const path = Common.ParsedURL.ParsedURL.capFilePrefix(fileURL, Host.Platform.isWin());
96
+ // TODO(crbug.com/1253323): Cast to UrlString will be removed when migration to branded types is complete.
97
+ const path =
98
+ Common.ParsedURL.ParsedURL.capFilePrefix(fileURL as Platform.DevToolsPath.UrlString, Host.Platform.isWin());
96
99
  contextMenu.revealSection().appendItem(
97
100
  i18nString(UIStrings.openInContainingFolder),
98
101
  () => Host.InspectorFrontendHost.InspectorFrontendHostInstance.showItemInFolder(path));
@@ -3,7 +3,6 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import type * as Common from '../../core/common/common.js';
6
- import type * as Platform from '../../core/platform/platform.js';
7
6
  import * as i18n from '../../core/i18n/i18n.js';
8
7
  import type * as TextUtils from '../text_utils/text_utils.js';
9
8
 
@@ -16,9 +15,9 @@ const UIStrings = {
16
15
  const str_ = i18n.i18n.registerUIStrings('models/persistence/PlatformFileSystem.ts', UIStrings);
17
16
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
18
17
  export class PlatformFileSystem {
19
- private readonly pathInternal: Platform.DevToolsPath.UrlString;
18
+ private readonly pathInternal: string;
20
19
  private readonly typeInternal: string;
21
- constructor(path: Platform.DevToolsPath.UrlString, type: string) {
20
+ constructor(path: string, type: string) {
22
21
  this.pathInternal = path;
23
22
  this.typeInternal = type;
24
23
  }
@@ -35,7 +34,7 @@ export class PlatformFileSystem {
35
34
  return [];
36
35
  }
37
36
 
38
- path(): Platform.DevToolsPath.UrlString {
37
+ path(): string {
39
38
  return this.pathInternal;
40
39
  }
41
40
 
@@ -29,10 +29,9 @@
29
29
  */
30
30
 
31
31
  import type * as Common from '../../core/common/common.js';
32
- import type * as Platform from '../../core/platform/platform.js';
33
32
 
34
33
  export abstract class ContentProvider {
35
- abstract contentURL(): Platform.DevToolsPath.RawPathString;
34
+ abstract contentURL(): string;
36
35
  abstract contentType(): Common.ResourceType.ResourceType;
37
36
  abstract contentEncoded(): Promise<boolean>;
38
37
  abstract requestContent(): Promise<DeferredContent>;
@@ -3,7 +3,6 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import type * as Common from '../../core/common/common.js';
6
- import type * as Platform from '../../core/platform/platform.js';
7
6
 
8
7
  import type {ContentProvider, DeferredContent, SearchMatch} from './ContentProvider.js';
9
8
  import {performSearchInContent} from './TextUtils.js';
@@ -30,8 +29,8 @@ export class StaticContentProvider implements ContentProvider {
30
29
  }
31
30
 
32
31
  // TODO(crbug.com/1253323): Cast to PawPathString will be removed when migration to branded types is complete.
33
- contentURL(): Platform.DevToolsPath.RawPathString {
34
- return this.contentURLInternal as Platform.DevToolsPath.RawPathString;
32
+ contentURL(): string {
33
+ return this.contentURLInternal;
35
34
  }
36
35
 
37
36
  contentType(): Common.ResourceType.ResourceType {
@@ -59,7 +59,6 @@ export class TimelineJSProfileProcessor {
59
59
 
60
60
  static generateJSFrameEvents(events: SDK.TracingModel.Event[], config: {
61
61
  showAllEvents: boolean,
62
- showRuntimeCallStats: boolean,
63
62
  showNativeFunctions: boolean,
64
63
  }): SDK.TracingModel.Event[] {
65
64
  function equalFrames(frame1: Protocol.Runtime.CallFrame, frame2: Protocol.Runtime.CallFrame): boolean {
@@ -85,7 +84,7 @@ export class TimelineJSProfileProcessor {
85
84
  const lockedJsStackDepth: number[] = [];
86
85
  let ordinal = 0;
87
86
  let fakeJSInvocation = false;
88
- const {showAllEvents, showRuntimeCallStats, showNativeFunctions} = config;
87
+ const {showAllEvents, showNativeFunctions} = config;
89
88
 
90
89
  function onStartEvent(e: SDK.TracingModel.Event): void {
91
90
  if (fakeJSInvocation) {
@@ -135,15 +134,10 @@ export class TimelineJSProfileProcessor {
135
134
  jsFramesStack.length = depth;
136
135
  }
137
136
 
138
- function showNativeName(name: string): boolean {
139
- return showRuntimeCallStats && Boolean(TimelineJSProfileProcessor.nativeGroup(name));
140
- }
141
-
142
137
  function filterStackFrames(stack: Protocol.Runtime.CallFrame[]): void {
143
138
  if (showAllEvents) {
144
139
  return;
145
140
  }
146
- let previousNativeFrameName: (string|null)|null = null;
147
141
  let j = 0;
148
142
  for (let i = 0; i < stack.length; ++i) {
149
143
  const frame = stack[i];
@@ -153,16 +147,9 @@ export class TimelineJSProfileProcessor {
153
147
  continue;
154
148
  }
155
149
  const isNativeRuntimeFrame = TimelineJSProfileProcessor.isNativeRuntimeFrame(frame);
156
- if (isNativeRuntimeFrame && !showNativeName(frame.functionName)) {
157
- continue;
158
- }
159
- const nativeFrameName =
160
- isNativeRuntimeFrame ? TimelineJSProfileProcessor.nativeGroup(frame.functionName) : null;
161
- if (previousNativeFrameName && previousNativeFrameName === nativeFrameName) {
162
- continue;
150
+ if (!isNativeRuntimeFrame) {
151
+ stack[j++] = frame;
163
152
  }
164
- previousNativeFrameName = nativeFrameName;
165
- stack[j++] = frame;
166
153
  }
167
154
  stack.length = j;
168
155
  }
@@ -678,7 +678,6 @@ export class TimelineModelImpl {
678
678
  if (jsSamples || events.some(e => e.name === RecordType.JSSample)) {
679
679
  const jsFrameEvents = TimelineJSProfileProcessor.generateJSFrameEvents(events, {
680
680
  showAllEvents: Root.Runtime.experiments.isEnabled('timelineShowAllEvents'),
681
- showRuntimeCallStats: Root.Runtime.experiments.isEnabled('timelineV8RuntimeCallStats'),
682
681
  showNativeFunctions: Common.Settings.Settings.instance().moduleSetting('showNativeFunctionsInJSProfile').get(),
683
682
  });
684
683
  if (jsFrameEvents && jsFrameEvents.length) {
@@ -192,8 +192,8 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
192
192
  }
193
193
 
194
194
  // TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
195
- contentURL(): Platform.DevToolsPath.RawPathString {
196
- return this.url() as Platform.DevToolsPath.RawPathString;
195
+ contentURL(): string {
196
+ return this.url();
197
197
  }
198
198
 
199
199
  contentType(): Common.ResourceType.ResourceType {
@@ -24,6 +24,8 @@
24
24
  margin-bottom: -1px;
25
25
  background-color: var(--color-background-elevation-1);
26
26
  display: flex;
27
+ flex-direction: column;
28
+ justify-content: space-around;
27
29
  align-items: center;
28
30
  flex: 0 0 150px;
29
31
  }
@@ -20,7 +20,7 @@ const UIStrings = {
20
20
  /**
21
21
  *@description Text in Application Panel Sidebar of the Application panel
22
22
  */
23
- backForwardCache: 'Back-Forward Cache',
23
+ backForwardCache: 'Back/forward cache',
24
24
  /**
25
25
  *@description A context menu item in the Application Panel Sidebar of the Application panel
26
26
  */