chrome-devtools-frontend 1.0.1030457 → 1.0.1031822

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 (339) hide show
  1. package/config/gni/devtools_grd_files.gni +4 -0
  2. package/front_end/Tests.js +0 -28
  3. package/front_end/core/host/UserMetrics.ts +2 -1
  4. package/front_end/core/i18n/locales/af.json +301 -31
  5. package/front_end/core/i18n/locales/am.json +307 -37
  6. package/front_end/core/i18n/locales/ar.json +299 -29
  7. package/front_end/core/i18n/locales/as.json +294 -24
  8. package/front_end/core/i18n/locales/az.json +302 -32
  9. package/front_end/core/i18n/locales/be.json +303 -33
  10. package/front_end/core/i18n/locales/bg.json +296 -26
  11. package/front_end/core/i18n/locales/bn.json +294 -24
  12. package/front_end/core/i18n/locales/bs.json +298 -28
  13. package/front_end/core/i18n/locales/ca.json +302 -32
  14. package/front_end/core/i18n/locales/cs.json +295 -25
  15. package/front_end/core/i18n/locales/cy.json +294 -24
  16. package/front_end/core/i18n/locales/da.json +299 -29
  17. package/front_end/core/i18n/locales/de.json +301 -31
  18. package/front_end/core/i18n/locales/el.json +301 -31
  19. package/front_end/core/i18n/locales/en-GB.json +294 -24
  20. package/front_end/core/i18n/locales/en-US.json +13 -10
  21. package/front_end/core/i18n/locales/en-XL.json +13 -10
  22. package/front_end/core/i18n/locales/es-419.json +298 -28
  23. package/front_end/core/i18n/locales/es.json +306 -36
  24. package/front_end/core/i18n/locales/et.json +299 -29
  25. package/front_end/core/i18n/locales/eu.json +301 -31
  26. package/front_end/core/i18n/locales/fa.json +301 -31
  27. package/front_end/core/i18n/locales/fi.json +295 -25
  28. package/front_end/core/i18n/locales/fil.json +295 -25
  29. package/front_end/core/i18n/locales/fr-CA.json +296 -26
  30. package/front_end/core/i18n/locales/fr.json +296 -26
  31. package/front_end/core/i18n/locales/gl.json +296 -26
  32. package/front_end/core/i18n/locales/gu.json +295 -25
  33. package/front_end/core/i18n/locales/he.json +300 -30
  34. package/front_end/core/i18n/locales/hi.json +306 -36
  35. package/front_end/core/i18n/locales/hr.json +298 -28
  36. package/front_end/core/i18n/locales/hu.json +301 -31
  37. package/front_end/core/i18n/locales/hy.json +296 -26
  38. package/front_end/core/i18n/locales/id.json +295 -25
  39. package/front_end/core/i18n/locales/is.json +294 -24
  40. package/front_end/core/i18n/locales/it.json +298 -28
  41. package/front_end/core/i18n/locales/ja.json +300 -30
  42. package/front_end/core/i18n/locales/ka.json +294 -24
  43. package/front_end/core/i18n/locales/kk.json +305 -35
  44. package/front_end/core/i18n/locales/km.json +300 -30
  45. package/front_end/core/i18n/locales/kn.json +302 -32
  46. package/front_end/core/i18n/locales/ko.json +297 -27
  47. package/front_end/core/i18n/locales/ky.json +297 -27
  48. package/front_end/core/i18n/locales/lo.json +297 -27
  49. package/front_end/core/i18n/locales/lt.json +295 -25
  50. package/front_end/core/i18n/locales/lv.json +301 -31
  51. package/front_end/core/i18n/locales/mk.json +294 -24
  52. package/front_end/core/i18n/locales/ml.json +297 -27
  53. package/front_end/core/i18n/locales/mn.json +296 -26
  54. package/front_end/core/i18n/locales/mr.json +298 -28
  55. package/front_end/core/i18n/locales/ms.json +296 -26
  56. package/front_end/core/i18n/locales/my.json +301 -31
  57. package/front_end/core/i18n/locales/ne.json +302 -32
  58. package/front_end/core/i18n/locales/nl.json +304 -34
  59. package/front_end/core/i18n/locales/no.json +294 -24
  60. package/front_end/core/i18n/locales/or.json +303 -33
  61. package/front_end/core/i18n/locales/pa.json +301 -31
  62. package/front_end/core/i18n/locales/pl.json +298 -28
  63. package/front_end/core/i18n/locales/pt-PT.json +299 -29
  64. package/front_end/core/i18n/locales/pt.json +298 -28
  65. package/front_end/core/i18n/locales/ro.json +297 -27
  66. package/front_end/core/i18n/locales/ru.json +296 -26
  67. package/front_end/core/i18n/locales/si.json +299 -29
  68. package/front_end/core/i18n/locales/sk.json +301 -31
  69. package/front_end/core/i18n/locales/sl.json +301 -31
  70. package/front_end/core/i18n/locales/sq.json +304 -34
  71. package/front_end/core/i18n/locales/sr-Latn.json +296 -26
  72. package/front_end/core/i18n/locales/sr.json +296 -26
  73. package/front_end/core/i18n/locales/sv.json +295 -25
  74. package/front_end/core/i18n/locales/sw.json +298 -28
  75. package/front_end/core/i18n/locales/ta.json +301 -31
  76. package/front_end/core/i18n/locales/te.json +333 -63
  77. package/front_end/core/i18n/locales/th.json +294 -24
  78. package/front_end/core/i18n/locales/tr.json +294 -24
  79. package/front_end/core/i18n/locales/uk.json +296 -26
  80. package/front_end/core/i18n/locales/ur.json +295 -25
  81. package/front_end/core/i18n/locales/uz.json +298 -28
  82. package/front_end/core/i18n/locales/vi.json +303 -33
  83. package/front_end/core/i18n/locales/zh-HK.json +294 -24
  84. package/front_end/core/i18n/locales/zh-TW.json +300 -30
  85. package/front_end/core/i18n/locales/zh.json +299 -29
  86. package/front_end/core/i18n/locales/zu.json +302 -32
  87. package/front_end/core/platform/string-utilities.ts +2 -5
  88. package/front_end/core/root/Runtime.ts +1 -0
  89. package/front_end/core/sdk/CSSStyleSheetHeader.ts +0 -4
  90. package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +0 -4
  91. package/front_end/core/sdk/NetworkRequest.ts +0 -4
  92. package/front_end/core/sdk/Resource.ts +0 -5
  93. package/front_end/core/sdk/Script.ts +71 -76
  94. package/front_end/core/sdk/Target.ts +4 -0
  95. package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -1
  96. package/front_end/entrypoints/main/MainImpl.ts +4 -0
  97. package/front_end/generated/InspectorBackendCommands.js +10 -8
  98. package/front_end/generated/protocol-mapping.d.ts +16 -2
  99. package/front_end/generated/protocol-proxy-api.d.ts +11 -1
  100. package/front_end/generated/protocol.ts +75 -1
  101. package/front_end/models/bindings/CompilerScriptMapping.ts +6 -3
  102. package/front_end/models/bindings/ContentProviderBasedProject.ts +2 -3
  103. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -4
  104. package/front_end/models/bindings/IgnoreListManager.ts +10 -8
  105. package/front_end/models/bindings/ResourceMapping.ts +0 -4
  106. package/front_end/models/bindings/StylesSourceMapping.ts +0 -5
  107. package/front_end/models/extensions/ExtensionServer.ts +2 -3
  108. package/front_end/models/issues_manager/AttributionReportingIssue.ts +8 -0
  109. package/front_end/models/issues_manager/DeprecationIssue.ts +9 -0
  110. package/front_end/models/issues_manager/descriptions/arTooManyConcurrentRequests.md +5 -0
  111. package/front_end/models/javascript_metadata/NativeFunctions.js +6 -2
  112. package/front_end/models/persistence/NetworkPersistenceManager.ts +4 -6
  113. package/front_end/models/persistence/PersistenceActions.ts +5 -4
  114. package/front_end/models/text_utils/CodeMirrorUtils.ts +17 -4
  115. package/front_end/models/text_utils/ContentProvider.ts +0 -1
  116. package/front_end/models/text_utils/StaticContentProvider.ts +0 -4
  117. package/front_end/models/workspace/UISourceCode.ts +10 -5
  118. package/front_end/panels/application/components/StackTrace.ts +2 -2
  119. package/front_end/panels/elements/AccessibilityTreeView.ts +8 -2
  120. package/front_end/panels/elements/CSSRuleValidator.ts +107 -123
  121. package/front_end/panels/elements/ElementsTreeOutline.ts +23 -7
  122. package/front_end/panels/elements/TopLayerContainer.ts +17 -28
  123. package/front_end/panels/elements/accessibilityTreeView.css +10 -0
  124. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +4 -5
  125. package/front_end/panels/elements/components/CSSHintDetailsView.ts +23 -20
  126. package/front_end/panels/elements/components/accessibilityTreeNode.css +9 -0
  127. package/front_end/panels/elements/components/cssHintDetailsView.css +8 -2
  128. package/front_end/panels/elements/stylesSectionTree.css +1 -1
  129. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +12 -0
  130. package/front_end/panels/network/components/RequestHeadersView.css +1 -0
  131. package/front_end/panels/network/components/RequestHeadersView.ts +7 -0
  132. package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +7 -0
  133. package/front_end/panels/sources/NavigatorView.ts +22 -0
  134. package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
  135. package/front_end/services/puppeteer/PuppeteerConnection.ts +7 -1
  136. package/front_end/third_party/codemirror.next/bundle.ts +1 -1
  137. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  138. package/front_end/third_party/codemirror.next/chunk/cpp.js +1 -2
  139. package/front_end/third_party/codemirror.next/chunk/java.js +1 -2
  140. package/front_end/third_party/codemirror.next/chunk/json.js +1 -2
  141. package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -2
  142. package/front_end/third_party/codemirror.next/chunk/php.js +1 -2
  143. package/front_end/third_party/codemirror.next/chunk/python.js +1 -2
  144. package/front_end/third_party/codemirror.next/chunk/wast.js +1 -2
  145. package/front_end/third_party/codemirror.next/chunk/xml.js +1 -2
  146. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1247 -116
  147. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -2
  148. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +15 -2
  149. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
  150. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +95 -76
  151. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
  152. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  153. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +7 -1
  154. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  155. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts +37 -0
  156. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts.map +1 -0
  157. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js +297 -0
  158. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js.map +1 -0
  159. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +4 -0
  160. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
  161. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +10 -2
  162. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
  163. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
  164. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +2 -2
  165. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
  166. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts +4 -0
  167. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -1
  168. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +16 -2
  169. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
  170. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts.map +1 -1
  171. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js +36 -36
  172. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js.map +1 -1
  173. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts +45 -0
  174. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -0
  175. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.js +196 -0
  176. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.js.map +1 -0
  177. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +8 -1
  178. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
  179. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +105 -72
  180. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  181. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +4 -0
  182. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  183. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +6 -0
  184. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  185. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  186. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +5 -5
  187. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
  188. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +4 -0
  189. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  190. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +29 -8
  191. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  192. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +1 -1
  193. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  194. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +43 -68
  195. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
  196. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +0 -2
  197. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -1
  198. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
  199. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +10 -1
  200. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
  201. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +21 -5
  202. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
  203. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TargetManager.d.ts +55 -0
  204. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TargetManager.d.ts.map +1 -0
  205. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TargetManager.js +18 -0
  206. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TargetManager.js.map +1 -0
  207. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +21 -0
  208. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
  209. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +47 -2
  210. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
  211. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
  212. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
  213. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  214. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +3 -2
  215. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
  216. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  217. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +1 -1
  218. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -1
  219. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  220. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +2 -1
  221. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  222. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
  223. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +0 -3
  224. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
  225. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts +1 -0
  226. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts.map +1 -1
  227. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js.map +1 -1
  228. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +1 -1
  229. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
  230. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts +3 -0
  231. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts.map +1 -1
  232. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js +3 -0
  233. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js.map +1 -1
  234. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +15 -2
  235. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
  236. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +95 -76
  237. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
  238. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  239. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +7 -1
  240. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
  241. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts +37 -0
  242. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts.map +1 -0
  243. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js +293 -0
  244. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js.map +1 -0
  245. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +4 -0
  246. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
  247. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +10 -2
  248. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
  249. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
  250. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +3 -3
  251. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
  252. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts +4 -0
  253. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -1
  254. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +14 -1
  255. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js.map +1 -1
  256. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts.map +1 -1
  257. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js +36 -36
  258. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js.map +1 -1
  259. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts +45 -0
  260. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -0
  261. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.js +192 -0
  262. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.js.map +1 -0
  263. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +8 -1
  264. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
  265. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +106 -73
  266. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  267. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +4 -0
  268. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  269. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +6 -0
  270. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  271. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  272. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +5 -5
  273. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
  274. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +4 -0
  275. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  276. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +30 -9
  277. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  278. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +1 -1
  279. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  280. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +45 -47
  281. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
  282. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +0 -2
  283. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -1
  284. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js.map +1 -1
  285. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +10 -1
  286. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
  287. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +21 -5
  288. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
  289. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TargetManager.d.ts +55 -0
  290. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TargetManager.d.ts.map +1 -0
  291. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TargetManager.js +17 -0
  292. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TargetManager.js.map +1 -0
  293. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +21 -0
  294. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
  295. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +44 -1
  296. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
  297. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
  298. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
  299. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  300. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +3 -2
  301. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
  302. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  303. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js +1 -1
  304. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -1
  305. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  306. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +1 -0
  307. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  308. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
  309. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +0 -3
  310. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
  311. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts +1 -0
  312. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts.map +1 -1
  313. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.js.map +1 -1
  314. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +1 -1
  315. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
  316. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts +3 -0
  317. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts.map +1 -1
  318. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js +3 -0
  319. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js.map +1 -1
  320. package/front_end/third_party/puppeteer/package/lib/types.d.ts +37 -2
  321. package/front_end/third_party/puppeteer/package/package.json +7 -6
  322. package/front_end/ui/components/docs/building-ui-documentation/StylingComponents.md +64 -0
  323. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +2 -3
  324. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +97 -17
  325. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +1 -1
  326. package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewerUtils.ts +4 -0
  327. package/front_end/ui/legacy/Icon.ts +1 -1
  328. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +9 -7
  329. package/front_end/ui/legacy/components/source_frame/ImageView.ts +10 -11
  330. package/front_end/ui/legacy/components/source_frame/PreviewFactory.ts +1 -1
  331. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +49 -0
  332. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +18 -17
  333. package/package.json +1 -1
  334. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/tsconfig.cjs.tsbuildinfo +0 -1
  335. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/tsconfig.tsbuildinfo +0 -1
  336. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/tsconfig.cjs.tsbuildinfo +0 -1
  337. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/tsconfig.esm.tsbuildinfo +0 -1
  338. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/tsconfig.tsbuildinfo +0 -1
  339. package/front_end/third_party/puppeteer/package/lib/esm/vendor/tsconfig.esm.tsbuildinfo +0 -1
@@ -17,6 +17,7 @@ export * from './common/NetworkConditions.js';
17
17
  export * from './common/QueryHandler.js';
18
18
  export * from './common/DeviceDescriptors.js';
19
19
  export * from './common/Errors.js';
20
+ export { Protocol } from 'devtools-protocol';
20
21
  /**
21
22
  * @public
22
23
  */
@@ -1 +1 @@
1
- {"version":3,"file":"puppeteer.d.ts","sourceRoot":"","sources":["../../../src/puppeteer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AAEnC;;GAEG;AACH,QAAA,MAAM,SAAS,oCAAmC,CAAC;AAEnD,eAAO,MACL,OAAO,2FACP,oBAAoB,gGACpB,WAAW,6EACX,cAAc,4CACd,MAAM,kGACK,CAAC;AAEd,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"puppeteer.d.ts","sourceRoot":"","sources":["../../../src/puppeteer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C;;GAEG;AACH,QAAA,MAAM,SAAS,oCAAmC,CAAC;AAEnD,eAAO,MACL,OAAO,2FACP,oBAAoB,gGACpB,WAAW,6EACX,cAAc,4CACd,MAAM,kGACK,CAAC;AAEd,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"puppeteer.js","sourceRoot":"","sources":["../../../src/puppeteer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AAE7D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AAEnC;;GAEG;AACH,MAAM,SAAS,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAEnD,MAAM,CAAC,MAAM,EACX,OAAO,EACP,oBAAoB,EACpB,WAAW,EACX,cAAc,EACd,MAAM,GACP,GAAG,SAAS,CAAC;AAEd,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"puppeteer.js","sourceRoot":"","sources":["../../../src/puppeteer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AAE7D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AAInC;;GAEG;AACH,MAAM,SAAS,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAEnD,MAAM,CAAC,MAAM,EACX,OAAO,EACP,oBAAoB,EACpB,WAAW,EACX,cAAc,EACd,MAAM,GACP,GAAG,SAAS,CAAC;AAEd,eAAe,SAAS,CAAC"}
@@ -17,7 +17,7 @@
17
17
  * @internal
18
18
  */
19
19
  export declare const PUPPETEER_REVISIONS: Readonly<{
20
- chromium: "1011831";
20
+ chromium: "1022525";
21
21
  firefox: "latest";
22
22
  }>;
23
23
  //# sourceMappingURL=revisions.d.ts.map
@@ -17,7 +17,7 @@
17
17
  * @internal
18
18
  */
19
19
  export const PUPPETEER_REVISIONS = Object.freeze({
20
- chromium: '1011831',
20
+ chromium: '1022525',
21
21
  firefox: 'latest',
22
22
  });
23
23
  //# sourceMappingURL=revisions.js.map
@@ -9,6 +9,7 @@ export * from './common/AriaQueryHandler.js';
9
9
  export * from './common/Browser.js';
10
10
  export * from './common/BrowserConnector.js';
11
11
  export * from './common/BrowserWebSocketTransport.js';
12
+ export * from './common/ChromeTargetManager.js';
12
13
  export * from './common/Connection.js';
13
14
  export * from './common/ConnectionTransport.js';
14
15
  export * from './common/ConsoleMessage.js';
@@ -23,6 +24,7 @@ export * from './common/Errors.js';
23
24
  export * from './common/EventEmitter.js';
24
25
  export * from './common/ExecutionContext.js';
25
26
  export * from './common/FileChooser.js';
27
+ export * from './common/FirefoxTargetManager.js';
26
28
  export * from './common/FrameManager.js';
27
29
  export * from './common/HTTPRequest.js';
28
30
  export * from './common/HTTPResponse.js';
@@ -40,6 +42,7 @@ export * from './common/PuppeteerViewport.js';
40
42
  export * from './common/QueryHandler.js';
41
43
  export * from './common/SecurityDetails.js';
42
44
  export * from './common/Target.js';
45
+ export * from './common/TargetManager.js';
43
46
  export * from './common/TaskQueue.js';
44
47
  export * from './common/TimeoutSettings.js';
45
48
  export * from './common/Tracing.js';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B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AC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,wBAAwB,CAAC"}
@@ -11,6 +11,7 @@ export * from './common/AriaQueryHandler.js';
11
11
  export * from './common/Browser.js';
12
12
  export * from './common/BrowserConnector.js';
13
13
  export * from './common/BrowserWebSocketTransport.js';
14
+ export * from './common/ChromeTargetManager.js';
14
15
  export * from './common/Connection.js';
15
16
  export * from './common/ConnectionTransport.js';
16
17
  export * from './common/ConsoleMessage.js';
@@ -25,6 +26,7 @@ export * from './common/Errors.js';
25
26
  export * from './common/EventEmitter.js';
26
27
  export * from './common/ExecutionContext.js';
27
28
  export * from './common/FileChooser.js';
29
+ export * from './common/FirefoxTargetManager.js';
28
30
  export * from './common/FrameManager.js';
29
31
  export * from './common/HTTPRequest.js';
30
32
  export * from './common/HTTPResponse.js';
@@ -42,6 +44,7 @@ export * from './common/PuppeteerViewport.js';
42
44
  export * from './common/QueryHandler.js';
43
45
  export * from './common/SecurityDetails.js';
44
46
  export * from './common/Target.js';
47
+ export * from './common/TargetManager.js';
45
48
  export * from './common/TaskQueue.js';
46
49
  export * from './common/TimeoutSettings.js';
47
50
  export * from './common/Tracing.js';
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAE3D,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAE/B,wBAAwB;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACt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,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AAEjC,sBAAsB;AACtB,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAE/B,2BAA2B;AAC3B,cAAc,wBAAwB,CAAC"}
@@ -168,11 +168,14 @@ export declare class Browser extends EventEmitter {
168
168
  /* Excluded from this release type: _create */
169
169
  /* Excluded from this release type: _targets */
170
170
  /* Excluded from this release type: __constructor */
171
+ /* Excluded from this release type: _attach */
172
+ /* Excluded from this release type: _detach */
171
173
  /**
172
174
  * The spawned browser process. Returns `null` if the browser instance was created with
173
175
  * {@link Puppeteer.connect}.
174
176
  */
175
177
  process(): ChildProcess | null;
178
+ /* Excluded from this release type: _targetManager */
176
179
  /* Excluded from this release type: _getIsPageTargetCallback */
177
180
  /**
178
181
  * Creates a new incognito browser context. This won't share cookies/cache with other
@@ -747,6 +750,8 @@ export declare interface CDPSessionOnMessageObject {
747
750
  */
748
751
  export declare type ChromeReleaseChannel = 'chrome' | 'chrome-beta' | 'chrome-canary' | 'chrome-dev';
749
752
 
753
+ /* Excluded from this release type: ChromeTargetManager */
754
+
750
755
  /**
751
756
  * Clears all registered handlers.
752
757
  *
@@ -815,6 +820,7 @@ export declare class Connection extends EventEmitter {
815
820
  /* Excluded from this release type: _rawSend */
816
821
  /* Excluded from this release type: onMessage */
817
822
  dispose(): void;
823
+ /* Excluded from this release type: isAutoAttached */
818
824
  /**
819
825
  * @param targetInfo - The target info
820
826
  * @returns The CDP session that is created
@@ -866,7 +872,6 @@ export declare interface ConnectOptions extends BrowserConnectOptions {
866
872
  browserWSEndpoint?: string;
867
873
  browserURL?: string;
868
874
  transport?: ConnectionTransport;
869
- product?: Product;
870
875
  }
871
876
 
872
877
  /* Excluded from this release type: _connectToBrowser */
@@ -1042,6 +1047,8 @@ export declare interface CoverageEntry {
1042
1047
 
1043
1048
  export declare const createBrowserFetcher: (options: BrowserFetcherOptions) => BrowserFetcher;
1044
1049
 
1050
+ /* Excluded from this release type: createDeferredPromiseWithTimer */
1051
+
1045
1052
  /* Excluded from this release type: createJSHandle */
1046
1053
 
1047
1054
  /* Excluded from this release type: createLauncher */
@@ -1135,6 +1142,8 @@ export declare const DEFAULT_INTERCEPT_RESOLUTION_PRIORITY = 0;
1135
1142
 
1136
1143
  export declare const defaultArgs: (options?: BrowserLaunchArgumentOptions) => string[];
1137
1144
 
1145
+ /* Excluded from this release type: DeferredPromise */
1146
+
1138
1147
  /**
1139
1148
  * Copyright 2017 Google Inc. All rights reserved.
1140
1149
  *
@@ -1910,6 +1919,8 @@ export declare class FileChooser {
1910
1919
 
1911
1920
  /* Excluded from this release type: FirefoxLauncher */
1912
1921
 
1922
+ /* Excluded from this release type: FirefoxTargetManager */
1923
+
1913
1924
  /**
1914
1925
  * @public
1915
1926
  */
@@ -1977,6 +1988,10 @@ export declare class Frame {
1977
1988
  /* Excluded from this release type: _childFrames */
1978
1989
  /* Excluded from this release type: __constructor */
1979
1990
  /* Excluded from this release type: _updateClient */
1991
+ /**
1992
+ * @returns a page associated with the frame.
1993
+ */
1994
+ page(): Page;
1980
1995
  /**
1981
1996
  * @remarks
1982
1997
  *
@@ -2905,6 +2920,10 @@ export declare class HTTPResponse {
2905
2920
  frame(): Frame | null;
2906
2921
  }
2907
2922
 
2923
+ /* Excluded from this release type: importDebug */
2924
+
2925
+ /* Excluded from this release type: importFS */
2926
+
2908
2927
  /* Excluded from this release type: initializePuppeteer */
2909
2928
 
2910
2929
  /**
@@ -3121,6 +3140,10 @@ export declare class HTTPResponse {
3121
3140
  * @remarks Useful during debugging.
3122
3141
  */
3123
3142
  toString(): string;
3143
+ /**
3144
+ * Provides access to [Protocol.Runtime.RemoteObject](https://chromedevtools.github.io/devtools-protocol/tot/Runtime/#type-RemoteObject) backing this JSHandle.
3145
+ */
3146
+ remoteObject(): Protocol.Runtime.RemoteObject;
3124
3147
  }
3125
3148
 
3126
3149
  /**
@@ -5152,7 +5175,7 @@ export declare class HTTPResponse {
5152
5175
  * visible, i.e. to not have `display: none` or `visibility: hidden` CSS
5153
5176
  * properties. Defaults to `false`.
5154
5177
  *
5155
- * - `hidden`: ait for element to not be found in the DOM or to be hidden,
5178
+ * - `hidden`: Wait for element to not be found in the DOM or to be hidden,
5156
5179
  * i.e. have `display: none` or `visibility: hidden` CSS properties. Defaults to
5157
5180
  * `false`.
5158
5181
  *
@@ -5704,6 +5727,8 @@ export declare class HTTPResponse {
5704
5727
  product: Product;
5705
5728
  }
5706
5729
 
5730
+ export { Protocol }
5731
+
5707
5732
  /**
5708
5733
  * ProtocolError is emitted whenever there is an error from the protocol.
5709
5734
  *
@@ -6212,10 +6237,12 @@ export declare class HTTPResponse {
6212
6237
  /* Excluded from this release type: _targetId */
6213
6238
  /* Excluded from this release type: _isPageTargetCallback */
6214
6239
  /* Excluded from this release type: __constructor */
6240
+ /* Excluded from this release type: _session */
6215
6241
  /**
6216
6242
  * Creates a Chrome Devtools Protocol session attached to the target.
6217
6243
  */
6218
6244
  createCDPSession(): Promise<CDPSession>;
6245
+ /* Excluded from this release type: _targetManager */
6219
6246
  /* Excluded from this release type: _getTargetInfo */
6220
6247
  /**
6221
6248
  * If the target is not of type `"page"` or `"background_page"`, returns `null`.
@@ -6249,11 +6276,19 @@ export declare class HTTPResponse {
6249
6276
  /* Excluded from this release type: _targetInfoChanged */
6250
6277
  }
6251
6278
 
6279
+ /* Excluded from this release type: TargetFactory */
6280
+
6252
6281
  /**
6253
6282
  * @public
6254
6283
  */
6255
6284
  export declare type TargetFilterCallback = (target: Protocol.Target.TargetInfo) => boolean;
6256
6285
 
6286
+ /* Excluded from this release type: TargetInterceptor */
6287
+
6288
+ /* Excluded from this release type: TargetManager */
6289
+
6290
+ /* Excluded from this release type: TargetManagerEmittedEvents */
6291
+
6257
6292
  /* Excluded from this release type: TaskQueue */
6258
6293
 
6259
6294
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puppeteer",
3
- "version": "15.3.1",
3
+ "version": "16.0.0",
4
4
  "description": "A high-level API to control headless Chrome over the DevTools Protocol",
5
5
  "keywords": [
6
6
  "puppeteer",
@@ -27,7 +27,7 @@
27
27
  "node": ">=14.1.0"
28
28
  },
29
29
  "scripts": {
30
- "test": "c8 --check-coverage --lines 94 run-s test:chrome test:chrome:* test:firefox",
30
+ "test": "c8 --check-coverage --lines 93 run-s test:chrome test:chrome:* test:firefox",
31
31
  "test:types": "tsd",
32
32
  "test:install": "scripts/test-install.sh",
33
33
  "test:firefox": "cross-env PUPPETEER_PRODUCT=firefox MOZ_WEBRENDER=0 mocha",
@@ -49,7 +49,7 @@
49
49
  "docs": "run-s build generate:markdown",
50
50
  "debug": "npm run build && mocha --inspect-brk",
51
51
  "commitlint": "commitlint --from=HEAD~1",
52
- "clean": "rimraf lib",
52
+ "clean": "rimraf lib && rimraf test/build",
53
53
  "check": "run-p check:*",
54
54
  "check:protocol-revision": "ts-node -s scripts/ensure-correct-devtools-protocol-package",
55
55
  "check:pinned-deps": "ts-node -s scripts/ensure-pinned-deps",
@@ -62,14 +62,15 @@
62
62
  "files": [
63
63
  "lib",
64
64
  "install.js",
65
- "typescript-if-required.js"
65
+ "typescript-if-required.js",
66
+ "!**/*.tsbuildinfo"
66
67
  ],
67
68
  "author": "The Chromium Authors",
68
69
  "license": "Apache-2.0",
69
70
  "dependencies": {
70
71
  "cross-fetch": "3.1.5",
71
72
  "debug": "4.3.4",
72
- "devtools-protocol": "0.0.1011705",
73
+ "devtools-protocol": "0.0.1019158",
73
74
  "extract-zip": "2.0.1",
74
75
  "https-proxy-agent": "5.0.1",
75
76
  "pkg-dir": "4.2.0",
@@ -78,7 +79,7 @@
78
79
  "rimraf": "3.0.2",
79
80
  "tar-fs": "2.1.1",
80
81
  "unbzip2-stream": "1.4.3",
81
- "ws": "8.8.0"
82
+ "ws": "8.8.1"
82
83
  },
83
84
  "devDependencies": {
84
85
  "@commitlint/cli": "17.0.1",
@@ -0,0 +1,64 @@
1
+ # Styling Components
2
+
3
+ Components are styled by a CSS file that is co-located next to the TypeScript source file. The only difference in file name is the extension and that for CSS files, the first letter is lowercase:
4
+
5
+ ```
6
+ - ElementsBreadcrumbs.ts
7
+ - elementsBreadcrumbs.css
8
+ ```
9
+
10
+ To import this file you use a regular `import` statement, and import the filename with `.js` appended:
11
+
12
+ ```ts
13
+ import elementsBreadcrumbsStyles from './elementsBreadcrumbs.css.js';
14
+ ```
15
+
16
+ As part of the build tool step, each CSS file is converted into a JS file that exports a `CSSStyleSheet` instance. This is done by Rollup in [`generate_css_js_files`](https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/scripts/build/generate_css_js_files.js;l=1;drc=28af9fbe783d82aa64bfa5f9b9509572dc2b3efe).
17
+
18
+ ## `BUILD.gn` changes
19
+
20
+ Use the `generate_css` action (`scripts/build/ninja/generate_css.gni`) to declare stylesheets:
21
+
22
+ ```gn
23
+ import("scripts/build/ninja/generate_css.gni") // Edit path correctly: this must be relative
24
+
25
+ generate_css("css_files") {
26
+ sources = [ "elementsBreadcrumbs.css"]
27
+ }
28
+ ```
29
+
30
+ And then add `:css_files` as a dependency to the `devtools_entrypoint`:
31
+
32
+ ```gn
33
+ devtools_entrypoint("bundle") {
34
+ deps = [ ":css_files" , "..."]
35
+ }
36
+ ```
37
+
38
+ ## Adopting the stylesheet
39
+
40
+ Importing the stylesheet is not enough to have it apply to the component's ShadowDOM, it must be adopted. The `connectedCallback` method is the best place for this:
41
+
42
+ ```ts
43
+ connectedCallback() {
44
+ this.#shadow.adoptedStyleSheets = [elementsBreadcrumbs];
45
+ }
46
+ ```
47
+
48
+ ## Tips for writing CSS.
49
+
50
+ Use `:host` to style the component itself. By default elements are `display: inline`. Often it can be useful to set `display: block`.
51
+
52
+ Remember to use theme colors (`var(--color-text-primary)`) when styling elements to ensure consistency across DevTools.
53
+
54
+ If you want your component to have its colors configurable by users, consider defining `--override` variables. In your component's CSS, you would have something like:
55
+
56
+ ```css
57
+ :host {
58
+ color: var(--override-custom-color, var(--color-text-primary));
59
+ }
60
+ ```
61
+
62
+ This allows someone to define that `--override-custom-color` variable, but also ensures if it isn't defined that the default `color-text-primary` will be used. **Be careful with this!** We try to ensure consistent colors across DevTools; so most of the time you shouldn't allow configurable colors and should use the correct theme variables.
63
+
64
+
@@ -160,12 +160,11 @@ export class LinearMemoryInspector extends HTMLElement {
160
160
  throw new Error('Memory offset has to be greater or equal to zero.');
161
161
  }
162
162
 
163
- if (data.highlightInfo !== undefined) {
163
+ if (data.highlightInfo) {
164
164
  if (data.highlightInfo.size < 0) {
165
165
  throw new Error('Object size has to be greater than or equal to zero');
166
166
  }
167
- if (data.highlightInfo.startAddress > data.memoryOffset + data.memory.length ||
168
- data.highlightInfo.startAddress < 0) {
167
+ if (data.highlightInfo.startAddress < 0 || data.highlightInfo.startAddress >= data.outerMemoryLength) {
169
168
  throw new Error('Object start address is out of bounds.');
170
169
  }
171
170
  }
@@ -164,6 +164,21 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
164
164
  return await memoryWrapper.getRange(start, chunkEnd);
165
165
  }
166
166
 
167
+ async evaluateExpression(callFrame: SDK.DebuggerModel.CallFrame, expressionName: string):
168
+ Promise<SDK.RemoteObject.RemoteObject|undefined> {
169
+ const result = await callFrame.evaluate({expression: expressionName});
170
+ if ('error' in result) {
171
+ console.error(`Tried to evaluate the expression '${expressionName}' but got an error: ${result.error}`);
172
+ return undefined;
173
+ }
174
+ if ('exceptionDetails' in result && result?.exceptionDetails?.text) {
175
+ console.error(
176
+ `Tried to evaluate the expression '${expressionName}' but got an exception: ${result.exceptionDetails.text}`);
177
+ return undefined;
178
+ }
179
+ return result.object;
180
+ }
181
+
167
182
  saveSettings(data: Settings): void {
168
183
  const valueTypes = Array.from(data.valueTypes);
169
184
  const modes = [...data.modes];
@@ -233,14 +248,15 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
233
248
  // This function returns the size of the source language value represented
234
249
  // by the ValueNode. If the value is a pointer, the function returns the size of
235
250
  // the pointed-to value. If the pointed-to value is also a pointer, it returns
236
- // the size of the pointer (usually 4 bytes) to stay consistent with the DWARF extension.
251
+ // the size of the pointer (usually 4 bytes). This is the convention taken
252
+ // by the DWARF extension.
237
253
  // > double x = 42.0;
238
254
  // > double *ptr = &x;
239
255
  // > double **dblptr = &ptr;
240
256
  //
241
257
  // retrieveObjectSize(ptr_ValueNode) -> 8, the size of a double
242
258
  // retrieveObjectSize(dblptr_ValueNode) -> 4, the size of a pointer
243
- static retrieveObjectSize(obj: Bindings.DebuggerLanguagePlugins.ValueNode): number {
259
+ static extractObjectSize(obj: Bindings.DebuggerLanguagePlugins.ValueNode): number {
244
260
  let typeInfo = obj.sourceType.typeInfo;
245
261
  const pointerMembers = typeInfo.members.filter(member => member.name === '*');
246
262
  if (pointerMembers.length === 1) {
@@ -257,7 +273,34 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
257
273
  return typeInfo.size;
258
274
  }
259
275
 
260
- async openInspectorView(obj: SDK.RemoteObject.RemoteObject, address?: number): Promise<void> {
276
+ // The object type description corresponds to the type of the highlighted memory
277
+ // that the user sees in the memory inspector. For pointers, we highlight the pointed to object.
278
+ //
279
+ // Example: The variable `x` has the type `int *`. Assume that `x` points to the value 3.
280
+ // -> The memory inspector will jump to the address where 3 is stored.
281
+ // -> The memory inspector will highlight the bytes that represent the 3.
282
+ // -> The object type description of what we show will thus be `int` and not `int *`.
283
+ static extractObjectTypeDescription(obj: Bindings.DebuggerLanguagePlugins.ValueNode): string {
284
+ const objType = obj.description;
285
+ if (!objType) {
286
+ return '';
287
+ }
288
+ const lastChar = objType.charAt(objType.length - 1);
289
+ const secondToLastChar = objType.charAt(objType.length - 2);
290
+ const isPointerType = lastChar === '*' || lastChar === '&';
291
+ const isOneLevelPointer = secondToLastChar === ' ';
292
+ if (!isPointerType) {
293
+ return objType;
294
+ }
295
+ if (isOneLevelPointer) {
296
+ // For example, 'int *'and 'int &' become 'int'.
297
+ return objType.slice(0, objType.length - 2);
298
+ }
299
+ // For example, 'int **' becomes 'int *'.
300
+ return objType.slice(0, objType.length - 1);
301
+ }
302
+
303
+ async openInspectorView(obj: SDK.RemoteObject.RemoteObject, address?: number, expression?: string): Promise<void> {
261
304
  const response = await LinearMemoryInspectorController.retrieveDWARFMemoryObjectAndAddress(obj);
262
305
  let memoryObj = obj;
263
306
  let memoryAddress = address;
@@ -288,8 +331,8 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
288
331
  }
289
332
  const memoryProperty = internalProperties?.find(({name}) => name === '[[WebAssemblyMemory]]');
290
333
  const memory = memoryProperty?.value;
291
- const highlightInfo = LinearMemoryInspectorController.extractHighlightInfo(obj, memoryAddress);
292
- if (highlightInfo !== undefined) {
334
+ const highlightInfo = LinearMemoryInspectorController.extractHighlightInfo(obj, expression);
335
+ if (highlightInfo) {
293
336
  this.#setHighlightInfo(id, highlightInfo);
294
337
  } else {
295
338
  this.#resetHighlightInfo(id);
@@ -308,17 +351,21 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
308
351
  void UI.ViewManager.ViewManager.instance().showView('linear-memory-inspector');
309
352
  }
310
353
 
311
- static extractHighlightInfo(obj: SDK.RemoteObject.RemoteObject, memoryAddress?: number): HighlightInfo|undefined {
354
+ static extractHighlightInfo(obj: SDK.RemoteObject.RemoteObject, expression?: string): HighlightInfo|undefined {
355
+ if (!(obj instanceof Bindings.DebuggerLanguagePlugins.ValueNode)) {
356
+ return undefined;
357
+ }
358
+
312
359
  let highlightInfo;
313
- if (obj instanceof Bindings.DebuggerLanguagePlugins.ValueNode) {
314
- try {
315
- highlightInfo = {
316
- startAddress: memoryAddress || 0,
317
- size: LinearMemoryInspectorController.retrieveObjectSize(obj),
318
- };
319
- } catch (err) {
320
- highlightInfo = undefined;
321
- }
360
+ try {
361
+ highlightInfo = {
362
+ startAddress: obj.inspectableAddress || 0,
363
+ size: LinearMemoryInspectorController.extractObjectSize(obj),
364
+ name: expression,
365
+ type: LinearMemoryInspectorController.extractObjectTypeDescription(obj),
366
+ };
367
+ } catch (err) {
368
+ highlightInfo = undefined;
322
369
  }
323
370
  return highlightInfo;
324
371
  }
@@ -337,8 +384,16 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
337
384
  const debuggerModel = event.data;
338
385
  for (const [bufferId, remoteObject] of this.#bufferIdToRemoteObject) {
339
386
  if (debuggerModel.runtimeModel() === remoteObject.runtimeModel()) {
340
- this.#resetHighlightInfo(bufferId);
341
- this.#paneInstance.refreshView(bufferId);
387
+ const topCallFrame = debuggerModel.debuggerPausedDetails()?.callFrames[0];
388
+ if (topCallFrame) {
389
+ void this
390
+ .updateHighlightedMemory(bufferId, topCallFrame)
391
+ // Need to call refreshView in the callback to trigger re-render.
392
+ .then(() => this.#paneInstance.refreshView(bufferId));
393
+ } else {
394
+ this.#resetHighlightInfo(bufferId);
395
+ this.#paneInstance.refreshView(bufferId);
396
+ }
342
397
  }
343
398
  }
344
399
  }
@@ -355,4 +410,29 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
355
410
  this.#bufferIdToRemoteObject.delete(bufferId);
356
411
  this.#resetHighlightInfo(bufferId);
357
412
  }
413
+
414
+ async updateHighlightedMemory(bufferId: string, callFrame: SDK.DebuggerModel.CallFrame): Promise<void> {
415
+ const oldHighlightInfo = this.getHighlightInfo(bufferId);
416
+ const expressionName = oldHighlightInfo?.name;
417
+ if (!oldHighlightInfo || !expressionName) {
418
+ this.#resetHighlightInfo(bufferId);
419
+ return;
420
+ }
421
+ const obj = await this.evaluateExpression(callFrame, expressionName);
422
+ if (!obj) {
423
+ this.#resetHighlightInfo(bufferId);
424
+ return;
425
+ }
426
+
427
+ const newHighlightInfo = LinearMemoryInspectorController.extractHighlightInfo(obj, expressionName);
428
+ if (!newHighlightInfo || !this.#pointToSameMemoryObject(newHighlightInfo, oldHighlightInfo)) {
429
+ this.#resetHighlightInfo(bufferId);
430
+ } else {
431
+ this.#setHighlightInfo(bufferId, newHighlightInfo);
432
+ }
433
+ }
434
+
435
+ #pointToSameMemoryObject(highlightInfoA: HighlightInfo, highlightInfoB: HighlightInfo): boolean {
436
+ return highlightInfoA.type === highlightInfoB.type && highlightInfoA.startAddress === highlightInfoB.startAddress;
437
+ }
358
438
  }
@@ -226,7 +226,7 @@ class LinearMemoryInspectorView extends UI.Widget.VBox {
226
226
  const highlightInfo = LinearMemoryInspectorController.instance().getHighlightInfo(this.#tabId);
227
227
  if (highlightInfo !== undefined) {
228
228
  if (highlightInfo.startAddress < 0 || highlightInfo.startAddress >= this.#memoryWrapper.length()) {
229
- throw new Error('Highlight info start address is out of bounds.');
229
+ throw new Error('HighlightInfo start address is out of bounds.');
230
230
  }
231
231
  if (highlightInfo.size <= 0) {
232
232
  throw new Error('Highlight size must be a positive number.');
@@ -5,4 +5,8 @@
5
5
  export interface HighlightInfo {
6
6
  startAddress: number;
7
7
  size: number;
8
+ // If the inspector is opened from a different UI location
9
+ // than the scope view, we don't have guaranteed access to the name.
10
+ name?: string;
11
+ type: string;
8
12
  }
@@ -105,7 +105,7 @@ const initialDescriptors = new Map<string, Descriptor>([
105
105
  ['smallicon-checkmark-behind', {position: 'd6', spritesheet: 'smallicons', isMask: true}],
106
106
  ['smallicon-command-result', {position: 'a4', spritesheet: 'smallicons'}],
107
107
  ['smallicon-contrast-ratio', {position: 'a6', spritesheet: 'smallicons', isMask: true}],
108
- ['smallicon-cross', {position: 'b4', spritesheet: 'smallicons'}],
108
+ ['smallicon-cross', {position: 'b4', spritesheet: 'smallicons', isMask: true}],
109
109
  ['smallicon-device', {position: 'c5', spritesheet: 'smallicons'}],
110
110
  ['smallicon-error', {position: 'c4', spritesheet: 'smallicons'}],
111
111
  ['smallicon-expand-less', {position: 'f5', spritesheet: 'smallicons', isMask: true}],
@@ -386,16 +386,17 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
386
386
 
387
387
  static createPropertyValueWithCustomSupport(
388
388
  value: SDK.RemoteObject.RemoteObject, wasThrown: boolean, showPreview: boolean, parentElement?: Element,
389
- linkifier?: Components.Linkifier.Linkifier): ObjectPropertyValue {
389
+ linkifier?: Components.Linkifier.Linkifier, variableName?: string): ObjectPropertyValue {
390
390
  if (value.customPreview()) {
391
391
  const result = (new CustomPreviewComponent(value)).element;
392
392
  result.classList.add('object-properties-section-custom-section');
393
393
  return new ObjectPropertyValue(result);
394
394
  }
395
- return ObjectPropertiesSection.createPropertyValue(value, wasThrown, showPreview, parentElement, linkifier);
395
+ return ObjectPropertiesSection.createPropertyValue(
396
+ value, wasThrown, showPreview, parentElement, linkifier, variableName);
396
397
  }
397
398
 
398
- static appendMemoryIcon(element: Element, obj: SDK.RemoteObject.RemoteObject): void {
399
+ static appendMemoryIcon(element: Element, obj: SDK.RemoteObject.RemoteObject, variableName?: string): void {
399
400
  // We show the memory icon only on ArrayBuffer, WebAssembly.Memory and DWARF memory instances.
400
401
  // TypedArrays DataViews are also supported, but showing the icon next to their
401
402
  // previews is quite a significant visual overhead, and users can easily get to
@@ -418,7 +419,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
418
419
  const controller =
419
420
  LinearMemoryInspector.LinearMemoryInspectorController.LinearMemoryInspectorController.instance();
420
421
  Host.userMetrics.linearMemoryInspectorRevealedFrom(Host.UserMetrics.LinearMemoryInspectorRevealedFrom.MemoryIcon);
421
- void controller.openInspectorView(obj);
422
+ void controller.openInspectorView(obj, undefined /* address */, variableName);
422
423
  };
423
424
 
424
425
  UI.Tooltip.Tooltip.install(memoryIcon, 'Reveal in Memory Inspector panel');
@@ -428,7 +429,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
428
429
 
429
430
  static createPropertyValue(
430
431
  value: SDK.RemoteObject.RemoteObject, wasThrown: boolean, showPreview: boolean, parentElement?: Element,
431
- linkifier?: Components.Linkifier.Linkifier): ObjectPropertyValue {
432
+ linkifier?: Components.Linkifier.Linkifier, variableName?: string): ObjectPropertyValue {
432
433
  let propertyValue;
433
434
  const type = value.type;
434
435
  const subtype = value.subtype;
@@ -464,7 +465,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
464
465
  propertyValue.element.textContent = description;
465
466
  UI.Tooltip.Tooltip.install(propertyValue.element as HTMLElement, description);
466
467
  }
467
- this.appendMemoryIcon(valueElement, value);
468
+ this.appendMemoryIcon(valueElement, value, variableName);
468
469
  }
469
470
 
470
471
  if (wasThrown) {
@@ -1090,7 +1091,8 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
1090
1091
  } else if (this.property.value) {
1091
1092
  const showPreview = this.property.name !== '[[Prototype]]';
1092
1093
  this.propertyValue = ObjectPropertiesSection.createPropertyValueWithCustomSupport(
1093
- this.property.value, this.property.wasThrown, showPreview, this.listItemElement, this.linkifier);
1094
+ this.property.value, this.property.wasThrown, showPreview, this.listItemElement, this.linkifier,
1095
+ this.path() /* variableName */);
1094
1096
  this.valueElement = (this.propertyValue.element as HTMLElement);
1095
1097
  } else if (this.property.getter) {
1096
1098
  this.valueElement = document.createElement('span');