存储分区弃用(试用续订)
从 Chrome 115 开始,存储空间、服务工件和通信 API 会在第三方上下文中进行分区。在 Chrome 113 到 126 之间,网站可以参与弃用试用,以暂时取消分区并恢复存储空间、服务工件和通信 API 的先前行为。
从 Chrome 125 开始,我们在 Storage Access API 中提供了对非 Cookie 存储空间的支持,这应该可以满足未分区存储空间的大多数用例。
如果不符合这些用例,现在可以针对 Chrome 127 到 132(包括这两个版本)的用户,针对 DisableThirdPartyStoragePartitioning 弃用试用计划申请续期,再延长 6 个里程碑。
资格条件和审核流程
若要参与这项弃用试用期续订计划,您需要完成审核和审批流程。之前已注册 DisableThirdPartyStoragePartitioning 试用版的所有网站均符合条件。
我们将对注册请求采用以下流程:
- 如果网站可以提供与其请求续期的来源匹配的 DisableThirdPartyStoragePartitioning 弃用试用令牌,注册请求将获得批准。
- 否则,注册请求将被拒绝。
申请续订弃用试用版
提交请求后,您会收到一封电子邮件通知,其中包含一张自动生成的工单,要求您提供之前签发的弃用试用令牌的副本。
提交后,我们会审核您的请求。审核完成或需要您提供更多信息时,我们会通知您,并告知您请求是获批还是被拒。您还会收到结果的状态和原因。如果获得批准,您可以根据需要继续提供试用令牌。如果被拒,您可以按照请求工单中的指南操作。
部署更新后的弃用试用令牌
如之前所述,必须使用 HTML <meta>
标记提供令牌(并且必须使用 JavaScript 从您需要取消分区的第三方来源注入第三方令牌)。不支持 HTTP 标头方法。必须部署新令牌,仅注册并获得续订权限是不够的。
将非 Cookie 扩展到 SAA
您可以详细了解 Storage Access API(及其对非 Cookie 存储的新扩展),阅读文档并观看演示。从 Chrome 119 开始,此 API 支持对 Cookie 的非分区访问,Chrome 125 中添加了对非 Cookie 存储空间的非分区访问。
分享反馈
请将您遇到的任何反馈或问题提交到分区存储空间弃用试用版 GitHub 代码库。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-05-25。
[null,null,["最后更新时间 (UTC):2024-05-25。"],[[["As of Chrome 115, storage, service workers, and communication APIs are partitioned in third-party contexts, impacting prior website behavior."],["Sites can request a renewal for the DisableThirdPartyStoragePartitioning deprecation trial to temporarily restore previous functionality for an additional six milestones, supporting Chrome versions 127 to 132."],["Eligibility for renewal requires a previously issued deprecation trial token matching the requesting origin, ensuring only existing trial participants can extend their involvement."],["Chrome now supports non-cookie storage in the Storage Access API to address use cases for unpartitioned storage, offering an alternative solution for developers."],["Developers can share feedback and encountered issues through the Partitioned Storage deprecation trial GitHub repository, contributing to the ongoing development and improvement of the feature."]]],["Sites in a previous storage partitioning deprecation trial can renew it for Chrome versions 127-132. Renewal requires an approved registration. To apply, register via the \"DisableThirdPartyStoragePartitioning2\" trial page. Provide requested information, including a previous trial token. If approved, deploy the new token using an HTML `\u003cmeta\u003e` tag, as the HTTP header method is unsupported. Non-cookie storage in the Storage Access API was added in Chrome 125. Feedback can be submitted through the GitHub repository.\n"]]