Trust Tokens: Clear data more selectively
A previous CL (crrev.com/c/2120102) implemented preliminary data clearing logic for Trust Tokens [*] persistent state, in a manner such that any data removal action clearing cookies would also clear Trust Tokens state. In particular, this clears Trust Tokens state whenever the browser receives a Clear-Site-Data header specifying that cookies should be cleared. This is a problem because persistent Trust Tokens state includes metadata used to enforce privacy invariants. For instance, it contains lists of token issuers associated with each top-level origin and the statuses of origin-scoped rate limits on issuance and redemption. This CL creates a new data removal type for Trust Tokens and adds it to DATA_TYPE_SITE_DATA, with the effect that Trust Tokens state will be cleared through the UI when the user clears cookies and other site data, but the state will not be cleared through the Clear-Site-Data header. [*] https://docs.google.com/document/u/1/d/1TNnya6B8pyomDK2F1R9CL3dY10OAmqWlnCxsWyOBDVQ/edit R=msramek Bug: 1064747 Change-Id: I9c5fbd0ad660199345ab04a89999731d79fded16 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144411 Commit-Queue: David Van Cleve <davidvc@chromium.org> Reviewed-by:Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Christian Dullweber <dullweber@chromium.org> Reviewed-by:
Martin Šrámek <msramek@chromium.org> Cr-Commit-Position: refs/heads/master@{#759216}
Showing
Please register or sign in to comment