chromium-bidi
chromium-bidi copied to clipboard
Extend `AddPreloadScript` with `ContextId` parameter
The parameter was added in https://github.com/w3c/webdriver-bidi/pull/517 needs to be implemented, so it can be used in Puppeteer.
WPT tests will be added in https://github.com/web-platform-tests/wpt/pull/41932.
- [X] Invalid inputs
- [X] PreloadScripts are ran supplied Contexts
- [X] PreloadScripts are not ran for newly created BrowsingContexts creation (via
browsingContext.create) - [ ] PreloadScripts are ran for Workers, fenced frames (Connected Contexts but separate CDP targets)
cc @Lightning00Blade