Files
tubestation/testing/web-platform/tests/client-hints/accept-ch-no-feature-policy-navigation.https.html.headers
Maks Orlovich 11ef7c57fc Bug 1645485 [wpt PR 24134] - client hints: Rework how persistent settings are communicated to renderer, a=testonly
Automatic update from web-platform-tests
client hints: Rework how persistent settings are communicated to renderer

Before this CL, the entire settings map was sent to the renderer,
it then parsed accept-ch, and sent IPCs to the browser to persist
settings.

This has following downsides:
1) client-hint settings map can leak history to render (I don't know
   if there are other sources of that, probably, so maybe not such a
   big deal)
2) If this becomes popular, map size would be a performance risk
3) This requires trusting renderer to update client hint settings.

Instead, this uses existing network service hook to parse accept-ch
(which was needed for navigation redirects), and the browser persists
the results and sends the relevant client hint configuration to the
renderer with CommitParams. The IPC for renderer to write config
is therefore removed.

This required teaching the browser code to behave more consistently
with some flags (lang, accept-ch-lifetime support).

Change-Id: I421b3c07d4644e179a0f6a26088e44c55f68f7d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2081628
Commit-Queue: Maksim Orlovich <morlovich@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Tarun Bansal <tbansal@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784031}

--

wpt-commits: db1baf1ad1b70d9343284bab7d55dd4f7ba1e07b
wpt-pr: 24134
2020-07-03 09:38:49 +00:00

3 lines
70 B
Plaintext

Accept-CH: Device-Memory, DPR, Viewport-Width
Accept-CH-Lifetime: 100