Trust Tokens: Add the "trusttoken" iframe attribute (and parse it)
The experimental Trust Token API (https://github.com/wicg/trust-token-api) takes in parameters specifying a Trust Tokens protocol operation, annotates outgoing requests with request headers corresponding to protocol state, and processes corresponding response headers. For the MVP of the API, we're making the functionality available via Fetch, iframe, and XHR. To implement the iframe surface, this CL adds a new iframe attribute, "trusttoken," that accepts as input a syntactically identical struct to the corresponding Fetch parameter; the CL also adds code for parsing the parameter. The attribute is gated by the TrustTokens runtime-enabled feature. A subsequent CL will add the results of the parse to the frame's load request in order for the downstream request handling logic to be able to access the parameters. Bug: 1062396 Change-Id: I8f0d00e17e06f5f4bbf780db5a77a71ea4d64db4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2116014 Commit-Queue: David Van Cleve <davidvc@chromium.org> Reviewed-by:Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#755033}
Showing
Please register or sign in to comment