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

[fetch] Partially fix test instability in Safari #16421

Closed
wants to merge 2 commits into from

Conversation

jugglinmike
Copy link
Contributor

Safari reports inconsistent results for this test, as demonstrated on wpt.fyi:

2019-04-19-safari-history

This is partially due to the browser's more aggressive caching strategy, as can be seen in the "Network" tab of the developer's console:

2019-04-19-safari-cache

The caching can be disabled by using a combination of HTTP headers (both Cache-Control and Vary appear to be necessary). Unfortunately, it looks like there's further instability that remains even after caching has been disabled. I've included a new test (not really fit for master) which demonstrates the instability. Here's a screenshot of the kind of results I have in mind:

2019-04-19-safari-unstable

The initial sub-test failure isn't too concerning--some cookies could be lingering from a previous test. I can't explain the second sub-test failure, though. While the absence of the cookie named a is expected (it is removed by the cleanup logic of the first sub-test), the absence of the cookie named k surprises me.

@burg or @eric-carlson can you verify this?

Safari reports inconsistent results for this test. Although the state of
the browser's internal cookie store can cause interference when the test
is executed repeatedly, Safari demonstrates instability within the
results of a single execution which may be unintentional.
@jugglinmike
Copy link
Contributor Author

@annevk annevk removed their assignment Aug 26, 2019
@annevk annevk removed their request for review August 26, 2019 15:49
@gsnedders gsnedders closed this Jan 24, 2020
@gsnedders gsnedders deleted the bocoup/fetch-disable-caching branch January 24, 2020 18:02
@gsnedders gsnedders restored the bocoup/fetch-disable-caching branch January 24, 2020 18:51
@Hexcles Hexcles reopened this Jan 24, 2020
@gsnedders
Copy link
Member

Closing, given it no longer appears to be flaky in Safari.

@gsnedders gsnedders closed this Mar 16, 2021
@foolip foolip deleted the bocoup/fetch-disable-caching branch April 14, 2021 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants