Replacing Frame Site with "is-cross-site" in the HTTP Cache Partitioning Scheme
- Category
- Security
- Type
- No developer-visible change
- Status
- In developer trial (Behind a flag) (Chrome In developer trial (Behind a flag))
- Intent stage
- Start prototyping
Summary
To protect users from multiple types of cross-site data leak attacks, the HTTP cache was partitioned based on the top-level site and the frame site. In other words, cache entries for a given URL created from third-party contexts (e.g., a ‘b.com’ iframe embedded on ‘a.com’) are stored separately from those from first-party contexts (‘a.com’, or an ‘a.com’ iframe embedded on ‘a.com’) and other third-party contexts (a ‘c.com’ iframe embedded on ‘a.com’). Other shared network state was recently partitioned as well, but using a different partitioning scheme - instead of using the top-level site and the frame site, network state in third-party contexts is partitioned by the top-level site and whether the frame site is cross-site from the top-level site. Using this "is-cross-site" bit instead of the frame site was chosen as a balance between security and performance after running experiments and measuring the results. The change proposed here is to replace the frame site in the HTTP cache partitioning scheme with an "is-cross-site" bit to perform similar experimentation. Using the examples above, this change means that a ‘b.com’ iframe embedded on ‘a.com’ would now share an HTTP cache partition with a ‘c.com’ iframe embedded on ‘a.com’, since the “is-cross-site” bit for both would be set to true (and since the top-level site for both is ‘a.com’).
Standards & signals
- Specification: https://fetch.spec.whatwg.org/#network-partition-keys
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1440172
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=replacing-frame-site-with-is-cross-site-in-the-http-cache-partitioning-scheme
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Replacing%20Frame%20Site%20with%20%22is-cross-site%22%20in%20the%20HTTP%20Cache%20Partitioning%20Scheme
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Replacing%20Frame%20Site%20with%20%22is-cross-site%22%20in%20the%20HTTP%20Cache%20Partitioning%20Scheme
- Baseline status: https://webstatus.dev/?q=Replacing%20Frame%20Site%20with%20%22is-cross-site%22%20in%20the%20HTTP%20Cache%20Partitioning%20Scheme