cypress-har-generator icon indicating copy to clipboard operation
cypress-har-generator copied to clipboard

Firefox doesn't support Security and Network domain properly

Open derevnjuk opened this issue 4 years ago • 7 comments

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

derevnjuk avatar Dec 03 '19 13:12 derevnjuk

@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 ?

digitarald avatar Dec 17 '19 18:12 digitarald

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)?

derevnjuk avatar Dec 18 '19 08:12 derevnjuk

@ArtemDerevnjuk could you list which CDP APIs you depend on?

digitarald avatar Dec 20 '19 18:12 digitarald

@digitarald As I noticed in Bugzilla only requestWillBeSent has been implemented. The following list details each of the necessary network events (including optional):

Maybe I could help you to implement them.

derevnjuk avatar Dec 20 '19 21:12 derevnjuk

Thank you @ArtemDerevnjuk , we are tracking those dependencies in https://bugzilla.mozilla.org/show_bug.cgi?id=1605512

digitarald avatar Dec 23 '19 21:12 digitarald

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 avatar Dec 27 '19 18:12 digitarald

@digitarald Hi, any news re: the progress?

Sija avatar Feb 23 '23 19:02 Sija