Is a flaky failure on iOS (15).
Result page: https://build.webkit.org/results/Apple-iPadOS-15-Simulator-Debug-WK2-Tests/r283966%20(61)/results.html
@@ -5,8 +5,9 @@
PASS Should have and has the session cookie.
PASS Should have and has the persistent cookie.
-PASS Origin has isolated session.
+FAIL Origin has no isolated session.
PASS successfullyParsed is true
+Some tests failed.
Marked test expectations https://trac.webkit.org/changeset/283989/webkit
I was not able to reproduce the failure locally using run-webkit-tests --ios-simulator --iterations 50 --exit-after-n-failures 1 http/tests/resourceLoadStatistics/switch-session-on-navigation-to-prevalent-without-interaction.py --force
Based on the Apache Access log, I think we fail on step 1:
testPassed("Origin has isolated session.");
testFailed("Origin has no isolated session.");
document.location.href = nonPrevalentOrigin + "/resourceLoadStatistics/switch-session-on-navigation-to-prevalent-without-interaction.py#step2";
I am unclear why the session would not be recognized as isolated, since sessions are isolated unconditionally nowadays. I could only see 2 reasons:
1. We have not done any loads for that origin yet. This seems unlikely since the origin in question is "http://127.0.0.1:8000" and we should have just loaded the main resource of the test from this origin.
2. Something is clearing the isolated session. I do see there is a NetworkSessionCocoa::clearIsolatedSessions() for e.g.
I haven't been able to reproduce on iOS simulator so far and I currently don't have any idea of how this could fail.
This test no longer exists. It was reverted.