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.
- package/config/gni/devtools_grd_files.gni +9 -2
- package/front_end/core/common/ParsedURL.ts +1 -1
- package/front_end/core/sdk/ResourceTreeModel.ts +12 -8
- package/front_end/entrypoints/main/MainImpl.ts +2 -1
- package/front_end/panels/media/PlayerPropertiesView.ts +43 -11
- package/front_end/panels/media/playerPropertiesView.css +22 -3
- package/front_end/panels/sources/NavigatorView.ts +9 -0
- package/front_end/panels/sources/components/BreakpointsView.ts +11 -16
- package/front_end/panels/sources/components/breakpointsView.css +21 -13
- package/front_end/panels/timeline/TimelineLoader.ts +1 -1
- package/front_end/services/puppeteer/PuppeteerConnection.ts +1 -1
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +244 -244
- package/front_end/third_party/lighthouse/locales/en-US.json +2 -2
- package/front_end/third_party/lighthouse/locales/en-XL.json +2 -2
- package/front_end/third_party/puppeteer/package/README.md +20 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +10 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +19 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +23 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js +35 -20
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +9 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +19 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +5 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +6 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts +168 -131
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js +208 -206
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +74 -75
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +82 -97
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts +16 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js +17 -9
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts +634 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js +713 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +9 -679
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +77 -803
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +11 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +11 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +34 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +35 -14
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{DOMWorld.d.ts → IsolatedWorld.d.ts} +58 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{DOMWorld.js → IsolatedWorld.js} +124 -151
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +40 -58
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +53 -76
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +23 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +17 -17
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +8 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +395 -296
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +398 -313
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +14 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +14 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +38 -17
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +49 -31
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +7 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +8 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js +8 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +1 -34
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +5 -53
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts +28 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js +148 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts +25 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js +78 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts +17 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js +22 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{common → util}/assert.d.ts +0 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/assert.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{common → util}/assert.js +0 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/assert.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js +19 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +10 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +19 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +23 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js +36 -21
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +9 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +19 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +5 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +6 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts +168 -131
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js +208 -206
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +74 -75
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +83 -98
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +16 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js +17 -9
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts +634 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js +709 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +9 -679
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +72 -797
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +11 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +11 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +34 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +35 -14
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{DOMWorld.d.ts → IsolatedWorld.d.ts} +58 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{DOMWorld.js → IsolatedWorld.js} +123 -150
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +40 -58
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +54 -77
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +24 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +17 -17
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +8 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +395 -296
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +398 -313
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +14 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +14 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +38 -17
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +49 -31
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +7 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +8 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +8 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +1 -34
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +3 -48
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts +28 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js +142 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts +25 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js +73 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts +17 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.js +17 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{common → util}/assert.d.ts +0 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/assert.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{common → util}/assert.js +0 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/assert.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js +15 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +1069 -878
- package/front_end/third_party/puppeteer/package/package.json +32 -28
- package/front_end/third_party/puppeteer/package/typescript-if-required.js +1 -1
- package/front_end/third_party/puppeteer/puppeteer.ts +1 -1
- package/front_end/ui/components/text_prompt/TextPrompt.ts +1 -1
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
- package/package.json +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../../../src/common/Errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;gBACxB,OAAO,CAAC,EAAE,MAAM;CAK7B;AAED;;;;;;;;;GASG;AACH,qBAAa,YAAa,SAAQ,WAAW;CAAG;AAEhD;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,WAAW;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,SAAM;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,OAAO,YAAY,CAAC;IAClC,aAAa,EAAE,OAAO,aAAa,CAAC;CACrC;AAED
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../../../src/common/Errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;gBACxB,OAAO,CAAC,EAAE,MAAM;CAK7B;AAED;;;;;;;;;GASG;AACH,qBAAa,YAAa,SAAQ,WAAW;CAAG;AAEhD;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,WAAW;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,SAAM;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,OAAO,YAAY,CAAC;IAClC,aAAa,EAAE,OAAO,aAAa,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,MAAM,EAAE,eAGnB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../../../src/common/Errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;GAEG;AACH,MAAa,WAAY,SAAQ,KAAK;IACpC,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;CACF;AAND,kCAMC;AAED;;;;;;;;;GASG;AACH,MAAa,YAAa,SAAQ,WAAW;CAAG;AAAhD,oCAAgD;AAEhD;;;;GAIG;AACH,MAAa,aAAc,SAAQ,WAAW;IAA9C;;QAES,oBAAe,GAAG,EAAE,CAAC;IAC9B,CAAC;CAAA;AAHD,sCAGC;AAUD
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../../../src/common/Errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;GAEG;AACH,MAAa,WAAY,SAAQ,KAAK;IACpC,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;CACF;AAND,kCAMC;AAED;;;;;;;;;GASG;AACH,MAAa,YAAa,SAAQ,WAAW;CAAG;AAAhD,oCAAgD;AAEhD;;;;GAIG;AACH,MAAa,aAAc,SAAQ,WAAW;IAA9C;;QAES,oBAAe,GAAG,EAAE,CAAC;IAC9B,CAAC;CAAA;AAHD,sCAGC;AAUD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACU,QAAA,MAAM,GAAoB,MAAM,CAAC,MAAM,CAAC;IACnD,YAAY;IACZ,aAAa;CACd,CAAC,CAAC"}
|
@@ -38,14 +38,14 @@ export declare class EventEmitter implements CommonEventEmitter {
|
|
38
38
|
/**
|
39
39
|
* Bind an event listener to fire when an event occurs.
|
40
40
|
* @param event - the event type you'd like to listen to. Can be a string or symbol.
|
41
|
-
* @param handler
|
41
|
+
* @param handler - the function to be called when the event occurs.
|
42
42
|
* @returns `this` to enable you to chain method calls.
|
43
43
|
*/
|
44
44
|
on(event: EventType, handler: Handler): EventEmitter;
|
45
45
|
/**
|
46
46
|
* Remove an event listener from firing.
|
47
47
|
* @param event - the event type you'd like to stop listening to.
|
48
|
-
* @param handler
|
48
|
+
* @param handler - the function that should be removed.
|
49
49
|
* @returns `this` to enable you to chain method calls.
|
50
50
|
*/
|
51
51
|
off(event: EventType, handler: Handler): EventEmitter;
|
@@ -28,7 +28,7 @@ class EventEmitter {
|
|
28
28
|
/**
|
29
29
|
* Bind an event listener to fire when an event occurs.
|
30
30
|
* @param event - the event type you'd like to listen to. Can be a string or symbol.
|
31
|
-
* @param handler
|
31
|
+
* @param handler - the function to be called when the event occurs.
|
32
32
|
* @returns `this` to enable you to chain method calls.
|
33
33
|
*/
|
34
34
|
on(event, handler) {
|
@@ -38,7 +38,7 @@ class EventEmitter {
|
|
38
38
|
/**
|
39
39
|
* Remove an event listener from firing.
|
40
40
|
* @param event - the event type you'd like to stop listening to.
|
41
|
-
* @param handler
|
41
|
+
* @param handler - the function that should be removed.
|
42
42
|
* @returns `this` to enable you to chain method calls.
|
43
43
|
*/
|
44
44
|
off(event, handler) {
|
package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts
CHANGED
@@ -15,9 +15,8 @@
|
|
15
15
|
*/
|
16
16
|
import { Protocol } from 'devtools-protocol';
|
17
17
|
import { CDPSession } from './Connection.js';
|
18
|
-
import {
|
19
|
-
import {
|
20
|
-
import { Frame } from './FrameManager.js';
|
18
|
+
import { Frame } from './Frame.js';
|
19
|
+
import { IsolatedWorld } from './IsolatedWorld.js';
|
21
20
|
import { JSHandle } from './JSHandle.js';
|
22
21
|
import { EvaluateFunc, HandleFor } from './types.js';
|
23
22
|
/**
|
@@ -25,21 +24,26 @@ import { EvaluateFunc, HandleFor } from './types.js';
|
|
25
24
|
*/
|
26
25
|
export declare const EVALUATION_SCRIPT_URL = "pptr://__puppeteer_evaluation_script__";
|
27
26
|
/**
|
28
|
-
*
|
29
|
-
* many execution contexts:
|
30
|
-
* - each
|
31
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe |
|
32
|
-
* frame } has "default" execution context that is always created after frame is
|
33
|
-
* attached to DOM. This context is returned by the
|
34
|
-
* {@link Frame.executionContext} method.
|
35
|
-
* - {@link https://developer.chrome.com/extensions | Extension}'s content scripts
|
36
|
-
* create additional execution contexts.
|
27
|
+
* @deprecated Do not use directly.
|
37
28
|
*
|
38
|
-
*
|
39
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API |
|
40
|
-
* workers }.
|
29
|
+
* Represents a context for JavaScript execution.
|
41
30
|
*
|
42
|
-
* @
|
31
|
+
* @example
|
32
|
+
* A {@link Page} can have several execution contexts:
|
33
|
+
*
|
34
|
+
* - Each {@link Frame} of a {@link Page | page} has a "default" execution
|
35
|
+
* context that is always created after frame is attached to DOM. This context
|
36
|
+
* is returned by the {@link Frame.executionContext} method.
|
37
|
+
* - Each {@link https://developer.chrome.com/extensions | Chrome extensions}
|
38
|
+
* creates additional execution contexts to isolate their code.
|
39
|
+
*
|
40
|
+
* @remarks
|
41
|
+
* By definition, each context is isolated from one another, however they are
|
42
|
+
* all able to manipulate non-JavaScript resources (such as DOM).
|
43
|
+
*
|
44
|
+
* @remarks
|
45
|
+
* Besides pages, execution contexts can be found in
|
46
|
+
* {@link WebWorker | workers}.
|
43
47
|
*/
|
44
48
|
export declare class ExecutionContext {
|
45
49
|
#private;
|
@@ -50,7 +54,7 @@ export declare class ExecutionContext {
|
|
50
54
|
/**
|
51
55
|
* @internal
|
52
56
|
*/
|
53
|
-
_world?:
|
57
|
+
_world?: IsolatedWorld;
|
54
58
|
/**
|
55
59
|
* @internal
|
56
60
|
*/
|
@@ -62,29 +66,21 @@ export declare class ExecutionContext {
|
|
62
66
|
/**
|
63
67
|
* @internal
|
64
68
|
*/
|
65
|
-
constructor(client: CDPSession, contextPayload: Protocol.Runtime.ExecutionContextDescription, world?:
|
69
|
+
constructor(client: CDPSession, contextPayload: Protocol.Runtime.ExecutionContextDescription, world?: IsolatedWorld);
|
66
70
|
/**
|
67
|
-
* @remarks
|
68
|
-
*
|
69
|
-
* Not every execution context is associated with a frame. For
|
70
|
-
* example, workers and extensions have execution contexts that are not
|
71
|
-
* associated with frames.
|
72
|
-
*
|
73
71
|
* @returns The frame associated with this execution context.
|
72
|
+
*
|
73
|
+
* @remarks
|
74
|
+
* Not every execution context is associated with a frame. For example,
|
75
|
+
* {@link WebWorker | workers} have execution contexts that are not associated
|
76
|
+
* with frames.
|
74
77
|
*/
|
75
78
|
frame(): Frame | null;
|
76
79
|
/**
|
77
|
-
*
|
78
|
-
* If the function passed to the `executionContext.evaluate` returns a
|
79
|
-
* Promise, then `executionContext.evaluate` would wait for the promise to
|
80
|
-
* resolve and return its value. If the function passed to the
|
81
|
-
* `executionContext.evaluate` returns a non-serializable value, then
|
82
|
-
* `executionContext.evaluate` resolves to `undefined`. DevTools Protocol also
|
83
|
-
* supports transferring some additional values that are not serializable by
|
84
|
-
* `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.
|
85
|
-
*
|
80
|
+
* Evaluates the given function.
|
86
81
|
*
|
87
82
|
* @example
|
83
|
+
*
|
88
84
|
* ```ts
|
89
85
|
* const executionContext = await page.mainFrame().executionContext();
|
90
86
|
* const result = await executionContext.evaluate(() => Promise.resolve(8 * 7))* ;
|
@@ -92,82 +88,94 @@ export declare class ExecutionContext {
|
|
92
88
|
* ```
|
93
89
|
*
|
94
90
|
* @example
|
95
|
-
* A string can also be passed in instead of a function
|
91
|
+
* A string can also be passed in instead of a function:
|
96
92
|
*
|
97
93
|
* ```ts
|
98
94
|
* console.log(await executionContext.evaluate('1 + 2')); // prints "3"
|
99
95
|
* ```
|
100
96
|
*
|
101
97
|
* @example
|
102
|
-
*
|
103
|
-
*
|
98
|
+
* Handles can also be passed as `args`. They resolve to their referenced object:
|
99
|
+
*
|
104
100
|
* ```ts
|
105
101
|
* const oneHandle = await executionContext.evaluateHandle(() => 1);
|
106
102
|
* const twoHandle = await executionContext.evaluateHandle(() => 2);
|
107
103
|
* const result = await executionContext.evaluate(
|
108
|
-
*
|
104
|
+
* (a, b) => a + b,
|
105
|
+
* oneHandle,
|
106
|
+
* twoHandle
|
109
107
|
* );
|
110
108
|
* await oneHandle.dispose();
|
111
109
|
* await twoHandle.dispose();
|
112
110
|
* console.log(result); // prints '3'.
|
113
111
|
* ```
|
114
|
-
* @param pageFunction - a function to be evaluated in the `executionContext`
|
115
|
-
* @param args - argument to pass to the page function
|
116
112
|
*
|
117
|
-
* @
|
113
|
+
* @param pageFunction - The function to evaluate.
|
114
|
+
* @param args - Additional arguments to pass into the function.
|
115
|
+
* @returns The result of evaluating the function. If the result is an object,
|
116
|
+
* a vanilla object containing the serializable properties of the result is
|
117
|
+
* returned.
|
118
118
|
*/
|
119
119
|
evaluate<Params extends unknown[], Func extends EvaluateFunc<Params> = EvaluateFunc<Params>>(pageFunction: Func | string, ...args: Params): Promise<Awaited<ReturnType<Func>>>;
|
120
120
|
/**
|
121
|
-
*
|
122
|
-
*
|
123
|
-
*
|
124
|
-
*
|
125
|
-
*
|
126
|
-
*
|
127
|
-
*
|
121
|
+
* Evaluates the given function.
|
122
|
+
*
|
123
|
+
* Unlike {@link ExecutionContext.evaluate | evaluate}, this method returns a
|
124
|
+
* handle to the result of the function.
|
125
|
+
*
|
126
|
+
* This method may be better suited if the object cannot be serialized (e.g.
|
127
|
+
* `Map`) and requires further manipulation.
|
128
128
|
*
|
129
129
|
* @example
|
130
|
+
*
|
130
131
|
* ```ts
|
131
132
|
* const context = await page.mainFrame().executionContext();
|
132
|
-
* const
|
133
|
-
*
|
133
|
+
* const handle: JSHandle<typeof globalThis> = await context.evaluateHandle(
|
134
|
+
* () => Promise.resolve(self)
|
135
|
+
* );
|
134
136
|
* ```
|
135
137
|
*
|
136
138
|
* @example
|
137
139
|
* A string can also be passed in instead of a function.
|
138
140
|
*
|
139
141
|
* ```ts
|
140
|
-
*
|
141
|
-
* const aHandle = await context.evaluateHandle('1 + 2');
|
142
|
+
* const handle: JSHandle<number> = await context.evaluateHandle('1 + 2');
|
142
143
|
* ```
|
143
144
|
*
|
144
145
|
* @example
|
145
|
-
*
|
146
|
-
* to the `executionContext.* evaluateHandle`:
|
146
|
+
* Handles can also be passed as `args`. They resolve to their referenced object:
|
147
147
|
*
|
148
148
|
* ```ts
|
149
|
-
* const
|
150
|
-
*
|
151
|
-
*
|
152
|
-
*
|
153
|
-
* await
|
149
|
+
* const bodyHandle: ElementHandle<HTMLBodyElement> =
|
150
|
+
* await context.evaluateHandle(() => {
|
151
|
+
* return document.body;
|
152
|
+
* });
|
153
|
+
* const stringHandle: JSHandle<string> = await context.evaluateHandle(
|
154
|
+
* body => body.innerHTML,
|
155
|
+
* body
|
156
|
+
* );
|
157
|
+
* console.log(await stringHandle.jsonValue()); // prints body's innerHTML
|
158
|
+
* // Always dispose your garbage! :)
|
159
|
+
* await bodyHandle.dispose();
|
160
|
+
* await stringHandle.dispose();
|
154
161
|
* ```
|
155
162
|
*
|
156
|
-
* @param pageFunction -
|
157
|
-
* @param args -
|
158
|
-
*
|
159
|
-
*
|
160
|
-
*
|
163
|
+
* @param pageFunction - The function to evaluate.
|
164
|
+
* @param args - Additional arguments to pass into the function.
|
165
|
+
* @returns A {@link JSHandle | handle} to the result of evaluating the
|
166
|
+
* function. If the result is a `Node`, then this will return an
|
167
|
+
* {@link ElementHandle | element handle}.
|
161
168
|
*/
|
162
169
|
evaluateHandle<Params extends unknown[], Func extends EvaluateFunc<Params> = EvaluateFunc<Params>>(pageFunction: Func | string, ...args: Params): Promise<HandleFor<Awaited<ReturnType<Func>>>>;
|
163
170
|
/**
|
164
|
-
*
|
171
|
+
* Iterates through the JavaScript heap and finds all the objects with the
|
165
172
|
* given prototype.
|
166
|
-
*
|
173
|
+
*
|
167
174
|
* @example
|
175
|
+
*
|
168
176
|
* ```ts
|
169
177
|
* // Create a Map object
|
170
|
-
* await page.evaluate(() => window.map = new Map());
|
178
|
+
* await page.evaluate(() => (window.map = new Map()));
|
171
179
|
* // Get a handle to the Map object prototype
|
172
180
|
* const mapPrototype = await page.evaluateHandle(() => Map.prototype);
|
173
181
|
* // Query all map instances into an array
|
@@ -179,17 +187,8 @@ export declare class ExecutionContext {
|
|
179
187
|
* ```
|
180
188
|
*
|
181
189
|
* @param prototypeHandle - a handle to the object prototype
|
182
|
-
*
|
183
190
|
* @returns A handle to an array of objects with the given prototype.
|
184
191
|
*/
|
185
192
|
queryObjects<Prototype>(prototypeHandle: JSHandle<Prototype>): Promise<HandleFor<Prototype[]>>;
|
186
|
-
/**
|
187
|
-
* @internal
|
188
|
-
*/
|
189
|
-
_adoptBackendNodeId(backendNodeId?: Protocol.DOM.BackendNodeId): Promise<ElementHandle<Node>>;
|
190
|
-
/**
|
191
|
-
* @internal
|
192
|
-
*/
|
193
|
-
_adoptElementHandle<T extends ElementHandle<Node>>(elementHandle: T): Promise<T>;
|
194
193
|
}
|
195
194
|
//# sourceMappingURL=ExecutionContext.d.ts.map
|
package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExecutionContext.d.ts","sourceRoot":"","sources":["../../../../src/common/ExecutionContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"ExecutionContext.d.ts","sourceRoot":"","sources":["../../../../src/common/ExecutionContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AACjC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AAQnD;;GAEG;AACH,eAAO,MAAM,qBAAqB,2CAA2C,CAAC;AAG9E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,gBAAgB;;IAC3B;;OAEG;IACH,OAAO,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;gBAED,MAAM,EAAE,UAAU,EAClB,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,2BAA2B,EAC5D,KAAK,CAAC,EAAE,aAAa;IAQvB;;;;;;;OAOG;IACH,KAAK,IAAI,KAAK,GAAG,IAAI;IAIrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACG,QAAQ,CACZ,MAAM,SAAS,OAAO,EAAE,EACxB,IAAI,SAAS,YAAY,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,EAExD,YAAY,EAAE,IAAI,GAAG,MAAM,EAC3B,GAAG,IAAI,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAIrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACG,cAAc,CAClB,MAAM,SAAS,OAAO,EAAE,EACxB,IAAI,SAAS,YAAY,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,EAExD,YAAY,EAAE,IAAI,GAAG,MAAM,EAC3B,GAAG,IAAI,EAAE,MAAM,GACd,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IA2KhD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,YAAY,CAAC,SAAS,EAC1B,eAAe,EAAE,QAAQ,CAAC,SAAS,CAAC,GACnC,OAAO,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC;CAYnC"}
|
package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js
CHANGED
@@ -22,7 +22,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
22
22
|
var _ExecutionContext_instances, _ExecutionContext_evaluate;
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
24
24
|
exports.ExecutionContext = exports.EVALUATION_SCRIPT_URL = void 0;
|
25
|
-
const assert_js_1 = require("
|
25
|
+
const assert_js_1 = require("../util/assert.js");
|
26
26
|
const JSHandle_js_1 = require("./JSHandle.js");
|
27
27
|
const util_js_1 = require("./util.js");
|
28
28
|
/**
|
@@ -31,21 +31,26 @@ const util_js_1 = require("./util.js");
|
|
31
31
|
exports.EVALUATION_SCRIPT_URL = 'pptr://__puppeteer_evaluation_script__';
|
32
32
|
const SOURCE_URL_REGEX = /^[\040\t]*\/\/[@#] sourceURL=\s*(\S*?)\s*$/m;
|
33
33
|
/**
|
34
|
-
*
|
35
|
-
* many execution contexts:
|
36
|
-
* - each
|
37
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe |
|
38
|
-
* frame } has "default" execution context that is always created after frame is
|
39
|
-
* attached to DOM. This context is returned by the
|
40
|
-
* {@link Frame.executionContext} method.
|
41
|
-
* - {@link https://developer.chrome.com/extensions | Extension}'s content scripts
|
42
|
-
* create additional execution contexts.
|
34
|
+
* @deprecated Do not use directly.
|
43
35
|
*
|
44
|
-
*
|
45
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API |
|
46
|
-
* workers }.
|
36
|
+
* Represents a context for JavaScript execution.
|
47
37
|
*
|
48
|
-
* @
|
38
|
+
* @example
|
39
|
+
* A {@link Page} can have several execution contexts:
|
40
|
+
*
|
41
|
+
* - Each {@link Frame} of a {@link Page | page} has a "default" execution
|
42
|
+
* context that is always created after frame is attached to DOM. This context
|
43
|
+
* is returned by the {@link Frame.executionContext} method.
|
44
|
+
* - Each {@link https://developer.chrome.com/extensions | Chrome extensions}
|
45
|
+
* creates additional execution contexts to isolate their code.
|
46
|
+
*
|
47
|
+
* @remarks
|
48
|
+
* By definition, each context is isolated from one another, however they are
|
49
|
+
* all able to manipulate non-JavaScript resources (such as DOM).
|
50
|
+
*
|
51
|
+
* @remarks
|
52
|
+
* Besides pages, execution contexts can be found in
|
53
|
+
* {@link WebWorker | workers}.
|
49
54
|
*/
|
50
55
|
class ExecutionContext {
|
51
56
|
/**
|
@@ -59,29 +64,21 @@ class ExecutionContext {
|
|
59
64
|
this._contextName = contextPayload.name;
|
60
65
|
}
|
61
66
|
/**
|
62
|
-
* @remarks
|
63
|
-
*
|
64
|
-
* Not every execution context is associated with a frame. For
|
65
|
-
* example, workers and extensions have execution contexts that are not
|
66
|
-
* associated with frames.
|
67
|
-
*
|
68
67
|
* @returns The frame associated with this execution context.
|
68
|
+
*
|
69
|
+
* @remarks
|
70
|
+
* Not every execution context is associated with a frame. For example,
|
71
|
+
* {@link WebWorker | workers} have execution contexts that are not associated
|
72
|
+
* with frames.
|
69
73
|
*/
|
70
74
|
frame() {
|
71
75
|
return this._world ? this._world.frame() : null;
|
72
76
|
}
|
73
77
|
/**
|
74
|
-
*
|
75
|
-
* If the function passed to the `executionContext.evaluate` returns a
|
76
|
-
* Promise, then `executionContext.evaluate` would wait for the promise to
|
77
|
-
* resolve and return its value. If the function passed to the
|
78
|
-
* `executionContext.evaluate` returns a non-serializable value, then
|
79
|
-
* `executionContext.evaluate` resolves to `undefined`. DevTools Protocol also
|
80
|
-
* supports transferring some additional values that are not serializable by
|
81
|
-
* `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.
|
82
|
-
*
|
78
|
+
* Evaluates the given function.
|
83
79
|
*
|
84
80
|
* @example
|
81
|
+
*
|
85
82
|
* ```ts
|
86
83
|
* const executionContext = await page.mainFrame().executionContext();
|
87
84
|
* const result = await executionContext.evaluate(() => Promise.resolve(8 * 7))* ;
|
@@ -89,86 +86,98 @@ class ExecutionContext {
|
|
89
86
|
* ```
|
90
87
|
*
|
91
88
|
* @example
|
92
|
-
* A string can also be passed in instead of a function
|
89
|
+
* A string can also be passed in instead of a function:
|
93
90
|
*
|
94
91
|
* ```ts
|
95
92
|
* console.log(await executionContext.evaluate('1 + 2')); // prints "3"
|
96
93
|
* ```
|
97
94
|
*
|
98
95
|
* @example
|
99
|
-
*
|
100
|
-
*
|
96
|
+
* Handles can also be passed as `args`. They resolve to their referenced object:
|
97
|
+
*
|
101
98
|
* ```ts
|
102
99
|
* const oneHandle = await executionContext.evaluateHandle(() => 1);
|
103
100
|
* const twoHandle = await executionContext.evaluateHandle(() => 2);
|
104
101
|
* const result = await executionContext.evaluate(
|
105
|
-
*
|
102
|
+
* (a, b) => a + b,
|
103
|
+
* oneHandle,
|
104
|
+
* twoHandle
|
106
105
|
* );
|
107
106
|
* await oneHandle.dispose();
|
108
107
|
* await twoHandle.dispose();
|
109
108
|
* console.log(result); // prints '3'.
|
110
109
|
* ```
|
111
|
-
* @param pageFunction - a function to be evaluated in the `executionContext`
|
112
|
-
* @param args - argument to pass to the page function
|
113
110
|
*
|
114
|
-
* @
|
111
|
+
* @param pageFunction - The function to evaluate.
|
112
|
+
* @param args - Additional arguments to pass into the function.
|
113
|
+
* @returns The result of evaluating the function. If the result is an object,
|
114
|
+
* a vanilla object containing the serializable properties of the result is
|
115
|
+
* returned.
|
115
116
|
*/
|
116
117
|
async evaluate(pageFunction, ...args) {
|
117
118
|
return await __classPrivateFieldGet(this, _ExecutionContext_instances, "m", _ExecutionContext_evaluate).call(this, true, pageFunction, ...args);
|
118
119
|
}
|
119
120
|
/**
|
120
|
-
*
|
121
|
-
*
|
122
|
-
*
|
123
|
-
*
|
124
|
-
*
|
125
|
-
*
|
126
|
-
*
|
121
|
+
* Evaluates the given function.
|
122
|
+
*
|
123
|
+
* Unlike {@link ExecutionContext.evaluate | evaluate}, this method returns a
|
124
|
+
* handle to the result of the function.
|
125
|
+
*
|
126
|
+
* This method may be better suited if the object cannot be serialized (e.g.
|
127
|
+
* `Map`) and requires further manipulation.
|
127
128
|
*
|
128
129
|
* @example
|
130
|
+
*
|
129
131
|
* ```ts
|
130
132
|
* const context = await page.mainFrame().executionContext();
|
131
|
-
* const
|
132
|
-
*
|
133
|
+
* const handle: JSHandle<typeof globalThis> = await context.evaluateHandle(
|
134
|
+
* () => Promise.resolve(self)
|
135
|
+
* );
|
133
136
|
* ```
|
134
137
|
*
|
135
138
|
* @example
|
136
139
|
* A string can also be passed in instead of a function.
|
137
140
|
*
|
138
141
|
* ```ts
|
139
|
-
*
|
140
|
-
* const aHandle = await context.evaluateHandle('1 + 2');
|
142
|
+
* const handle: JSHandle<number> = await context.evaluateHandle('1 + 2');
|
141
143
|
* ```
|
142
144
|
*
|
143
145
|
* @example
|
144
|
-
*
|
145
|
-
* to the `executionContext.* evaluateHandle`:
|
146
|
+
* Handles can also be passed as `args`. They resolve to their referenced object:
|
146
147
|
*
|
147
148
|
* ```ts
|
148
|
-
* const
|
149
|
-
*
|
150
|
-
*
|
151
|
-
*
|
152
|
-
* await
|
149
|
+
* const bodyHandle: ElementHandle<HTMLBodyElement> =
|
150
|
+
* await context.evaluateHandle(() => {
|
151
|
+
* return document.body;
|
152
|
+
* });
|
153
|
+
* const stringHandle: JSHandle<string> = await context.evaluateHandle(
|
154
|
+
* body => body.innerHTML,
|
155
|
+
* body
|
156
|
+
* );
|
157
|
+
* console.log(await stringHandle.jsonValue()); // prints body's innerHTML
|
158
|
+
* // Always dispose your garbage! :)
|
159
|
+
* await bodyHandle.dispose();
|
160
|
+
* await stringHandle.dispose();
|
153
161
|
* ```
|
154
162
|
*
|
155
|
-
* @param pageFunction -
|
156
|
-
* @param args -
|
157
|
-
*
|
158
|
-
*
|
159
|
-
*
|
163
|
+
* @param pageFunction - The function to evaluate.
|
164
|
+
* @param args - Additional arguments to pass into the function.
|
165
|
+
* @returns A {@link JSHandle | handle} to the result of evaluating the
|
166
|
+
* function. If the result is a `Node`, then this will return an
|
167
|
+
* {@link ElementHandle | element handle}.
|
160
168
|
*/
|
161
169
|
async evaluateHandle(pageFunction, ...args) {
|
162
170
|
return __classPrivateFieldGet(this, _ExecutionContext_instances, "m", _ExecutionContext_evaluate).call(this, false, pageFunction, ...args);
|
163
171
|
}
|
164
172
|
/**
|
165
|
-
*
|
173
|
+
* Iterates through the JavaScript heap and finds all the objects with the
|
166
174
|
* given prototype.
|
167
|
-
*
|
175
|
+
*
|
168
176
|
* @example
|
177
|
+
*
|
169
178
|
* ```ts
|
170
179
|
* // Create a Map object
|
171
|
-
* await page.evaluate(() => window.map = new Map());
|
180
|
+
* await page.evaluate(() => (window.map = new Map()));
|
172
181
|
* // Get a handle to the Map object prototype
|
173
182
|
* const mapPrototype = await page.evaluateHandle(() => Map.prototype);
|
174
183
|
* // Query all map instances into an array
|
@@ -180,38 +189,17 @@ class ExecutionContext {
|
|
180
189
|
* ```
|
181
190
|
*
|
182
191
|
* @param prototypeHandle - a handle to the object prototype
|
183
|
-
*
|
184
192
|
* @returns A handle to an array of objects with the given prototype.
|
185
193
|
*/
|
186
194
|
async queryObjects(prototypeHandle) {
|
187
|
-
(0, assert_js_1.assert)(!prototypeHandle.
|
188
|
-
|
195
|
+
(0, assert_js_1.assert)(!prototypeHandle.disposed, 'Prototype JSHandle is disposed!');
|
196
|
+
const remoteObject = prototypeHandle.remoteObject();
|
197
|
+
(0, assert_js_1.assert)(remoteObject.objectId, 'Prototype JSHandle must not be referencing primitive value');
|
189
198
|
const response = await this._client.send('Runtime.queryObjects', {
|
190
|
-
prototypeObjectId:
|
199
|
+
prototypeObjectId: remoteObject.objectId,
|
191
200
|
});
|
192
201
|
return (0, util_js_1.createJSHandle)(this, response.objects);
|
193
202
|
}
|
194
|
-
/**
|
195
|
-
* @internal
|
196
|
-
*/
|
197
|
-
async _adoptBackendNodeId(backendNodeId) {
|
198
|
-
const { object } = await this._client.send('DOM.resolveNode', {
|
199
|
-
backendNodeId: backendNodeId,
|
200
|
-
executionContextId: this._contextId,
|
201
|
-
});
|
202
|
-
return (0, util_js_1.createJSHandle)(this, object);
|
203
|
-
}
|
204
|
-
/**
|
205
|
-
* @internal
|
206
|
-
*/
|
207
|
-
async _adoptElementHandle(elementHandle) {
|
208
|
-
(0, assert_js_1.assert)(elementHandle.executionContext() !== this, 'Cannot adopt handle that already belongs to this execution context');
|
209
|
-
(0, assert_js_1.assert)(this._world, 'Cannot adopt handle without DOMWorld');
|
210
|
-
const nodeInfo = await this._client.send('DOM.describeNode', {
|
211
|
-
objectId: elementHandle._remoteObject.objectId,
|
212
|
-
});
|
213
|
-
return (await this._adoptBackendNodeId(nodeInfo.node.backendNodeId));
|
214
|
-
}
|
215
203
|
}
|
216
204
|
exports.ExecutionContext = ExecutionContext;
|
217
205
|
_ExecutionContext_instances = new WeakSet(), _ExecutionContext_evaluate = async function _ExecutionContext_evaluate(returnByValue, pageFunction, ...args) {
|
@@ -238,9 +226,6 @@ _ExecutionContext_instances = new WeakSet(), _ExecutionContext_evaluate = async
|
|
238
226
|
? (0, util_js_1.valueFromRemoteObject)(remoteObject)
|
239
227
|
: (0, util_js_1.createJSHandle)(this, remoteObject);
|
240
228
|
}
|
241
|
-
if (typeof pageFunction !== 'function') {
|
242
|
-
throw new Error(`Expected to get |string| or |function| as the first argument, but got "${pageFunction}" instead.`);
|
243
|
-
}
|
244
229
|
let functionText = pageFunction.toString();
|
245
230
|
try {
|
246
231
|
new Function('(' + functionText + ')');
|
@@ -307,21 +292,21 @@ _ExecutionContext_instances = new WeakSet(), _ExecutionContext_evaluate = async
|
|
307
292
|
}
|
308
293
|
const objectHandle = arg && arg instanceof JSHandle_js_1.JSHandle ? arg : null;
|
309
294
|
if (objectHandle) {
|
310
|
-
if (objectHandle.
|
295
|
+
if (objectHandle.executionContext() !== this) {
|
311
296
|
throw new Error('JSHandles can be evaluated only in the context they were created!');
|
312
297
|
}
|
313
|
-
if (objectHandle.
|
298
|
+
if (objectHandle.disposed) {
|
314
299
|
throw new Error('JSHandle is disposed!');
|
315
300
|
}
|
316
|
-
if (objectHandle.
|
301
|
+
if (objectHandle.remoteObject().unserializableValue) {
|
317
302
|
return {
|
318
|
-
unserializableValue: objectHandle.
|
303
|
+
unserializableValue: objectHandle.remoteObject().unserializableValue,
|
319
304
|
};
|
320
305
|
}
|
321
|
-
if (!objectHandle.
|
322
|
-
return { value: objectHandle.
|
306
|
+
if (!objectHandle.remoteObject().objectId) {
|
307
|
+
return { value: objectHandle.remoteObject().value };
|
323
308
|
}
|
324
|
-
return { objectId: objectHandle.
|
309
|
+
return { objectId: objectHandle.remoteObject().objectId };
|
325
310
|
}
|
326
311
|
return { value: arg };
|
327
312
|
}
|