Contact emails
domfa...@gmail.com, yhi...@chromium.org, yo...@yoav.ws
Spec
https://fetch.spec.whatwg.org/#dom-request (see step 6)
Change here: https://github.com/whatwg/fetch/commit/811575d6889026c68d55a327f79198dccfea403c
There is no TAG review for this as it is an incredibly small modification to existing fetch() Request logic with minimal side effects.
Summary
A Request object’s credentials mode defaults to “omit” in Chrome right now. A spec change recently changed the default to “same-origin”, thus providing credentials to same-origin requests instead of omitting them. I intend to update Chromium to match the spec.
Link to “Intent to Implement” blink-dev discussion
Implementation is trivial, so there is no link here. The in-progress CL can be found at https://crrev.com/c/981512.
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
Demo link
https://fetch-event-echo.glitch.me/
Instructions: navigate to the site. Open DevTools and execute fetch(“test”). See that the default credentials mode for the created Request is “omit”, while the spec now mandates “same-origin”.
Risks
Interoperability and Compatibility
The interoperability risk here is low, as the change has shown positive signals in all browsers except Safari, shipped in Firefox nightly, and the Fetch Standard has been updated. The compatibility risk is also very low, as we’d now be including credentials on same-origin requests, which should have no impact on applications unless some servers for some reason get confused with credential info suddenly being included with certain requests.
Edge: Public support/issue is confirmed on their bug tracker
Firefox: Shipped in nightly, on track for stable in June
Safari: No signals
Web developers: Almost exclusively positive.
Ergonomics
We’ll potentially be sending more bytes down the wire (in form of credentials) on all fetch()-originating same-origin requests, but this likely won’t have a big performance impact.
Activation
No.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
Chrome currently fails the request-init-003.sub.html and request-structure.html tests in https://wpt.fyi/fetch/api/request due to adhering to the old spec. The WPT changes have modified these files to test for compliant implementations.
Entry on the feature dashboard
Change is probably too small to have a corresponding feature in the dashboard, but if common opinion leans towards creating one, I’m happy to do so.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6121b6d7-627f-4225-bc9f-6e5f85ea78ca%40chromium.org.
☆PhistucK
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/fcc45292-bd92-428f-86d3-b50c7f47d448%40chromium.org.
☆PhistucK
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/fcc45292-bd92-428f-86d3-b50c7f47d448%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/670700bd-678d-434f-87a7-60d320b1bbc7%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEjofO-5suBYoK_bR32Wc%3DMSMBTA1Ad4ZHXyAy-2at%2BbLg%40mail.gmail.com.
LGTM1. This is a nice ergonomic change for developers, with no actual change in the capability we expose. Following along with other vendors' implementations and the spec change sounds pretty reasonable.Please do create a `chromestatus.com` entry once you're able (or ask one of your co-contacts to do so for you? :) ).
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJUhtG8edLw_X1ju8_WpLC8do8DViBeFXm9ZFhqM%2BNwqmoqtnA%40mail.gmail.com.