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

clients(lightrider): use iframe fetcher #13006

Merged
merged 2 commits into from
Sep 2, 2021
Merged

clients(lightrider): use iframe fetcher #13006

merged 2 commits into from
Sep 2, 2021

Conversation

connorjclark
Copy link
Collaborator

Temporary fix to allow us to upgrade Chrome in Lightrider/PSI.

ref #12936

@connorjclark connorjclark requested a review from a team as a code owner September 2, 2021 21:03
@connorjclark connorjclark requested review from adamraine and removed request for a team September 2, 2021 21:03
@google-cla google-cla bot added the cla: yes label Sep 2, 2021
}
return await this._fetchResourceIframe(url, options);

return this._fetchResourceOverProtocol(url, options);
Copy link
Collaborator Author

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.

// 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) {
Copy link
Collaborator Author

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.

// 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
Copy link
Member

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 /** ... */

// 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() {
Copy link
Member

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

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.

3 participants