Skip to content

Conversation

@kenrussell
Copy link
Member

@kenrussell kenrussell commented Jun 5, 2020

The earliest version of this code, which was seemingly stable, made the
determination of whether to use a local or remote URL cor cross-origin
images up front. Network timeouts from machines that deliberately
aren't connected to the open Internet can't be relied upon as a fallback
mechanism. Change the code back to examine the test's URL and choose
whether to load local or remote images based on that. Also attempt to
make runningOnLocalhost more robust to IPv6 loopback addresses.

Follow-on to #3052 and #3077. See http://crbug.com/1082525 for more
background.

Should fix #3076 conclusively.

Note that #3097 was proposed as an alternative solution for this problem
and may still be considered in the future if this change destabilizes some
browsers' CI systems.

The earliest version of this code, which was robust, made the
determination of whether to use a local or remote URL cor cross-origin
images up front.  Network timeouts from machines that deliberately
aren't connected to the open Internet can't be relied upon as a
fallback mechanism. Change the code back to examine the test's URL and
choose whether to load local or remote images based on that.

Follow-on to KhronosGroup#3052 and KhronosGroup#3077.

Should fix KhronosGroup#3076 conclusively.
@kenrussell
Copy link
Member Author

@jdashg @shrekshao please review. It's been found by both Google and Intel that the fallback that was added in #3052 doesn't work on our automated test setups.

Tested this locally and verified that the local invocations now use the localhost URL.

@gyagp FYI.

@kenrussell kenrussell requested review from kdashg and shrekshao June 5, 2020 01:22
@gyagp
Copy link

gyagp commented Jun 5, 2020

Related cases can also pass now with this fix at my side.

Copy link
Member

@shrekshao shrekshao left a comment

Choose a reason for hiding this comment

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

LGTM given that it passes on both Google and Intel testing environment.

@kenrussell
Copy link
Member Author

Thanks for all of your reviews. Merging now.

@kenrussell kenrussell merged commit d0fcf3d into KhronosGroup:master Jun 9, 2020
@kenrussell kenrussell deleted the choose-cross-origin-url-earlier branch June 9, 2020 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image loading tests have become flaky after #3052

5 participants