-
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
clients(lightrider): use iframe fetcher #13006
Conversation
} | ||
return await this._fetchResourceIframe(url, options); | ||
|
||
return this._fetchResourceOverProtocol(url, options); |
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.
swapped order because using iframe
fetcher is now the exceptional case.
lighthouse-core/gather/fetcher.js
Outdated
// https://docs.google.com/document/d/1V-DxgsOFMPxUuFrdGPQpyiCqSljvgNlOqXCtqDtd0b8/edit?usp=sharing&resourcekey=0-aIaIqcHFKG-0dX4MAudBEw | ||
async getFetcherImplBasedOnEnv() { | ||
const {milestone} = await getBrowserVersion(this.session); | ||
if (milestone < 92 || global.isLightrider) { |
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.
could have dropped the m92 thing but ehhh might as well continue on living until we kill the iframe fetcher.
lighthouse-core/gather/fetcher.js
Outdated
// The long timeout bug with `IO.read` was fixed in M92: | ||
// https://bugs.chromium.org/p/chromium/issues/detail?id=1191757 | ||
// Lightrider has a bug forcing us to use the old version for now: | ||
// https://docs.google.com/document/d/1V-DxgsOFMPxUuFrdGPQpyiCqSljvgNlOqXCtqDtd0b8/edit?usp=sharing&resourcekey=0-aIaIqcHFKG-0dX4MAudBEw |
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.
nit: can you make this a normal JSDoc with /** ... */
lighthouse-core/gather/fetcher.js
Outdated
// https://bugs.chromium.org/p/chromium/issues/detail?id=1191757 | ||
// Lightrider has a bug forcing us to use the old version for now: | ||
// https://docs.google.com/document/d/1V-DxgsOFMPxUuFrdGPQpyiCqSljvgNlOqXCtqDtd0b8/edit?usp=sharing&resourcekey=0-aIaIqcHFKG-0dX4MAudBEw | ||
async getFetcherImplBasedOnEnv() { |
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.
nit: name this something like shouldUseLegacyFetcher
and return a bool
Temporary fix to allow us to upgrade Chrome in Lightrider/PSI.
ref #12936