Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HAR file generation as a BiDi command #262

Open
juliandescottes opened this issue Aug 24, 2022 · 0 comments
Open

Support HAR file generation as a BiDi command #262

juliandescottes opened this issue Aug 24, 2022 · 0 comments
Labels
needs-discussion Issues to be discussed by the working group

Comments

@juliandescottes
Copy link
Contributor

The topic of HAR support often comes up when we discuss about network event support (#196). I am filing this issue to summarize mozilla's opinion and intent on that topic.

At the moment, we (mozilla) are prototyping HAR generation based on the network events proposed in #196 to make sure that clients can generate HAR files using BiDi. But we don't plan to directly add HAR support in BiDi, we just want to ensure network events are compatible with it.

But if there is a strong interest for generating HAR with BiDi however, it might make sense add a command in the future. Some thoughts about pros of having a command:

  • HAR format is specified, so if we don't have a command any client (which wants to provide the HAR feature) will roughly have to reimplement the same logic (which will therefore be duplicated across clients)
  • related to the previous point, if we want to promote HAR usage, forcing clients to reimplement that logic can be an issue for adoption
  • it will be hard to test against regression for HAR support if we don't own such a client
  • generating a HAR in the browser might be more efficient because you don't have to communicate all the network events to the client

Now some cons:

  • if we have a HAR command, then all vendors will need to implement the HAR generation logic
  • HAR files can be huge when recording complex scenarios (several 100MBs)

As a summary there is no intention from the mozilla side to have a BiDi HAR command "for now". We only want to ensure network events from BiDi can be used for HAR generation. We can reconsider after discussing this as a group, based on the interest.

@juliandescottes juliandescottes added the needs-discussion Issues to be discussed by the working group label Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-discussion Issues to be discussed by the working group
Projects
None yet
Development

No branches or pull requests

1 participant