https://github.com/w3ctag/design-reviews/issues/280 Introduces a new HTTP request header `Sec-Fetch-Dest` which is part of the fetch metadata request headers that sends additional metadata about a request's destination to provide servers with more information to make security decisions. https://groups.google.com/a/chromium.org/d/msg/blink-dev/tNwA_l_o9lc/5wug6BcmCQAJThe biggest risk for deployment is that different browsers send different header values for the same kind of request. We're attempting to mitigate this risk with a reasonably robust test suite, and with recommendations in the spec for browser-specific features that are difficult to test via WPT. Firefox: Mixed public signals (https://github.com/whatwg/fetch/pull/948#issuecomment-543080576) Edge: No public signals Safari: No public signals Web developers: No signals The feature exposes additional metadata about a given request, enabling servers to make informed decisions about the ways in which they respond.These headers are discoverable in devtools, just like any other header. Yes Yes https://wpt.fyi/results/fetch/metadata?label=experimental&label=master&aligned https://bugs.chromium.org/p/chromium/issues/detail?id=843478 https://chromestatus.com/feature/5206259592593408This intent message was generated by Chrome Platform Status.
My name is on this, so I'm abstaining. But if I wasn't abstaining, I'd LGTM0 it. :)On Tue, Nov 26, 2019 at 2:22 PM Yifan Luo <l...@google.com> wrote:Note that this moved to https://github.com/w3c/webappsec-fetch-metadata.
-mikeThere are also outstanding PRs against Fetch, HTML, and etc. that we should point to to explain some of the underlying mechanicshttps://github.com/whatwg/fetch/pull/948 (contains way more discussion than a PR really should :) )-mikehttps://github.com/w3ctag/design-reviews/issues/280 Introduces a new HTTP request header `Sec-Fetch-Dest` which is part of the fetch metadata request headers that sends additional metadata about a request's destination to provide servers with more information to make security decisions. https://groups.google.com/a/chromium.org/d/msg/blink-dev/tNwA_l_o9lc/5wug6BcmCQAJThe biggest risk for deployment is that different browsers send different header values for the same kind of request. We're attempting to mitigate this risk with a reasonably robust test suite, and with recommendations in the spec for browser-specific features that are difficult to test via WPT. Firefox: Mixed public signals (https://github.com/whatwg/fetch/pull/948#issuecomment-543080576) Edge: No public signals Safari: No public signals
Web developers: No signals The feature exposes additional metadata about a given request, enabling servers to make informed decisions about the ways in which they respond.These headers are discoverable in devtools, just like any other header. Yes Yes https://wpt.fyi/results/fetch/metadata?label=experimental&label=master&aligned https://bugs.chromium.org/p/chromium/issues/detail?id=843478 https://chromestatus.com/feature/5206259592593408This intent message was generated by Chrome Platform Status.
--
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+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXHy%3DdQTqT5C_JBL5Yk51xLb0rNp4%3DmD38xH4ag1NWLhhiDDQ%40mail.gmail.com.
LGTM1On Tue, Nov 26, 2019 at 2:26 PM Mike West <mk...@chromium.org> wrote:My name is on this, so I'm abstaining. But if I wasn't abstaining, I'd LGTM0 it. :)On Tue, Nov 26, 2019 at 2:22 PM Yifan Luo <l...@google.com> wrote:Note that this moved to https://github.com/w3c/webappsec-fetch-metadata.Would be good to spell out how destination should and shouldn't be used: there are a bunch of subtleties around `destination`, Service-Workers and subresources that developers should be careful about.
-mikeThere are also outstanding PRs against Fetch, HTML, and etc. that we should point to to explain some of the underlying mechanicshttps://github.com/whatwg/fetch/pull/948 (contains way more discussion than a PR really should :) )-mikehttps://github.com/w3ctag/design-reviews/issues/280 Introduces a new HTTP request header `Sec-Fetch-Dest` which is part of the fetch metadata request headers that sends additional metadata about a request's destination to provide servers with more information to make security decisions. https://groups.google.com/a/chromium.org/d/msg/blink-dev/tNwA_l_o9lc/5wug6BcmCQAJThe biggest risk for deployment is that different browsers send different header values for the same kind of request. We're attempting to mitigate this risk with a reasonably robust test suite, and with recommendations in the spec for browser-specific features that are difficult to test via WPT. Firefox: Mixed public signals (https://github.com/whatwg/fetch/pull/948#issuecomment-543080576) Edge: No public signals Safari: No public signalsHave we reached out to Safari? Opened a WebKit bug?
--
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+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/364bb763-26b3-47ec-8bd1-3579c6e281ae%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY9N9PeNQJ-SxqAWpeQDk5EFFEYUnzESCBU5%3Dd5E-6EAiQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CALjhuieak2bjN_bp0XHLnpbgUf09RB2BYjhrh_3NPe_U3uM-%3DQ%40mail.gmail.com.
Just FYI, I'm seeing reports from developers that are confused by the Request.destination changes here. Specifically, they were doing `request.destination == 'document'` in their service worker to determine if a navigation preload should be processed. These checks are failing for framed loads now because the destination is instead 'iframe'. All their iframe loads are now slower and they are seeing many rejected promise errors from the preloadResponse promise being left unhandled.In addition to a breaking change this is a bit more confusing for developers since the spec PR to fetch has not merged. The developer I spoke too wrote their service worker based on looking at the spec.I'm not trying to call out anyone here. I understand sometimes we need to ship things before the spec can be formally updated and in this case we are working to get the PR merged soon. But this case does seem a suboptimal outcome and I just wanted to flag it in case there is any improvement to the process that could be made for the future.Also, should we do some kind of web developer outreach about this change?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK7rkMg1UFfsCL%3D6enKX3aX1RLSJzk1txrMvPB2%3DTod3PQEkTQ%40mail.gmail.com.