chrome-devtools-frontend 1.0.1036726 → 1.0.1038685

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 (384) hide show
  1. package/config/gni/devtools_grd_files.gni +9 -2
  2. package/front_end/core/common/ParsedURL.ts +1 -1
  3. package/front_end/core/sdk/ResourceTreeModel.ts +12 -8
  4. package/front_end/entrypoints/main/MainImpl.ts +2 -1
  5. package/front_end/panels/media/PlayerPropertiesView.ts +43 -11
  6. package/front_end/panels/media/playerPropertiesView.css +22 -3
  7. package/front_end/panels/sources/NavigatorView.ts +9 -0
  8. package/front_end/panels/sources/components/BreakpointsView.ts +11 -16
  9. package/front_end/panels/sources/components/breakpointsView.css +21 -13
  10. package/front_end/panels/timeline/TimelineLoader.ts +1 -1
  11. package/front_end/services/puppeteer/PuppeteerConnection.ts +1 -1
  12. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +244 -244
  13. package/front_end/third_party/lighthouse/locales/en-US.json +2 -2
  14. package/front_end/third_party/lighthouse/locales/en-XL.json +2 -2
  15. package/front_end/third_party/puppeteer/package/README.md +20 -0
  16. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.d.ts +3 -3
  17. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.js +4 -4
  18. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.js.map +1 -1
  19. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  20. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +10 -8
  21. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
  22. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +19 -6
  23. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
  24. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +23 -10
  25. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
  26. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  27. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +3 -2
  28. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  29. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
  30. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js +35 -20
  31. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js.map +1 -1
  32. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +9 -2
  33. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
  34. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +19 -7
  35. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
  36. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +5 -4
  37. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
  38. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +6 -5
  39. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
  40. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts +1 -0
  41. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -1
  42. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +1 -0
  43. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
  44. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts +2 -0
  45. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -1
  46. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js +3 -1
  47. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js.map +1 -1
  48. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts +168 -131
  49. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts.map +1 -1
  50. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js +208 -206
  51. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js.map +1 -1
  52. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +1 -0
  53. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
  54. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +1 -0
  55. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
  56. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts +2 -2
  57. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +2 -2
  58. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +74 -75
  59. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -1
  60. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +82 -97
  61. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
  62. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts +16 -8
  63. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -1
  64. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js +17 -9
  65. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js.map +1 -1
  66. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts +2 -1
  67. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
  68. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.js +3 -2
  69. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.js.map +1 -1
  70. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts +634 -0
  71. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts.map +1 -0
  72. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js +713 -0
  73. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js.map +1 -0
  74. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +9 -679
  75. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
  76. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +77 -803
  77. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  78. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +11 -10
  79. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  80. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +11 -10
  81. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
  82. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +2 -2
  83. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  84. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +1 -1
  85. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +34 -13
  86. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
  87. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +35 -14
  88. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
  89. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{DOMWorld.d.ts → IsolatedWorld.d.ts} +58 -13
  90. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.d.ts.map +1 -0
  91. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{DOMWorld.js → IsolatedWorld.js} +124 -151
  92. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.js.map +1 -0
  93. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +40 -58
  94. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  95. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +53 -76
  96. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  97. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +2 -1
  98. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  99. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +23 -6
  100. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
  101. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +17 -17
  102. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -1
  103. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  104. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +8 -8
  105. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  106. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +2 -0
  107. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
  108. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
  109. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +395 -296
  110. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  111. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +398 -313
  112. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
  113. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +14 -7
  114. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -1
  115. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +14 -7
  116. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
  117. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +38 -17
  118. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +49 -31
  120. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
  121. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +1 -1
  122. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
  123. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +7 -3
  124. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts +1 -0
  126. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -1
  127. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +4 -2
  128. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
  129. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +8 -4
  130. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -1
  131. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js +8 -4
  132. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js.map +1 -1
  133. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +1 -34
  134. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
  135. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +5 -53
  136. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
  137. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts +3 -0
  138. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts.map +1 -0
  139. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js +6 -0
  140. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js.map +1 -0
  141. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
  142. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
  143. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.d.ts.map +1 -1
  144. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js +2 -2
  145. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js.map +1 -1
  146. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts +28 -0
  147. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts.map +1 -0
  148. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js +148 -0
  149. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js.map +1 -0
  150. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +2 -0
  151. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts.map +1 -0
  152. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js +18 -0
  153. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js.map +1 -0
  154. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +3 -1
  155. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  156. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +4 -2
  157. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  158. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  159. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +4 -3
  160. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  161. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  162. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +2 -2
  163. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
  164. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  165. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +2 -2
  166. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -1
  167. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js +1 -1
  168. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
  169. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +3 -1
  170. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
  171. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +3 -1
  172. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
  173. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts +3 -2
  174. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts.map +1 -1
  175. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js +3 -2
  176. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js.map +1 -1
  177. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts +25 -0
  178. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts.map +1 -0
  179. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js +78 -0
  180. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js.map +1 -0
  181. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts +17 -0
  182. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts.map +1 -0
  183. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js +22 -0
  184. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js.map +1 -0
  185. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{common → util}/assert.d.ts +0 -0
  186. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/assert.d.ts.map +1 -0
  187. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{common → util}/assert.js +0 -0
  188. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/assert.js.map +1 -0
  189. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts +2 -0
  190. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts.map +1 -0
  191. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js +19 -0
  192. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js.map +1 -0
  193. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts +3 -3
  194. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js +4 -4
  195. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js.map +1 -1
  196. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  197. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +10 -8
  198. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
  199. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +19 -6
  200. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
  201. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +23 -10
  202. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
  203. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  204. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +3 -2
  205. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
  206. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
  207. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js +36 -21
  208. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js.map +1 -1
  209. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +9 -2
  210. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
  211. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +19 -7
  212. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
  213. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +5 -4
  214. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
  215. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +6 -5
  216. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
  217. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts +1 -0
  218. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -1
  219. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +1 -0
  220. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js.map +1 -1
  221. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +2 -0
  222. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -1
  223. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js +3 -1
  224. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js.map +1 -1
  225. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts +168 -131
  226. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts.map +1 -1
  227. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js +208 -206
  228. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js.map +1 -1
  229. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +1 -0
  230. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
  231. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +1 -0
  232. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
  233. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts +2 -2
  234. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +2 -2
  235. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +74 -75
  236. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -1
  237. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +83 -98
  238. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -1
  239. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +16 -8
  240. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -1
  241. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js +17 -9
  242. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js.map +1 -1
  243. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts +2 -1
  244. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
  245. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.js +3 -2
  246. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.js.map +1 -1
  247. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts +634 -0
  248. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts.map +1 -0
  249. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js +709 -0
  250. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js.map +1 -0
  251. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +9 -679
  252. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
  253. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +72 -797
  254. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  255. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +11 -10
  256. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  257. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +11 -10
  258. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
  259. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +2 -2
  260. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  261. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +1 -1
  262. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +34 -13
  263. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
  264. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +35 -14
  265. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
  266. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{DOMWorld.d.ts → IsolatedWorld.d.ts} +58 -13
  267. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.d.ts.map +1 -0
  268. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{DOMWorld.js → IsolatedWorld.js} +123 -150
  269. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.js.map +1 -0
  270. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +40 -58
  271. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  272. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +54 -77
  273. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  274. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +2 -1
  275. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  276. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +24 -7
  277. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
  278. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +17 -17
  279. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -1
  280. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  281. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +8 -8
  282. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  283. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +2 -0
  284. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
  285. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
  286. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +395 -296
  287. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  288. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +398 -313
  289. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
  290. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +14 -7
  291. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -1
  292. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +14 -7
  293. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js.map +1 -1
  294. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +38 -17
  295. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -1
  296. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +49 -31
  297. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
  298. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +1 -1
  299. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
  300. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +7 -3
  301. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
  302. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts +1 -0
  303. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -1
  304. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +4 -2
  305. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js.map +1 -1
  306. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +8 -4
  307. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -1
  308. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +8 -4
  309. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js.map +1 -1
  310. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +1 -34
  311. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
  312. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +3 -48
  313. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
  314. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts +3 -0
  315. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts.map +1 -0
  316. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js +3 -0
  317. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js.map +1 -0
  318. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
  319. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
  320. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.d.ts.map +1 -1
  321. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js +2 -2
  322. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js.map +1 -1
  323. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts +28 -0
  324. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts.map +1 -0
  325. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js +142 -0
  326. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js.map +1 -0
  327. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +2 -0
  328. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts.map +1 -0
  329. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js +2 -0
  330. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js.map +1 -0
  331. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +3 -1
  332. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  333. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +4 -2
  334. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  335. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  336. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +3 -2
  337. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  338. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  339. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +2 -2
  340. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
  341. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  342. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js +2 -2
  343. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -1
  344. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -1
  345. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
  346. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +3 -1
  347. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
  348. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +3 -1
  349. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
  350. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts +3 -2
  351. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts.map +1 -1
  352. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js +3 -2
  353. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js.map +1 -1
  354. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts +25 -0
  355. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts.map +1 -0
  356. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js +73 -0
  357. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js.map +1 -0
  358. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts +17 -0
  359. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts.map +1 -0
  360. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.js +17 -0
  361. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.js.map +1 -0
  362. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{common → util}/assert.d.ts +0 -0
  363. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/assert.d.ts.map +1 -0
  364. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{common → util}/assert.js +0 -0
  365. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/assert.js.map +1 -0
  366. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts +2 -0
  367. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts.map +1 -0
  368. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js +15 -0
  369. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js.map +1 -0
  370. package/front_end/third_party/puppeteer/package/lib/types.d.ts +1069 -878
  371. package/front_end/third_party/puppeteer/package/package.json +32 -28
  372. package/front_end/third_party/puppeteer/package/typescript-if-required.js +1 -1
  373. package/front_end/third_party/puppeteer/puppeteer.ts +1 -1
  374. package/front_end/ui/components/text_prompt/TextPrompt.ts +1 -1
  375. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
  376. package/package.json +1 -1
  377. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +0 -1
  378. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +0 -1
  379. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts.map +0 -1
  380. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js.map +0 -1
  381. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +0 -1
  382. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +0 -1
  383. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +0 -1
  384. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js.map +0 -1
@@ -48,38 +48,52 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
48
48
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
49
49
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
50
50
  };
51
- var _a, _DOMWorld_frameManager, _DOMWorld_client, _DOMWorld_frame, _DOMWorld_timeoutSettings, _DOMWorld_documentPromise, _DOMWorld_contextPromise, _DOMWorld_contextResolveCallback, _DOMWorld_detached, _DOMWorld_ctxBindings, _DOMWorld_boundFunctions, _DOMWorld_waitTasks, _DOMWorld_bindingIdentifier, _DOMWorld_settingUpBinding, _DOMWorld_onBindingCalled, _WaitTask_instances, _WaitTask_domWorld, _WaitTask_polling, _WaitTask_timeout, _WaitTask_predicateBody, _WaitTask_predicateAcceptsContextElement, _WaitTask_args, _WaitTask_binding, _WaitTask_runCount, _WaitTask_resolve, _WaitTask_reject, _WaitTask_timeoutTimer, _WaitTask_terminated, _WaitTask_root, _WaitTask_cleanup;
51
+ var _a, _IsolatedWorld_frameManager, _IsolatedWorld_client, _IsolatedWorld_frame, _IsolatedWorld_timeoutSettings, _IsolatedWorld_documentPromise, _IsolatedWorld_contextPromise, _IsolatedWorld_detached, _IsolatedWorld_ctxBindings, _IsolatedWorld_boundFunctions, _IsolatedWorld_waitTasks, _IsolatedWorld_bindingIdentifier, _IsolatedWorld_settingUpBinding, _IsolatedWorld_onBindingCalled, _WaitTask_instances, _WaitTask_isolatedWorld, _WaitTask_polling, _WaitTask_timeout, _WaitTask_predicateBody, _WaitTask_predicateAcceptsContextElement, _WaitTask_args, _WaitTask_binding, _WaitTask_runCount, _WaitTask_resolve, _WaitTask_reject, _WaitTask_timeoutTimer, _WaitTask_terminated, _WaitTask_root, _WaitTask_cleanup;
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.WaitTask = exports.DOMWorld = void 0;
54
- const assert_js_1 = require("./assert.js");
53
+ exports.WaitTask = exports.IsolatedWorld = exports.PUPPETEER_WORLD = exports.MAIN_WORLD = void 0;
54
+ const assert_js_1 = require("../util/assert.js");
55
55
  const Errors_js_1 = require("./Errors.js");
56
56
  const LifecycleWatcher_js_1 = require("./LifecycleWatcher.js");
57
57
  const QueryHandler_js_1 = require("./QueryHandler.js");
58
58
  const util_js_1 = require("./util.js");
59
+ const DeferredPromise_js_1 = require("../util/DeferredPromise.js");
60
+ /**
61
+ * A unique key for {@link IsolatedWorldChart} to denote the default world.
62
+ * Execution contexts are automatically created in the default world.
63
+ *
64
+ * @internal
65
+ */
66
+ exports.MAIN_WORLD = Symbol('mainWorld');
67
+ /**
68
+ * A unique key for {@link IsolatedWorldChart} to denote the puppeteer world.
69
+ * This world contains all puppeteer-internal bindings/code.
70
+ *
71
+ * @internal
72
+ */
73
+ exports.PUPPETEER_WORLD = Symbol('puppeteerWorld');
59
74
  /**
60
75
  * @internal
61
76
  */
62
- class DOMWorld {
77
+ class IsolatedWorld {
63
78
  constructor(client, frameManager, frame, timeoutSettings) {
64
- _DOMWorld_frameManager.set(this, void 0);
65
- _DOMWorld_client.set(this, void 0);
66
- _DOMWorld_frame.set(this, void 0);
67
- _DOMWorld_timeoutSettings.set(this, void 0);
68
- _DOMWorld_documentPromise.set(this, null);
69
- _DOMWorld_contextPromise.set(this, null);
70
- _DOMWorld_contextResolveCallback.set(this, null);
71
- _DOMWorld_detached.set(this, false);
79
+ _IsolatedWorld_frameManager.set(this, void 0);
80
+ _IsolatedWorld_client.set(this, void 0);
81
+ _IsolatedWorld_frame.set(this, void 0);
82
+ _IsolatedWorld_timeoutSettings.set(this, void 0);
83
+ _IsolatedWorld_documentPromise.set(this, null);
84
+ _IsolatedWorld_contextPromise.set(this, (0, DeferredPromise_js_1.createDeferredPromise)());
85
+ _IsolatedWorld_detached.set(this, false);
72
86
  // Set of bindings that have been registered in the current context.
73
- _DOMWorld_ctxBindings.set(this, new Set());
87
+ _IsolatedWorld_ctxBindings.set(this, new Set());
74
88
  // Contains mapping from functions that should be bound to Puppeteer functions.
75
- _DOMWorld_boundFunctions.set(this, new Map());
76
- _DOMWorld_waitTasks.set(this, new Set());
89
+ _IsolatedWorld_boundFunctions.set(this, new Map());
90
+ _IsolatedWorld_waitTasks.set(this, new Set());
77
91
  // If multiple waitFor are set up asynchronously, we need to wait for the
78
92
  // first one to set up the binding in the page before running the others.
79
- _DOMWorld_settingUpBinding.set(this, null);
80
- _DOMWorld_onBindingCalled.set(this, async (event) => {
93
+ _IsolatedWorld_settingUpBinding.set(this, null);
94
+ _IsolatedWorld_onBindingCalled.set(this, async (event) => {
81
95
  let payload;
82
- if (!this._hasContext()) {
96
+ if (!this.hasContext()) {
83
97
  return;
84
98
  }
85
99
  const context = await this.executionContext();
@@ -93,7 +107,7 @@ class DOMWorld {
93
107
  }
94
108
  const { type, name, seq, args } = payload;
95
109
  if (type !== 'internal' ||
96
- !__classPrivateFieldGet(this, _DOMWorld_ctxBindings, "f").has(__classPrivateFieldGet(DOMWorld, _a, "f", _DOMWorld_bindingIdentifier).call(DOMWorld, name, context._contextId))) {
110
+ !__classPrivateFieldGet(this, _IsolatedWorld_ctxBindings, "f").has(__classPrivateFieldGet(IsolatedWorld, _a, "f", _IsolatedWorld_bindingIdentifier).call(IsolatedWorld, name, context._contextId))) {
97
111
  return;
98
112
  }
99
113
  if (context._contextId !== event.executionContextId) {
@@ -129,58 +143,51 @@ class DOMWorld {
129
143
  });
130
144
  // Keep own reference to client because it might differ from the FrameManager's
131
145
  // client for OOP iframes.
132
- __classPrivateFieldSet(this, _DOMWorld_client, client, "f");
133
- __classPrivateFieldSet(this, _DOMWorld_frameManager, frameManager, "f");
134
- __classPrivateFieldSet(this, _DOMWorld_frame, frame, "f");
135
- __classPrivateFieldSet(this, _DOMWorld_timeoutSettings, timeoutSettings, "f");
136
- this._setContext(null);
137
- __classPrivateFieldGet(this, _DOMWorld_client, "f").on('Runtime.bindingCalled', __classPrivateFieldGet(this, _DOMWorld_onBindingCalled, "f"));
146
+ __classPrivateFieldSet(this, _IsolatedWorld_client, client, "f");
147
+ __classPrivateFieldSet(this, _IsolatedWorld_frameManager, frameManager, "f");
148
+ __classPrivateFieldSet(this, _IsolatedWorld_frame, frame, "f");
149
+ __classPrivateFieldSet(this, _IsolatedWorld_timeoutSettings, timeoutSettings, "f");
150
+ __classPrivateFieldGet(this, _IsolatedWorld_client, "f").on('Runtime.bindingCalled', __classPrivateFieldGet(this, _IsolatedWorld_onBindingCalled, "f"));
138
151
  }
139
152
  get _waitTasks() {
140
- return __classPrivateFieldGet(this, _DOMWorld_waitTasks, "f");
153
+ return __classPrivateFieldGet(this, _IsolatedWorld_waitTasks, "f");
141
154
  }
142
155
  get _boundFunctions() {
143
- return __classPrivateFieldGet(this, _DOMWorld_boundFunctions, "f");
156
+ return __classPrivateFieldGet(this, _IsolatedWorld_boundFunctions, "f");
144
157
  }
145
158
  frame() {
146
- return __classPrivateFieldGet(this, _DOMWorld_frame, "f");
159
+ return __classPrivateFieldGet(this, _IsolatedWorld_frame, "f");
147
160
  }
148
- async _setContext(context) {
149
- var _b;
150
- if (context) {
151
- (0, assert_js_1.assert)(__classPrivateFieldGet(this, _DOMWorld_contextResolveCallback, "f"), `ExecutionContext ${context._contextId} has already been set.`);
152
- __classPrivateFieldGet(this, _DOMWorld_ctxBindings, "f").clear();
153
- (_b = __classPrivateFieldGet(this, _DOMWorld_contextResolveCallback, "f")) === null || _b === void 0 ? void 0 : _b.call(null, context);
154
- __classPrivateFieldSet(this, _DOMWorld_contextResolveCallback, null, "f");
155
- for (const waitTask of this._waitTasks) {
156
- waitTask.rerun();
157
- }
158
- }
159
- else {
160
- __classPrivateFieldSet(this, _DOMWorld_documentPromise, null, "f");
161
- __classPrivateFieldSet(this, _DOMWorld_contextPromise, new Promise(fulfill => {
162
- __classPrivateFieldSet(this, _DOMWorld_contextResolveCallback, fulfill, "f");
163
- }), "f");
161
+ clearContext() {
162
+ __classPrivateFieldSet(this, _IsolatedWorld_documentPromise, null, "f");
163
+ __classPrivateFieldSet(this, _IsolatedWorld_contextPromise, (0, DeferredPromise_js_1.createDeferredPromise)(), "f");
164
+ }
165
+ setContext(context) {
166
+ (0, assert_js_1.assert)(__classPrivateFieldGet(this, _IsolatedWorld_contextPromise, "f"), `ExecutionContext ${context._contextId} has already been set.`);
167
+ __classPrivateFieldGet(this, _IsolatedWorld_ctxBindings, "f").clear();
168
+ __classPrivateFieldGet(this, _IsolatedWorld_contextPromise, "f").resolve(context);
169
+ for (const waitTask of this._waitTasks) {
170
+ waitTask.rerun();
164
171
  }
165
172
  }
166
- _hasContext() {
167
- return !__classPrivateFieldGet(this, _DOMWorld_contextResolveCallback, "f");
173
+ hasContext() {
174
+ return __classPrivateFieldGet(this, _IsolatedWorld_contextPromise, "f").resolved();
168
175
  }
169
176
  _detach() {
170
- __classPrivateFieldSet(this, _DOMWorld_detached, true, "f");
171
- __classPrivateFieldGet(this, _DOMWorld_client, "f").off('Runtime.bindingCalled', __classPrivateFieldGet(this, _DOMWorld_onBindingCalled, "f"));
177
+ __classPrivateFieldSet(this, _IsolatedWorld_detached, true, "f");
178
+ __classPrivateFieldGet(this, _IsolatedWorld_client, "f").off('Runtime.bindingCalled', __classPrivateFieldGet(this, _IsolatedWorld_onBindingCalled, "f"));
172
179
  for (const waitTask of this._waitTasks) {
173
180
  waitTask.terminate(new Error('waitForFunction failed: frame got detached.'));
174
181
  }
175
182
  }
176
183
  executionContext() {
177
- if (__classPrivateFieldGet(this, _DOMWorld_detached, "f")) {
178
- throw new Error(`Execution context is not available in detached frame "${__classPrivateFieldGet(this, _DOMWorld_frame, "f").url()}" (are you trying to evaluate?)`);
184
+ if (__classPrivateFieldGet(this, _IsolatedWorld_detached, "f")) {
185
+ throw new Error(`Execution context is not available in detached frame "${__classPrivateFieldGet(this, _IsolatedWorld_frame, "f").url()}" (are you trying to evaluate?)`);
179
186
  }
180
- if (__classPrivateFieldGet(this, _DOMWorld_contextPromise, "f") === null) {
187
+ if (__classPrivateFieldGet(this, _IsolatedWorld_contextPromise, "f") === null) {
181
188
  throw new Error(`Execution content promise is missing`);
182
189
  }
183
- return __classPrivateFieldGet(this, _DOMWorld_contextPromise, "f");
190
+ return __classPrivateFieldGet(this, _IsolatedWorld_contextPromise, "f");
184
191
  }
185
192
  async evaluateHandle(pageFunction, ...args) {
186
193
  const context = await this.executionContext();
@@ -191,38 +198,40 @@ class DOMWorld {
191
198
  return context.evaluate(pageFunction, ...args);
192
199
  }
193
200
  async $(selector) {
194
- const document = await this._document();
195
- const value = await document.$(selector);
196
- return value;
201
+ const document = await this.document();
202
+ return document.$(selector);
197
203
  }
198
204
  async $$(selector) {
199
- const document = await this._document();
205
+ const document = await this.document();
200
206
  return document.$$(selector);
201
207
  }
202
- async _document() {
203
- if (__classPrivateFieldGet(this, _DOMWorld_documentPromise, "f")) {
204
- return __classPrivateFieldGet(this, _DOMWorld_documentPromise, "f");
208
+ async document() {
209
+ if (__classPrivateFieldGet(this, _IsolatedWorld_documentPromise, "f")) {
210
+ return __classPrivateFieldGet(this, _IsolatedWorld_documentPromise, "f");
205
211
  }
206
- __classPrivateFieldSet(this, _DOMWorld_documentPromise, this.executionContext().then(async (context) => {
212
+ __classPrivateFieldSet(this, _IsolatedWorld_documentPromise, this.executionContext().then(async (context) => {
207
213
  return await context.evaluateHandle(() => {
208
214
  return document;
209
215
  });
210
216
  }), "f");
211
- return __classPrivateFieldGet(this, _DOMWorld_documentPromise, "f");
217
+ return __classPrivateFieldGet(this, _IsolatedWorld_documentPromise, "f");
212
218
  }
213
219
  async $x(expression) {
214
- const document = await this._document();
215
- const value = await document.$x(expression);
216
- return value;
220
+ const document = await this.document();
221
+ return document.$x(expression);
217
222
  }
218
223
  async $eval(selector, pageFunction, ...args) {
219
- const document = await this._document();
224
+ const document = await this.document();
220
225
  return document.$eval(selector, pageFunction, ...args);
221
226
  }
222
227
  async $$eval(selector, pageFunction, ...args) {
223
- const document = await this._document();
224
- const value = await document.$$eval(selector, pageFunction, ...args);
225
- return value;
228
+ const document = await this.document();
229
+ return document.$$eval(selector, pageFunction, ...args);
230
+ }
231
+ async waitForSelector(selector, options) {
232
+ const { updatedSelector, queryHandler } = (0, QueryHandler_js_1.getQueryHandlerAndSelector)(selector);
233
+ (0, assert_js_1.assert)(queryHandler.waitFor, 'Query handler does not support waiting');
234
+ return (await queryHandler.waitFor(this, updatedSelector, options));
226
235
  }
227
236
  async content() {
228
237
  return await this.evaluate(() => {
@@ -237,7 +246,7 @@ class DOMWorld {
237
246
  });
238
247
  }
239
248
  async setContent(html, options = {}) {
240
- const { waitUntil = ['load'], timeout = __classPrivateFieldGet(this, _DOMWorld_timeoutSettings, "f").navigationTimeout(), } = options;
249
+ const { waitUntil = ['load'], timeout = __classPrivateFieldGet(this, _IsolatedWorld_timeoutSettings, "f").navigationTimeout(), } = options;
241
250
  // We rely upon the fact that document.open() will reset frame lifecycle with "init"
242
251
  // lifecycle event. @see https://crrev.com/608658
243
252
  await this.evaluate(html => {
@@ -245,7 +254,7 @@ class DOMWorld {
245
254
  document.write(html);
246
255
  document.close();
247
256
  }, html);
248
- const watcher = new LifecycleWatcher_js_1.LifecycleWatcher(__classPrivateFieldGet(this, _DOMWorld_frameManager, "f"), __classPrivateFieldGet(this, _DOMWorld_frame, "f"), waitUntil, timeout);
257
+ const watcher = new LifecycleWatcher_js_1.LifecycleWatcher(__classPrivateFieldGet(this, _IsolatedWorld_frameManager, "f"), __classPrivateFieldGet(this, _IsolatedWorld_frame, "f"), waitUntil, timeout);
249
258
  const error = await Promise.race([
250
259
  watcher.timeoutOrTerminationPromise(),
251
260
  watcher.lifecyclePromise(),
@@ -259,7 +268,6 @@ class DOMWorld {
259
268
  * Adds a script tag into the current context.
260
269
  *
261
270
  * @remarks
262
- *
263
271
  * You can pass a URL, filepath or string of contents. Note that when running Puppeteer
264
272
  * in a browser environment you cannot pass a filepath and should use either
265
273
  * `url` or `content`.
@@ -335,23 +343,16 @@ class DOMWorld {
335
343
  * Adds a style tag into the current context.
336
344
  *
337
345
  * @remarks
338
- *
339
346
  * You can pass a URL, filepath or string of contents. Note that when running Puppeteer
340
347
  * in a browser environment you cannot pass a filepath and should use either
341
348
  * `url` or `content`.
342
- *
343
349
  */
344
350
  async addStyleTag(options) {
345
351
  const { url = null, path = null, content = null } = options;
346
352
  if (url !== null) {
347
353
  try {
348
354
  const context = await this.executionContext();
349
- const handle = await context.evaluateHandle(addStyleUrl, url);
350
- const elementHandle = handle.asElement();
351
- if (elementHandle === null) {
352
- throw new Error('Style element is not found');
353
- }
354
- return elementHandle;
355
+ return (await context.evaluateHandle(addStyleUrl, url));
355
356
  }
356
357
  catch (error) {
357
358
  throw new Error(`Loading style from ${url} failed`);
@@ -371,21 +372,11 @@ class DOMWorld {
371
372
  let contents = await fs.readFile(path, 'utf8');
372
373
  contents += '/*# sourceURL=' + path.replace(/\n/g, '') + '*/';
373
374
  const context = await this.executionContext();
374
- const handle = await context.evaluateHandle(addStyleContent, contents);
375
- const elementHandle = handle.asElement();
376
- if (elementHandle === null) {
377
- throw new Error('Style element is not found');
378
- }
379
- return elementHandle;
375
+ return (await context.evaluateHandle(addStyleContent, contents));
380
376
  }
381
377
  if (content !== null) {
382
378
  const context = await this.executionContext();
383
- const handle = await context.evaluateHandle(addStyleContent, content);
384
- const elementHandle = handle.asElement();
385
- if (elementHandle === null) {
386
- throw new Error('Style element is not found');
387
- }
388
- return elementHandle;
379
+ return (await context.evaluateHandle(addStyleContent, content));
389
380
  }
390
381
  throw new Error('Provide an object with a `url`, `path` or `content` property');
391
382
  async function addStyleUrl(url) {
@@ -449,19 +440,14 @@ class DOMWorld {
449
440
  await handle.type(text, options);
450
441
  await handle.dispose();
451
442
  }
452
- async waitForSelector(selector, options) {
453
- const { updatedSelector, queryHandler } = (0, QueryHandler_js_1.getQueryHandlerAndSelector)(selector);
454
- (0, assert_js_1.assert)(queryHandler.waitFor, 'Query handler does not support waiting');
455
- return (await queryHandler.waitFor(this, updatedSelector, options));
456
- }
457
443
  async _addBindingToContext(context, name) {
458
444
  // Previous operation added the binding so we are done.
459
- if (__classPrivateFieldGet(this, _DOMWorld_ctxBindings, "f").has(__classPrivateFieldGet(DOMWorld, _a, "f", _DOMWorld_bindingIdentifier).call(DOMWorld, name, context._contextId))) {
445
+ if (__classPrivateFieldGet(this, _IsolatedWorld_ctxBindings, "f").has(__classPrivateFieldGet(IsolatedWorld, _a, "f", _IsolatedWorld_bindingIdentifier).call(IsolatedWorld, name, context._contextId))) {
460
446
  return;
461
447
  }
462
448
  // Wait for other operation to finish
463
- if (__classPrivateFieldGet(this, _DOMWorld_settingUpBinding, "f")) {
464
- await __classPrivateFieldGet(this, _DOMWorld_settingUpBinding, "f");
449
+ if (__classPrivateFieldGet(this, _IsolatedWorld_settingUpBinding, "f")) {
450
+ await __classPrivateFieldGet(this, _IsolatedWorld_settingUpBinding, "f");
465
451
  return this._addBindingToContext(context, name);
466
452
  }
467
453
  const bind = async (name) => {
@@ -490,24 +476,22 @@ class DOMWorld {
490
476
  return;
491
477
  }
492
478
  }
493
- __classPrivateFieldGet(this, _DOMWorld_ctxBindings, "f").add(__classPrivateFieldGet(DOMWorld, _a, "f", _DOMWorld_bindingIdentifier).call(DOMWorld, name, context._contextId));
479
+ __classPrivateFieldGet(this, _IsolatedWorld_ctxBindings, "f").add(__classPrivateFieldGet(IsolatedWorld, _a, "f", _IsolatedWorld_bindingIdentifier).call(IsolatedWorld, name, context._contextId));
494
480
  };
495
- __classPrivateFieldSet(this, _DOMWorld_settingUpBinding, bind(name), "f");
496
- await __classPrivateFieldGet(this, _DOMWorld_settingUpBinding, "f");
497
- __classPrivateFieldSet(this, _DOMWorld_settingUpBinding, null, "f");
481
+ __classPrivateFieldSet(this, _IsolatedWorld_settingUpBinding, bind(name), "f");
482
+ await __classPrivateFieldGet(this, _IsolatedWorld_settingUpBinding, "f");
483
+ __classPrivateFieldSet(this, _IsolatedWorld_settingUpBinding, null, "f");
498
484
  }
499
485
  async _waitForSelectorInPage(queryOne, selector, options, binding) {
500
- const { visible: waitForVisible = false, hidden: waitForHidden = false, timeout = __classPrivateFieldGet(this, _DOMWorld_timeoutSettings, "f").timeout(), } = options;
486
+ const { visible: waitForVisible = false, hidden: waitForHidden = false, timeout = __classPrivateFieldGet(this, _IsolatedWorld_timeoutSettings, "f").timeout(), } = options;
501
487
  const polling = waitForVisible || waitForHidden ? 'raf' : 'mutation';
502
488
  const title = `selector \`${selector}\`${waitForHidden ? ' to be hidden' : ''}`;
503
489
  async function predicate(root, selector, waitForVisible, waitForHidden) {
504
- const node = predicateQueryHandler
505
- ? (await predicateQueryHandler(root, selector))
506
- : root.querySelector(selector);
490
+ const node = (await predicateQueryHandler(root, selector));
507
491
  return checkWaitForOptions(node, waitForVisible, waitForHidden);
508
492
  }
509
493
  const waitTaskOptions = {
510
- domWorld: this,
494
+ isolatedWorld: this,
511
495
  predicateBody: (0, util_js_1.makePredicateString)(predicate, queryOne),
512
496
  predicateAcceptsContextElement: true,
513
497
  title,
@@ -526,37 +510,10 @@ class DOMWorld {
526
510
  }
527
511
  return elementHandle;
528
512
  }
529
- async waitForXPath(xpath, options) {
530
- const { visible: waitForVisible = false, hidden: waitForHidden = false, timeout = __classPrivateFieldGet(this, _DOMWorld_timeoutSettings, "f").timeout(), } = options;
531
- const polling = waitForVisible || waitForHidden ? 'raf' : 'mutation';
532
- const title = `XPath \`${xpath}\`${waitForHidden ? ' to be hidden' : ''}`;
533
- function predicate(root, xpath, waitForVisible, waitForHidden) {
534
- const node = document.evaluate(xpath, root, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
535
- return checkWaitForOptions(node, waitForVisible, waitForHidden);
536
- }
537
- const waitTaskOptions = {
538
- domWorld: this,
539
- predicateBody: (0, util_js_1.makePredicateString)(predicate),
540
- predicateAcceptsContextElement: true,
541
- title,
542
- polling,
543
- timeout,
544
- args: [xpath, waitForVisible, waitForHidden],
545
- root: options.root,
546
- };
547
- const waitTask = new WaitTask(waitTaskOptions);
548
- const jsHandle = await waitTask.promise;
549
- const elementHandle = jsHandle.asElement();
550
- if (!elementHandle) {
551
- await jsHandle.dispose();
552
- return null;
553
- }
554
- return elementHandle;
555
- }
556
513
  waitForFunction(pageFunction, options = {}, ...args) {
557
- const { polling = 'raf', timeout = __classPrivateFieldGet(this, _DOMWorld_timeoutSettings, "f").timeout() } = options;
514
+ const { polling = 'raf', timeout = __classPrivateFieldGet(this, _IsolatedWorld_timeoutSettings, "f").timeout() } = options;
558
515
  const waitTaskOptions = {
559
- domWorld: this,
516
+ isolatedWorld: this,
560
517
  predicateBody: pageFunction,
561
518
  predicateAcceptsContextElement: false,
562
519
  title: 'function',
@@ -572,10 +529,26 @@ class DOMWorld {
572
529
  return document.title;
573
530
  });
574
531
  }
532
+ async adoptBackendNode(backendNodeId) {
533
+ const executionContext = await this.executionContext();
534
+ const { object } = await __classPrivateFieldGet(this, _IsolatedWorld_client, "f").send('DOM.resolveNode', {
535
+ backendNodeId: backendNodeId,
536
+ executionContextId: executionContext._contextId,
537
+ });
538
+ return (0, util_js_1.createJSHandle)(executionContext, object);
539
+ }
540
+ async adoptHandle(handle) {
541
+ const executionContext = await this.executionContext();
542
+ (0, assert_js_1.assert)(handle.executionContext() !== executionContext, 'Cannot adopt handle that already belongs to this execution context');
543
+ const nodeInfo = await __classPrivateFieldGet(this, _IsolatedWorld_client, "f").send('DOM.describeNode', {
544
+ objectId: handle.remoteObject().objectId,
545
+ });
546
+ return (await this.adoptBackendNode(nodeInfo.node.backendNodeId));
547
+ }
575
548
  }
576
- exports.DOMWorld = DOMWorld;
577
- _a = DOMWorld, _DOMWorld_frameManager = new WeakMap(), _DOMWorld_client = new WeakMap(), _DOMWorld_frame = new WeakMap(), _DOMWorld_timeoutSettings = new WeakMap(), _DOMWorld_documentPromise = new WeakMap(), _DOMWorld_contextPromise = new WeakMap(), _DOMWorld_contextResolveCallback = new WeakMap(), _DOMWorld_detached = new WeakMap(), _DOMWorld_ctxBindings = new WeakMap(), _DOMWorld_boundFunctions = new WeakMap(), _DOMWorld_waitTasks = new WeakMap(), _DOMWorld_settingUpBinding = new WeakMap(), _DOMWorld_onBindingCalled = new WeakMap();
578
- _DOMWorld_bindingIdentifier = { value: (name, contextId) => {
549
+ exports.IsolatedWorld = IsolatedWorld;
550
+ _a = IsolatedWorld, _IsolatedWorld_frameManager = new WeakMap(), _IsolatedWorld_client = new WeakMap(), _IsolatedWorld_frame = new WeakMap(), _IsolatedWorld_timeoutSettings = new WeakMap(), _IsolatedWorld_documentPromise = new WeakMap(), _IsolatedWorld_contextPromise = new WeakMap(), _IsolatedWorld_detached = new WeakMap(), _IsolatedWorld_ctxBindings = new WeakMap(), _IsolatedWorld_boundFunctions = new WeakMap(), _IsolatedWorld_waitTasks = new WeakMap(), _IsolatedWorld_settingUpBinding = new WeakMap(), _IsolatedWorld_onBindingCalled = new WeakMap();
551
+ _IsolatedWorld_bindingIdentifier = { value: (name, contextId) => {
579
552
  return `${name}_${contextId}`;
580
553
  } };
581
554
  const noop = () => { };
@@ -585,7 +558,7 @@ const noop = () => { };
585
558
  class WaitTask {
586
559
  constructor(options) {
587
560
  _WaitTask_instances.add(this);
588
- _WaitTask_domWorld.set(this, void 0);
561
+ _WaitTask_isolatedWorld.set(this, void 0);
589
562
  _WaitTask_polling.set(this, void 0);
590
563
  _WaitTask_timeout.set(this, void 0);
591
564
  _WaitTask_predicateBody.set(this, void 0);
@@ -613,7 +586,7 @@ class WaitTask {
613
586
  }
614
587
  return `return (${predicateBody})(...args);`;
615
588
  }
616
- __classPrivateFieldSet(this, _WaitTask_domWorld, options.domWorld, "f");
589
+ __classPrivateFieldSet(this, _WaitTask_isolatedWorld, options.isolatedWorld, "f");
617
590
  __classPrivateFieldSet(this, _WaitTask_polling, options.polling, "f");
618
591
  __classPrivateFieldSet(this, _WaitTask_timeout, options.timeout, "f");
619
592
  __classPrivateFieldSet(this, _WaitTask_root, options.root || null, "f");
@@ -622,9 +595,9 @@ class WaitTask {
622
595
  __classPrivateFieldSet(this, _WaitTask_args, options.args, "f");
623
596
  __classPrivateFieldSet(this, _WaitTask_binding, options.binding, "f");
624
597
  __classPrivateFieldSet(this, _WaitTask_runCount, 0, "f");
625
- __classPrivateFieldGet(this, _WaitTask_domWorld, "f")._waitTasks.add(this);
598
+ __classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f")._waitTasks.add(this);
626
599
  if (__classPrivateFieldGet(this, _WaitTask_binding, "f")) {
627
- __classPrivateFieldGet(this, _WaitTask_domWorld, "f")._boundFunctions.set(__classPrivateFieldGet(this, _WaitTask_binding, "f").name, __classPrivateFieldGet(this, _WaitTask_binding, "f").pptrFunction);
600
+ __classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f")._boundFunctions.set(__classPrivateFieldGet(this, _WaitTask_binding, "f").name, __classPrivateFieldGet(this, _WaitTask_binding, "f").pptrFunction);
628
601
  }
629
602
  this.promise = new Promise((resolve, reject) => {
630
603
  __classPrivateFieldSet(this, _WaitTask_resolve, resolve, "f");
@@ -650,12 +623,12 @@ class WaitTask {
650
623
  const runCount = __classPrivateFieldSet(this, _WaitTask_runCount, (_b = __classPrivateFieldGet(this, _WaitTask_runCount, "f"), ++_b), "f");
651
624
  let success = null;
652
625
  let error = null;
653
- const context = await __classPrivateFieldGet(this, _WaitTask_domWorld, "f").executionContext();
626
+ const context = await __classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f").executionContext();
654
627
  if (__classPrivateFieldGet(this, _WaitTask_terminated, "f") || runCount !== __classPrivateFieldGet(this, _WaitTask_runCount, "f")) {
655
628
  return;
656
629
  }
657
630
  if (__classPrivateFieldGet(this, _WaitTask_binding, "f")) {
658
- await __classPrivateFieldGet(this, _WaitTask_domWorld, "f")._addBindingToContext(context, __classPrivateFieldGet(this, _WaitTask_binding, "f").name);
631
+ await __classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f")._addBindingToContext(context, __classPrivateFieldGet(this, _WaitTask_binding, "f").name);
659
632
  }
660
633
  if (__classPrivateFieldGet(this, _WaitTask_terminated, "f") || runCount !== __classPrivateFieldGet(this, _WaitTask_runCount, "f")) {
661
634
  return;
@@ -676,7 +649,7 @@ class WaitTask {
676
649
  // If the frame's execution context has already changed, `frame.evaluate` will
677
650
  // throw an error - ignore this predicate run altogether.
678
651
  if (!error &&
679
- (await __classPrivateFieldGet(this, _WaitTask_domWorld, "f")
652
+ (await __classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f")
680
653
  .evaluate(s => {
681
654
  return !s;
682
655
  }, success)
@@ -693,7 +666,7 @@ class WaitTask {
693
666
  if (error.message.includes('TypeError: binding is not a function')) {
694
667
  return this.rerun();
695
668
  }
696
- // When frame is detached the task should have been terminated by the DOMWorld.
669
+ // When frame is detached the task should have been terminated by the IsolatedWorld.
697
670
  // This can fail if we were adding this task while the frame was detached,
698
671
  // so we terminate here instead.
699
672
  if (error.message.includes('Execution context is not available in detached frame')) {
@@ -722,9 +695,9 @@ class WaitTask {
722
695
  }
723
696
  }
724
697
  exports.WaitTask = WaitTask;
725
- _WaitTask_domWorld = new WeakMap(), _WaitTask_polling = new WeakMap(), _WaitTask_timeout = new WeakMap(), _WaitTask_predicateBody = new WeakMap(), _WaitTask_predicateAcceptsContextElement = new WeakMap(), _WaitTask_args = new WeakMap(), _WaitTask_binding = new WeakMap(), _WaitTask_runCount = new WeakMap(), _WaitTask_resolve = new WeakMap(), _WaitTask_reject = new WeakMap(), _WaitTask_timeoutTimer = new WeakMap(), _WaitTask_terminated = new WeakMap(), _WaitTask_root = new WeakMap(), _WaitTask_instances = new WeakSet(), _WaitTask_cleanup = function _WaitTask_cleanup() {
698
+ _WaitTask_isolatedWorld = new WeakMap(), _WaitTask_polling = new WeakMap(), _WaitTask_timeout = new WeakMap(), _WaitTask_predicateBody = new WeakMap(), _WaitTask_predicateAcceptsContextElement = new WeakMap(), _WaitTask_args = new WeakMap(), _WaitTask_binding = new WeakMap(), _WaitTask_runCount = new WeakMap(), _WaitTask_resolve = new WeakMap(), _WaitTask_reject = new WeakMap(), _WaitTask_timeoutTimer = new WeakMap(), _WaitTask_terminated = new WeakMap(), _WaitTask_root = new WeakMap(), _WaitTask_instances = new WeakSet(), _WaitTask_cleanup = function _WaitTask_cleanup() {
726
699
  __classPrivateFieldGet(this, _WaitTask_timeoutTimer, "f") !== undefined && clearTimeout(__classPrivateFieldGet(this, _WaitTask_timeoutTimer, "f"));
727
- __classPrivateFieldGet(this, _WaitTask_domWorld, "f")._waitTasks.delete(this);
700
+ __classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f")._waitTasks.delete(this);
728
701
  };
729
702
  async function waitForPredicatePageFunction(root, predicateBody, predicateAcceptsContextElement, polling, timeout, ...args) {
730
703
  root = root || document;
@@ -824,4 +797,4 @@ async function waitForPredicatePageFunction(root, predicateBody, predicateAccept
824
797
  }
825
798
  }
826
799
  }
827
- //# sourceMappingURL=DOMWorld.js.map
800
+ //# sourceMappingURL=IsolatedWorld.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IsolatedWorld.js","sourceRoot":"","sources":["../../../../src/common/IsolatedWorld.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,iDAAyC;AAGzC,2CAAyC;AAMzC,+DAAgF;AAChF,uDAA6D;AAG7D,uCAQmB;AACnB,mEAGoC;AAsDpC;;;;;GAKG;AACU,QAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAC9C;;;;;GAKG;AACU,QAAA,eAAe,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAUxD;;GAEG;AACH,MAAa,aAAa;IA4BxB,YACE,MAAkB,EAClB,YAA0B,EAC1B,KAAY,EACZ,eAAgC;QA/BlC,8CAA4B;QAC5B,wCAAoB;QACpB,uCAAc;QACd,iDAAkC;QAClC,yCAA4D,IAAI,EAAC;QACjE,wCAAqD,IAAA,0CAAqB,GAAE,EAAC;QAC7E,kCAAY,KAAK,EAAC;QAElB,oEAAoE;QACpE,qCAAe,IAAI,GAAG,EAAU,EAAC;QAEjC,+EAA+E;QAC/E,wCAAkB,IAAI,GAAG,EAA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