-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
core(fr): add fetcher to transitional driver #12419
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
lighthouse-core/gather/fetcher.js
Outdated
*/ | ||
constructor(driver) { | ||
this.driver = driver; | ||
this.session = driver.defaultSession; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW could avoid the sticky issue of the other properties being ready/demanding a particular initialization order by saving this._driver = driver
instead, not a big deal though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
er, actually I think I feel strongly enough about https://github.com/GoogleChrome/lighthouse/pull/12419/files#r622408557 to have a discussion about it at least before approval :)
I didn't feel very strongly, thought #12419 (comment) was a good idea. |
To make the robots.txt gatherer compatible with CSPs we should use the new fetcher. This PR makes fetcher available to FR gatherers.
Related
#10225