isomorfeus-puppetmaster 0.5.1 → 0.5.5

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 (316) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -17
  3. data/lib/isomorfeus/puppetmaster/driver/puppeteer.rb +32 -20
  4. data/lib/isomorfeus/puppetmaster/driver/puppeteer_document.rb +30 -30
  5. data/lib/isomorfeus/puppetmaster/driver/puppeteer_node.rb +4 -4
  6. data/lib/isomorfeus/puppetmaster/node.rb +3 -3
  7. data/lib/isomorfeus/puppetmaster/server.rb +1 -1
  8. data/lib/isomorfeus/puppetmaster/version.rb +1 -1
  9. data/lib/isomorfeus/puppetmaster.rb +2 -2
  10. data/lib/isomorfeus-puppetmaster.rb +5 -2
  11. data/node_modules/.package-lock.json +56 -45
  12. data/node_modules/debug/package.json +1 -1
  13. data/node_modules/debug/src/common.js +14 -1
  14. data/node_modules/{mkdirp → mkdirp-classic}/LICENSE +2 -2
  15. data/node_modules/mkdirp-classic/README.md +18 -0
  16. data/node_modules/{mkdirp → mkdirp-classic}/index.js +2 -3
  17. data/node_modules/mkdirp-classic/package.json +18 -0
  18. data/node_modules/node-fetch/lib/index.es.js +25 -3
  19. data/node_modules/node-fetch/lib/index.js +25 -3
  20. data/node_modules/node-fetch/lib/index.mjs +25 -3
  21. data/node_modules/node-fetch/package.json +8 -6
  22. data/node_modules/progress/lib/node-progress.js +4 -3
  23. data/node_modules/progress/package.json +1 -1
  24. data/node_modules/puppeteer-core/CHANGELOG.md +64 -0
  25. data/node_modules/puppeteer-core/README.md +13 -15
  26. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  27. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js +5 -5
  28. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
  29. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts +20 -2
  30. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
  31. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js +20 -7
  32. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js.map +1 -1
  33. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js +2 -2
  34. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  35. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts +8 -2
  36. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
  37. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js +26 -8
  38. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js.map +1 -1
  39. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts +18 -2
  40. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
  41. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js +16 -9
  42. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
  43. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts +4 -1
  44. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
  45. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js +26 -18
  46. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
  47. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
  48. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js +120 -0
  49. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -1
  50. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js +2 -2
  51. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js.map +1 -1
  52. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts +10 -1
  53. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
  54. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js +9 -1
  55. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js.map +1 -1
  56. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts +1 -1
  57. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -1
  58. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +1 -1
  59. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
  60. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js +8 -8
  61. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
  62. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js +2 -2
  63. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js.map +1 -1
  64. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts +21 -9
  65. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
  66. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js +157 -74
  67. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  68. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts +5 -0
  69. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  70. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js +32 -29
  71. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
  72. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  73. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js +14 -4
  74. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
  75. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts +2 -3
  76. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
  77. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js +3 -4
  78. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js.map +1 -1
  79. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts +27 -5
  80. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  81. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js +46 -21
  82. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  83. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js +1 -1
  84. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
  85. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -0
  86. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  87. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js +7 -5
  88. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  89. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +5 -0
  90. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
  91. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
  92. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts +51 -6
  93. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  94. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js +157 -50
  95. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js.map +1 -1
  96. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js +5 -5
  97. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
  98. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts +3 -1
  99. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
  100. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js +3 -2
  101. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js.map +1 -1
  102. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.d.ts +21 -0
  103. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.d.ts.map +1 -0
  104. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.js +30 -0
  105. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.js.map +1 -0
  106. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -1
  107. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js +9 -3
  108. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
  109. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts +1 -0
  110. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts.map +1 -1
  111. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js +6 -1
  112. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js.map +1 -1
  113. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js +5 -5
  114. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js.map +1 -1
  115. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.d.ts +17 -0
  116. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.d.ts.map +1 -0
  117. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.js +3 -0
  118. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.js.map +1 -0
  119. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  120. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js +20 -21
  121. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  122. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  123. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js +11 -5
  124. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  125. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts +6 -2
  126. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  127. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
  128. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js +30 -15
  129. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
  130. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  131. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +7 -1
  132. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  133. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js +1 -1
  134. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
  135. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts.map +1 -1
  136. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js +17 -3
  137. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js.map +1 -1
  138. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js +1 -1
  139. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -1
  140. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js +1 -1
  141. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js.map +1 -1
  142. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js +1 -1
  143. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js.map +1 -1
  144. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  145. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +5 -5
  146. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
  147. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts +20 -2
  148. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
  149. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js +16 -3
  150. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js.map +1 -1
  151. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts +8 -2
  152. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
  153. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js +23 -5
  154. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js.map +1 -1
  155. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts +18 -2
  156. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
  157. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js +10 -3
  158. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js.map +1 -1
  159. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts +4 -1
  160. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
  161. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js +16 -8
  162. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
  163. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
  164. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js +120 -0
  165. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -1
  166. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts +10 -1
  167. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
  168. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +7 -0
  169. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js.map +1 -1
  170. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts +1 -1
  171. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -1
  172. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts +21 -9
  173. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
  174. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js +152 -69
  175. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  176. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts +5 -0
  177. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  178. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js +22 -19
  179. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
  180. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  181. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js +14 -4
  182. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
  183. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts +2 -3
  184. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
  185. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js +2 -3
  186. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js.map +1 -1
  187. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts +27 -5
  188. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  189. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js +35 -10
  190. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  191. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -0
  192. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  193. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js +6 -4
  194. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  195. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +5 -0
  196. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
  197. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
  198. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts +51 -6
  199. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  200. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js +136 -29
  201. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js.map +1 -1
  202. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts +3 -1
  203. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
  204. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js +3 -2
  205. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js.map +1 -1
  206. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.d.ts +21 -0
  207. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.d.ts.map +1 -0
  208. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +26 -0
  209. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js.map +1 -0
  210. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -1
  211. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js +8 -2
  212. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js.map +1 -1
  213. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts +1 -0
  214. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts.map +1 -1
  215. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js +4 -0
  216. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js.map +1 -1
  217. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js +1 -1
  218. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js.map +1 -1
  219. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.d.ts +17 -0
  220. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.d.ts.map +1 -0
  221. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.js +2 -0
  222. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.js.map +1 -0
  223. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  224. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js +9 -10
  225. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  226. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  227. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js +7 -1
  228. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  229. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts +6 -2
  230. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  231. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
  232. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js +27 -12
  233. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js.map +1 -1
  234. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  235. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +7 -1
  236. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  237. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts.map +1 -1
  238. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js +17 -3
  239. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js.map +1 -1
  240. data/node_modules/puppeteer-core/lib/types.d.ts +3898 -3710
  241. data/node_modules/puppeteer-core/package.json +35 -41
  242. data/node_modules/tar-fs/.travis.yml +2 -1
  243. data/node_modules/tar-fs/README.md +4 -2
  244. data/node_modules/tar-fs/index.js +11 -8
  245. data/node_modules/tar-fs/package.json +4 -4
  246. data/node_modules/tar-fs/test/index.js +1 -1
  247. data/node_modules/tr46/.npmignore +4 -0
  248. data/node_modules/tr46/index.js +193 -0
  249. data/node_modules/tr46/lib/.gitkeep +0 -0
  250. data/node_modules/tr46/lib/mappingTable.json +1 -0
  251. data/node_modules/tr46/package.json +31 -0
  252. data/node_modules/unbzip2-stream/README.md +1 -1
  253. data/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +1 -1
  254. data/node_modules/unbzip2-stream/index.js +3 -2
  255. data/node_modules/unbzip2-stream/lib/bzip2.js +4 -6
  256. data/node_modules/unbzip2-stream/package.json +1 -1
  257. data/node_modules/webidl-conversions/LICENSE.md +12 -0
  258. data/node_modules/webidl-conversions/README.md +53 -0
  259. data/node_modules/webidl-conversions/lib/index.js +189 -0
  260. data/node_modules/webidl-conversions/package.json +23 -0
  261. data/node_modules/whatwg-url/LICENSE.txt +21 -0
  262. data/node_modules/whatwg-url/README.md +67 -0
  263. data/node_modules/whatwg-url/lib/URL-impl.js +200 -0
  264. data/node_modules/whatwg-url/lib/URL.js +196 -0
  265. data/node_modules/whatwg-url/lib/public-api.js +11 -0
  266. data/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
  267. data/node_modules/whatwg-url/lib/utils.js +20 -0
  268. data/node_modules/whatwg-url/package.json +32 -0
  269. data/node_modules/ws/LICENSE +0 -2
  270. data/node_modules/ws/README.md +49 -52
  271. data/node_modules/ws/index.js +3 -0
  272. data/node_modules/ws/lib/buffer-util.js +3 -6
  273. data/node_modules/ws/lib/constants.js +3 -1
  274. data/node_modules/ws/lib/event-target.js +172 -90
  275. data/node_modules/ws/lib/extension.js +8 -28
  276. data/node_modules/ws/lib/permessage-deflate.js +10 -16
  277. data/node_modules/ws/lib/receiver.js +143 -38
  278. data/node_modules/ws/lib/sender.js +29 -12
  279. data/node_modules/ws/lib/stream.js +20 -5
  280. data/node_modules/ws/lib/subprotocol.js +62 -0
  281. data/node_modules/ws/lib/validation.js +28 -8
  282. data/node_modules/ws/lib/websocket-server.js +129 -62
  283. data/node_modules/ws/lib/websocket.js +311 -104
  284. data/node_modules/ws/package.json +10 -5
  285. data/node_modules/ws/wrapper.mjs +8 -0
  286. data/package.json +1 -1
  287. metadata +83 -61
  288. data/node_modules/.bin/mkdirp +0 -12
  289. data/node_modules/.bin/mkdirp.cmd +0 -17
  290. data/node_modules/.bin/mkdirp.ps1 +0 -28
  291. data/node_modules/minimist/.travis.yml +0 -8
  292. data/node_modules/minimist/LICENSE +0 -18
  293. data/node_modules/minimist/example/parse.js +0 -2
  294. data/node_modules/minimist/index.js +0 -245
  295. data/node_modules/minimist/package.json +0 -45
  296. data/node_modules/minimist/readme.markdown +0 -95
  297. data/node_modules/minimist/test/all_bool.js +0 -32
  298. data/node_modules/minimist/test/bool.js +0 -178
  299. data/node_modules/minimist/test/dash.js +0 -31
  300. data/node_modules/minimist/test/default_bool.js +0 -35
  301. data/node_modules/minimist/test/dotted.js +0 -22
  302. data/node_modules/minimist/test/kv_short.js +0 -16
  303. data/node_modules/minimist/test/long.js +0 -31
  304. data/node_modules/minimist/test/num.js +0 -36
  305. data/node_modules/minimist/test/parse.js +0 -197
  306. data/node_modules/minimist/test/parse_modified.js +0 -9
  307. data/node_modules/minimist/test/proto.js +0 -44
  308. data/node_modules/minimist/test/short.js +0 -67
  309. data/node_modules/minimist/test/stop_early.js +0 -15
  310. data/node_modules/minimist/test/unknown.js +0 -102
  311. data/node_modules/minimist/test/whitespace.js +0 -8
  312. data/node_modules/mkdirp/bin/cmd.js +0 -33
  313. data/node_modules/mkdirp/bin/usage.txt +0 -12
  314. data/node_modules/mkdirp/package.json +0 -34
  315. data/node_modules/mkdirp/readme.markdown +0 -100
  316. data/node_modules/node-fetch/CHANGELOG.md +0 -272
@@ -16,7 +16,6 @@
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.Frame = exports.FrameManager = exports.FrameManagerEmittedEvents = void 0;
19
- const Debug_js_1 = require("../common/Debug.js");
20
19
  const EventEmitter_js_1 = require("./EventEmitter.js");
21
20
  const assert_js_1 = require("./assert.js");
22
21
  const helper_js_1 = require("./helper.js");
@@ -24,7 +23,9 @@ const ExecutionContext_js_1 = require("./ExecutionContext.js");
24
23
  const LifecycleWatcher_js_1 = require("./LifecycleWatcher.js");
25
24
  const DOMWorld_js_1 = require("./DOMWorld.js");
26
25
  const NetworkManager_js_1 = require("./NetworkManager.js");
26
+ const Connection_js_1 = require("./Connection.js");
27
27
  const UTILITY_WORLD_NAME = '__puppeteer_utility_world__';
28
+ const xPathPattern = /^\(\/\/[^\)]+\)|^\/\//;
28
29
  /**
29
30
  * We use symbols to prevent external parties listening to these events.
30
31
  * They are internal to Puppeteer.
@@ -53,31 +54,70 @@ class FrameManager extends EventEmitter_js_1.EventEmitter {
53
54
  this._page = page;
54
55
  this._networkManager = new NetworkManager_js_1.NetworkManager(client, ignoreHTTPSErrors, this);
55
56
  this._timeoutSettings = timeoutSettings;
56
- this._client.on('Page.frameAttached', (event) => this._onFrameAttached(event.frameId, event.parentFrameId));
57
- this._client.on('Page.frameNavigated', (event) => this._onFrameNavigated(event.frame));
58
- this._client.on('Page.navigatedWithinDocument', (event) => this._onFrameNavigatedWithinDocument(event.frameId, event.url));
59
- this._client.on('Page.frameDetached', (event) => this._onFrameDetached(event.frameId));
60
- this._client.on('Page.frameStoppedLoading', (event) => this._onFrameStoppedLoading(event.frameId));
61
- this._client.on('Runtime.executionContextCreated', (event) => this._onExecutionContextCreated(event.context));
62
- this._client.on('Runtime.executionContextDestroyed', (event) => this._onExecutionContextDestroyed(event.executionContextId));
63
- this._client.on('Runtime.executionContextsCleared', () => this._onExecutionContextsCleared());
64
- this._client.on('Page.lifecycleEvent', (event) => this._onLifecycleEvent(event));
65
- this._client.on('Target.attachedToTarget', async (event) => this._onFrameMoved(event));
66
- }
67
- async initialize() {
68
- const result = await Promise.all([
69
- this._client.send('Page.enable'),
70
- this._client.send('Page.getFrameTree'),
71
- ]);
72
- const { frameTree } = result[1];
73
- this._handleFrameTree(frameTree);
74
- await Promise.all([
75
- this._client.send('Page.setLifecycleEventsEnabled', { enabled: true }),
76
- this._client
77
- .send('Runtime.enable')
78
- .then(() => this._ensureIsolatedWorld(UTILITY_WORLD_NAME)),
79
- this._networkManager.initialize(),
80
- ]);
57
+ this.setupEventListeners(this._client);
58
+ }
59
+ setupEventListeners(session) {
60
+ session.on('Page.frameAttached', (event) => {
61
+ this._onFrameAttached(session, event.frameId, event.parentFrameId);
62
+ });
63
+ session.on('Page.frameNavigated', (event) => {
64
+ this._onFrameNavigated(event.frame);
65
+ });
66
+ session.on('Page.navigatedWithinDocument', (event) => {
67
+ this._onFrameNavigatedWithinDocument(event.frameId, event.url);
68
+ });
69
+ session.on('Page.frameDetached', (event) => {
70
+ this._onFrameDetached(event.frameId, event.reason);
71
+ });
72
+ session.on('Page.frameStoppedLoading', (event) => {
73
+ this._onFrameStoppedLoading(event.frameId);
74
+ });
75
+ session.on('Runtime.executionContextCreated', (event) => {
76
+ this._onExecutionContextCreated(event.context, session);
77
+ });
78
+ session.on('Runtime.executionContextDestroyed', (event) => {
79
+ this._onExecutionContextDestroyed(event.executionContextId, session);
80
+ });
81
+ session.on('Runtime.executionContextsCleared', () => {
82
+ this._onExecutionContextsCleared(session);
83
+ });
84
+ session.on('Page.lifecycleEvent', (event) => {
85
+ this._onLifecycleEvent(event);
86
+ });
87
+ session.on('Target.attachedToTarget', async (event) => {
88
+ this._onAttachedToTarget(event);
89
+ });
90
+ session.on('Target.detachedFromTarget', async (event) => {
91
+ this._onDetachedFromTarget(event);
92
+ });
93
+ }
94
+ async initialize(client = this._client) {
95
+ try {
96
+ const result = await Promise.all([
97
+ client.send('Page.enable'),
98
+ client.send('Page.getFrameTree'),
99
+ ]);
100
+ const { frameTree } = result[1];
101
+ this._handleFrameTree(client, frameTree);
102
+ await Promise.all([
103
+ client.send('Page.setLifecycleEventsEnabled', { enabled: true }),
104
+ client
105
+ .send('Runtime.enable')
106
+ .then(() => this._ensureIsolatedWorld(client, UTILITY_WORLD_NAME)),
107
+ // TODO: Network manager is not aware of OOP iframes yet.
108
+ client === this._client
109
+ ? this._networkManager.initialize()
110
+ : Promise.resolve(),
111
+ ]);
112
+ }
113
+ catch (error) {
114
+ // The target might have been closed before the initialization finished.
115
+ if (error.message.includes('Target closed') ||
116
+ error.message.includes('Session closed')) {
117
+ return;
118
+ }
119
+ throw error;
120
+ }
81
121
  }
82
122
  networkManager() {
83
123
  return this._networkManager;
@@ -134,15 +174,23 @@ class FrameManager extends EventEmitter_js_1.EventEmitter {
134
174
  throw error;
135
175
  return watcher.navigationResponse();
136
176
  }
137
- async _onFrameMoved(event) {
177
+ async _onAttachedToTarget(event) {
138
178
  if (event.targetInfo.type !== 'iframe') {
139
179
  return;
140
180
  }
141
- // TODO(sadym): Remove debug message once proper OOPIF support is
142
- // implemented: https://github.com/puppeteer/puppeteer/issues/2548
143
- Debug_js_1.debug('puppeteer:frame')(`The frame '${event.targetInfo.targetId}' moved to another session. ` +
144
- `Out-of-process iframes (OOPIF) are not supported by Puppeteer yet. ` +
145
- `https://github.com/puppeteer/puppeteer/issues/2548`);
181
+ const frame = this._frames.get(event.targetInfo.targetId);
182
+ const session = Connection_js_1.Connection.fromSession(this._client).session(event.sessionId);
183
+ frame._updateClient(session);
184
+ this.setupEventListeners(session);
185
+ await this.initialize(session);
186
+ }
187
+ async _onDetachedFromTarget(event) {
188
+ const frame = this._frames.get(event.targetId);
189
+ if (frame && frame.isOOPFrame()) {
190
+ // When an OOP iframe is removed from the page, it
191
+ // will only get a Target.detachedFromTarget event.
192
+ this._removeFramesRecursively(frame);
193
+ }
146
194
  }
147
195
  _onLifecycleEvent(event) {
148
196
  const frame = this._frames.get(event.frameId);
@@ -158,14 +206,16 @@ class FrameManager extends EventEmitter_js_1.EventEmitter {
158
206
  frame._onLoadingStopped();
159
207
  this.emit(exports.FrameManagerEmittedEvents.LifecycleEvent, frame);
160
208
  }
161
- _handleFrameTree(frameTree) {
162
- if (frameTree.frame.parentId)
163
- this._onFrameAttached(frameTree.frame.id, frameTree.frame.parentId);
209
+ _handleFrameTree(session, frameTree) {
210
+ if (frameTree.frame.parentId) {
211
+ this._onFrameAttached(session, frameTree.frame.id, frameTree.frame.parentId);
212
+ }
164
213
  this._onFrameNavigated(frameTree.frame);
165
214
  if (!frameTree.childFrames)
166
215
  return;
167
- for (const child of frameTree.childFrames)
168
- this._handleFrameTree(child);
216
+ for (const child of frameTree.childFrames) {
217
+ this._handleFrameTree(session, child);
218
+ }
169
219
  }
170
220
  page() {
171
221
  return this._page;
@@ -179,12 +229,20 @@ class FrameManager extends EventEmitter_js_1.EventEmitter {
179
229
  frame(frameId) {
180
230
  return this._frames.get(frameId) || null;
181
231
  }
182
- _onFrameAttached(frameId, parentFrameId) {
183
- if (this._frames.has(frameId))
232
+ _onFrameAttached(session, frameId, parentFrameId) {
233
+ if (this._frames.has(frameId)) {
234
+ const frame = this._frames.get(frameId);
235
+ if (session && frame.isOOPFrame()) {
236
+ // If an OOP iframes becomes a normal iframe again
237
+ // it is first attached to the parent page before
238
+ // the target is removed.
239
+ frame._updateClient(session);
240
+ }
184
241
  return;
185
- assert_js_1.assert(parentFrameId);
242
+ }
243
+ (0, assert_js_1.assert)(parentFrameId);
186
244
  const parentFrame = this._frames.get(parentFrameId);
187
- const frame = new Frame(this, parentFrame, frameId);
245
+ const frame = new Frame(this, parentFrame, frameId, session);
188
246
  this._frames.set(frame._id, frame);
189
247
  this.emit(exports.FrameManagerEmittedEvents.FrameAttached, frame);
190
248
  }
@@ -193,7 +251,7 @@ class FrameManager extends EventEmitter_js_1.EventEmitter {
193
251
  let frame = isMainFrame
194
252
  ? this._mainFrame
195
253
  : this._frames.get(framePayload.id);
196
- assert_js_1.assert(isMainFrame || frame, 'We either navigate top level or have old version of the navigated frame');
254
+ (0, assert_js_1.assert)(isMainFrame || frame, 'We either navigate top level or have old version of the navigated frame');
197
255
  // Detach all child frames first.
198
256
  if (frame) {
199
257
  for (const child of frame.childFrames())
@@ -208,7 +266,7 @@ class FrameManager extends EventEmitter_js_1.EventEmitter {
208
266
  }
209
267
  else {
210
268
  // Initial main frame navigation.
211
- frame = new Frame(this, null, framePayload.id);
269
+ frame = new Frame(this, null, framePayload.id, this._client);
212
270
  }
213
271
  this._frames.set(framePayload.id, frame);
214
272
  this._mainFrame = frame;
@@ -217,22 +275,23 @@ class FrameManager extends EventEmitter_js_1.EventEmitter {
217
275
  frame._navigated(framePayload);
218
276
  this.emit(exports.FrameManagerEmittedEvents.FrameNavigated, frame);
219
277
  }
220
- async _ensureIsolatedWorld(name) {
221
- if (this._isolatedWorlds.has(name))
278
+ async _ensureIsolatedWorld(session, name) {
279
+ const key = `${session.id()}:${name}`;
280
+ if (this._isolatedWorlds.has(key))
222
281
  return;
223
- this._isolatedWorlds.add(name);
224
- await this._client.send('Page.addScriptToEvaluateOnNewDocument', {
282
+ this._isolatedWorlds.add(key);
283
+ await session.send('Page.addScriptToEvaluateOnNewDocument', {
225
284
  source: `//# sourceURL=${ExecutionContext_js_1.EVALUATION_SCRIPT_URL}`,
226
285
  worldName: name,
227
286
  });
228
287
  // Frames might be removed before we send this.
229
- await Promise.all(this.frames().map((frame) => this._client
230
- .send('Page.createIsolatedWorld', {
288
+ await Promise.all(this.frames()
289
+ .filter((frame) => frame._client === session)
290
+ .map((frame) => session.send('Page.createIsolatedWorld', {
231
291
  frameId: frame._id,
232
292
  worldName: name,
233
293
  grantUniveralAccess: true,
234
- })
235
- .catch(helper_js_1.debugError)));
294
+ })));
236
295
  }
237
296
  _onFrameNavigatedWithinDocument(frameId, url) {
238
297
  const frame = this._frames.get(frameId);
@@ -242,17 +301,25 @@ class FrameManager extends EventEmitter_js_1.EventEmitter {
242
301
  this.emit(exports.FrameManagerEmittedEvents.FrameNavigatedWithinDocument, frame);
243
302
  this.emit(exports.FrameManagerEmittedEvents.FrameNavigated, frame);
244
303
  }
245
- _onFrameDetached(frameId) {
304
+ _onFrameDetached(frameId, reason) {
246
305
  const frame = this._frames.get(frameId);
247
- if (frame)
248
- this._removeFramesRecursively(frame);
306
+ if (reason === 'remove') {
307
+ // Only remove the frame if the reason for the detached event is
308
+ // an actual removement of the frame.
309
+ // For frames that become OOP iframes, the reason would be 'swap'.
310
+ if (frame)
311
+ this._removeFramesRecursively(frame);
312
+ }
249
313
  }
250
- _onExecutionContextCreated(contextPayload) {
314
+ _onExecutionContextCreated(contextPayload, session) {
251
315
  const auxData = contextPayload.auxData;
252
316
  const frameId = auxData ? auxData.frameId : null;
253
317
  const frame = this._frames.get(frameId) || null;
254
318
  let world = null;
255
319
  if (frame) {
320
+ // Only care about execution contexts created for the current session.
321
+ if (frame._client !== session)
322
+ return;
256
323
  if (contextPayload.auxData && !!contextPayload.auxData['isDefault']) {
257
324
  world = frame._mainWorld;
258
325
  }
@@ -264,29 +331,36 @@ class FrameManager extends EventEmitter_js_1.EventEmitter {
264
331
  world = frame._secondaryWorld;
265
332
  }
266
333
  }
267
- const context = new ExecutionContext_js_1.ExecutionContext(this._client, contextPayload, world);
334
+ const context = new ExecutionContext_js_1.ExecutionContext(frame._client || this._client, contextPayload, world);
268
335
  if (world)
269
336
  world._setContext(context);
270
- this._contextIdToContext.set(contextPayload.id, context);
337
+ const key = `${session.id()}:${contextPayload.id}`;
338
+ this._contextIdToContext.set(key, context);
271
339
  }
272
- _onExecutionContextDestroyed(executionContextId) {
273
- const context = this._contextIdToContext.get(executionContextId);
340
+ _onExecutionContextDestroyed(executionContextId, session) {
341
+ const key = `${session.id()}:${executionContextId}`;
342
+ const context = this._contextIdToContext.get(key);
274
343
  if (!context)
275
344
  return;
276
- this._contextIdToContext.delete(executionContextId);
345
+ this._contextIdToContext.delete(key);
277
346
  if (context._world)
278
347
  context._world._setContext(null);
279
348
  }
280
- _onExecutionContextsCleared() {
281
- for (const context of this._contextIdToContext.values()) {
349
+ _onExecutionContextsCleared(session) {
350
+ for (const [key, context] of this._contextIdToContext.entries()) {
351
+ // Make sure to only clear execution contexts that belong
352
+ // to the current session.
353
+ if (context._client !== session)
354
+ continue;
282
355
  if (context._world)
283
356
  context._world._setContext(null);
357
+ this._contextIdToContext.delete(key);
284
358
  }
285
- this._contextIdToContext.clear();
286
359
  }
287
- executionContextById(contextId) {
288
- const context = this._contextIdToContext.get(contextId);
289
- assert_js_1.assert(context, 'INTERNAL ERROR: missing context with id = ' + contextId);
360
+ executionContextById(contextId, session = this._client) {
361
+ const key = `${session.id()}:${contextId}`;
362
+ const context = this._contextIdToContext.get(key);
363
+ (0, assert_js_1.assert)(context, 'INTERNAL ERROR: missing context with id = ' + contextId);
290
364
  return context;
291
365
  }
292
366
  _removeFramesRecursively(frame) {
@@ -351,7 +425,7 @@ class Frame {
351
425
  /**
352
426
  * @internal
353
427
  */
354
- constructor(frameManager, parentFrame, frameId) {
428
+ constructor(frameManager, parentFrame, frameId, client) {
355
429
  this._url = '';
356
430
  this._detached = false;
357
431
  /**
@@ -368,11 +442,21 @@ class Frame {
368
442
  this._id = frameId;
369
443
  this._detached = false;
370
444
  this._loaderId = '';
371
- this._mainWorld = new DOMWorld_js_1.DOMWorld(frameManager, this, frameManager._timeoutSettings);
372
- this._secondaryWorld = new DOMWorld_js_1.DOMWorld(frameManager, this, frameManager._timeoutSettings);
373
445
  this._childFrames = new Set();
374
446
  if (this._parentFrame)
375
447
  this._parentFrame._childFrames.add(this);
448
+ this._updateClient(client);
449
+ }
450
+ /**
451
+ * @internal
452
+ */
453
+ _updateClient(client) {
454
+ this._client = client;
455
+ this._mainWorld = new DOMWorld_js_1.DOMWorld(this._client, this._frameManager, this, this._frameManager._timeoutSettings);
456
+ this._secondaryWorld = new DOMWorld_js_1.DOMWorld(this._client, this._frameManager, this, this._frameManager._timeoutSettings);
457
+ }
458
+ isOOPFrame() {
459
+ return this._client !== this._frameManager._client;
376
460
  }
377
461
  /**
378
462
  * @remarks
@@ -765,11 +849,10 @@ class Frame {
765
849
  * {@link Frame.waitForTimeout}.
766
850
  */
767
851
  waitFor(selectorOrFunctionOrTimeout, options = {}, ...args) {
768
- const xPathPattern = '//';
769
852
  console.warn('waitFor is deprecated and will be removed in a future release. See https://github.com/puppeteer/puppeteer/issues/6214 for details and how to migrate your code.');
770
853
  if (helper_js_1.helper.isString(selectorOrFunctionOrTimeout)) {
771
854
  const string = selectorOrFunctionOrTimeout;
772
- if (string.startsWith(xPathPattern))
855
+ if (xPathPattern.test(string))
773
856
  return this.waitForXPath(string, options);
774
857
  return this.waitForSelector(string, options);
775
858
  }
@@ -958,8 +1041,8 @@ class Frame {
958
1041
  }
959
1042
  exports.Frame = Frame;
960
1043
  function assertNoLegacyNavigationOptions(options) {
961
- assert_js_1.assert(options['networkIdleTimeout'] === undefined, 'ERROR: networkIdleTimeout option is no longer supported.');
962
- assert_js_1.assert(options['networkIdleInflight'] === undefined, 'ERROR: networkIdleInflight option is no longer supported.');
963
- assert_js_1.assert(options.waitUntil !== 'networkidle', 'ERROR: "networkidle" option is no longer supported. Use "networkidle2" instead');
1044
+ (0, assert_js_1.assert)(options['networkIdleTimeout'] === undefined, 'ERROR: networkIdleTimeout option is no longer supported.');
1045
+ (0, assert_js_1.assert)(options['networkIdleInflight'] === undefined, 'ERROR: networkIdleInflight option is no longer supported.');
1046
+ (0, assert_js_1.assert)(options.waitUntil !== 'networkidle', 'ERROR: "networkidle" option is no longer supported. Use "networkidle2" instead');
964
1047
  }
965
1048
  //# sourceMappingURL=FrameManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FrameManager.js","sourceRoot":"","sources":["../../../../src/common/FrameManager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,iDAA2C;AAE3C,uDAAiD;AACjD,2CAAqC;AACrC,2CAAiD;AACjD,+DAAgF;AAChF,+DAG+B;AAC/B,+CAAiE;AACjE,2DAAqD;AAiBrD,MAAM,kBAAkB,GAAG,6BAA6B,CAAC;AAEzD;;;;;GAKG;AACU,QAAA,yBAAyB,GAAG;IACvC,aAAa,EAAE,MAAM,CAAC,4BAA4B,CAAC;IACnD,cAAc,EAAE,MAAM,CAAC,6BAA6B,CAAC;IACrD,aAAa,EAAE,MAAM,CAAC,4BAA4B,CAA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CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QAC1B,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;QAC/B,IAAI,IAAI,CAAC,YAAY;YAAE,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;CACF;AAjxBD,sBAixBC;AAED,SAAS,+BAA+B,CAAC,OAExC;IACC,IAAA,kBAAM,EACJ,OAAO,CAAC,oBAAoB,CAAC,KAAK,SAAS,EAC3C,0DAA0D,CAC3D,CAAC;IACF,IAAA,kBAAM,EACJ,OAAO,CAAC,qBAAqB,CAAC,KAAK,SAAS,EAC5C,2DAA2D,CAC5D,CAAC;IACF,IAAA,kBAAM,EACJ,OAAO,CAAC,SAAS,KAAK,aAAa,EACnC,gFAAgF,CACjF,CAAC;AACJ,CAAC"}
@@ -123,6 +123,7 @@ export declare class HTTPRequest {
123
123
  private _currentStrategy;
124
124
  private _currentPriority;
125
125
  private _interceptActions;
126
+ private _initiator;
126
127
  /**
127
128
  * @internal
128
129
  */
@@ -196,6 +197,10 @@ export declare class HTTPRequest {
196
197
  * @returns true if the request is the driver of the current frame's navigation.
197
198
  */
198
199
  isNavigationRequest(): boolean;
200
+ /**
201
+ * @returns the initiator of the request.
202
+ */
203
+ initiator(): Protocol.Network.Initiator;
199
204
  /**
200
205
  * A `redirectChain` is a chain of requests initiated to fetch a resource.
201
206
  * @remarks
@@ -1 +1 @@
1
- {"version":3,"file":"HTTPRequest.d.ts","sourceRoot":"","sources":["../../../../src/common/HTTPRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE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
  this._interceptActions = [];
73
+ this._initiator = event.initiator;
73
74
  for (const key of Object.keys(event.request.headers))
74
75
  this._headers[key.toLowerCase()] = event.request.headers[key];
75
76
  }
@@ -85,7 +86,7 @@ class HTTPRequest {
85
86
  * `respond()` aren't called).
86
87
  */
87
88
  continueRequestOverrides() {
88
- assert_js_1.assert(this._allowInterception, 'Request Interception is not enabled!');
89
+ (0, assert_js_1.assert)(this._allowInterception, 'Request Interception is not enabled!');
89
90
  return this._continueRequestOverrides;
90
91
  }
91
92
  /**
@@ -93,14 +94,14 @@ class HTTPRequest {
93
94
  * interception is allowed to respond (ie, `abort()` is not called).
94
95
  */
95
96
  responseForRequest() {
96
- assert_js_1.assert(this._allowInterception, 'Request Interception is not enabled!');
97
+ (0, assert_js_1.assert)(this._allowInterception, 'Request Interception is not enabled!');
97
98
  return this._responseForRequest;
98
99
  }
99
100
  /**
100
101
  * @returns the most recent reason for aborting the request
101
102
  */
102
103
  abortErrorReason() {
103
- assert_js_1.assert(this._allowInterception, 'Request Interception is not enabled!');
104
+ (0, assert_js_1.assert)(this._allowInterception, 'Request Interception is not enabled!');
104
105
  return this._abortErrorReason;
105
106
  }
106
107
  /**
@@ -129,11 +130,7 @@ class HTTPRequest {
129
130
  * the request interception.
130
131
  */
131
132
  async finalizeInterceptions() {
132
- await this._interceptActions.reduce((promiseChain, interceptAction) => promiseChain.then(interceptAction).catch((error) => {
133
- // This is here so cooperative handlers that fail do not stop other handlers
134
- // from running
135
- helper_js_1.debugError(error);
136
- }), Promise.resolve());
133
+ await this._interceptActions.reduce((promiseChain, interceptAction) => promiseChain.then(interceptAction), Promise.resolve());
137
134
  const [resolution] = this.interceptResolution();
138
135
  switch (resolution) {
139
136
  case 'abort':
@@ -190,6 +187,12 @@ class HTTPRequest {
190
187
  isNavigationRequest() {
191
188
  return this._isNavigationRequest;
192
189
  }
190
+ /**
191
+ * @returns the initiator of the request.
192
+ */
193
+ initiator() {
194
+ return this._initiator;
195
+ }
193
196
  /**
194
197
  * A `redirectChain` is a chain of requests initiated to fetch a resource.
195
198
  * @remarks
@@ -279,8 +282,8 @@ class HTTPRequest {
279
282
  // Request interception is not supported for data: urls.
280
283
  if (this._url.startsWith('data:'))
281
284
  return;
282
- assert_js_1.assert(this._allowInterception, 'Request Interception is not enabled!');
283
- assert_js_1.assert(!this._interceptionHandled, 'Request is already handled!');
285
+ (0, assert_js_1.assert)(this._allowInterception, 'Request Interception is not enabled!');
286
+ (0, assert_js_1.assert)(!this._interceptionHandled, 'Request is already handled!');
284
287
  if (priority === undefined) {
285
288
  return this._continue(overrides);
286
289
  }
@@ -315,10 +318,8 @@ class HTTPRequest {
315
318
  headers: headers ? headersArray(headers) : undefined,
316
319
  })
317
320
  .catch((error) => {
318
- // In certain cases, protocol will return error if the request was
319
- // already canceled or the page was closed. We should tolerate these
320
- // errors.
321
- helper_js_1.debugError(error);
321
+ this._interceptionHandled = false;
322
+ return handleError(error);
322
323
  });
323
324
  }
324
325
  /**
@@ -356,8 +357,8 @@ class HTTPRequest {
356
357
  // Mocking responses for dataURL requests is not currently supported.
357
358
  if (this._url.startsWith('data:'))
358
359
  return;
359
- assert_js_1.assert(this._allowInterception, 'Request Interception is not enabled!');
360
- assert_js_1.assert(!this._interceptionHandled, 'Request is already handled!');
360
+ (0, assert_js_1.assert)(this._allowInterception, 'Request Interception is not enabled!');
361
+ (0, assert_js_1.assert)(!this._interceptionHandled, 'Request is already handled!');
361
362
  if (priority === undefined) {
362
363
  return this._respond(response);
363
364
  }
@@ -398,10 +399,8 @@ class HTTPRequest {
398
399
  body: responseBody ? responseBody.toString('base64') : undefined,
399
400
  })
400
401
  .catch((error) => {
401
- // In certain cases, protocol will return error if the request was
402
- // already canceled or the page was closed. We should tolerate these
403
- // errors.
404
- helper_js_1.debugError(error);
402
+ this._interceptionHandled = false;
403
+ return handleError(error);
405
404
  });
406
405
  }
407
406
  /**
@@ -422,9 +421,9 @@ class HTTPRequest {
422
421
  if (this._url.startsWith('data:'))
423
422
  return;
424
423
  const errorReason = errorReasons[errorCode];
425
- assert_js_1.assert(errorReason, 'Unknown error code: ' + errorCode);
426
- assert_js_1.assert(this._allowInterception, 'Request Interception is not enabled!');
427
- assert_js_1.assert(!this._interceptionHandled, 'Request is already handled!');
424
+ (0, assert_js_1.assert)(errorReason, 'Unknown error code: ' + errorCode);
425
+ (0, assert_js_1.assert)(this._allowInterception, 'Request Interception is not enabled!');
426
+ (0, assert_js_1.assert)(!this._interceptionHandled, 'Request is already handled!');
428
427
  if (priority === undefined) {
429
428
  return this._abort(errorReason);
430
429
  }
@@ -443,12 +442,7 @@ class HTTPRequest {
443
442
  requestId: this._interceptionId,
444
443
  errorReason,
445
444
  })
446
- .catch((error) => {
447
- // In certain cases, protocol will return error if the request was
448
- // already canceled or the page was closed. We should tolerate these
449
- // errors.
450
- helper_js_1.debugError(error);
451
- });
445
+ .catch(handleError);
452
446
  }
453
447
  }
454
448
  exports.HTTPRequest = HTTPRequest;
@@ -476,6 +470,15 @@ function headersArray(headers) {
476
470
  }
477
471
  return result;
478
472
  }
473
+ async function handleError(error) {
474
+ if (['Invalid header'].includes(error.originalMessage)) {
475
+ throw error;
476
+ }
477
+ // In certain cases, protocol will return error if the request was
478
+ // already canceled or the page was closed. We should tolerate these
479
+ // errors.
480
+ (0, helper_js_1.debugError)(error);
481
+ }
479
482
  // List taken from
480
483
  // https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
481
484
  // with extra 306 and 418 codes.