Open Bug 1401467 (netmonitor-cdp) Opened 8 years ago Updated 3 years ago

[meta] Support for CDP

Categories

(DevTools :: Netmonitor, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: Honza, Unassigned)

References

Details

(Keywords: meta)

The Network monitor should support connecting to Chrome browser over CDP. This is meta bug covering this effort. - First part of the work has been done in bug 1390037. * New CDP connector implemented in: devtools/client/netmonitor/src/connector * Check out devtools/client/netmonitor/src/connector/README.md to see how to test it. Next steps (follow ups for bug 1390037): * Cookies HTTP cookies are not currently supported since `getCookies` method doesn't have request ID. * Security See more details: https://github.com/locke12456/ChromeConnector/blob/develop/chrome/response.js#L46 The security information doesn't contain fingerprint from CDP. CDP doesn't seem to support it properly in the current version. * Timings See more details: https://github.com/locke12456/ChromeConnector/blob/develop/chrome/response.js#L124 CDP provides many timing information. The current support uses only: - connect - send - dns - receiveHeaders We might use other timings and show them in Netmonitor UI. * Response content We need to verify usage of `encodedDataLength` map to `transferredSize`. * Request XHRs are currently not distinguished from other requests. It's not clear how/if the CDP protocol supports this. Honza
Severity: normal → enhancement
Depends on: 1390037
Keywords: meta
Priority: -- → P3
Some code clean up yet needed: * Rename `netmonitor/src/connector` to `netmonitor/src/connectors` * Rename `netmonitor/src/connector/firefox-data-provider` to `netmonitor/src/connector/firefox/data-provider` * Rename `netmonitor/src/connector/chrome/cdp-connector` to `netmonitor/src/connector/chrome/data-provider` Honza
Original prototype implemented by Locke Chen: https://github.com/locke12456/ChromeConnector Honza
We might use info from: https://github.com/locke12456/ChromeConnector/blob/develop/README.md ...and update: netmonitor/src/connector/README.md Honza
Product: Firefox → DevTools
Alias: netmonitor-cdp
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.