chrome-devtools-frontend 1.0.1578729 → 1.0.1581449

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 (314) hide show
  1. package/agents/prompts/creating-a-model.md +51 -0
  2. package/docs/cookbook/devtools_on_devtools.md +2 -2
  3. package/docs/feature-specs/elements-gutter-decorators.md +40 -0
  4. package/docs/feature-specs/elements-tree-edit-html.md +14 -0
  5. package/docs/feature-specs/elements-tree-node-title.md +46 -0
  6. package/docs/feature-specs/elements-tree-selection-and-hover.md +31 -0
  7. package/docs/feature-specs/images/elements-gutter-decorators-multiple.png +0 -0
  8. package/docs/get_the_code.md +3 -3
  9. package/front_end/core/host/UserMetrics.ts +3 -7
  10. package/front_end/core/root/Runtime.ts +0 -1
  11. package/front_end/core/sdk/NetworkManager.ts +0 -35
  12. package/front_end/core/sdk/OverlayModel.ts +10 -0
  13. package/front_end/devtools_compatibility.js +4 -0
  14. package/front_end/entrypoints/devtools_app/devtools_app.ts +1 -0
  15. package/front_end/entrypoints/greendev_floaty/FloatyEntrypoint.ts +530 -0
  16. package/front_end/entrypoints/greendev_floaty/floaty.css +258 -0
  17. package/front_end/entrypoints/greendev_floaty/floaty.html +31 -0
  18. package/front_end/entrypoints/greendev_floaty/greendev_floaty.ts +422 -0
  19. package/front_end/entrypoints/inspector_main/InspectorMain.ts +0 -38
  20. package/front_end/generated/ARIAProperties.js +0 -6
  21. package/front_end/generated/InspectorBackendCommands.ts +10 -4
  22. package/front_end/generated/SupportedCSSProperties.js +39 -31
  23. package/front_end/generated/protocol-mapping.d.ts +12 -0
  24. package/front_end/generated/protocol-proxy-api.d.ts +12 -0
  25. package/front_end/generated/protocol.ts +57 -2
  26. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.snapshot.txt +32 -2
  27. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +110 -6
  28. package/front_end/models/computed_style/computed_style.ts +9 -0
  29. package/front_end/models/issues_manager/CorsIssue.ts +11 -14
  30. package/front_end/models/javascript_metadata/NativeFunctions.js +4 -0
  31. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +33 -4
  32. package/front_end/panels/ai_assistance/components/ChatInput.ts +52 -19
  33. package/front_end/panels/ai_assistance/components/ChatMessage.ts +7 -4
  34. package/front_end/panels/ai_assistance/components/ChatView.ts +4 -0
  35. package/front_end/panels/ai_assistance/components/chatInput.css +10 -3
  36. package/front_end/panels/application/DeviceBoundSessionsView.ts +51 -76
  37. package/front_end/panels/changes/changesSidebar.css +5 -0
  38. package/front_end/panels/common/AiCodeGenerationTeaser.ts +2 -2
  39. package/front_end/panels/common/AiCodeGenerationUpgradeDialog.ts +4 -4
  40. package/front_end/panels/common/ExtensionPanel.ts +4 -0
  41. package/front_end/panels/common/FreDialog.ts +4 -0
  42. package/front_end/panels/coverage/CoverageListView.ts +18 -3
  43. package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +89 -0
  44. package/front_end/panels/elements/ComputedStyleWidget.ts +12 -8
  45. package/front_end/panels/elements/ElementsPanel.ts +4 -3
  46. package/front_end/panels/elements/ElementsSidebarPane.ts +11 -8
  47. package/front_end/panels/elements/ElementsTreeElement.ts +92 -121
  48. package/front_end/panels/elements/ElementsTreeOutline.ts +26 -15
  49. package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
  50. package/front_end/panels/elements/PlatformFontsWidget.ts +7 -5
  51. package/front_end/panels/elements/PropertiesWidget.ts +3 -6
  52. package/front_end/panels/elements/StylesSidebarPane.ts +4 -3
  53. package/front_end/panels/elements/elements.ts +4 -3
  54. package/front_end/panels/elements/elementsTreeOutline.css +16 -5
  55. package/front_end/panels/greendev/GreenDevPanel.css +241 -0
  56. package/front_end/panels/greendev/GreenDevPanel.ts +308 -0
  57. package/front_end/panels/greendev/GreenDevShared.ts +13 -0
  58. package/front_end/panels/greendev/greendev-meta.ts +52 -0
  59. package/front_end/panels/greendev/greendev.ts +9 -0
  60. package/front_end/panels/issues/CorsIssueDetailsView.ts +4 -4
  61. package/front_end/panels/lighthouse/LighthouseStartView.ts +1 -1
  62. package/front_end/panels/lighthouse/lighthouseStartView.css +6 -0
  63. package/front_end/panels/network/NetworkLogView.ts +2 -5
  64. package/front_end/panels/security/SecurityPanel.ts +0 -4
  65. package/front_end/panels/security/SecurityPanelSidebar.ts +2 -42
  66. package/front_end/panels/security/security-meta.ts +2 -14
  67. package/front_end/panels/security/security.ts +0 -4
  68. package/front_end/panels/settings/EditFileSystemView.ts +8 -8
  69. package/front_end/panels/settings/SettingsScreen.ts +4 -4
  70. package/front_end/panels/sources/SourcesSearchScope.ts +2 -1
  71. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +47 -26
  72. package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +121 -39
  73. package/front_end/panels/timeline/overlays/components/timespanBreakdownOverlay.css +106 -101
  74. package/front_end/third_party/chromium/README.chromium +1 -1
  75. package/front_end/third_party/puppeteer/README.chromium +2 -2
  76. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +35 -0
  77. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
  78. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +19 -0
  79. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
  80. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +16 -1
  81. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
  82. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
  83. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts +1 -1
  84. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +1 -1
  85. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +21 -0
  86. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
  87. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +6 -0
  88. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
  89. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.d.ts +13 -1
  90. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.d.ts.map +1 -1
  91. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.js +56 -36
  92. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.js.map +1 -1
  93. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts +2 -2
  94. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
  95. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +32 -8
  96. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
  97. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +5 -1
  98. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
  99. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +32 -2
  100. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
  101. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts +3 -2
  102. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
  103. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +20 -0
  104. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
  105. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +2 -1
  106. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
  107. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +25 -8
  108. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
  109. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.d.ts +2 -0
  110. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.d.ts.map +1 -1
  111. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js +23 -0
  112. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js.map +1 -1
  113. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +3 -2
  114. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  115. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +10 -6
  116. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  117. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
  118. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.js +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.js.map +1 -1
  120. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts +29 -0
  121. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
  122. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +46 -6
  123. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
  124. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +5 -1
  125. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
  126. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +18 -0
  127. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js +2 -2
  129. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js.map +1 -1
  130. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
  131. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js +13 -1
  132. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
  133. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/JSHandle.js +2 -2
  134. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/JSHandle.js.map +1 -1
  135. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +7 -2
  136. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
  137. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +43 -7
  138. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
  139. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.d.ts +10 -1
  140. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.d.ts.map +1 -1
  141. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.js +34 -4
  142. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.js.map +1 -1
  143. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Cookie.d.ts +1 -1
  144. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Cookie.d.ts.map +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts +1 -1
  146. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts.map +1 -1
  147. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js +1 -1
  148. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js.map +1 -1
  149. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.js +1 -1
  150. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.js.map +1 -1
  151. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  152. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  153. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +1 -0
  154. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
  155. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  156. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +2 -0
  157. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
  158. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +4 -0
  159. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  160. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
  161. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js +2 -2
  162. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js.map +1 -1
  163. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
  164. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
  165. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  166. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  167. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  168. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +129 -3
  169. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +233 -65
  170. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +35 -0
  171. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
  172. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +19 -0
  173. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
  174. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +16 -1
  175. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
  176. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
  177. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts +1 -1
  178. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +1 -1
  179. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +21 -0
  180. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
  181. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +6 -0
  182. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
  183. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.d.ts +13 -1
  184. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.d.ts.map +1 -1
  185. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.js +56 -36
  186. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.js.map +1 -1
  187. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts +2 -2
  188. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
  189. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +30 -6
  190. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
  191. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +5 -1
  192. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
  193. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +32 -2
  194. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
  195. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts +3 -2
  196. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
  197. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +20 -0
  198. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
  199. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +2 -1
  200. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
  201. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +25 -8
  202. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
  203. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.d.ts +2 -0
  204. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.d.ts.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js +23 -0
  206. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js.map +1 -1
  207. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +3 -2
  208. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  209. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +10 -6
  210. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  211. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
  212. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.js +1 -1
  213. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.js.map +1 -1
  214. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts +29 -0
  215. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
  216. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +46 -6
  217. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
  218. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +5 -1
  219. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
  220. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +19 -1
  221. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
  222. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js +3 -3
  223. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js.map +1 -1
  224. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
  225. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js +14 -2
  226. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
  227. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/JSHandle.js +3 -3
  228. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/JSHandle.js.map +1 -1
  229. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +7 -2
  230. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
  231. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +43 -8
  232. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
  233. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.d.ts +10 -1
  234. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.d.ts.map +1 -1
  235. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.js +31 -3
  236. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.js.map +1 -1
  237. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Cookie.d.ts +1 -1
  238. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Cookie.d.ts.map +1 -1
  239. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts +1 -1
  240. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts.map +1 -1
  241. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js +1 -1
  242. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js.map +1 -1
  243. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.js +1 -1
  244. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.js.map +1 -1
  245. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  246. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +1 -0
  247. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
  248. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  249. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +2 -0
  250. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
  251. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +4 -0
  252. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  253. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
  254. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js +2 -2
  255. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js.map +1 -1
  256. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
  257. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
  258. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  259. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  260. package/front_end/third_party/puppeteer/package/lib/types.d.ts +129 -3
  261. package/front_end/third_party/puppeteer/package/package.json +4 -4
  262. package/front_end/third_party/puppeteer/package/src/api/Browser.ts +46 -0
  263. package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +21 -0
  264. package/front_end/third_party/puppeteer/package/src/api/Frame.ts +1 -1
  265. package/front_end/third_party/puppeteer/package/src/api/Page.ts +23 -0
  266. package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +88 -56
  267. package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +33 -8
  268. package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +61 -3
  269. package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +23 -2
  270. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +29 -8
  271. package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +30 -0
  272. package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -2
  273. package/front_end/third_party/puppeteer/package/src/bidi/core/UserContext.ts +1 -0
  274. package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +85 -8
  275. package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +36 -1
  276. package/front_end/third_party/puppeteer/package/src/cdp/ExecutionContext.ts +5 -5
  277. package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +23 -2
  278. package/front_end/third_party/puppeteer/package/src/cdp/JSHandle.ts +3 -3
  279. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +60 -8
  280. package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +36 -3
  281. package/front_end/third_party/puppeteer/package/src/common/Cookie.ts +1 -1
  282. package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
  283. package/front_end/third_party/puppeteer/package/src/injected/XPathQuerySelector.ts +1 -1
  284. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +1 -0
  285. package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +2 -0
  286. package/front_end/third_party/puppeteer/package/src/node/LaunchOptions.ts +4 -0
  287. package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +8 -6
  288. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  289. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  290. package/front_end/ui/components/text_editor/AutocompleteHistory.ts +2 -1
  291. package/front_end/ui/components/text_editor/TextEditorHistory.ts +1 -1
  292. package/front_end/ui/legacy/InplaceEditor.ts +1 -1
  293. package/front_end/ui/legacy/SearchableView.ts +5 -2
  294. package/front_end/ui/legacy/Widget.ts +15 -0
  295. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +6 -0
  296. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +50 -1
  297. package/front_end/ui/legacy/components/data_grid/SortableDataGrid.ts +59 -9
  298. package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +2 -1
  299. package/front_end/ui/legacy/components/data_grid/data_grid.ts +1 -0
  300. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +28 -15
  301. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +2 -2
  302. package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +3 -3
  303. package/front_end/ui/legacy/components/source_frame/JSONView.ts +2 -3
  304. package/front_end/ui/visual_logging/Debugging.ts +1 -1
  305. package/front_end/ui/visual_logging/KnownContextValues.ts +13 -0
  306. package/mcp/mcp.ts +1 -0
  307. package/package.json +1 -1
  308. package/front_end/panels/security/CookieControlsTreeElement.ts +0 -21
  309. package/front_end/panels/security/CookieControlsView.ts +0 -447
  310. package/front_end/panels/security/CookieReportTreeElement.ts +0 -21
  311. package/front_end/panels/security/CookieReportView.ts +0 -549
  312. package/front_end/panels/security/cookieControlsView.css +0 -139
  313. package/front_end/panels/security/cookieReportView.css +0 -90
  314. /package/front_end/{panels/elements → models/computed_style}/ComputedStyleModel.ts +0 -0
@@ -249,11 +249,11 @@ export class PuppeteerNode extends Puppeteer {
249
249
  },
250
250
  ];
251
251
  // Resolve current buildIds.
252
- for (const item of puppeteerBrowsers) {
252
+ await Promise.all(puppeteerBrowsers.map(async (item) => {
253
253
  const tag = this.configuration?.[item.product]?.version ??
254
254
  PUPPETEER_REVISIONS[item.product];
255
255
  item.currentBuildId = await resolveBuildId(item.browser, platform, tag);
256
- }
256
+ }));
257
257
  const currentBrowserBuilds = new Set(puppeteerBrowsers.map(browser => {
258
258
  return `${browser.browser}_${browser.currentBuildId}`;
259
259
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"PuppeteerNode.js","sourceRoot":"","sources":["../../../../src/node/PuppeteerNode.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,OAAO,IAAI,yBAAyB,EACpC,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,SAAS,GACV,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAA+B,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAE/E,OAAO,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAGpD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAGrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,SAAS,CAAmB;IAC5B,oBAAoB,CAAoB;IAExC;;OAEG;IACH,sBAAsB,CAAS;IAE/B;;OAEG;IACH,aAAa,GAAkB,EAAE,CAAC;IAElC;;OAEG;IACH,YACE,QAE2B;QAE3B,MAAM,EAAC,aAAa,EAAE,GAAG,cAAc,EAAC,GAAG,QAAQ,CAAC;QACpD,KAAK,CAAC,cAAc,CAAC,CAAC;QACtB,IAAI,aAAa,EAAE,CAAC;YAClB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACrC,CAAC;QACD,QAAQ,IAAI,CAAC,aAAa,CAAC,cAAc,EAAE,CAAC;YAC1C,KAAK,SAAS;gBACZ,IAAI,CAAC,sBAAsB,GAAG,mBAAmB,CAAC,OAAO,CAAC;gBAC1D,MAAM;YACR;gBACE,IAAI,CAAC,aAAa,CAAC,cAAc,GAAG,QAAQ,CAAC;gBAC7C,IAAI,CAAC,sBAAsB,GAAG,mBAAmB,CAAC,MAAM,CAAC;gBACzD,MAAM;QACV,CAAC;QAED,IAAI,CA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IAAI,GAAG,CAC7B,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YAC9B,OAAO,OAAO,CAAC,OAAO,CAAC;QACzB,CAAC,CAAC,CACH,CAAC;QAEF,KAAK,MAAM,gBAAgB,IAAI,iBAAiB,EAAE,CAAC;YACjD,kEAAkE;YAClE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;gBACnD,SAAS;YACX,CAAC;YACD,qEAAqE;YACrE,IACE,oBAAoB,CAAC,GAAG,CACtB,GAAG,gBAAgB,CAAC,OAAO,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAC1D,EACD,CAAC;gBACD,SAAS;YACX,CAAC;YAED,MAAM,SAAS,CAAC;gBACd,OAAO,EAAE,gBAAgB,CAAC,OAAO;gBACjC,QAAQ;gBACR,QAAQ;gBACR,OAAO,EAAE,gBAAgB,CAAC,OAAO;aAClC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF"}
@@ -7,8 +7,8 @@
7
7
  * @internal
8
8
  */
9
9
  export declare const PUPPETEER_REVISIONS: Readonly<{
10
- chrome: "144.0.7559.96";
11
- 'chrome-headless-shell': "144.0.7559.96";
12
- firefox: "stable_147.0.1";
10
+ chrome: "145.0.7632.46";
11
+ 'chrome-headless-shell': "145.0.7632.46";
12
+ firefox: "stable_147.0.3";
13
13
  }>;
14
14
  //# sourceMappingURL=revisions.d.ts.map
@@ -7,8 +7,8 @@
7
7
  * @internal
8
8
  */
9
9
  export const PUPPETEER_REVISIONS = Object.freeze({
10
- chrome: '144.0.7559.96',
11
- 'chrome-headless-shell': '144.0.7559.96',
12
- firefox: 'stable_147.0.1',
10
+ chrome: '145.0.7632.46',
11
+ 'chrome-headless-shell': '145.0.7632.46',
12
+ firefox: 'stable_147.0.3',
13
13
  });
14
14
  //# sourceMappingURL=revisions.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2025 Google Inc.
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- export declare const packageVersion = "24.36.1";
6
+ export declare const packageVersion = "24.37.2";
7
7
  //# sourceMappingURL=version.d.ts.map
@@ -5,6 +5,6 @@
5
5
  */
6
6
  // If moved update release-please config
7
7
  // x-release-please-start-version
8
- export const packageVersion = '24.36.1';
8
+ export const packageVersion = '24.37.2';
9
9
  // x-release-please-end
10
10
  //# sourceMappingURL=version.js.map
@@ -477,6 +477,26 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
477
477
  * browser.defaultBrowserContext().deleteMatchingCookies()}.
478
478
  */
479
479
  deleteMatchingCookies(...filters: DeleteCookiesRequest[]): Promise<void>;
480
+ /**
481
+ * Sets the permission for a specific origin in the default
482
+ * {@link BrowserContext}.
483
+ *
484
+ * @remarks
485
+ *
486
+ * Shortcut for
487
+ * {@link BrowserContext.setPermission |
488
+ * browser.defaultBrowserContext().setPermission()}.
489
+ *
490
+ * @param origin - The origin to set the permission for.
491
+ * @param permission - The permission descriptor.
492
+ * @param state - The state of the permission.
493
+ *
494
+ * @public
495
+ */
496
+ setPermission(origin: string, ...permissions: Array<{
497
+ permission: PermissionDescriptor_2;
498
+ state: PermissionState_2;
499
+ }>): Promise<void>;
480
500
  /**
481
501
  * Installs an extension and returns the ID. In Chrome, this is only
482
502
  * available if the browser was created using `pipe: true` and the
@@ -628,8 +648,23 @@ export declare abstract class BrowserContext extends EventEmitter<BrowserContext
628
648
  * "https://example.com".
629
649
  * @param permissions - An array of permissions to grant. All permissions that
630
650
  * are not listed here will be automatically denied.
651
+ *
652
+ * @deprecated in favor of {@link BrowserContext.setPermission}.
631
653
  */
632
654
  abstract overridePermissions(origin: string, permissions: Permission[]): Promise<void>;
655
+ /**
656
+ * Sets the permission for a specific origin.
657
+ *
658
+ * @param origin - The origin to set the permission for.
659
+ * @param permission - The permission descriptor.
660
+ * @param state - The state of the permission.
661
+ *
662
+ * @public
663
+ */
664
+ abstract setPermission(origin: string | '*', ...permissions: Array<{
665
+ permission: PermissionDescriptor_2;
666
+ state: PermissionState_2;
667
+ }>): Promise<void>;
633
668
  /**
634
669
  * Clears all permission overrides for this
635
670
  * {@link BrowserContext | browser context}.
@@ -1534,7 +1569,7 @@ export declare type CookiePriority = 'Low' | 'Medium' | 'High';
1534
1569
  *
1535
1570
  * @public
1536
1571
  */
1537
- export declare type CookieSameSite = 'Strict' | 'Lax' | 'None';
1572
+ export declare type CookieSameSite = 'Strict' | 'Lax' | 'None' | 'Default';
1538
1573
 
1539
1574
  /**
1540
1575
  * Represents the source scheme of the origin that originally set the cookie. A value of
@@ -3048,7 +3083,7 @@ export declare abstract class Frame extends EventEmitter<FrameEvents> {
3048
3083
  * ```
3049
3084
  *
3050
3085
  * @param pageFunction - the function to evaluate in the frame context.
3051
- * @param options - options to configure the polling method and timeout.
3086
+ * @param options - options to configure the polling method, timeout and signal.
3052
3087
  * @param args - arguments to pass to the `pageFunction`.
3053
3088
  * @returns the promise which resolve when the `pageFunction` returns a truthy value.
3054
3089
  */
@@ -3359,6 +3394,18 @@ export declare type HandleOr<T> = HandleFor<T> | JSHandle<T> | T;
3359
3394
  */
3360
3395
  export declare type Handler<T = unknown> = (event: T) => void;
3361
3396
 
3397
+ /**
3398
+ * Options for {@link Page.captureHeapSnapshot}.
3399
+ *
3400
+ * @public
3401
+ */
3402
+ export declare interface HeapSnapshotOptions {
3403
+ /**
3404
+ * The file path to save the heap snapshot to.
3405
+ */
3406
+ path: string;
3407
+ }
3408
+
3362
3409
  /**
3363
3410
  * Represents an HTTP request sent by a page.
3364
3411
  * @remarks
@@ -4259,6 +4306,10 @@ export declare interface LaunchOptions extends ConnectOptions {
4259
4306
  * Additional command line arguments to pass to the browser instance.
4260
4307
  */
4261
4308
  args?: string[];
4309
+ /**
4310
+ * If provided, the browser will be closed when the signal is aborted.
4311
+ */
4312
+ signal?: AbortSignal;
4262
4313
  }
4263
4314
 
4264
4315
  /**
@@ -4373,7 +4424,7 @@ export declare abstract class Locator<T> extends EventEmitter<LocatorEvents> {
4373
4424
  * method is chosen based on the type. `contenteditable`, select, textarea and
4374
4425
  * input elements are supported.
4375
4426
  */
4376
- fill<ElementType extends Element>(this: Locator<ElementType>, value: string, options?: Readonly<ActionOptions>): Promise<void>;
4427
+ fill<ElementType extends Element>(this: Locator<ElementType>, value: string, options?: Readonly<LocatorFillOptions>): Promise<void>;
4377
4428
  /**
4378
4429
  * Hovers over the located element.
4379
4430
  */
@@ -4408,6 +4459,19 @@ export declare interface LocatorEvents extends Record<EventType, unknown> {
4408
4459
  [LocatorEvent.Action]: undefined;
4409
4460
  }
4410
4461
 
4462
+ /**
4463
+ * @public
4464
+ */
4465
+ export declare interface LocatorFillOptions extends ActionOptions {
4466
+ /**
4467
+ * The number of characters to type before switching to a faster fill-out
4468
+ * method.
4469
+ *
4470
+ * @defaultValue `100`
4471
+ */
4472
+ typingThreshold?: number;
4473
+ }
4474
+
4411
4475
  /**
4412
4476
  * @public
4413
4477
  */
@@ -5589,6 +5653,10 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
5589
5653
  * in seconds since an arbitrary point in the past.
5590
5654
  */
5591
5655
  abstract metrics(): Promise<Metrics>;
5656
+ /**
5657
+ * Captures a snapshot of the JavaScript heap and writes it to a file.
5658
+ */
5659
+ abstract captureHeapSnapshot(options: HeapSnapshotOptions): Promise<void>;
5592
5660
  /**
5593
5661
  * The page's URL.
5594
5662
  *
@@ -5672,6 +5740,8 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
5672
5740
  * - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds, pass
5673
5741
  * `0` to disable the timeout. The default value can be changed by using the
5674
5742
  * {@link Page.setDefaultTimeout} method.
5743
+ *
5744
+ * - `signal`: A signal object that allows you to cancel a waitForRequest call.
5675
5745
  */
5676
5746
  waitForRequest(urlOrPredicate: string | AwaitablePredicate<HTTPRequest>, options?: WaitTimeoutOptions): Promise<HTTPRequest>;
5677
5747
  /**
@@ -5700,6 +5770,8 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
5700
5770
  * - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds,
5701
5771
  * pass `0` to disable the timeout. The default value can be changed by using
5702
5772
  * the {@link Page.setDefaultTimeout} method.
5773
+ *
5774
+ * - `signal`: A signal object that allows you to cancel a waitForResponse call.
5703
5775
  */
5704
5776
  waitForResponse(urlOrPredicate: string | AwaitablePredicate<HTTPResponse>, options?: WaitTimeoutOptions): Promise<HTTPResponse>;
5705
5777
  /**
@@ -6459,6 +6531,8 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
6459
6531
  * - `timeout`: maximum time to wait for in milliseconds. Defaults to `30000`
6460
6532
  * (30 seconds). Pass `0` to disable timeout. The default value can be changed
6461
6533
  * by using the {@link Page.setDefaultTimeout} method.
6534
+ *
6535
+ * - `signal`: A signal object that allows you to cancel a waitForSelector call.
6462
6536
  */
6463
6537
  waitForSelector<Selector extends string>(selector: Selector, options?: WaitForSelectorOptions): Promise<ElementHandle<NodeFor<Selector>> | null>;
6464
6538
  /**
@@ -6929,9 +7003,28 @@ export declare interface PDFOptions {
6929
7003
 
6930
7004
  /**
6931
7005
  * @public
7006
+ * @deprecated in favor of {@link PermissionDescriptor}.
6932
7007
  */
6933
7008
  export declare type Permission = 'accelerometer' | 'ambient-light-sensor' | 'background-sync' | 'camera' | 'clipboard-read' | 'clipboard-sanitized-write' | 'clipboard-write' | 'geolocation' | 'gyroscope' | 'idle-detection' | 'keyboard-lock' | 'magnetometer' | 'microphone' | 'midi-sysex' | 'midi' | 'notifications' | 'payment-handler' | 'persistent-storage' | 'pointer-lock';
6934
7009
 
7010
+ /**
7011
+ * @public
7012
+ */
7013
+ declare interface PermissionDescriptor_2 {
7014
+ name: string;
7015
+ userVisibleOnly?: boolean;
7016
+ sysex?: boolean;
7017
+ panTiltZoom?: boolean;
7018
+ allowWithoutSanitization?: boolean;
7019
+ }
7020
+ export { PermissionDescriptor_2 as PermissionDescriptor }
7021
+
7022
+ /**
7023
+ * @public
7024
+ */
7025
+ declare type PermissionState_2 = 'granted' | 'denied' | 'prompt';
7026
+ export { PermissionState_2 as PermissionState }
7027
+
6935
7028
  /**
6936
7029
  * @public
6937
7030
  */
@@ -7107,6 +7200,8 @@ declare namespace Puppeteer_2 {
7107
7200
  BrowserContextOptions,
7108
7201
  TargetFilterCallback,
7109
7202
  Permission,
7203
+ PermissionDescriptor_2 as PermissionDescriptor,
7204
+ PermissionState_2 as PermissionState,
7110
7205
  WaitForTargetOptions,
7111
7206
  BrowserEvent,
7112
7207
  BrowserEvents,
@@ -7188,6 +7283,7 @@ declare namespace Puppeteer_2 {
7188
7283
  PageEvents,
7189
7284
  NewDocumentScriptEvaluation,
7190
7285
  ReloadOptions,
7286
+ HeapSnapshotOptions,
7191
7287
  Page,
7192
7288
  TargetType,
7193
7289
  Target,
@@ -7195,6 +7291,7 @@ declare namespace Puppeteer_2 {
7195
7291
  VisibilityOption,
7196
7292
  ActionOptions,
7197
7293
  LocatorClickOptions,
7294
+ LocatorFillOptions,
7198
7295
  LocatorScrollOptions,
7199
7296
  LocatorEvent,
7200
7297
  LocatorEvents,
@@ -7842,6 +7939,35 @@ export declare interface SerializedAXNode {
7842
7939
  */
7843
7940
  invalid?: string;
7844
7941
  orientation?: string;
7942
+ /**
7943
+ * Whether the node is {@link https://www.w3.org/TR/wai-aria/#aria-busy | busy}.
7944
+ */
7945
+ busy?: boolean;
7946
+ /**
7947
+ * The {@link https://www.w3.org/TR/wai-aria/#aria-live | live} status of the
7948
+ * node.
7949
+ */
7950
+ live?: string;
7951
+ /**
7952
+ * Whether the live region is
7953
+ * {@link https://www.w3.org/TR/wai-aria/#aria-atomic | atomic}.
7954
+ */
7955
+ atomic?: boolean;
7956
+ /**
7957
+ * The {@link https://www.w3.org/TR/wai-aria/#aria-relevant | relevant}
7958
+ * changes for the live region.
7959
+ */
7960
+ relevant?: string;
7961
+ /**
7962
+ * The {@link https://www.w3.org/TR/wai-aria/#aria-errormessage | error message}
7963
+ * for the node.
7964
+ */
7965
+ errormessage?: string;
7966
+ /**
7967
+ * The {@link https://www.w3.org/TR/wai-aria/#aria-details | details} for the
7968
+ * node.
7969
+ */
7970
+ details?: string;
7845
7971
  /**
7846
7972
  * Url for link elements.
7847
7973
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puppeteer-core",
3
- "version": "24.36.1",
3
+ "version": "24.37.2",
4
4
  "description": "A high-level API to control headless Chrome over the DevTools Protocol",
5
5
  "keywords": [
6
6
  "puppeteer",
@@ -149,10 +149,10 @@
149
149
  "author": "The Chromium Authors",
150
150
  "license": "Apache-2.0",
151
151
  "dependencies": {
152
- "@puppeteer/browsers": "2.11.2",
153
- "chromium-bidi": "13.0.1",
152
+ "@puppeteer/browsers": "2.12.0",
153
+ "chromium-bidi": "13.1.1",
154
154
  "debug": "^4.4.3",
155
- "devtools-protocol": "0.0.1551306",
155
+ "devtools-protocol": "0.0.1566079",
156
156
  "typed-query-selector": "^2.12.0",
157
157
  "webdriver-bidi-protocol": "0.4.0",
158
158
  "ws": "^8.19.0"
@@ -102,6 +102,7 @@ export const WEB_PERMISSION_TO_PROTOCOL_PERMISSION = new Map<
102
102
 
103
103
  /**
104
104
  * @public
105
+ * @deprecated in favor of {@link PermissionDescriptor}.
105
106
  */
106
107
  export type Permission =
107
108
  | 'accelerometer'
@@ -124,6 +125,22 @@ export type Permission =
124
125
  | 'persistent-storage'
125
126
  | 'pointer-lock';
126
127
 
128
+ /**
129
+ * @public
130
+ */
131
+ export interface PermissionDescriptor {
132
+ name: string;
133
+ userVisibleOnly?: boolean;
134
+ sysex?: boolean;
135
+ panTiltZoom?: boolean;
136
+ allowWithoutSanitization?: boolean;
137
+ }
138
+
139
+ /**
140
+ * @public
141
+ */
142
+ export type PermissionState = 'granted' | 'denied' | 'prompt';
143
+
127
144
  /**
128
145
  * @public
129
146
  */
@@ -593,6 +610,35 @@ export abstract class Browser extends EventEmitter<BrowserEvents> {
593
610
  return await this.defaultBrowserContext().deleteMatchingCookies(...filters);
594
611
  }
595
612
 
613
+ /**
614
+ * Sets the permission for a specific origin in the default
615
+ * {@link BrowserContext}.
616
+ *
617
+ * @remarks
618
+ *
619
+ * Shortcut for
620
+ * {@link BrowserContext.setPermission |
621
+ * browser.defaultBrowserContext().setPermission()}.
622
+ *
623
+ * @param origin - The origin to set the permission for.
624
+ * @param permission - The permission descriptor.
625
+ * @param state - The state of the permission.
626
+ *
627
+ * @public
628
+ */
629
+ async setPermission(
630
+ origin: string,
631
+ ...permissions: Array<{
632
+ permission: PermissionDescriptor;
633
+ state: PermissionState;
634
+ }>
635
+ ): Promise<void> {
636
+ return await this.defaultBrowserContext().setPermission(
637
+ origin,
638
+ ...permissions,
639
+ );
640
+ }
641
+
596
642
  /**
597
643
  * Installs an extension and returns the ID. In Chrome, this is only
598
644
  * available if the browser was created using `pipe: true` and the
@@ -29,6 +29,8 @@ import type {
29
29
  Browser,
30
30
  CreatePageOptions,
31
31
  Permission,
32
+ PermissionDescriptor,
33
+ PermissionState,
32
34
  WaitForTargetOptions,
33
35
  } from './Browser.js';
34
36
  import type {Page} from './Page.js';
@@ -211,12 +213,31 @@ export abstract class BrowserContext extends EventEmitter<BrowserContextEvents>
211
213
  * "https://example.com".
212
214
  * @param permissions - An array of permissions to grant. All permissions that
213
215
  * are not listed here will be automatically denied.
216
+ *
217
+ * @deprecated in favor of {@link BrowserContext.setPermission}.
214
218
  */
215
219
  abstract overridePermissions(
216
220
  origin: string,
217
221
  permissions: Permission[],
218
222
  ): Promise<void>;
219
223
 
224
+ /**
225
+ * Sets the permission for a specific origin.
226
+ *
227
+ * @param origin - The origin to set the permission for.
228
+ * @param permission - The permission descriptor.
229
+ * @param state - The state of the permission.
230
+ *
231
+ * @public
232
+ */
233
+ abstract setPermission(
234
+ origin: string | '*',
235
+ ...permissions: Array<{
236
+ permission: PermissionDescriptor;
237
+ state: PermissionState;
238
+ }>
239
+ ): Promise<void>;
240
+
220
241
  /**
221
242
  * Clears all permission overrides for this
222
243
  * {@link BrowserContext | browser context}.
@@ -773,7 +773,7 @@ export abstract class Frame extends EventEmitter<FrameEvents> {
773
773
  * ```
774
774
  *
775
775
  * @param pageFunction - the function to evaluate in the frame context.
776
- * @param options - options to configure the polling method and timeout.
776
+ * @param options - options to configure the polling method, timeout and signal.
777
777
  * @param args - arguments to pass to the `pageFunction`.
778
778
  * @returns the promise which resolve when the `pageFunction` returns a truthy value.
779
779
  */
@@ -647,6 +647,18 @@ export interface ReloadOptions extends WaitForOptions {
647
647
  ignoreCache?: boolean;
648
648
  }
649
649
 
650
+ /**
651
+ * Options for {@link Page.captureHeapSnapshot}.
652
+ *
653
+ * @public
654
+ */
655
+ export interface HeapSnapshotOptions {
656
+ /**
657
+ * The file path to save the heap snapshot to.
658
+ */
659
+ path: string;
660
+ }
661
+
650
662
  /**
651
663
  * Page provides methods to interact with a single tab or
652
664
  * {@link https://developer.chrome.com/extensions/background_pages | extension background page}
@@ -1721,6 +1733,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
1721
1733
  */
1722
1734
  abstract metrics(): Promise<Metrics>;
1723
1735
 
1736
+ /**
1737
+ * Captures a snapshot of the JavaScript heap and writes it to a file.
1738
+ */
1739
+ abstract captureHeapSnapshot(options: HeapSnapshotOptions): Promise<void>;
1740
+
1724
1741
  /**
1725
1742
  * The page's URL.
1726
1743
  *
@@ -1822,6 +1839,8 @@ export abstract class Page extends EventEmitter<PageEvents> {
1822
1839
  * - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds, pass
1823
1840
  * `0` to disable the timeout. The default value can be changed by using the
1824
1841
  * {@link Page.setDefaultTimeout} method.
1842
+ *
1843
+ * - `signal`: A signal object that allows you to cancel a waitForRequest call.
1825
1844
  */
1826
1845
  waitForRequest(
1827
1846
  urlOrPredicate: string | AwaitablePredicate<HTTPRequest>,
@@ -1875,6 +1894,8 @@ export abstract class Page extends EventEmitter<PageEvents> {
1875
1894
  * - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds,
1876
1895
  * pass `0` to disable the timeout. The default value can be changed by using
1877
1896
  * the {@link Page.setDefaultTimeout} method.
1897
+ *
1898
+ * - `signal`: A signal object that allows you to cancel a waitForResponse call.
1878
1899
  */
1879
1900
  waitForResponse(
1880
1901
  urlOrPredicate: string | AwaitablePredicate<HTTPResponse>,
@@ -3059,6 +3080,8 @@ export abstract class Page extends EventEmitter<PageEvents> {
3059
3080
  * - `timeout`: maximum time to wait for in milliseconds. Defaults to `30000`
3060
3081
  * (30 seconds). Pass `0` to disable timeout. The default value can be changed
3061
3082
  * by using the {@link Page.setDefaultTimeout} method.
3083
+ *
3084
+ * - `signal`: A signal object that allows you to cancel a waitForSelector call.
3062
3085
  */
3063
3086
  async waitForSelector<Selector extends string>(
3064
3087
  selector: Selector,