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

Improve the Firefox Nightly fetching code #5742

Closed
timvandermeij opened this issue Apr 26, 2020 · 1 comment · Fixed by #5864
Closed

Improve the Firefox Nightly fetching code #5742

timvandermeij opened this issue Apr 26, 2020 · 1 comment · Fixed by #5864

Comments

@timvandermeij
Copy link

I'm introducing Puppeteer for Mozilla's PDF.js project in mozilla/pdf.js#11807. While trying to figure out which version of Firefox was being downloaded, I noticed https://github.com/puppeteer/puppeteer/blame/master/install.js#L125-L151, but I think it can be simplified by simply quering the Firefox versions API instead. It can be found at https://product-details.mozilla.org/1.0/firefox_versions.json and provides you with a JSON response that is much easier to handle than the current solution where a regex is done over the response contents.

/cc @mjzffr since it was introduced in #5467

@timvandermeij
Copy link
Author

Thank you for improving this!

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

Successfully merging a pull request may close this issue.

2 participants