New issue
Advanced search Search tips

Issue 921655 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Enable persistent client hints for Android Webview

Project Member Reported by tbansal@chromium.org, Jan 14

Issue description

Persistent client hints feature allows origins to direct clients to send a subset of client hints for all requests to that origins. On receiving, Accept-CH-Lifetime (https://httpwg.org/http-extensions/client-hints.html#iana-accept-ch-lifetime) response header, the client persists the preferences of the origin. Next, for all requests to that origin, the client reads the origin preferences, and attaches a subset of HTTP request headers to that request.

Persistent client hints has been enabled for Chrome on Android/Desktop/CrOS since M-69. This bug tracks the work to enable persistent client hints (i.e., the support for Accept-CH-Lifetime) on Android Webview as well.
 
ntfschr@ mentioned on https://chromium-review.googlesource.com/c/chromium/src/+/1376709:

As a privacy consideration, apps might want to *not* expose this to servers, so it might make sense to provide a toggle? From a technical perspective, such a toggle could be a manifest tag, or a Java API on WebSettings(Compat). (not saying there *is* a privacy concern, just advising how we might consider building that, from a technical standpoint)

As for persisting to disk, this would live somewhere under the app's data dir. I don't think we have a standard way of persisting data (for example, cookies and preferences are both persisted, and I suspect they use different formats on disk). Paul could chime in here though, if I'm mistaken.
Cc: changwan@chromium.org ntfschr@chromium.org yoavweiss@chromium.org torne@chromium.org

Sign in to add a comment