存储分区弃用(试用续订)
从 Chrome 115 开始,存储空间、服务工件和通信 API 会在第三方上下文中进行分区。在 Chrome 113 到 126 之间,网站可以参与弃用试用,以暂时取消分区并恢复存储空间、服务工件和通信 API 的先前行为。此试用期已从 127 续订至 132,并重命名为 DisableThirdPartyStoragePartitioning2。
从 Chrome 125 开始,我们在 Storage Access API 中提供了对非 Cookie 存储空间的支持,这应该可以满足未分区存储空间的大多数用例。
如果不符合这些用例,现在可以为 Chrome 133 到 138(包括这两个版本)的用户申请将 DisableThirdPartyStoragePartitioning3 弃用试用期再延长 6 个里程碑。请注意,如果用户已屏蔽第三方 Cookie,此试用版将不会启用未分区的第三方存储空间。
资格条件和审核流程
若要参与这项弃用试用期续订计划,您需要完成审核和审批流程。
之前已注册 DisableThirdPartyStoragePartitioning2 试用计划的所有网站均符合条件。
我们将对注册请求采用以下流程:
- 如果网站可以提供与其请求续期的来源匹配的 DisableThirdPartyStoragePartitioning2 弃用试用令牌,则注册请求将获得批准。
- 否则,注册请求将被拒绝,即使是已注册原始 DisableThirdPartyStoragePartitioning 试用版的网站也是如此。
申请续订弃用试用版
- 访问 DisableThirdPartyStoragePartitioning3 的试用版,或在 Chrome 源试用页面上的有效试用版列表中找到该试用版。
- 点击“注册”。
- 提供表单所需的信息。
- 勾选相应复选框,接受“披露声明和确认”条件。
- 提交请求。为了处理您的申请,我们需要您提供更多信息。
提交请求后,您会收到一封电子邮件通知,其中包含一张自动生成的工单,要求您提供之前签发的弃用试用令牌的副本。
我们会审核您的请求,并在审核完成或需要您提供更多信息时通知您,同时告知您申请是获批还是被拒。
您还会收到结果的状态和原因。获得批准后,您可以根据需要继续提供试用令牌。如果被拒,您可以按照请求工单中的指南操作。
部署更新后的弃用试用令牌
令牌必须使用 HTML <meta>
标记分发(第三方令牌必须使用您需要取消分区的第三方来源的 JavaScript 注入)。不支持 HTTP 标头方法。必须部署新令牌,仅注册并获得续订权限是不够的。如需详细了解弃用试用令牌,请参阅关于存储分区弃用试用的原始博文。
将非 Cookie 扩展到 SAA
您可以详细了解 Storage Access API 并观看演示。
从 Chrome 119 开始,此 API 支持对 Cookie 的非分区访问,Chrome 125 中添加了对非 Cookie 存储空间的非分区访问。
分享反馈
请将您遇到的任何反馈或问题提交到分区存储空间弃用试用 GitHub 代码库。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-06。
[null,null,["最后更新时间 (UTC):2025-01-06。"],[[["Chrome now partitions storage, service workers, and communication APIs in third-party contexts, starting from version 115."],["A deprecation trial, initially from Chrome 113 to 126 and renewed from 127 to 132 as DisableThirdPartyStoragePartitioning2, allowed sites to temporarily unpartition these elements."],["An additional renewal, DisableThirdPartyStoragePartitioning3, is available for an additional six Chrome milestones (133 to 138), but only for sites previously enrolled in DisableThirdPartyStoragePartitioning2 and is blocked if the user blocks third party cookies."],["The Storage Access API now supports unpartitioned access to both cookie and non-cookie storage, introduced in Chrome 119 and 125 respectively."],["Sites can apply for the DisableThirdPartyStoragePartitioning3 deprecation trial renewal through the Chrome origin trials page, where they will be required to submit a previously issued deprecation token for review and approval."]]],["Chrome has partitioned third-party storage, service workers, and communication APIs since version 115. A deprecation trial, `DisableThirdPartyStoragePartitioning2`, allowed temporary unpartitioning from Chrome 113-132. A renewed trial, `DisableThirdPartyStoragePartitioning3`, is now available for versions 133-138 but requires a review and approval process. Sites must register, provide their previous trial token, and deploy the new token via an HTML `\u003cmeta\u003e` tag. Chrome 125 added non-cookie storage support in the Storage Access API.\n"]]