Skip to content

Resulting HAR does not conform to spec #37

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

Open
sciatro opened this issue Aug 7, 2019 · 0 comments
Open

Resulting HAR does not conform to spec #37

sciatro opened this issue Aug 7, 2019 · 0 comments

Comments

@sciatro
Copy link

sciatro commented Aug 7, 2019

The HAR returned by v0.6.1 of the plugin on FF v68 does not conform to v1.2 of the HAR spec.

I've noticed two issues that cause the return value of HAR.triggerExport() to fail validation:

The Apache 2 Licensed Browsertime project includes a function which brings the plugin return value into conformity, partially reproduced here:

  HAR.triggerExport()
    .then((result) => {
      // Different handling in FF 60 and 61 :|
      if (result.log) {
        result.log.pages[0].title = document.URL;
      }
      else {
        result.pages[0].title = document.URL;
      }
      // Normalize
      return callback({'har': result.log ? result: {log: result}});
  })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants