chore: use devtools-protocol package (#6172)

* chore: Use devtools-protocol package

Rather than maintain our own protocol we can instead use the devtools-protocol package and pin it to the version of Chromium that Puppeteer is shipping with.

The only changes are naming changes between the bespoke protocol that Puppeteer created and the devtools-protocol one.
This commit is contained in:
Jack Franklin
2020-07-10 11:51:52 +01:00
committed by GitHub
parent f666be3f5f
commit 31309b0e20
31 changed files with 227 additions and 15882 deletions

View File

@@ -331,7 +331,7 @@
* [target.worker()](#targetworker)
- [class: CDPSession](#class-cdpsession)
* [cdpSession.detach()](#cdpsessiondetach)
* [cdpSession.send(method[, params])](#cdpsessionsendmethod-params)
* [cdpSession.send(method[, ...paramArgs])](#cdpsessionsendmethod-paramargs)
- [class: Coverage](#class-coverage)
* [coverage.startCSSCoverage([options])](#coveragestartcsscoverageoptions)
* [coverage.startJSCoverage([options])](#coveragestartjscoverageoptions)
@@ -3946,9 +3946,9 @@ await client.send('Animation.setPlaybackRate', {
Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used
to send messages.
#### cdpSession.send(method[, params])
#### cdpSession.send(method[, ...paramArgs])
- `method` <[string]> protocol method name
- `params` <[Object]> Optional method parameters
- `...paramArgs` <[Object]> Optional method parameters
- returns: <[Promise]<[Object]>>
### class: Coverage