cypress-har-generator
cypress-har-generator copied to clipboard
Firefox doesn't support Security and Network domain properly
Firefox is still implementing the DevTools protocol. I hope guys will fix the shortcomings soon. You can follow updates by the link:
https://bugzilla.mozilla.org/buglist.cgi?product=Remote%20Protocol&component=Network&bug_status=open
@ArtemDerevnjuk hi there, DevTools member here. Could this work be done without CDP, using HAR extension API, using https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/devtools.network/getHAR ?
Hi @digitarald, wonderful to see you here! I guess it's possible. Cypress allows installing a browser extension during before:browser:launch
hook. However, CDP provides low-level API to manage network events which make life so much easier in handling cypress stubs. How much time will it take your team to fully support the latest version of the protocol (https://chromedevtools.github.io/devtools-protocol/tot)?
@ArtemDerevnjuk could you list which CDP APIs you depend on?
@digitarald As I noticed in Bugzilla only requestWillBeSent
has been implemented.
The following list details each of the necessary network events (including optional):
- requestWillBeSent
- dataReceived
- responseReceived
- loadingFinished
- loadingFailed
- webSocketCreated
- webSocketWillSendHandshakeRequest
- webSocketHandshakeResponseReceived
- webSocketFrameSent
- webSocketFrameReceived
- webSocketFrameError
- webSocketClosed
Maybe I could help you to implement them.
Thank you @ArtemDerevnjuk , we are tracking those dependencies in https://bugzilla.mozilla.org/show_bug.cgi?id=1605512
Maybe I could help you to implement them.
In case anybody wants to help, the team is hanging out in Firefox's DevTools Slack's #remote
channel.
@digitarald Hi, any news re: the progress?