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

core(fr): add fetcher to transitional driver #12419

Merged
merged 2 commits into from
Apr 28, 2021
Merged

core(fr): add fetcher to transitional driver #12419

merged 2 commits into from
Apr 28, 2021

Conversation

adamraine
Copy link
Member

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

@adamraine adamraine requested a review from a team as a code owner April 28, 2021 17:41
@adamraine adamraine requested review from patrickhulce and removed request for a team April 28, 2021 17:41
@google-cla google-cla bot added the cla: yes label Apr 28, 2021
Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

*/
constructor(driver) {
this.driver = driver;
this.session = driver.defaultSession;
Copy link
Collaborator

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

Copy link
Collaborator

@patrickhulce patrickhulce left a 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 :)

@adamraine
Copy link
Member Author

I didn't feel very strongly, thought #12419 (comment) was a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants