Contact emails
ari...@chromium.org, mike...@chromium.org, yoav...@chromium.org
Specification
https://wicg.github.io/client-hints-infrastructure/
Explainer
When a page is loaded, the first response from an origin may include a signal (in HTTP headers) for Client Hints to be included in future requests to that origin. Without persisting this signal, Client Hints cannot be included in the next request to load a page from this Origin. Android WebView does not currently persist this signal.
Design Doc
https://docs.google.com/document/d/1r1AKHex1_UKh3wIp4ITkU4-J9-tdNZSOmUDeDVWw_AU/
Summary
We aim to add support for persistent Client Hints to Android Webview for parity with the rest of the platform. For more details on the Client Hints system see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Client_hints
Blink component
Motivation
Without persisting the list of Client Hints a page requests the initial load of a website will never include Client Hints, only subresources on a given page can receive them. This undermines the use of the Client Hints system which is to empower websites to adapt content to the User Agent. We should add persistence in the interest of parity with the behavior of Chrome on Android so that WebView stays viable as a platform.
TAG review
N/A (this change enables a feature that we already ship on desktop and Android)
Compatibility
This expands persistent Client Hints to a platform that was missing it, no existing implementation will change. The persisted Client Hints can be cleared by clearing the Cookies for a given WebView, the same way that Client Hints are cleared in Chrome for Android.
Other engines haven’t shipped Client Hints so this doesn’t increase interoperability risk.
Gecko: Client Hints and User Agent Client Hints considered non-harmful
WebKit: Mildly positive support for User Agent Client Hints
Web developers: Vendor interest from Huawei, interest from Cloudinary in User Agent Client Hints
N/A (developers can use Chrome for Android to debug client hint requests, though the values for user-agent related strings will differ within the WebView context)
Is this feature fully tested by web-platform-tests?
Android WebView is not a WPT platform, so this will only have chrome internal tests
Tracking bug
Link to entry on the 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/CAGpy5D%2BZnn79sLfnTBa84Q_aCmg%2BWsAeZBqLo9MCA335gYg_nw%40mail.gmail.com.
LGTM1 to extend this already-approved feature to WebView.Presumably you'll be chatting with WebView experts about any implications this might have for the API WebView exposed to embedding apps?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXHy%3Dd_6zWscYe_-dCSmbjze3PQCyKzDLUT06h5cb9A3gxWdA%40mail.gmail.com.
LGTM2
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAEV-rjdSAkKyH6uBKkakzjKm9Gzc3NdYvM8_zGy7AdrVTiqZRA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXHy%3Dd_6zWscYe_-dCSmbjze3PQCyKzDLUT06h5cb9A3gxWdA%40mail.gmail.com.