-
Notifications
You must be signed in to change notification settings - Fork 46
cookies/prefix/__secure.header.https.html
results seem off.
#599
Comments
I'm on the case! |
This looks like a problem with test interaction. To reproduce with the WPT CLI, run the following commands:
The first two will pass, but the third will fail, ostensibly due to To reproduce with w3c-test.org Visit pages in the following sequence:
Both tests have been written to defensively remove cookies prior to testing via the This is where I get a little lost. In HTML, However, Chrome, Edge, Firefox, IE, and Safari all store these cookies independently: <script>
document.cookie = 'foo=1';
document.cookie = 'foo=2';
document.cookie = 'foo=3; domain=' + document.location.hostname;
document.cookie = 'foo=4; domain=' + document.location.hostname;
console.log(document.cookie); // 'foo=2; foo=4'
</script> That would explain the failure we're seeing: This is a strong indication that I've misinterpreted the spec. Given that we work on different time zones, verifying this could delay a fix for another day at least. To avoid that, I've filed a patch based on the assumption that the mistake is in my reading (and not all the major browsers): web-platform-tests/wpt#12817 |
Separately, here's my take on how an unstable test like this could make its way into WPT's This seems to be a case of unfortunate scheduling. The following command executes each test 10 times:
It reports WPT offers a second command for verifying test stability:
That command reports We've recently been discussing relevant changes to the CI setup, so I'll raise this issue there. |
Amusingly, we just fixed this in the cookie spec: httpwg/http-extensions@b415d03 Thank you very much for digging in, and apologies that it was my own fault. :( |
Thanks for the link (it's good to know my reading was accurate), and no worries about the mistake |
https://wpt.fyi/results/cookies/prefix/__secure.header.https.html shows as failing on Firefox and Chrome. It seems to pass on both Chromium's bots and in Chrome when run directly from https://w3c-test.org/cookies/prefix/__secure.header.https.html. I'm happy to dig in a bit to try to figure out why it's failing in the harness, but it's not at all clear to me where I could look for logs or anything else.
Halp? :)
The text was updated successfully, but these errors were encountered: