-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[WIP] Update testing of Request's default credentials mode #9911
[WIP] Update testing of Request's default credentials mode #9911
Conversation
I guess we don't really have good same-origin cookie/HTTP authentication tests then. @wanderview does that make sense? |
Build PASSEDStarted: 2018-03-08 11:12:38 Failing Jobs
View more information about this build on: |
Pinging @wanderview here. This seems to be the only thing blocking Chrome's implementation so the sooner we can get this in the better :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'm surprised there aren't any service worker tests that check the default credentials via the FetchEvent.
Thanks a lot! Me too, should we make an issue to add some at some point? I would expect more tests to be failing here, and we probably want more tests to be doing so. |
Thoughts on whatwg/fetch#585 (comment) anyone? Sounds like @wanderview wants to go ahead with this in Firefox as well, so I'm happy to land this, just wondering about follow-up work and how to structure that. |
BTW, the service worker tests mostly check that the correct value is passed through to FetchEvent. The tests use explicit modes for this. They are not really checking for defaults. I think that its reasonable for the fetch tests to mainly be checking the defaults. |
Most features in the platform have this default and not having this default causes multiple connections in contemporary implementations. It also causes confusion as switching from XMLHttpRequest to fetch() is not as seamless as it could be. Making this change will also make it easier for <script type=module> to have this default as per discussion in whatwg/html#2557. Tests: web-platform-tests/wpt#9911.
This is for whatwg/fetch#585.
I'm a little surprised if only these tests have to be updated, so I'm marking this as a WIP for now. Basically what I did though, was:
/fetch
,/xor
,service-workers
, and/cors
tests on Chromium, and noted failues (none)same-origin
credentials fallback instead of the previousomit