chrome-devtools-frontend 1.0.1037221 → 1.0.1039140
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/i18n/locales/en-US.json +2 -2
- package/front_end/core/i18n/locales/en-XL.json +2 -2
- package/front_end/core/sdk/ResourceTreeModel.ts +12 -8
- package/front_end/panels/sources/NavigatorView.ts +9 -0
- 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/linear_memory_inspector/LinearMemoryHighlightChipList.ts +16 -6
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +28 -4
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +15 -0
- package/front_end/ui/components/linear_memory_inspector/linearMemoryHighlightChipList.css +27 -12
- package/front_end/ui/components/linear_memory_inspector/linearMemoryViewer.css +19 -4
- 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
@@ -24,36 +24,50 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
24
24
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
25
25
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
26
26
|
};
|
27
|
-
var _a,
|
28
|
-
import { assert } from '
|
27
|
+
var _a, _IsolatedWorld_frameManager, _IsolatedWorld_client, _IsolatedWorld_frame, _IsolatedWorld_timeoutSettings, _IsolatedWorld_documentPromise, _IsolatedWorld_contextPromise, _IsolatedWorld_detached, _IsolatedWorld_ctxBindings, _IsolatedWorld_boundFunctions, _IsolatedWorld_waitTasks, _IsolatedWorld_bindingIdentifier, _IsolatedWorld_settingUpBinding, _IsolatedWorld_onBindingCalled, _WaitTask_instances, _WaitTask_isolatedWorld, _WaitTask_polling, _WaitTask_timeout, _WaitTask_predicateBody, _WaitTask_predicateAcceptsContextElement, _WaitTask_args, _WaitTask_binding, _WaitTask_runCount, _WaitTask_resolve, _WaitTask_reject, _WaitTask_timeoutTimer, _WaitTask_terminated, _WaitTask_root, _WaitTask_cleanup;
|
28
|
+
import { assert } from '../util/assert.js';
|
29
29
|
import { TimeoutError } from './Errors.js';
|
30
30
|
import { LifecycleWatcher } from './LifecycleWatcher.js';
|
31
31
|
import { getQueryHandlerAndSelector } from './QueryHandler.js';
|
32
|
-
import { debugError, importFS, isNumber, isString, makePredicateString, pageBindingInitString, } from './util.js';
|
32
|
+
import { createJSHandle, debugError, importFS, isNumber, isString, makePredicateString, pageBindingInitString, } from './util.js';
|
33
|
+
import { createDeferredPromise, } from '../util/DeferredPromise.js';
|
34
|
+
/**
|
35
|
+
* A unique key for {@link IsolatedWorldChart} to denote the default world.
|
36
|
+
* Execution contexts are automatically created in the default world.
|
37
|
+
*
|
38
|
+
* @internal
|
39
|
+
*/
|
40
|
+
export const MAIN_WORLD = Symbol('mainWorld');
|
41
|
+
/**
|
42
|
+
* A unique key for {@link IsolatedWorldChart} to denote the puppeteer world.
|
43
|
+
* This world contains all puppeteer-internal bindings/code.
|
44
|
+
*
|
45
|
+
* @internal
|
46
|
+
*/
|
47
|
+
export const PUPPETEER_WORLD = Symbol('puppeteerWorld');
|
33
48
|
/**
|
34
49
|
* @internal
|
35
50
|
*/
|
36
|
-
export class
|
51
|
+
export class IsolatedWorld {
|
37
52
|
constructor(client, frameManager, frame, timeoutSettings) {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
_DOMWorld_detached.set(this, false);
|
53
|
+
_IsolatedWorld_frameManager.set(this, void 0);
|
54
|
+
_IsolatedWorld_client.set(this, void 0);
|
55
|
+
_IsolatedWorld_frame.set(this, void 0);
|
56
|
+
_IsolatedWorld_timeoutSettings.set(this, void 0);
|
57
|
+
_IsolatedWorld_documentPromise.set(this, null);
|
58
|
+
_IsolatedWorld_contextPromise.set(this, createDeferredPromise());
|
59
|
+
_IsolatedWorld_detached.set(this, false);
|
46
60
|
// Set of bindings that have been registered in the current context.
|
47
|
-
|
61
|
+
_IsolatedWorld_ctxBindings.set(this, new Set());
|
48
62
|
// Contains mapping from functions that should be bound to Puppeteer functions.
|
49
|
-
|
50
|
-
|
63
|
+
_IsolatedWorld_boundFunctions.set(this, new Map());
|
64
|
+
_IsolatedWorld_waitTasks.set(this, new Set());
|
51
65
|
// If multiple waitFor are set up asynchronously, we need to wait for the
|
52
66
|
// first one to set up the binding in the page before running the others.
|
53
|
-
|
54
|
-
|
67
|
+
_IsolatedWorld_settingUpBinding.set(this, null);
|
68
|
+
_IsolatedWorld_onBindingCalled.set(this, async (event) => {
|
55
69
|
let payload;
|
56
|
-
if (!this.
|
70
|
+
if (!this.hasContext()) {
|
57
71
|
return;
|
58
72
|
}
|
59
73
|
const context = await this.executionContext();
|
@@ -67,7 +81,7 @@ export class DOMWorld {
|
|
67
81
|
}
|
68
82
|
const { type, name, seq, args } = payload;
|
69
83
|
if (type !== 'internal' ||
|
70
|
-
!__classPrivateFieldGet(this,
|
84
|
+
!__classPrivateFieldGet(this, _IsolatedWorld_ctxBindings, "f").has(__classPrivateFieldGet(IsolatedWorld, _a, "f", _IsolatedWorld_bindingIdentifier).call(IsolatedWorld, name, context._contextId))) {
|
71
85
|
return;
|
72
86
|
}
|
73
87
|
if (context._contextId !== event.executionContextId) {
|
@@ -103,58 +117,51 @@ export class DOMWorld {
|
|
103
117
|
});
|
104
118
|
// Keep own reference to client because it might differ from the FrameManager's
|
105
119
|
// client for OOP iframes.
|
106
|
-
__classPrivateFieldSet(this,
|
107
|
-
__classPrivateFieldSet(this,
|
108
|
-
__classPrivateFieldSet(this,
|
109
|
-
__classPrivateFieldSet(this,
|
110
|
-
this.
|
111
|
-
__classPrivateFieldGet(this, _DOMWorld_client, "f").on('Runtime.bindingCalled', __classPrivateFieldGet(this, _DOMWorld_onBindingCalled, "f"));
|
120
|
+
__classPrivateFieldSet(this, _IsolatedWorld_client, client, "f");
|
121
|
+
__classPrivateFieldSet(this, _IsolatedWorld_frameManager, frameManager, "f");
|
122
|
+
__classPrivateFieldSet(this, _IsolatedWorld_frame, frame, "f");
|
123
|
+
__classPrivateFieldSet(this, _IsolatedWorld_timeoutSettings, timeoutSettings, "f");
|
124
|
+
__classPrivateFieldGet(this, _IsolatedWorld_client, "f").on('Runtime.bindingCalled', __classPrivateFieldGet(this, _IsolatedWorld_onBindingCalled, "f"));
|
112
125
|
}
|
113
126
|
get _waitTasks() {
|
114
|
-
return __classPrivateFieldGet(this,
|
127
|
+
return __classPrivateFieldGet(this, _IsolatedWorld_waitTasks, "f");
|
115
128
|
}
|
116
129
|
get _boundFunctions() {
|
117
|
-
return __classPrivateFieldGet(this,
|
130
|
+
return __classPrivateFieldGet(this, _IsolatedWorld_boundFunctions, "f");
|
118
131
|
}
|
119
132
|
frame() {
|
120
|
-
return __classPrivateFieldGet(this,
|
133
|
+
return __classPrivateFieldGet(this, _IsolatedWorld_frame, "f");
|
121
134
|
}
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
}
|
133
|
-
else {
|
134
|
-
__classPrivateFieldSet(this, _DOMWorld_documentPromise, null, "f");
|
135
|
-
__classPrivateFieldSet(this, _DOMWorld_contextPromise, new Promise(fulfill => {
|
136
|
-
__classPrivateFieldSet(this, _DOMWorld_contextResolveCallback, fulfill, "f");
|
137
|
-
}), "f");
|
135
|
+
clearContext() {
|
136
|
+
__classPrivateFieldSet(this, _IsolatedWorld_documentPromise, null, "f");
|
137
|
+
__classPrivateFieldSet(this, _IsolatedWorld_contextPromise, createDeferredPromise(), "f");
|
138
|
+
}
|
139
|
+
setContext(context) {
|
140
|
+
assert(__classPrivateFieldGet(this, _IsolatedWorld_contextPromise, "f"), `ExecutionContext ${context._contextId} has already been set.`);
|
141
|
+
__classPrivateFieldGet(this, _IsolatedWorld_ctxBindings, "f").clear();
|
142
|
+
__classPrivateFieldGet(this, _IsolatedWorld_contextPromise, "f").resolve(context);
|
143
|
+
for (const waitTask of this._waitTasks) {
|
144
|
+
waitTask.rerun();
|
138
145
|
}
|
139
146
|
}
|
140
|
-
|
141
|
-
return
|
147
|
+
hasContext() {
|
148
|
+
return __classPrivateFieldGet(this, _IsolatedWorld_contextPromise, "f").resolved();
|
142
149
|
}
|
143
150
|
_detach() {
|
144
|
-
__classPrivateFieldSet(this,
|
145
|
-
__classPrivateFieldGet(this,
|
151
|
+
__classPrivateFieldSet(this, _IsolatedWorld_detached, true, "f");
|
152
|
+
__classPrivateFieldGet(this, _IsolatedWorld_client, "f").off('Runtime.bindingCalled', __classPrivateFieldGet(this, _IsolatedWorld_onBindingCalled, "f"));
|
146
153
|
for (const waitTask of this._waitTasks) {
|
147
154
|
waitTask.terminate(new Error('waitForFunction failed: frame got detached.'));
|
148
155
|
}
|
149
156
|
}
|
150
157
|
executionContext() {
|
151
|
-
if (__classPrivateFieldGet(this,
|
152
|
-
throw new Error(`Execution context is not available in detached frame "${__classPrivateFieldGet(this,
|
158
|
+
if (__classPrivateFieldGet(this, _IsolatedWorld_detached, "f")) {
|
159
|
+
throw new Error(`Execution context is not available in detached frame "${__classPrivateFieldGet(this, _IsolatedWorld_frame, "f").url()}" (are you trying to evaluate?)`);
|
153
160
|
}
|
154
|
-
if (__classPrivateFieldGet(this,
|
161
|
+
if (__classPrivateFieldGet(this, _IsolatedWorld_contextPromise, "f") === null) {
|
155
162
|
throw new Error(`Execution content promise is missing`);
|
156
163
|
}
|
157
|
-
return __classPrivateFieldGet(this,
|
164
|
+
return __classPrivateFieldGet(this, _IsolatedWorld_contextPromise, "f");
|
158
165
|
}
|
159
166
|
async evaluateHandle(pageFunction, ...args) {
|
160
167
|
const context = await this.executionContext();
|
@@ -165,38 +172,40 @@ export class DOMWorld {
|
|
165
172
|
return context.evaluate(pageFunction, ...args);
|
166
173
|
}
|
167
174
|
async $(selector) {
|
168
|
-
const document = await this.
|
169
|
-
|
170
|
-
return value;
|
175
|
+
const document = await this.document();
|
176
|
+
return document.$(selector);
|
171
177
|
}
|
172
178
|
async $$(selector) {
|
173
|
-
const document = await this.
|
179
|
+
const document = await this.document();
|
174
180
|
return document.$$(selector);
|
175
181
|
}
|
176
|
-
async
|
177
|
-
if (__classPrivateFieldGet(this,
|
178
|
-
return __classPrivateFieldGet(this,
|
182
|
+
async document() {
|
183
|
+
if (__classPrivateFieldGet(this, _IsolatedWorld_documentPromise, "f")) {
|
184
|
+
return __classPrivateFieldGet(this, _IsolatedWorld_documentPromise, "f");
|
179
185
|
}
|
180
|
-
__classPrivateFieldSet(this,
|
186
|
+
__classPrivateFieldSet(this, _IsolatedWorld_documentPromise, this.executionContext().then(async (context) => {
|
181
187
|
return await context.evaluateHandle(() => {
|
182
188
|
return document;
|
183
189
|
});
|
184
190
|
}), "f");
|
185
|
-
return __classPrivateFieldGet(this,
|
191
|
+
return __classPrivateFieldGet(this, _IsolatedWorld_documentPromise, "f");
|
186
192
|
}
|
187
193
|
async $x(expression) {
|
188
|
-
const document = await this.
|
189
|
-
|
190
|
-
return value;
|
194
|
+
const document = await this.document();
|
195
|
+
return document.$x(expression);
|
191
196
|
}
|
192
197
|
async $eval(selector, pageFunction, ...args) {
|
193
|
-
const document = await this.
|
198
|
+
const document = await this.document();
|
194
199
|
return document.$eval(selector, pageFunction, ...args);
|
195
200
|
}
|
196
201
|
async $$eval(selector, pageFunction, ...args) {
|
197
|
-
const document = await this.
|
198
|
-
|
199
|
-
|
202
|
+
const document = await this.document();
|
203
|
+
return document.$$eval(selector, pageFunction, ...args);
|
204
|
+
}
|
205
|
+
async waitForSelector(selector, options) {
|
206
|
+
const { updatedSelector, queryHandler } = getQueryHandlerAndSelector(selector);
|
207
|
+
assert(queryHandler.waitFor, 'Query handler does not support waiting');
|
208
|
+
return (await queryHandler.waitFor(this, updatedSelector, options));
|
200
209
|
}
|
201
210
|
async content() {
|
202
211
|
return await this.evaluate(() => {
|
@@ -211,7 +220,7 @@ export class DOMWorld {
|
|
211
220
|
});
|
212
221
|
}
|
213
222
|
async setContent(html, options = {}) {
|
214
|
-
const { waitUntil = ['load'], timeout = __classPrivateFieldGet(this,
|
223
|
+
const { waitUntil = ['load'], timeout = __classPrivateFieldGet(this, _IsolatedWorld_timeoutSettings, "f").navigationTimeout(), } = options;
|
215
224
|
// We rely upon the fact that document.open() will reset frame lifecycle with "init"
|
216
225
|
// lifecycle event. @see https://crrev.com/608658
|
217
226
|
await this.evaluate(html => {
|
@@ -219,7 +228,7 @@ export class DOMWorld {
|
|
219
228
|
document.write(html);
|
220
229
|
document.close();
|
221
230
|
}, html);
|
222
|
-
const watcher = new LifecycleWatcher(__classPrivateFieldGet(this,
|
231
|
+
const watcher = new LifecycleWatcher(__classPrivateFieldGet(this, _IsolatedWorld_frameManager, "f"), __classPrivateFieldGet(this, _IsolatedWorld_frame, "f"), waitUntil, timeout);
|
223
232
|
const error = await Promise.race([
|
224
233
|
watcher.timeoutOrTerminationPromise(),
|
225
234
|
watcher.lifecyclePromise(),
|
@@ -233,7 +242,6 @@ export class DOMWorld {
|
|
233
242
|
* Adds a script tag into the current context.
|
234
243
|
*
|
235
244
|
* @remarks
|
236
|
-
*
|
237
245
|
* You can pass a URL, filepath or string of contents. Note that when running Puppeteer
|
238
246
|
* in a browser environment you cannot pass a filepath and should use either
|
239
247
|
* `url` or `content`.
|
@@ -309,23 +317,16 @@ export class DOMWorld {
|
|
309
317
|
* Adds a style tag into the current context.
|
310
318
|
*
|
311
319
|
* @remarks
|
312
|
-
*
|
313
320
|
* You can pass a URL, filepath or string of contents. Note that when running Puppeteer
|
314
321
|
* in a browser environment you cannot pass a filepath and should use either
|
315
322
|
* `url` or `content`.
|
316
|
-
*
|
317
323
|
*/
|
318
324
|
async addStyleTag(options) {
|
319
325
|
const { url = null, path = null, content = null } = options;
|
320
326
|
if (url !== null) {
|
321
327
|
try {
|
322
328
|
const context = await this.executionContext();
|
323
|
-
|
324
|
-
const elementHandle = handle.asElement();
|
325
|
-
if (elementHandle === null) {
|
326
|
-
throw new Error('Style element is not found');
|
327
|
-
}
|
328
|
-
return elementHandle;
|
329
|
+
return (await context.evaluateHandle(addStyleUrl, url));
|
329
330
|
}
|
330
331
|
catch (error) {
|
331
332
|
throw new Error(`Loading style from ${url} failed`);
|
@@ -345,21 +346,11 @@ export class DOMWorld {
|
|
345
346
|
let contents = await fs.readFile(path, 'utf8');
|
346
347
|
contents += '/*# sourceURL=' + path.replace(/\n/g, '') + '*/';
|
347
348
|
const context = await this.executionContext();
|
348
|
-
|
349
|
-
const elementHandle = handle.asElement();
|
350
|
-
if (elementHandle === null) {
|
351
|
-
throw new Error('Style element is not found');
|
352
|
-
}
|
353
|
-
return elementHandle;
|
349
|
+
return (await context.evaluateHandle(addStyleContent, contents));
|
354
350
|
}
|
355
351
|
if (content !== null) {
|
356
352
|
const context = await this.executionContext();
|
357
|
-
|
358
|
-
const elementHandle = handle.asElement();
|
359
|
-
if (elementHandle === null) {
|
360
|
-
throw new Error('Style element is not found');
|
361
|
-
}
|
362
|
-
return elementHandle;
|
353
|
+
return (await context.evaluateHandle(addStyleContent, content));
|
363
354
|
}
|
364
355
|
throw new Error('Provide an object with a `url`, `path` or `content` property');
|
365
356
|
async function addStyleUrl(url) {
|
@@ -423,19 +414,14 @@ export class DOMWorld {
|
|
423
414
|
await handle.type(text, options);
|
424
415
|
await handle.dispose();
|
425
416
|
}
|
426
|
-
async waitForSelector(selector, options) {
|
427
|
-
const { updatedSelector, queryHandler } = getQueryHandlerAndSelector(selector);
|
428
|
-
assert(queryHandler.waitFor, 'Query handler does not support waiting');
|
429
|
-
return (await queryHandler.waitFor(this, updatedSelector, options));
|
430
|
-
}
|
431
417
|
async _addBindingToContext(context, name) {
|
432
418
|
// Previous operation added the binding so we are done.
|
433
|
-
if (__classPrivateFieldGet(this,
|
419
|
+
if (__classPrivateFieldGet(this, _IsolatedWorld_ctxBindings, "f").has(__classPrivateFieldGet(IsolatedWorld, _a, "f", _IsolatedWorld_bindingIdentifier).call(IsolatedWorld, name, context._contextId))) {
|
434
420
|
return;
|
435
421
|
}
|
436
422
|
// Wait for other operation to finish
|
437
|
-
if (__classPrivateFieldGet(this,
|
438
|
-
await __classPrivateFieldGet(this,
|
423
|
+
if (__classPrivateFieldGet(this, _IsolatedWorld_settingUpBinding, "f")) {
|
424
|
+
await __classPrivateFieldGet(this, _IsolatedWorld_settingUpBinding, "f");
|
439
425
|
return this._addBindingToContext(context, name);
|
440
426
|
}
|
441
427
|
const bind = async (name) => {
|
@@ -464,24 +450,22 @@ export class DOMWorld {
|
|
464
450
|
return;
|
465
451
|
}
|
466
452
|
}
|
467
|
-
__classPrivateFieldGet(this,
|
453
|
+
__classPrivateFieldGet(this, _IsolatedWorld_ctxBindings, "f").add(__classPrivateFieldGet(IsolatedWorld, _a, "f", _IsolatedWorld_bindingIdentifier).call(IsolatedWorld, name, context._contextId));
|
468
454
|
};
|
469
|
-
__classPrivateFieldSet(this,
|
470
|
-
await __classPrivateFieldGet(this,
|
471
|
-
__classPrivateFieldSet(this,
|
455
|
+
__classPrivateFieldSet(this, _IsolatedWorld_settingUpBinding, bind(name), "f");
|
456
|
+
await __classPrivateFieldGet(this, _IsolatedWorld_settingUpBinding, "f");
|
457
|
+
__classPrivateFieldSet(this, _IsolatedWorld_settingUpBinding, null, "f");
|
472
458
|
}
|
473
459
|
async _waitForSelectorInPage(queryOne, selector, options, binding) {
|
474
|
-
const { visible: waitForVisible = false, hidden: waitForHidden = false, timeout = __classPrivateFieldGet(this,
|
460
|
+
const { visible: waitForVisible = false, hidden: waitForHidden = false, timeout = __classPrivateFieldGet(this, _IsolatedWorld_timeoutSettings, "f").timeout(), } = options;
|
475
461
|
const polling = waitForVisible || waitForHidden ? 'raf' : 'mutation';
|
476
462
|
const title = `selector \`${selector}\`${waitForHidden ? ' to be hidden' : ''}`;
|
477
463
|
async function predicate(root, selector, waitForVisible, waitForHidden) {
|
478
|
-
const node = predicateQueryHandler
|
479
|
-
? (await predicateQueryHandler(root, selector))
|
480
|
-
: root.querySelector(selector);
|
464
|
+
const node = (await predicateQueryHandler(root, selector));
|
481
465
|
return checkWaitForOptions(node, waitForVisible, waitForHidden);
|
482
466
|
}
|
483
467
|
const waitTaskOptions = {
|
484
|
-
|
468
|
+
isolatedWorld: this,
|
485
469
|
predicateBody: makePredicateString(predicate, queryOne),
|
486
470
|
predicateAcceptsContextElement: true,
|
487
471
|
title,
|
@@ -500,37 +484,10 @@ export class DOMWorld {
|
|
500
484
|
}
|
501
485
|
return elementHandle;
|
502
486
|
}
|
503
|
-
async waitForXPath(xpath, options) {
|
504
|
-
const { visible: waitForVisible = false, hidden: waitForHidden = false, timeout = __classPrivateFieldGet(this, _DOMWorld_timeoutSettings, "f").timeout(), } = options;
|
505
|
-
const polling = waitForVisible || waitForHidden ? 'raf' : 'mutation';
|
506
|
-
const title = `XPath \`${xpath}\`${waitForHidden ? ' to be hidden' : ''}`;
|
507
|
-
function predicate(root, xpath, waitForVisible, waitForHidden) {
|
508
|
-
const node = document.evaluate(xpath, root, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
|
509
|
-
return checkWaitForOptions(node, waitForVisible, waitForHidden);
|
510
|
-
}
|
511
|
-
const waitTaskOptions = {
|
512
|
-
domWorld: this,
|
513
|
-
predicateBody: makePredicateString(predicate),
|
514
|
-
predicateAcceptsContextElement: true,
|
515
|
-
title,
|
516
|
-
polling,
|
517
|
-
timeout,
|
518
|
-
args: [xpath, waitForVisible, waitForHidden],
|
519
|
-
root: options.root,
|
520
|
-
};
|
521
|
-
const waitTask = new WaitTask(waitTaskOptions);
|
522
|
-
const jsHandle = await waitTask.promise;
|
523
|
-
const elementHandle = jsHandle.asElement();
|
524
|
-
if (!elementHandle) {
|
525
|
-
await jsHandle.dispose();
|
526
|
-
return null;
|
527
|
-
}
|
528
|
-
return elementHandle;
|
529
|
-
}
|
530
487
|
waitForFunction(pageFunction, options = {}, ...args) {
|
531
|
-
const { polling = 'raf', timeout = __classPrivateFieldGet(this,
|
488
|
+
const { polling = 'raf', timeout = __classPrivateFieldGet(this, _IsolatedWorld_timeoutSettings, "f").timeout() } = options;
|
532
489
|
const waitTaskOptions = {
|
533
|
-
|
490
|
+
isolatedWorld: this,
|
534
491
|
predicateBody: pageFunction,
|
535
492
|
predicateAcceptsContextElement: false,
|
536
493
|
title: 'function',
|
@@ -546,9 +503,25 @@ export class DOMWorld {
|
|
546
503
|
return document.title;
|
547
504
|
});
|
548
505
|
}
|
506
|
+
async adoptBackendNode(backendNodeId) {
|
507
|
+
const executionContext = await this.executionContext();
|
508
|
+
const { object } = await __classPrivateFieldGet(this, _IsolatedWorld_client, "f").send('DOM.resolveNode', {
|
509
|
+
backendNodeId: backendNodeId,
|
510
|
+
executionContextId: executionContext._contextId,
|
511
|
+
});
|
512
|
+
return createJSHandle(executionContext, object);
|
513
|
+
}
|
514
|
+
async adoptHandle(handle) {
|
515
|
+
const executionContext = await this.executionContext();
|
516
|
+
assert(handle.executionContext() !== executionContext, 'Cannot adopt handle that already belongs to this execution context');
|
517
|
+
const nodeInfo = await __classPrivateFieldGet(this, _IsolatedWorld_client, "f").send('DOM.describeNode', {
|
518
|
+
objectId: handle.remoteObject().objectId,
|
519
|
+
});
|
520
|
+
return (await this.adoptBackendNode(nodeInfo.node.backendNodeId));
|
521
|
+
}
|
549
522
|
}
|
550
|
-
_a =
|
551
|
-
|
523
|
+
_a = IsolatedWorld, _IsolatedWorld_frameManager = new WeakMap(), _IsolatedWorld_client = new WeakMap(), _IsolatedWorld_frame = new WeakMap(), _IsolatedWorld_timeoutSettings = new WeakMap(), _IsolatedWorld_documentPromise = new WeakMap(), _IsolatedWorld_contextPromise = new WeakMap(), _IsolatedWorld_detached = new WeakMap(), _IsolatedWorld_ctxBindings = new WeakMap(), _IsolatedWorld_boundFunctions = new WeakMap(), _IsolatedWorld_waitTasks = new WeakMap(), _IsolatedWorld_settingUpBinding = new WeakMap(), _IsolatedWorld_onBindingCalled = new WeakMap();
|
524
|
+
_IsolatedWorld_bindingIdentifier = { value: (name, contextId) => {
|
552
525
|
return `${name}_${contextId}`;
|
553
526
|
} };
|
554
527
|
const noop = () => { };
|
@@ -558,7 +531,7 @@ const noop = () => { };
|
|
558
531
|
export class WaitTask {
|
559
532
|
constructor(options) {
|
560
533
|
_WaitTask_instances.add(this);
|
561
|
-
|
534
|
+
_WaitTask_isolatedWorld.set(this, void 0);
|
562
535
|
_WaitTask_polling.set(this, void 0);
|
563
536
|
_WaitTask_timeout.set(this, void 0);
|
564
537
|
_WaitTask_predicateBody.set(this, void 0);
|
@@ -586,7 +559,7 @@ export class WaitTask {
|
|
586
559
|
}
|
587
560
|
return `return (${predicateBody})(...args);`;
|
588
561
|
}
|
589
|
-
__classPrivateFieldSet(this,
|
562
|
+
__classPrivateFieldSet(this, _WaitTask_isolatedWorld, options.isolatedWorld, "f");
|
590
563
|
__classPrivateFieldSet(this, _WaitTask_polling, options.polling, "f");
|
591
564
|
__classPrivateFieldSet(this, _WaitTask_timeout, options.timeout, "f");
|
592
565
|
__classPrivateFieldSet(this, _WaitTask_root, options.root || null, "f");
|
@@ -595,9 +568,9 @@ export class WaitTask {
|
|
595
568
|
__classPrivateFieldSet(this, _WaitTask_args, options.args, "f");
|
596
569
|
__classPrivateFieldSet(this, _WaitTask_binding, options.binding, "f");
|
597
570
|
__classPrivateFieldSet(this, _WaitTask_runCount, 0, "f");
|
598
|
-
__classPrivateFieldGet(this,
|
571
|
+
__classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f")._waitTasks.add(this);
|
599
572
|
if (__classPrivateFieldGet(this, _WaitTask_binding, "f")) {
|
600
|
-
__classPrivateFieldGet(this,
|
573
|
+
__classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f")._boundFunctions.set(__classPrivateFieldGet(this, _WaitTask_binding, "f").name, __classPrivateFieldGet(this, _WaitTask_binding, "f").pptrFunction);
|
601
574
|
}
|
602
575
|
this.promise = new Promise((resolve, reject) => {
|
603
576
|
__classPrivateFieldSet(this, _WaitTask_resolve, resolve, "f");
|
@@ -623,12 +596,12 @@ export class WaitTask {
|
|
623
596
|
const runCount = __classPrivateFieldSet(this, _WaitTask_runCount, (_b = __classPrivateFieldGet(this, _WaitTask_runCount, "f"), ++_b), "f");
|
624
597
|
let success = null;
|
625
598
|
let error = null;
|
626
|
-
const context = await __classPrivateFieldGet(this,
|
599
|
+
const context = await __classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f").executionContext();
|
627
600
|
if (__classPrivateFieldGet(this, _WaitTask_terminated, "f") || runCount !== __classPrivateFieldGet(this, _WaitTask_runCount, "f")) {
|
628
601
|
return;
|
629
602
|
}
|
630
603
|
if (__classPrivateFieldGet(this, _WaitTask_binding, "f")) {
|
631
|
-
await __classPrivateFieldGet(this,
|
604
|
+
await __classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f")._addBindingToContext(context, __classPrivateFieldGet(this, _WaitTask_binding, "f").name);
|
632
605
|
}
|
633
606
|
if (__classPrivateFieldGet(this, _WaitTask_terminated, "f") || runCount !== __classPrivateFieldGet(this, _WaitTask_runCount, "f")) {
|
634
607
|
return;
|
@@ -649,7 +622,7 @@ export class WaitTask {
|
|
649
622
|
// If the frame's execution context has already changed, `frame.evaluate` will
|
650
623
|
// throw an error - ignore this predicate run altogether.
|
651
624
|
if (!error &&
|
652
|
-
(await __classPrivateFieldGet(this,
|
625
|
+
(await __classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f")
|
653
626
|
.evaluate(s => {
|
654
627
|
return !s;
|
655
628
|
}, success)
|
@@ -666,7 +639,7 @@ export class WaitTask {
|
|
666
639
|
if (error.message.includes('TypeError: binding is not a function')) {
|
667
640
|
return this.rerun();
|
668
641
|
}
|
669
|
-
// When frame is detached the task should have been terminated by the
|
642
|
+
// When frame is detached the task should have been terminated by the IsolatedWorld.
|
670
643
|
// This can fail if we were adding this task while the frame was detached,
|
671
644
|
// so we terminate here instead.
|
672
645
|
if (error.message.includes('Execution context is not available in detached frame')) {
|
@@ -694,9 +667,9 @@ export class WaitTask {
|
|
694
667
|
__classPrivateFieldGet(this, _WaitTask_instances, "m", _WaitTask_cleanup).call(this);
|
695
668
|
}
|
696
669
|
}
|
697
|
-
|
670
|
+
_WaitTask_isolatedWorld = new WeakMap(), _WaitTask_polling = new WeakMap(), _WaitTask_timeout = new WeakMap(), _WaitTask_predicateBody = new WeakMap(), _WaitTask_predicateAcceptsContextElement = new WeakMap(), _WaitTask_args = new WeakMap(), _WaitTask_binding = new WeakMap(), _WaitTask_runCount = new WeakMap(), _WaitTask_resolve = new WeakMap(), _WaitTask_reject = new WeakMap(), _WaitTask_timeoutTimer = new WeakMap(), _WaitTask_terminated = new WeakMap(), _WaitTask_root = new WeakMap(), _WaitTask_instances = new WeakSet(), _WaitTask_cleanup = function _WaitTask_cleanup() {
|
698
671
|
__classPrivateFieldGet(this, _WaitTask_timeoutTimer, "f") !== undefined && clearTimeout(__classPrivateFieldGet(this, _WaitTask_timeoutTimer, "f"));
|
699
|
-
__classPrivateFieldGet(this,
|
672
|
+
__classPrivateFieldGet(this, _WaitTask_isolatedWorld, "f")._waitTasks.delete(this);
|
700
673
|
};
|
701
674
|
async function waitForPredicatePageFunction(root, predicateBody, predicateAcceptsContextElement, polling, timeout, ...args) {
|
702
675
|
root = root || document;
|
@@ -796,4 +769,4 @@ async function waitForPredicatePageFunction(root, predicateBody, predicateAccept
|
|
796
769
|
}
|
797
770
|
}
|
798
771
|
}
|
799
|
-
//# sourceMappingURL=
|
772
|
+
//# sourceMappingURL=IsolatedWorld.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IsolatedWorld.js","sourceRoot":"","sources":["../../../../src/common/IsolatedWorld.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;AAGH,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAGzC,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAMzC,OAAO,EAAC,gBAAgB,EAA0B,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAC,0BAA0B,EAAC,MAAM,mBAAmB,CAAC;AAG7D,OAAO,EACL,cAAc,EACd,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,qBAAqB,GAEtB,MAAM,4BAA4B,CAAC;AAsDpC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAC9C;;;;;GAKG;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