chrome-devtools-frontend 1.0.944427 → 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 (251) 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/i18n/locales/en-US.json +3 -15
  5. package/front_end/core/i18n/locales/en-XL.json +15 -27
  6. package/front_end/core/protocol_client/NodeURL.ts +1 -0
  7. package/front_end/core/sdk/CSSStyleSheetHeader.ts +2 -3
  8. package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +2 -3
  9. package/front_end/core/sdk/Cookie.ts +17 -0
  10. package/front_end/core/sdk/CookieModel.ts +1 -0
  11. package/front_end/core/sdk/DebuggerModel.ts +5 -4
  12. package/front_end/core/sdk/NetworkManager.ts +4 -1
  13. package/front_end/core/sdk/NetworkRequest.ts +2 -2
  14. package/front_end/core/sdk/Resource.ts +2 -2
  15. package/front_end/core/sdk/Script.ts +2 -3
  16. package/front_end/models/bindings/BreakpointManager.ts +3 -4
  17. package/front_end/models/bindings/ResourceMapping.ts +1 -2
  18. package/front_end/models/bindings/StylesSourceMapping.ts +1 -2
  19. package/front_end/models/persistence/IsolatedFileSystem.ts +7 -6
  20. package/front_end/models/persistence/IsolatedFileSystemManager.ts +10 -6
  21. package/front_end/models/persistence/PersistenceActions.ts +4 -1
  22. package/front_end/models/persistence/PlatformFileSystem.ts +3 -4
  23. package/front_end/models/text_utils/ContentProvider.ts +1 -2
  24. package/front_end/models/text_utils/StaticContentProvider.ts +2 -3
  25. package/front_end/models/workspace/UISourceCode.ts +2 -2
  26. package/front_end/panels/animation/animationTimeline.css +2 -0
  27. package/front_end/panels/application/ReportingApiView.ts +15 -1
  28. package/front_end/panels/application/components/EndpointsGrid.ts +63 -4
  29. package/front_end/panels/application/components/FrameDetailsView.ts +21 -34
  30. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
  31. package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
  32. package/front_end/panels/sources/NavigatorView.ts +1 -1
  33. package/front_end/panels/sources/UISourceCodeFrame.ts +0 -1
  34. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -34
  35. package/front_end/panels/timeline/TimelineUIUtils.ts +51 -3
  36. package/front_end/services/window_bounds/WindowBoundsService.ts +27 -0
  37. package/front_end/services/window_bounds/window_bounds.ts +9 -0
  38. package/front_end/third_party/codemirror.next/bundle.ts +1 -1
  39. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  40. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +8 -1
  41. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  42. package/front_end/third_party/codemirror.next/package.json +1 -1
  43. package/front_end/third_party/lit-html/README.chromium +2 -2
  44. package/front_end/third_party/lit-html/package/CHANGELOG.md +216 -28
  45. package/front_end/third_party/lit-html/package/LICENSE +9 -9
  46. package/front_end/third_party/lit-html/package/README.md +12 -162
  47. package/front_end/third_party/lit-html/package/async-directive.d.ts +23 -54
  48. package/front_end/third_party/lit-html/package/async-directive.d.ts.map +1 -1
  49. package/front_end/third_party/lit-html/package/async-directive.js +2 -7
  50. package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
  51. package/front_end/third_party/lit-html/package/development/async-directive.d.ts +23 -54
  52. package/front_end/third_party/lit-html/package/development/async-directive.d.ts.map +1 -1
  53. package/front_end/third_party/lit-html/package/development/async-directive.js +44 -194
  54. package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
  55. package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts +6 -5
  56. package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts.map +1 -1
  57. package/front_end/third_party/lit-html/package/development/directive-helpers.js +25 -9
  58. package/front_end/third_party/lit-html/package/development/directive-helpers.js.map +1 -1
  59. package/front_end/third_party/lit-html/package/development/directive.d.ts +3 -16
  60. package/front_end/third_party/lit-html/package/development/directive.d.ts.map +1 -1
  61. package/front_end/third_party/lit-html/package/development/directive.js +6 -1
  62. package/front_end/third_party/lit-html/package/development/directive.js.map +1 -1
  63. package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts +7 -14
  64. package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts.map +1 -1
  65. package/front_end/third_party/lit-html/package/development/directives/async-append.js +17 -58
  66. package/front_end/third_party/lit-html/package/development/directives/async-append.js.map +1 -1
  67. package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts +9 -14
  68. package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts.map +1 -1
  69. package/front_end/third_party/lit-html/package/development/directives/async-replace.js +57 -37
  70. package/front_end/third_party/lit-html/package/development/directives/async-replace.js.map +1 -1
  71. package/front_end/third_party/lit-html/package/development/directives/cache.d.ts +2 -3
  72. package/front_end/third_party/lit-html/package/development/directives/cache.d.ts.map +1 -1
  73. package/front_end/third_party/lit-html/package/development/directives/cache.js +4 -6
  74. package/front_end/third_party/lit-html/package/development/directives/cache.js.map +1 -1
  75. package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts +2 -2
  76. package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts.map +1 -1
  77. package/front_end/third_party/lit-html/package/development/directives/class-map.js +17 -7
  78. package/front_end/third_party/lit-html/package/development/directives/class-map.js.map +1 -1
  79. package/front_end/third_party/lit-html/package/development/directives/guard.d.ts +3 -2
  80. package/front_end/third_party/lit-html/package/development/directives/guard.d.ts.map +1 -1
  81. package/front_end/third_party/lit-html/package/development/directives/guard.js +3 -2
  82. package/front_end/third_party/lit-html/package/development/directives/guard.js.map +1 -1
  83. package/front_end/third_party/lit-html/package/development/directives/live.d.ts +4 -3
  84. package/front_end/third_party/lit-html/package/development/directives/live.d.ts.map +1 -1
  85. package/front_end/third_party/lit-html/package/development/directives/live.js +5 -7
  86. package/front_end/third_party/lit-html/package/development/directives/live.js.map +1 -1
  87. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts +58 -0
  88. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts.map +1 -0
  89. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js +85 -0
  90. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js.map +1 -0
  91. package/front_end/third_party/lit-html/package/development/directives/ref.d.ts +14 -11
  92. package/front_end/third_party/lit-html/package/development/directives/ref.d.ts.map +1 -1
  93. package/front_end/third_party/lit-html/package/development/directives/ref.js +13 -11
  94. package/front_end/third_party/lit-html/package/development/directives/ref.js.map +1 -1
  95. package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts +8 -4
  96. package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts.map +1 -1
  97. package/front_end/third_party/lit-html/package/development/directives/repeat.js +23 -9
  98. package/front_end/third_party/lit-html/package/development/directives/repeat.js.map +1 -1
  99. package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts +1 -2
  100. package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts.map +1 -1
  101. package/front_end/third_party/lit-html/package/development/directives/style-map.js +1 -2
  102. package/front_end/third_party/lit-html/package/development/directives/style-map.js.map +1 -1
  103. package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -2
  104. package/front_end/third_party/lit-html/package/development/directives/template-content.js +1 -2
  105. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts +6 -4
  106. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts.map +1 -1
  107. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js +7 -5
  108. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js.map +1 -1
  109. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts +4 -1
  110. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts.map +1 -1
  111. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js +3 -0
  112. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js.map +1 -1
  113. package/front_end/third_party/lit-html/package/development/directives/until.d.ts +12 -8
  114. package/front_end/third_party/lit-html/package/development/directives/until.d.ts.map +1 -1
  115. package/front_end/third_party/lit-html/package/development/directives/until.js +63 -23
  116. package/front_end/third_party/lit-html/package/development/directives/until.js.map +1 -1
  117. package/front_end/third_party/lit-html/package/development/experimental-hydrate.d.ts.map +1 -1
  118. package/front_end/third_party/lit-html/package/development/experimental-hydrate.js +9 -8
  119. package/front_end/third_party/lit-html/package/development/experimental-hydrate.js.map +1 -1
  120. package/front_end/third_party/lit-html/package/development/lit-html.d.ts +81 -136
  121. package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
  122. package/front_end/third_party/lit-html/package/development/lit-html.js +249 -76
  123. package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
  124. package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts +1 -41
  125. package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts.map +1 -1
  126. package/front_end/third_party/lit-html/package/development/polyfill-support.js +40 -21
  127. package/front_end/third_party/lit-html/package/development/polyfill-support.js.map +1 -1
  128. package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts +12 -10
  129. package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts.map +1 -1
  130. package/front_end/third_party/lit-html/package/development/private-ssr-support.js +11 -3
  131. package/front_end/third_party/lit-html/package/development/private-ssr-support.js.map +1 -1
  132. package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
  133. package/front_end/third_party/lit-html/package/development/static.js +6 -5
  134. package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
  135. package/front_end/third_party/lit-html/package/directive-helpers.d.ts +6 -5
  136. package/front_end/third_party/lit-html/package/directive-helpers.d.ts.map +1 -1
  137. package/front_end/third_party/lit-html/package/directive-helpers.js +2 -2
  138. package/front_end/third_party/lit-html/package/directive-helpers.js.map +1 -1
  139. package/front_end/third_party/lit-html/package/directive.d.ts +3 -16
  140. package/front_end/third_party/lit-html/package/directive.d.ts.map +1 -1
  141. package/front_end/third_party/lit-html/package/directive.js +1 -1
  142. package/front_end/third_party/lit-html/package/directive.js.map +1 -1
  143. package/front_end/third_party/lit-html/package/directives/async-append.d.ts +7 -14
  144. package/front_end/third_party/lit-html/package/directives/async-append.d.ts.map +1 -1
  145. package/front_end/third_party/lit-html/package/directives/async-append.js +2 -6
  146. package/front_end/third_party/lit-html/package/directives/async-append.js.map +1 -1
  147. package/front_end/third_party/lit-html/package/directives/async-replace.d.ts +9 -14
  148. package/front_end/third_party/lit-html/package/directives/async-replace.d.ts.map +1 -1
  149. package/front_end/third_party/lit-html/package/directives/async-replace.js +2 -5
  150. package/front_end/third_party/lit-html/package/directives/async-replace.js.map +1 -1
  151. package/front_end/third_party/lit-html/package/directives/cache.d.ts +2 -3
  152. package/front_end/third_party/lit-html/package/directives/cache.d.ts.map +1 -1
  153. package/front_end/third_party/lit-html/package/directives/cache.js +2 -5
  154. package/front_end/third_party/lit-html/package/directives/cache.js.map +1 -1
  155. package/front_end/third_party/lit-html/package/directives/class-map.d.ts +2 -2
  156. package/front_end/third_party/lit-html/package/directives/class-map.d.ts.map +1 -1
  157. package/front_end/third_party/lit-html/package/directives/class-map.js +2 -4
  158. package/front_end/third_party/lit-html/package/directives/class-map.js.map +1 -1
  159. package/front_end/third_party/lit-html/package/directives/guard.d.ts +3 -2
  160. package/front_end/third_party/lit-html/package/directives/guard.d.ts.map +1 -1
  161. package/front_end/third_party/lit-html/package/directives/guard.js +2 -4
  162. package/front_end/third_party/lit-html/package/directives/guard.js.map +1 -1
  163. package/front_end/third_party/lit-html/package/directives/live.d.ts +4 -3
  164. package/front_end/third_party/lit-html/package/directives/live.d.ts.map +1 -1
  165. package/front_end/third_party/lit-html/package/directives/live.js +1 -4
  166. package/front_end/third_party/lit-html/package/directives/live.js.map +1 -1
  167. package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts +58 -0
  168. package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts.map +1 -0
  169. package/front_end/third_party/lit-html/package/directives/private-async-helpers.js +7 -0
  170. package/front_end/third_party/lit-html/package/directives/private-async-helpers.js.map +1 -0
  171. package/front_end/third_party/lit-html/package/directives/ref.d.ts +14 -11
  172. package/front_end/third_party/lit-html/package/directives/ref.d.ts.map +1 -1
  173. package/front_end/third_party/lit-html/package/directives/ref.js +2 -5
  174. package/front_end/third_party/lit-html/package/directives/ref.js.map +1 -1
  175. package/front_end/third_party/lit-html/package/directives/repeat.d.ts +8 -4
  176. package/front_end/third_party/lit-html/package/directives/repeat.d.ts.map +1 -1
  177. package/front_end/third_party/lit-html/package/directives/repeat.js +2 -5
  178. package/front_end/third_party/lit-html/package/directives/repeat.js.map +1 -1
  179. package/front_end/third_party/lit-html/package/directives/style-map.d.ts +1 -2
  180. package/front_end/third_party/lit-html/package/directives/style-map.d.ts.map +1 -1
  181. package/front_end/third_party/lit-html/package/directives/style-map.js +2 -4
  182. package/front_end/third_party/lit-html/package/directives/style-map.js.map +1 -1
  183. package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -2
  184. package/front_end/third_party/lit-html/package/directives/template-content.js +2 -4
  185. package/front_end/third_party/lit-html/package/directives/template-content.js.map +1 -1
  186. package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts +6 -4
  187. package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts.map +1 -1
  188. package/front_end/third_party/lit-html/package/directives/unsafe-html.js +2 -4
  189. package/front_end/third_party/lit-html/package/directives/unsafe-html.js.map +1 -1
  190. package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts +4 -1
  191. package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts.map +1 -1
  192. package/front_end/third_party/lit-html/package/directives/unsafe-svg.js.map +1 -1
  193. package/front_end/third_party/lit-html/package/directives/until.d.ts +12 -8
  194. package/front_end/third_party/lit-html/package/directives/until.d.ts.map +1 -1
  195. package/front_end/third_party/lit-html/package/directives/until.js +2 -6
  196. package/front_end/third_party/lit-html/package/directives/until.js.map +1 -1
  197. package/front_end/third_party/lit-html/package/experimental-hydrate.d.ts.map +1 -1
  198. package/front_end/third_party/lit-html/package/experimental-hydrate.js +2 -5
  199. package/front_end/third_party/lit-html/package/experimental-hydrate.js.map +1 -1
  200. package/front_end/third_party/lit-html/package/lit-html.d.ts +81 -136
  201. package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
  202. package/front_end/third_party/lit-html/package/lit-html.js +1 -1
  203. package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
  204. package/front_end/third_party/lit-html/package/package.json +75 -24
  205. package/front_end/third_party/lit-html/package/polyfill-support.d.ts +1 -41
  206. package/front_end/third_party/lit-html/package/polyfill-support.d.ts.map +1 -1
  207. package/front_end/third_party/lit-html/package/polyfill-support.js +1 -1
  208. package/front_end/third_party/lit-html/package/polyfill-support.js.map +1 -1
  209. package/front_end/third_party/lit-html/package/private-ssr-support.d.ts +12 -10
  210. package/front_end/third_party/lit-html/package/private-ssr-support.d.ts.map +1 -1
  211. package/front_end/third_party/lit-html/package/private-ssr-support.js +2 -2
  212. package/front_end/third_party/lit-html/package/private-ssr-support.js.map +1 -1
  213. package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
  214. package/front_end/third_party/lit-html/package/static.js +1 -1
  215. package/front_end/third_party/lit-html/package/static.js.map +1 -1
  216. package/front_end/third_party/marked/README.chromium +2 -2
  217. package/front_end/third_party/marked/marked.ts +2 -2
  218. package/front_end/third_party/marked/package/README.md +7 -1
  219. package/front_end/third_party/marked/package/bin/marked.js +214 -0
  220. package/front_end/third_party/marked/package/lib/marked.cjs +2907 -0
  221. package/front_end/third_party/marked/package/lib/marked.esm.d.ts +1 -3
  222. package/front_end/third_party/marked/package/lib/marked.esm.js +627 -586
  223. package/front_end/third_party/marked/package/lib/marked.umd.js +2913 -0
  224. package/front_end/third_party/marked/package/man/marked.1 +5 -24
  225. package/front_end/third_party/marked/package/man/marked.1.txt +21 -31
  226. package/front_end/third_party/marked/package/marked.min.js +1 -1
  227. package/front_end/third_party/marked/package/package.json +41 -32
  228. package/front_end/third_party/marked/package/src/Lexer.js +109 -108
  229. package/front_end/third_party/marked/package/src/Parser.js +38 -15
  230. package/front_end/third_party/marked/package/src/Renderer.js +5 -5
  231. package/front_end/third_party/marked/package/src/Slugger.js +2 -2
  232. package/front_end/third_party/marked/package/src/TextRenderer.js +2 -2
  233. package/front_end/third_party/marked/package/src/Tokenizer.js +215 -190
  234. package/front_end/third_party/marked/package/src/defaults.js +6 -9
  235. package/front_end/third_party/marked/package/src/helpers.js +16 -27
  236. package/front_end/third_party/marked/package/src/marked.js +146 -63
  237. package/front_end/third_party/marked/package/src/rules.js +20 -45
  238. package/front_end/third_party/wasmparser/README.chromium +2 -2
  239. package/front_end/third_party/wasmparser/package/.github/workflows/main.yml +47 -0
  240. package/front_end/third_party/wasmparser/package/CHANGELOG.md +12 -0
  241. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js +53 -53
  242. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js.map +1 -1
  243. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js +53 -53
  244. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js.map +1 -1
  245. package/front_end/third_party/wasmparser/package/package.json +1 -1
  246. package/front_end/third_party/wasmparser/package/src/WasmParser.ts +53 -53
  247. package/front_end/ui/components/text_editor/TextEditor.ts +29 -0
  248. package/front_end/ui/components/text_editor/config.ts +4 -2
  249. package/front_end/ui/legacy/ViewManager.ts +6 -0
  250. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +20 -0
  251. package/package.json +1 -1
@@ -430,6 +430,7 @@ grd_files_release_sources = [
430
430
  "front_end/panels/web_audio/web_audio.js",
431
431
  "front_end/panels/webauthn/webauthn-meta.js",
432
432
  "front_end/panels/webauthn/webauthn.js",
433
+ "front_end/services/window_bounds/window_bounds.js",
433
434
  "front_end/third_party/acorn-loose/acorn-loose.js",
434
435
  "front_end/third_party/acorn/acorn.js",
435
436
  "front_end/third_party/chromium/client-variations/client-variations.js",
@@ -1258,6 +1259,7 @@ grd_files_debug_sources = [
1258
1259
  "front_end/panels/web_audio/webAudio.css.js",
1259
1260
  "front_end/panels/webauthn/WebauthnPane.js",
1260
1261
  "front_end/panels/webauthn/webauthnPane.css.js",
1262
+ "front_end/services/window_bounds/WindowBoundsService.js",
1261
1263
  "front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs",
1262
1264
  "front_end/third_party/acorn/package/dist/acorn.mjs",
1263
1265
  "front_end/third_party/chromium/client-variations/ClientVariations.js",
@@ -1306,6 +1308,7 @@ grd_files_debug_sources = [
1306
1308
  "front_end/third_party/lit-html/package/directives/class-map.js",
1307
1309
  "front_end/third_party/lit-html/package/directives/if-defined.js",
1308
1310
  "front_end/third_party/lit-html/package/directives/live.js",
1311
+ "front_end/third_party/lit-html/package/directives/private-async-helpers.js",
1309
1312
  "front_end/third_party/lit-html/package/directives/repeat.js",
1310
1313
  "front_end/third_party/lit-html/package/directives/style-map.js",
1311
1314
  "front_end/third_party/lit-html/package/directives/until.js",
@@ -123,7 +123,7 @@ export class ParsedURL {
123
123
  return rawPath as Platform.DevToolsPath.UrlString;
124
124
  }
125
125
 
126
- static capFilePrefix(fileURL: Platform.DevToolsPath.RawPathString, isWindows?: boolean):
126
+ static capFilePrefix(fileURL: Platform.DevToolsPath.UrlString, isWindows?: boolean):
127
127
  Platform.DevToolsPath.RawPathString {
128
128
  console.assert(fileURL.startsWith('file://'), 'This must be a file URL.');
129
129
  if (isWindows) {
@@ -86,7 +86,7 @@ export interface DevToolsFileSystem {
86
86
  type: string;
87
87
  fileSystemName: string;
88
88
  rootURL: string;
89
- fileSystemPath: Platform.DevToolsPath.RawPathString;
89
+ fileSystemPath: string;
90
90
  }
91
91
 
92
92
  export interface FileSystemAddedEvent {
@@ -95,9 +95,9 @@ export interface FileSystemAddedEvent {
95
95
  }
96
96
 
97
97
  export interface FilesChangedEvent {
98
- changed: Platform.DevToolsPath.RawPathString[];
99
- added: Platform.DevToolsPath.RawPathString[];
100
- removed: Platform.DevToolsPath.RawPathString[];
98
+ changed: string[];
99
+ added: string[];
100
+ removed: string[];
101
101
  }
102
102
 
103
103
  export interface IndexingEvent {
@@ -155,7 +155,7 @@ export type EventTypes = {
155
155
  [Events.EnterInspectElementMode]: void,
156
156
  [Events.EyeDropperPickedColor]: EyeDropperPickedColorEvent,
157
157
  [Events.FileSystemsLoaded]: DevToolsFileSystem[],
158
- [Events.FileSystemRemoved]: Platform.DevToolsPath.RawPathString,
158
+ [Events.FileSystemRemoved]: string,
159
159
  [Events.FileSystemAdded]: FileSystemAddedEvent,
160
160
  [Events.FileSystemFilesChangedAddedRemoved]: FilesChangedEvent,
161
161
  [Events.IndexingTotalWorkCalculated]: IndexingTotalWorkCalculatedEvent,
@@ -2849,15 +2849,9 @@
2849
2849
  "panels/application/components/FrameDetailsView.ts | creationStackTraceExplanation": {
2850
2850
  "message": "This frame was created programmatically. The stack trace shows where this happened."
2851
2851
  },
2852
- "panels/application/components/FrameDetailsView.ts | crossoriginEmbedderPolicy": {
2853
- "message": "Cross-Origin Embedder Policy"
2854
- },
2855
2852
  "panels/application/components/FrameDetailsView.ts | crossoriginIsolated": {
2856
2853
  "message": "Cross-Origin Isolated"
2857
2854
  },
2858
- "panels/application/components/FrameDetailsView.ts | crossoriginOpenerPolicy": {
2859
- "message": "Cross-Origin Opener Policy"
2860
- },
2861
2855
  "panels/application/components/FrameDetailsView.ts | document": {
2862
2856
  "message": "Document"
2863
2857
  },
@@ -2879,12 +2873,6 @@
2879
2873
  "panels/application/components/FrameDetailsView.ts | no": {
2880
2874
  "message": "No"
2881
2875
  },
2882
- "panels/application/components/FrameDetailsView.ts | origin": {
2883
- "message": "Origin"
2884
- },
2885
- "panels/application/components/FrameDetailsView.ts | originTrials": {
2886
- "message": "Origin Trials"
2887
- },
2888
2876
  "panels/application/components/FrameDetailsView.ts | ownerElement": {
2889
2877
  "message": "Owner Element"
2890
2878
  },
@@ -2936,9 +2924,6 @@
2936
2924
  "panels/application/components/FrameDetailsView.ts | unreachableUrl": {
2937
2925
  "message": "Unreachable URL"
2938
2926
  },
2939
- "panels/application/components/FrameDetailsView.ts | url": {
2940
- "message": "URL"
2941
- },
2942
2927
  "panels/application/components/FrameDetailsView.ts | willRequireCrossoriginIsolated": {
2943
2928
  "message": "⚠️ will require cross-origin isolated context in the future"
2944
2929
  },
@@ -11570,6 +11555,9 @@
11570
11555
  "ui/legacy/components/cookie_table/CookiesTable.ts | name": {
11571
11556
  "message": "Name"
11572
11557
  },
11558
+ "ui/legacy/components/cookie_table/CookiesTable.ts | opaquePartitionKey": {
11559
+ "message": "(opaque)"
11560
+ },
11573
11561
  "ui/legacy/components/cookie_table/CookiesTable.ts | session": {
11574
11562
  "message": "Session"
11575
11563
  },
@@ -2811,7 +2811,7 @@
2811
2811
  "message": "ÂṔÎ áv̂áîĺâb́îĺît́ŷ"
2812
2812
  },
2813
2813
  "panels/application/components/FrameDetailsView.ts | availabilityOfCertainApisDepends": {
2814
- "message": "Âv́âíl̂áb̂íl̂ít̂ý ôf́ ĉér̂t́âín̂ ÁP̂Íŝ d́êṕêńd̂ś ôń t̂h́ê d́ôćûḿêńt̂ b́êín̂ǵ ĉŕôŝ-ór̂íĝín̂ íŝól̂át̂éd̂."
2814
+ "message": "Âv́âíl̂áb̂íl̂ít̂ý ôf́ ĉér̂t́âín̂ ÁP̂Íŝ d́êṕêńd̂ś ôń t̂h́ê d́ôćûḿêńt̂ b́êín̂ǵ cross-origin îśôĺât́êd́."
2815
2815
  },
2816
2816
  "panels/application/components/FrameDetailsView.ts | available": {
2817
2817
  "message": "âv́âíl̂áb̂ĺê"
@@ -2841,22 +2841,16 @@
2841
2841
  "message": "Ĉĺîćk̂ t́ô ŕêv́êál̂ ín̂ Śôúr̂ćêś p̂án̂él̂"
2842
2842
  },
2843
2843
  "panels/application/components/FrameDetailsView.ts | createdByAdScriptExplanation": {
2844
- "message": "T̂h́êŕê ẃâś âń âd́ ŝćr̂íp̂t́ îń t̂h́ê (áŝýn̂ć) ŝt́âćk̂ ẃĥén̂ t́ĥíŝ f́r̂ám̂é ŵáŝ ćr̂éât́êd́. Êx́âḿîńîńĝ t́ĥé ĉŕêát̂íôń ŝt́âćk̂ t́r̂áĉé ôf́ t̂h́îś f̂ŕâḿê ḿîǵĥt́ p̂ŕôv́îd́ê ḿôŕê ín̂śîǵĥt́."
2844
+ "message": "T̂h́êŕê ẃâś âń âd́ ŝćr̂íp̂t́ îń t̂h́ê (async) stack ẃĥén̂ t́ĥíŝ f́r̂ám̂é ŵáŝ ćr̂éât́êd́. Êx́âḿîńîńĝ t́ĥé ĉŕêát̂íôń stack trace ôf́ t̂h́îś f̂ŕâḿê ḿîǵĥt́ p̂ŕôv́îd́ê ḿôŕê ín̂śîǵĥt́."
2845
2845
  },
2846
2846
  "panels/application/components/FrameDetailsView.ts | creationStackTrace": {
2847
- "message": "F̂ŕâḿê Ćr̂éât́îón̂ Śt̂áĉḱ T̂ŕâćê"
2847
+ "message": "F̂ŕâḿê Ćr̂éât́îón̂ Stack Trace"
2848
2848
  },
2849
2849
  "panels/application/components/FrameDetailsView.ts | creationStackTraceExplanation": {
2850
- "message": "T̂h́îś f̂ŕâḿê ẃâś ĉŕêát̂éd̂ ṕr̂óĝŕâḿm̂át̂íĉál̂ĺŷ. T́ĥé ŝt́âćk̂ t́r̂áĉé ŝh́ôẃŝ ẃĥér̂é t̂h́îś ĥáp̂ṕêńêd́."
2851
- },
2852
- "panels/application/components/FrameDetailsView.ts | crossoriginEmbedderPolicy": {
2853
- "message": "Ĉŕôśŝ-Ór̂íĝín̂ Ém̂b́êd́d̂ér̂ Ṕôĺîćŷ"
2850
+ "message": "T̂h́îś f̂ŕâḿê ẃâś ĉŕêát̂éd̂ ṕr̂óĝŕâḿm̂át̂íĉál̂ĺŷ. T́ĥé stack trace ŝh́ôẃŝ ẃĥér̂é t̂h́îś ĥáp̂ṕêńêd́."
2854
2851
  },
2855
2852
  "panels/application/components/FrameDetailsView.ts | crossoriginIsolated": {
2856
- "message": "Ĉŕôśŝ-Ór̂íĝín̂ Íŝól̂át̂éd̂"
2857
- },
2858
- "panels/application/components/FrameDetailsView.ts | crossoriginOpenerPolicy": {
2859
- "message": "Ĉŕôśŝ-Ór̂íĝín̂ Óp̂én̂ér̂ Ṕôĺîćŷ"
2853
+ "message": "Cross-Origin Îśôĺât́êd́"
2860
2854
  },
2861
2855
  "panels/application/components/FrameDetailsView.ts | document": {
2862
2856
  "message": "D̂óĉúm̂én̂t́"
@@ -2868,7 +2862,7 @@
2868
2862
  "message": "L̂éâŕn̂ ḿôŕê"
2869
2863
  },
2870
2864
  "panels/application/components/FrameDetailsView.ts | localhostIsAlwaysASecureContext": {
2871
- "message": "L̂óĉál̂h́ôśt̂ ŝ ál̂ẃâýŝ á ŝéĉúr̂ ĉón̂êx́t̂"
2865
+ "message": "Localhost îś âĺŵáŷś â śêćûŕê ćôńt̂éx̂t́"
2872
2866
  },
2873
2867
  "panels/application/components/FrameDetailsView.ts | matchedBlockingRuleExplanation": {
2874
2868
  "message": "T̂h́îś f̂ŕâḿê íŝ ćôńŝíd̂ér̂éd̂ án̂ ád̂ f́r̂ám̂é b̂éĉáûśê ít̂ś ĉúr̂ŕêńt̂ (ór̂ ṕr̂év̂íôúŝ) ḿâín̂ d́ôćûḿêńt̂ íŝ án̂ ád̂ ŕêśôúr̂ćê."
@@ -2879,12 +2873,6 @@
2879
2873
  "panels/application/components/FrameDetailsView.ts | no": {
2880
2874
  "message": "N̂ó"
2881
2875
  },
2882
- "panels/application/components/FrameDetailsView.ts | origin": {
2883
- "message": "Ôŕîǵîń"
2884
- },
2885
- "panels/application/components/FrameDetailsView.ts | originTrials": {
2886
- "message": "Ôŕîǵîń T̂ŕîál̂ś"
2887
- },
2888
2876
  "panels/application/components/FrameDetailsView.ts | ownerElement": {
2889
2877
  "message": "Ôẃn̂ér̂ Él̂ém̂én̂t́"
2890
2878
  },
@@ -2895,7 +2883,7 @@
2895
2883
  "message": "r̂ép̂ór̂t́îńĝ t́ô"
2896
2884
  },
2897
2885
  "panels/application/components/FrameDetailsView.ts | requiresCrossoriginIsolated": {
2898
- "message": "r̂éq̂úîŕêś ĉŕôśŝ-ór̂íĝí íŝól̂áéd̂ ćôńéx̂t́"
2886
+ "message": "r̂éq̂úîŕêś cross-origin îśôĺât́êd́ ĉón̂t́êx́t̂"
2899
2887
  },
2900
2888
  "panels/application/components/FrameDetailsView.ts | root": {
2901
2889
  "message": "r̂óôt́"
@@ -2910,19 +2898,19 @@
2910
2898
  "message": "Ŝéĉúr̂ít̂ý & Îśôĺât́îón̂"
2911
2899
  },
2912
2900
  "panels/application/components/FrameDetailsView.ts | sharedarraybufferConstructorIs": {
2913
- "message": "Ŝh́âŕêd́Âr̂áŷB́f́f̂ér̂ ćôńt́r̂úĉt́ôŕ ś v́âíáb̂ĺêd́ ŜÁB̂śár̂án̂śf̂ér̂ŕê v̂íâ ṕôśt̂Ḿêśŝĝé"
2901
+ "message": "SharedArrayBuffer ĉón̂śt̂ŕûćt̂ór̂ íŝ áv̂áîĺâb́l̂é âńd̂ SABs ćâń b̂é t̂ŕâńŝf́êŕr̂éd̂ v́îá postMessage"
2914
2902
  },
2915
2903
  "panels/application/components/FrameDetailsView.ts | sharedarraybufferConstructorIsAvailable": {
2916
- "message": "Ŝh́âŕêd́Âr̂áŷB́f́f̂ér̂ ćôńt́r̂úĉt́ôŕ îśv́âíl̂b̂ĺê ût́ ŜÁB̂án̂ńôŕâńŝf́êŕr̂é v́îá p̂óŝt́M̂éŝśǵê"
2904
+ "message": "SharedArrayBuffer ĉón̂śt̂ŕûćt̂ór̂ íŝ áv̂áîĺâb́l̂é b̂út̂ SABs ćâńn̂ót̂ b́ê t́r̂án̂śf̂ér̂ŕêd́ v̂íâ postMessage"
2917
2905
  },
2918
2906
  "panels/application/components/FrameDetailsView.ts | theFramesSchemeIsInsecure": {
2919
2907
  "message": "T̂h́ê f́r̂ám̂é'ŝ śĉh́êḿê íŝ ín̂śêćûŕê"
2920
2908
  },
2921
2909
  "panels/application/components/FrameDetailsView.ts | thePerformanceAPI": {
2922
- "message": "T̂h́ê ṕêŕf̂ór̂ḿâńĉé.m̂éâśûŕêÚŝér̂ĝén̂t́Ŝṕêćf́îćM̂ém̂ór̂ý() ÂṔÎ ŝ v̂áîâb́l̂é"
2910
+ "message": "T̂h́ê performance.measureUserAgentSpecificMemory() P̂Í ś âv́âíl̂áb̂ĺê"
2923
2911
  },
2924
2912
  "panels/application/components/FrameDetailsView.ts | thePerformancemeasureuseragentspecificmemory": {
2925
- "message": "T̂h́ê ṕêŕf̂ór̂ḿâńĉé.m̂éâûŕêÚŝér̂Áĝét́Ŝṕêćîf́îćM̂ém̂r̂ý() ÂṔíŝ ńôt́ v́âíáb̂ĺê"
2913
+ "message": "T̂h́ê performance.measureUserAgentSpecificMemory() ÁP̂Í îś n̂ót̂ áv̂áîĺâb́l̂é"
2926
2914
  },
2927
2915
  "panels/application/components/FrameDetailsView.ts | thisAdditionalDebugging": {
2928
2916
  "message": "T̂h́îś âd́d̂ít̂íôńâĺ (d̂éb̂úĝǵîńĝ) ín̂f́ôŕm̂át̂íôń îś ŝh́ôẃn̂ b́êćâúŝé t̂h́ê 'Ṕr̂ót̂óĉól̂ Ḿôńît́ôŕ' êx́p̂ér̂ím̂én̂t́ îś êńâb́l̂éd̂."
@@ -2936,11 +2924,8 @@
2936
2924
  "panels/application/components/FrameDetailsView.ts | unreachableUrl": {
2937
2925
  "message": "Ûńr̂éâćĥáb̂ĺê ÚR̂Ĺ"
2938
2926
  },
2939
- "panels/application/components/FrameDetailsView.ts | url": {
2940
- "message": "ÛŔL̂"
2941
- },
2942
2927
  "panels/application/components/FrameDetailsView.ts | willRequireCrossoriginIsolated": {
2943
- "message": "⚠️ ŵíl̂ĺ r̂éq̂úîŕê ćr̂óŝś-ôŕîǵî îśôĺât́êd́ ĉón̂t́êx́t̂ ín̂ ĥé f̂út̂úr̂"
2928
+ "message": "⚠️ ŵíl̂ĺ r̂éq̂úîŕê cross-origin íŝól̂át̂éd̂ ćôńt̂éx̂t́ îń t̂h́ê f́ût́ûŕê"
2944
2929
  },
2945
2930
  "panels/application/components/FrameDetailsView.ts | yes": {
2946
2931
  "message": "Ŷéŝ"
@@ -11570,6 +11555,9 @@
11570
11555
  "ui/legacy/components/cookie_table/CookiesTable.ts | name": {
11571
11556
  "message": "N̂ám̂é"
11572
11557
  },
11558
+ "ui/legacy/components/cookie_table/CookiesTable.ts | opaquePartitionKey": {
11559
+ "message": "(ôṕâq́ûé)"
11560
+ },
11573
11561
  "ui/legacy/components/cookie_table/CookiesTable.ts | session": {
11574
11562
  "message": "Ŝéŝśîón̂"
11575
11563
  },
@@ -14,6 +14,7 @@ export class NodeURL {
14
14
 
15
15
  function process(object: {url?: string}, path: string): void {
16
16
  if (object.url && NodeURL.isPlatformPath(object.url, Host.Platform.isWin())) {
17
+ // object.url can be ob both types: RawPathString and UrlString
17
18
  object.url = Common.ParsedURL.ParsedURL.rawPathToUrlString(object.url as Platform.DevToolsPath.RawPathString);
18
19
  }
19
20
  for (const entry of Object.entries(object)) {
@@ -4,7 +4,6 @@
4
4
 
5
5
  import * as TextUtils from '../../models/text_utils/text_utils.js';
6
6
  import * as Common from '../common/common.js';
7
- import type * as Platform from '../platform/platform.js';
8
7
  import * as i18n from '../i18n/i18n.js';
9
8
  import type * as Protocol from '../../generated/protocol.js';
10
9
 
@@ -147,8 +146,8 @@ export class CSSStyleSheetHeader implements TextUtils.ContentProvider.ContentPro
147
146
  }
148
147
 
149
148
  // TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
150
- contentURL(): Platform.DevToolsPath.RawPathString {
151
- return this.resourceURL() as Platform.DevToolsPath.RawPathString;
149
+ contentURL(): string {
150
+ return this.resourceURL();
152
151
  }
153
152
 
154
153
  contentType(): Common.ResourceType.ResourceType {
@@ -30,7 +30,6 @@
30
30
 
31
31
  import * as TextUtils from '../../models/text_utils/text_utils.js';
32
32
  import type * as Common from '../common/common.js';
33
- import type * as Platform from '../platform/platform.js';
34
33
  import * as i18n from '../i18n/i18n.js';
35
34
 
36
35
  import type {PageResourceLoadInitiator} from './PageResourceLoader.js';
@@ -60,8 +59,8 @@ export class CompilerSourceMappingContentProvider implements TextUtils.ContentPr
60
59
  }
61
60
 
62
61
  // TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
63
- contentURL(): Platform.DevToolsPath.RawPathString {
64
- return this.#sourceURL as Platform.DevToolsPath.RawPathString;
62
+ contentURL(): string {
63
+ return this.#sourceURL;
65
64
  }
66
65
 
67
66
  contentType(): Common.ResourceType.ResourceType {
@@ -4,6 +4,8 @@
4
4
 
5
5
  import type * as Protocol from '../../generated/protocol.js';
6
6
 
7
+ const OPAQUE_PARITION_KEY = '<opaque>';
8
+
7
9
  export class Cookie {
8
10
  readonly #nameInternal: string;
9
11
  readonly #valueInternal: string;
@@ -49,6 +51,12 @@ export class Cookie {
49
51
  if ('sourceScheme' in protocolCookie) {
50
52
  cookie.addAttribute('sourceScheme', protocolCookie.sourceScheme);
51
53
  }
54
+ if ('partitionKey' in protocolCookie) {
55
+ cookie.addAttribute('partitionKey', protocolCookie.partitionKey);
56
+ }
57
+ if ('partitionKeyOpaque' in protocolCookie) {
58
+ cookie.addAttribute('partitionKey', OPAQUE_PARITION_KEY);
59
+ }
52
60
  cookie.setSize(protocolCookie['size']);
53
61
  return cookie;
54
62
  }
@@ -87,6 +95,14 @@ export class Cookie {
87
95
  return 'sameparty' in this.#attributes;
88
96
  }
89
97
 
98
+ partitionKey(): string {
99
+ return this.#attributes['partitionkey'] as string;
100
+ }
101
+
102
+ partitionKeyOpaque(): boolean {
103
+ return (this.#attributes['partitionkey'] === OPAQUE_PARITION_KEY);
104
+ }
105
+
90
106
  priority(): Protocol.Network.CookiePriority {
91
107
  return this.#priorityInternal;
92
108
  }
@@ -245,6 +261,7 @@ export enum Attributes {
245
261
  SourceScheme = 'sourceScheme',
246
262
  SourcePort = 'sourcePort',
247
263
  Priority = 'priority',
264
+ PartitionKey = 'partitionKey',
248
265
  }
249
266
 
250
267
  /**
@@ -91,6 +91,7 @@ export class CookieModel extends SDKModel<void> {
91
91
  expires,
92
92
  priority: cookie.priority(),
93
93
  sameParty: cookie.sameParty(),
94
+ partitionKey: cookie.partitionKey(),
94
95
  sourceScheme: enabled ? cookie.sourceScheme() : preserveUnset(cookie.sourceScheme()),
95
96
  sourcePort: enabled ? cookie.sourcePort() : undefined,
96
97
  };
@@ -418,13 +418,14 @@ export class DebuggerModel extends SDKModel<EventTypes> {
418
418
  return this.agent.invoke_pauseOnAsyncCall({parentStackTraceId: parentStackTraceId});
419
419
  }
420
420
 
421
- async setBreakpointByURL(
422
- url: Platform.DevToolsPath.RawPathString, lineNumber: number, columnNumber?: number,
423
- condition?: string): Promise<SetBreakpointResult> {
421
+ async setBreakpointByURL(url: string, lineNumber: number, columnNumber?: number, condition?: string):
422
+ Promise<SetBreakpointResult> {
424
423
  // Convert file url to node-js path.
425
424
  let urlRegex;
426
425
  if (this.target().type() === Type.Node && url.startsWith('file://')) {
427
- const platformPath = Common.ParsedURL.ParsedURL.capFilePrefix(url, Host.Platform.isWin());
426
+ // TODO(crbug.com/1253323): Cast to UrlString will be removed when migration to branded types is complete.
427
+ const platformPath =
428
+ Common.ParsedURL.ParsedURL.capFilePrefix(url as Platform.DevToolsPath.UrlString, Host.Platform.isWin());
428
429
  urlRegex =
429
430
  `${Platform.StringUtilities.escapeForRegExp(platformPath)}|${Platform.StringUtilities.escapeForRegExp(url)}`;
430
431
  }
@@ -305,6 +305,7 @@ export enum Events {
305
305
  LoadingFinished = 'LoadingFinished',
306
306
  ReportingApiReportAdded = 'ReportingApiReportAdded',
307
307
  ReportingApiReportUpdated = 'ReportingApiReportUpdated',
308
+ ReportingApiEndpointsChangedForOrigin = 'ReportingApiEndpointsChangedForOrigin',
308
309
  }
309
310
 
310
311
  export interface RequestStartedEvent {
@@ -334,6 +335,7 @@ export type EventTypes = {
334
335
  [Events.LoadingFinished]: NetworkRequest,
335
336
  [Events.ReportingApiReportAdded]: Protocol.Network.ReportingApiReport,
336
337
  [Events.ReportingApiReportUpdated]: Protocol.Network.ReportingApiReport,
338
+ [Events.ReportingApiEndpointsChangedForOrigin]: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent,
337
339
  };
338
340
 
339
341
  export const NoThrottlingConditions: Conditions = {
@@ -1044,7 +1046,8 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
1044
1046
  this.#manager.dispatchEventToListeners(Events.ReportingApiReportUpdated, data.report);
1045
1047
  }
1046
1048
 
1047
- reportingApiEndpointsChangedForOrigin(_data: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent): void {
1049
+ reportingApiEndpointsChangedForOrigin(data: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent): void {
1050
+ this.#manager.dispatchEventToListeners(Events.ReportingApiEndpointsChangedForOrigin, data);
1048
1051
  }
1049
1052
 
1050
1053
  /**
@@ -1176,8 +1176,8 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
1176
1176
  }
1177
1177
 
1178
1178
  // TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
1179
- contentURL(): Platform.DevToolsPath.RawPathString {
1180
- return this.#urlInternal as Platform.DevToolsPath.RawPathString;
1179
+ contentURL(): string {
1180
+ return this.#urlInternal;
1181
1181
  }
1182
1182
 
1183
1183
  contentType(): Common.ResourceType.ResourceType {
@@ -152,8 +152,8 @@ export class Resource implements TextUtils.ContentProvider.ContentProvider {
152
152
  }
153
153
 
154
154
  // TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
155
- contentURL(): Platform.DevToolsPath.RawPathString {
156
- return this.#urlInternal as Platform.DevToolsPath.RawPathString;
155
+ contentURL(): string {
156
+ return this.#urlInternal;
157
157
  }
158
158
 
159
159
  contentType(): Common.ResourceType.ResourceType {
@@ -30,7 +30,6 @@
30
30
  import * as Protocol from '../../generated/protocol.js';
31
31
  import * as TextUtils from '../../models/text_utils/text_utils.js';
32
32
  import * as Common from '../common/common.js';
33
- import type * as Platform from '../platform/platform.js';
34
33
  import * as i18n from '../i18n/i18n.js';
35
34
 
36
35
  import type {DebuggerModel} from './DebuggerModel.js';
@@ -165,8 +164,8 @@ export class Script implements TextUtils.ContentProvider.ContentProvider, FrameA
165
164
  }
166
165
 
167
166
  // TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
168
- contentURL(): Platform.DevToolsPath.RawPathString {
169
- return this.sourceURL as Platform.DevToolsPath.RawPathString;
167
+ contentURL(): string {
168
+ return this.sourceURL;
170
169
  }
171
170
 
172
171
  contentType(): Common.ResourceType.ResourceType {
@@ -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;
@@ -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
 
@@ -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
  }
@@ -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