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
@@ -137,9 +137,14 @@ export class Dialog extends Common.ObjectWrapper.eventMixin<EventTypes, typeof G
137
137
  if (node instanceof HTMLElement) {
138
138
  const element = (node as HTMLElement);
139
139
  const tabIndex = element.tabIndex;
140
- if (tabIndex >= 0 && (!exclusionSet || !exclusionSet.has(element))) {
141
- this.tabIndexMap.set(element, tabIndex);
142
- element.tabIndex = -1;
140
+ if (!exclusionSet?.has(element)) {
141
+ if (tabIndex >= 0) {
142
+ this.tabIndexMap.set(element, tabIndex);
143
+ element.tabIndex = -1;
144
+ } else if (element.hasAttribute('contenteditable')) {
145
+ this.tabIndexMap.set(element, element.hasAttribute('tabindex') ? tabIndex : 0);
146
+ element.tabIndex = -1;
147
+ }
143
148
  }
144
149
  }
145
150
  }
@@ -828,6 +828,12 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
828
828
  this.tabOrderSetting.set(tabOrders);
829
829
  }
830
830
 
831
+ // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
832
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
833
+ getCloseableTabSetting(): Common.Settings.Setting<any> {
834
+ return this.closeableTabSetting.get();
835
+ }
836
+
831
837
  static orderStep = 10; // Keep in sync with descriptors.
832
838
  }
833
839
 
@@ -103,6 +103,10 @@ const UIStrings = {
103
103
  * @example {9001628746521180} seconds
104
104
  */
105
105
  timeAfterTooltip: 'The expiration timestamp is {seconds}, which corresponds to a date after {date}',
106
+ /**
107
+ * @description Text to be show in the Partition Key column in case it is an opaque origin.
108
+ */
109
+ opaquePartitionKey: '(opaque)',
106
110
  };
107
111
  const str_ = i18n.i18n.registerUIStrings('ui/legacy/components/cookie_table/CookiesTable.ts', UIStrings);
108
112
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -215,6 +219,13 @@ export class CookiesTable extends UI.Widget.VBox {
215
219
  dataType: DataGrid.DataGrid.DataType.Boolean,
216
220
  editable: editable,
217
221
  },
222
+ {
223
+ id: SDK.Cookie.Attributes.PartitionKey,
224
+ title: 'Partition Key',
225
+ sortable: true,
226
+ weight: 7,
227
+ editable: editable,
228
+ },
218
229
  {
219
230
  id: SDK.Cookie.Attributes.Priority,
220
231
  title: 'Priority',
@@ -462,6 +473,8 @@ export class CookiesTable extends UI.Widget.VBox {
462
473
  return String(cookie.sameSite());
463
474
  case SDK.Cookie.Attributes.SameParty:
464
475
  return String(cookie.sameParty());
476
+ case SDK.Cookie.Attributes.PartitionKey:
477
+ return cookie.partitionKeyOpaque() ? i18nString(UIStrings.opaquePartitionKey) : String(cookie.partitionKey());
465
478
  case SDK.Cookie.Attributes.SourceScheme:
466
479
  return String(cookie.sourceScheme());
467
480
  default:
@@ -570,6 +583,7 @@ export class CookiesTable extends UI.Widget.VBox {
570
583
  data[SDK.Cookie.Attributes.SourcePort] = cookie.sourcePort();
571
584
  data[SDK.Cookie.Attributes.SourceScheme] = cookie.sourceScheme();
572
585
  data[SDK.Cookie.Attributes.Priority] = cookie.priority() || '';
586
+ data[SDK.Cookie.Attributes.PartitionKey] = cookie.partitionKey() || '';
573
587
 
574
588
  const blockedReasons = this.cookieToBlockedReasons?.get(cookie);
575
589
  const node = new DataGridNode(data, cookie, blockedReasons || null);
@@ -613,6 +627,9 @@ export class CookiesTable extends UI.Widget.VBox {
613
627
  if (node.data[SDK.Cookie.Attributes.Expires] === null) {
614
628
  node.data[SDK.Cookie.Attributes.Expires] = expiresSessionValue();
615
629
  }
630
+ if (node.data[SDK.Cookie.Attributes.PartitionKey] === null) {
631
+ node.data[SDK.Cookie.Attributes.PartitionKey] = '';
632
+ }
616
633
  }
617
634
 
618
635
  private saveNode(node: DataGridNode): void {
@@ -660,6 +677,9 @@ export class CookiesTable extends UI.Widget.VBox {
660
677
  cookie.addAttribute(
661
678
  SDK.Cookie.Attributes.SourcePort, Number.parseInt(data[SDK.Cookie.Attributes.SourcePort], 10) || undefined);
662
679
  }
680
+ if (SDK.Cookie.Attributes.PartitionKey in data) {
681
+ cookie.addAttribute(SDK.Cookie.Attributes.PartitionKey, data[SDK.Cookie.Attributes.PartitionKey]);
682
+ }
663
683
  cookie.setSize(data[SDK.Cookie.Attributes.Name].length + data[SDK.Cookie.Attributes.Value].length);
664
684
  return cookie;
665
685
  }
@@ -159,6 +159,11 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
159
159
  this.textEditorInternal = new TextEditor.TextEditor.TextEditor(this.placeholderEditorState(''));
160
160
  this.textEditorInternal.style.flexGrow = '1';
161
161
  this.element.appendChild(this.textEditorInternal);
162
+ this.element.addEventListener('keydown', (event: KeyboardEvent): void => {
163
+ if (event.defaultPrevented) {
164
+ event.stopPropagation();
165
+ }
166
+ });
162
167
 
163
168
  this.baseDoc = this.textEditorInternal.state.doc;
164
169
 
@@ -201,6 +206,7 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
201
206
  return [
202
207
  CodeMirror.EditorView.updateListener.of(update => this.dispatchEventToListeners(Events.EditorUpdate, update)),
203
208
  TextEditor.Config.baseConfiguration(doc),
209
+ TextEditor.Config.closeBrackets,
204
210
  TextEditor.Config.sourcesAutocompletion.instance(),
205
211
  TextEditor.Config.showWhitespace.instance(),
206
212
  TextEditor.Config.allowScrollPastEof.instance(),
@@ -716,7 +722,6 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
716
722
  if (wasLoaded) {
717
723
  textEditor.editor.scrollDOM.scrollTop = scrollTop;
718
724
  }
719
- this.editorInitialized();
720
725
  this.wasShownOrLoaded();
721
726
 
722
727
  if (this.delayedFindSearchMatches) {
@@ -726,9 +731,6 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
726
731
  this.muteChangeEventsForSetContent = false;
727
732
  }
728
733
 
729
- protected editorInitialized(): void {
730
- }
731
-
732
734
  setSearchableView(view: UI.SearchableView.SearchableView|null): void {
733
735
  this.searchableView = view;
734
736
  }
@@ -184,17 +184,9 @@ export class Linkifier implements SDK.TargetManager.Observer {
184
184
  }
185
185
  info.liveLocation = null;
186
186
  Linkifier.unbindUILocation(anchor);
187
- const fallback = (info.fallback as HTMLElement | null);
187
+ const fallback = info.fallback;
188
188
  if (fallback) {
189
- // @ts-ignore
190
- anchor.href = fallback.href;
191
- UI.Tooltip.Tooltip.install(anchor, fallback.title);
192
- anchor.className = fallback.className;
193
- anchor.textContent = fallback.textContent;
194
- const fallbackInfo = infoByAnchor.get(fallback);
195
- if (fallbackInfo) {
196
- infoByAnchor.set(anchor, fallbackInfo);
197
- }
189
+ anchor.replaceWith(fallback);
198
190
  }
199
191
  }
200
192
  }
@@ -249,15 +241,11 @@ export class Linkifier implements SDK.TargetManager.Observer {
249
241
  // Not initialising the anchor element with 'zero width space' (\u200b) causes a crash
250
242
  // in the layout engine.
251
243
  // TODO(szuend): Remove comment and workaround once the crash is fixed.
252
- const anchor = Linkifier.createLink(
244
+ const {link, linkInfo} = Linkifier.createLink(
253
245
  fallbackAnchor && fallbackAnchor.textContent ? fallbackAnchor.textContent : '\u200b', className,
254
246
  createLinkOptions);
255
- const info = Linkifier.linkInfo(anchor);
256
- if (!info) {
257
- return fallbackAnchor;
258
- }
259
- info.enableDecorator = this.useLinkDecorator;
260
- info.fallback = fallbackAnchor;
247
+ linkInfo.enableDecorator = this.useLinkDecorator;
248
+ linkInfo.fallback = fallbackAnchor;
261
249
 
262
250
  const pool = this.locationPoolByTarget.get(rawLocation.debuggerModel.target());
263
251
  if (!pool) {
@@ -268,10 +256,10 @@ export class Linkifier implements SDK.TargetManager.Observer {
268
256
 
269
257
  const currentOnLiveLocationUpdate = this.onLiveLocationUpdate;
270
258
  Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance()
271
- .createLiveLocation(rawLocation, this.updateAnchor.bind(this, anchor, linkDisplayOptions), pool)
259
+ .createLiveLocation(rawLocation, this.updateAnchor.bind(this, link, linkDisplayOptions), pool)
272
260
  .then(liveLocation => {
273
261
  if (liveLocation) {
274
- info.liveLocation = liveLocation;
262
+ linkInfo.liveLocation = liveLocation;
275
263
  // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
276
264
  // @ts-expect-error
277
265
  currentOnLiveLocationUpdate();
@@ -279,8 +267,8 @@ export class Linkifier implements SDK.TargetManager.Observer {
279
267
  });
280
268
 
281
269
  const anchors = (this.anchorsByTarget.get(rawLocation.debuggerModel.target()) as Element[]);
282
- anchors.push(anchor);
283
- return anchor;
270
+ anchors.push(link);
271
+ return link;
284
272
  }
285
273
 
286
274
  linkifyScriptLocation(
@@ -327,68 +315,61 @@ export class Linkifier implements SDK.TargetManager.Observer {
327
315
  target, callFrame.scriptId, callFrame.url, callFrame.lineNumber, linkifyOptions);
328
316
  }
329
317
 
330
- linkifyStackTraceTopFrame(target: SDK.Target.Target, stackTrace: Protocol.Runtime.StackTrace, classes?: string):
318
+ linkifyStackTraceTopFrame(target: SDK.Target.Target, stackTrace: Protocol.Runtime.StackTrace, className?: string):
331
319
  HTMLElement {
332
- console.assert(Boolean(stackTrace.callFrames) && Boolean(stackTrace.callFrames.length));
320
+ console.assert(stackTrace.callFrames.length > 0);
333
321
 
334
- const topFrame = stackTrace.callFrames[0];
335
- const fallbackAnchor = Linkifier.linkifyURL(topFrame.url, {
336
- className: classes,
337
- lineNumber: topFrame.lineNumber,
338
- columnNumber: topFrame.columnNumber,
322
+ const {url, lineNumber, columnNumber} = stackTrace.callFrames[0];
323
+ const fallbackAnchor = Linkifier.linkifyURL(url, {
324
+ className,
325
+ lineNumber,
326
+ columnNumber,
339
327
  showColumnNumber: false,
340
328
  inlineFrameIndex: 0,
341
329
  maxLength: this.maxLength,
342
330
  text: undefined,
343
- preventClick: undefined,
331
+ preventClick: true,
344
332
  tabStop: undefined,
345
333
  bypassURLTrimming: undefined,
346
334
  });
347
- if (target.isDisposed()) {
348
- return fallbackAnchor;
349
- }
350
335
 
351
- const debuggerModel = target.model(SDK.DebuggerModel.DebuggerModel);
352
- if (!debuggerModel) {
353
- return fallbackAnchor;
354
- }
355
- const rawLocations = debuggerModel.createRawLocationsByStackTrace(stackTrace);
356
- if (rawLocations.length === 0) {
336
+ // The contract is that disposed targets don't have a LiveLocationPool
337
+ // associated, whereas all active targets have one such pool. This ensures
338
+ // that the fallbackAnchor is only ever used when the target was disposed.
339
+ const pool = this.locationPoolByTarget.get(target);
340
+ if (!pool) {
341
+ console.assert(target.isDisposed());
357
342
  return fallbackAnchor;
358
343
  }
344
+ console.assert(!target.isDisposed());
345
+
346
+ // All targets that can report stack traces also have a debugger model.
347
+ const debuggerModel = target.model(SDK.DebuggerModel.DebuggerModel) as SDK.DebuggerModel.DebuggerModel;
359
348
 
360
349
  // Not initialising the anchor element with 'zero width space' (\u200b) causes a crash
361
350
  // in the layout engine.
362
351
  // TODO(szuend): Remove comment and workaround once the crash is fixed.
363
- const anchor = Linkifier.createLink('\u200b', classes || '');
364
- const info = Linkifier.linkInfo(anchor);
365
- if (!info) {
366
- return fallbackAnchor;
367
- }
368
- info.enableDecorator = this.useLinkDecorator;
369
- info.fallback = fallbackAnchor;
370
-
371
- const pool = this.locationPoolByTarget.get(target);
372
- if (!pool) {
373
- return fallbackAnchor;
374
- }
352
+ const {link, linkInfo} = Linkifier.createLink('\u200b', className ?? '');
353
+ linkInfo.enableDecorator = this.useLinkDecorator;
354
+ linkInfo.fallback = fallbackAnchor;
375
355
 
376
356
  const linkDisplayOptions = {showColumnNumber: false};
377
357
 
378
358
  const currentOnLiveLocationUpdate = this.onLiveLocationUpdate;
379
359
  Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance()
380
360
  .createStackTraceTopFrameLiveLocation(
381
- rawLocations, this.updateAnchor.bind(this, anchor, linkDisplayOptions), pool)
361
+ debuggerModel.createRawLocationsByStackTrace(stackTrace),
362
+ this.updateAnchor.bind(this, link, linkDisplayOptions), pool)
382
363
  .then(liveLocation => {
383
- info.liveLocation = liveLocation;
364
+ linkInfo.liveLocation = liveLocation;
384
365
  // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
385
366
  // @ts-expect-error
386
367
  currentOnLiveLocationUpdate();
387
368
  });
388
369
 
389
370
  const anchors = (this.anchorsByTarget.get(target) as Element[]);
390
- anchors.push(anchor);
391
- return anchor;
371
+ anchors.push(link);
372
+ return link;
392
373
  }
393
374
 
394
375
  linkifyCSSLocation(rawLocation: SDK.CSSModel.CSSLocation, classes?: string): Element {
@@ -403,33 +384,29 @@ export class Linkifier implements SDK.TargetManager.Observer {
403
384
  // Not initialising the anchor element with 'zero width space' (\u200b) causes a crash
404
385
  // in the layout engine.
405
386
  // TODO(szuend): Remove comment and workaround once the crash is fixed.
406
- const anchor = (Linkifier.createLink('\u200b', classes || '', createLinkOptions) as HTMLElement);
407
- const info = Linkifier.linkInfo(anchor);
408
- if (!info) {
409
- return anchor;
410
- }
411
- info.enableDecorator = this.useLinkDecorator;
387
+ const {link, linkInfo} = Linkifier.createLink('\u200b', classes || '', createLinkOptions);
388
+ linkInfo.enableDecorator = this.useLinkDecorator;
412
389
 
413
390
  const pool = this.locationPoolByTarget.get(rawLocation.cssModel().target());
414
391
  if (!pool) {
415
- return anchor;
392
+ return link;
416
393
  }
417
394
 
418
395
  const linkDisplayOptions = {showColumnNumber: false};
419
396
 
420
397
  const currentOnLiveLocationUpdate = this.onLiveLocationUpdate;
421
398
  Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance()
422
- .createLiveLocation(rawLocation, this.updateAnchor.bind(this, anchor, linkDisplayOptions), pool)
399
+ .createLiveLocation(rawLocation, this.updateAnchor.bind(this, link, linkDisplayOptions), pool)
423
400
  .then(liveLocation => {
424
- info.liveLocation = liveLocation;
401
+ linkInfo.liveLocation = liveLocation;
425
402
  // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
426
403
  // @ts-expect-error
427
404
  currentOnLiveLocationUpdate();
428
405
  });
429
406
 
430
407
  const anchors = (this.anchorsByTarget.get(rawLocation.cssModel().target()) as Element[]);
431
- anchors.push(anchor);
432
- return anchor;
408
+ anchors.push(link);
409
+ return link;
433
410
  }
434
411
 
435
412
  reset(): void {
@@ -557,16 +534,12 @@ export class Linkifier implements SDK.TargetManager.Observer {
557
534
  }
558
535
  const title = linkText !== url ? url : '';
559
536
  const linkOptions = {maxLength, title, href: url, preventClick, tabStop: options.tabStop, bypassURLTrimming};
560
- const link = Linkifier.createLink(linkText, className, linkOptions);
561
- const info = Linkifier.linkInfo(link);
562
- if (!info) {
563
- return link;
564
- }
537
+ const {link, linkInfo} = Linkifier.createLink(linkText, className, linkOptions);
565
538
  if (lineNumber) {
566
- info.lineNumber = lineNumber;
539
+ linkInfo.lineNumber = lineNumber;
567
540
  }
568
541
  if (columnNumber) {
569
- info.columnNumber = columnNumber;
542
+ linkInfo.columnNumber = columnNumber;
570
543
  }
571
544
  return link;
572
545
  }
@@ -582,16 +555,13 @@ export class Linkifier implements SDK.TargetManager.Observer {
582
555
  tabStop: undefined,
583
556
  bypassURLTrimming: undefined,
584
557
  };
585
- const link = Linkifier.createLink(text, className || '', createLinkOptions);
586
- const linkInfo = Linkifier.linkInfo(link);
587
- if (!linkInfo) {
588
- return link;
589
- }
558
+ const {link, linkInfo} = Linkifier.createLink(text, className || '', createLinkOptions);
590
559
  linkInfo.revealable = revealable;
591
560
  return link;
592
561
  }
593
562
 
594
- private static createLink(text: string|HTMLElement, className: string, options?: _CreateLinkOptions): HTMLElement {
563
+ private static createLink(text: string|HTMLElement, className: string, options?: _CreateLinkOptions):
564
+ {link: HTMLElement, linkInfo: _LinkInfo} {
595
565
  options = options || {
596
566
  maxLength: undefined,
597
567
  title: undefined,
@@ -654,7 +624,7 @@ export class Linkifier implements SDK.TargetManager.Observer {
654
624
  }
655
625
  UI.ARIAUtils.markAsLink(link);
656
626
  link.tabIndex = tabStop ? 0 : -1;
657
- return link;
627
+ return {link, linkInfo};
658
628
  }
659
629
 
660
630
  private static setTrimmedText(link: Element, text: string, maxLength?: number): void {
@@ -167,6 +167,7 @@
167
167
  --color-selected-option: #fff;
168
168
  --color-selected-option-background: #1a73e8;
169
169
  --color-highlighted-line: rgb(255 255 0 / 50%);
170
+ --color-completion-hover: rgb(56 121 217 / 10%);
170
171
  --color-search-match-border: rgb(128 128 128);
171
172
  --color-selected-search-match: var(--color-text-primary);
172
173
  --color-selected-search-match-background: rgb(241 234 0);
@@ -307,6 +308,7 @@
307
308
  --color-selected-option: #fff;
308
309
  --color-selected-option-background: #0e639c;
309
310
  --color-highlighted-line: hsl(133deg 100% 30% / 50%);
311
+ --color-completion-hover: rgb(56 121 217 / 10%);
310
312
  --color-search-match-border: rgb(128 128 128);
311
313
  --color-selected-search-match: #eee;
312
314
  --color-selected-search-match-background: hsl(133deg 100% 30%);
@@ -2,7 +2,7 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
- import {luminance} from '../front_end/core/common/ColorUtils.js';
5
+ import {luminance} from '../front_end/core/common/ColorUtils.js'; // eslint-disable-line rulesdir/es_modules_import
6
6
 
7
7
  import type {AreaBounds, Bounds, Position} from './common.js';
8
8
  import {createChild} from './common.js';
@@ -28,7 +28,7 @@
28
28
  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29
29
  // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
30
 
31
- import {rgbaToHsla} from '../front_end/core/common/ColorUtils.js';
31
+ import {rgbaToHsla} from '../front_end/core/common/ColorUtils.js'; // eslint-disable-line rulesdir/es_modules_import
32
32
 
33
33
  import type {Bounds, PathCommands, Quad} from './common.js';
34
34
 
@@ -28,7 +28,7 @@
28
28
  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29
29
  // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
30
 
31
- import {contrastRatio, contrastRatioAPCA, getAPCAThreshold, getContrastThreshold} from '../front_end/core/common/ColorUtils.js';
31
+ import {contrastRatio, contrastRatioAPCA, getAPCAThreshold, getContrastThreshold} from '../front_end/core/common/ColorUtils.js'; // eslint-disable-line rulesdir/es_modules_import
32
32
 
33
33
  import type {Bounds, PathCommands, ResetData} from './common.js';
34
34
  import {constrainNumber, createChild, createElement, createTextChild, ellipsify, Overlay} from './common.js';
package/package.json CHANGED
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.943182"
58
+ "version": "1.0.944903"
59
59
  }
@@ -11,7 +11,6 @@
11
11
  const path = require('path');
12
12
 
13
13
  const FRONT_END_DIRECTORY = path.join(__dirname, '..', '..', '..', 'front_end');
14
- const UNITTESTS_DIRECTORY = path.join(__dirname, '..', '..', '..', 'test', 'unittests');
15
14
  const INSPECTOR_OVERLAY_DIRECTORY = path.join(__dirname, '..', '..', '..', 'front_end', 'inspector_overlay');
16
15
  const COMPONENT_DOCS_DIRECTORY = path.join(FRONT_END_DIRECTORY, 'ui', 'components', 'docs');
17
16
 
@@ -164,12 +163,6 @@ module.exports = {
164
163
  });
165
164
  }
166
165
 
167
- const importingFileIsUnitTestFile = importingFileName.startsWith(UNITTESTS_DIRECTORY);
168
- const importingFileIsComponentDocsFile = importingFileName.startsWith(COMPONENT_DOCS_DIRECTORY);
169
- if (!importingFileName.startsWith(FRONT_END_DIRECTORY) && !importingFileIsUnitTestFile) {
170
- return;
171
- }
172
-
173
166
  if (importingFileName.startsWith(INSPECTOR_OVERLAY_DIRECTORY)) {
174
167
  return;
175
168
  }
@@ -180,15 +173,6 @@ module.exports = {
180
173
 
181
174
  const exportingFileName = path.resolve(path.dirname(importingFileName), importPath);
182
175
 
183
- if (importPath.replace(/\\/g, '/').includes('/front_end/') && !importingFileIsUnitTestFile &&
184
- !importingFileIsComponentDocsFile) {
185
- context.report({
186
- node,
187
- message:
188
- 'Invalid relative import: an import should not include the "front_end" directory. If you are in a unit test, you should import from the module entrypoint.',
189
- });
190
- }
191
-
192
176
  if (importPathForErrorMessage.endsWith('platform/platform.js') &&
193
177
  nodeSpecifiersSpecialImportsOnly(node.specifiers)) {
194
178
  /* We allow direct importing of the ls and assertNotNull utility as it's so frequently used. */
@@ -248,21 +248,5 @@ ruleTester.run('es_modules_import', rule, {
248
248
  'Incorrect cross-namespace import: "../third_party/marked/package/lib/marked.esm.js". Use "import * as Namespace from \'../namespace/namespace.js\';" instead. If the third_party dependency does not expose a single entrypoint, update es_modules_import.js to make it exempt.'
249
249
  }],
250
250
  },
251
- {
252
- code: 'import * as Marked from \'../../front_end/third_party/marked/package/lib/marked.esm.js\';',
253
- filename: 'front_end/marked/marked.js',
254
- errors: [{
255
- message:
256
- 'Invalid relative import: an import should not include the "front_end" directory. If you are in a unit test, you should import from the module entrypoint.'
257
- }],
258
- },
259
- {
260
- code: 'import * as SDK from \'../../front_end/sdk/sdk.js\';',
261
- filename: 'front_end/marked/marked.js',
262
- errors: [{
263
- message:
264
- 'Invalid relative import: an import should not include the "front_end" directory. If you are in a unit test, you should import from the module entrypoint.'
265
- }],
266
- }
267
251
  ]
268
252
  });