Skip to content

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
Contributor

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
Contributor

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