參與儲存空間分區的早期測試
如何檢查網站是否受到儲存空間分區的影響。
為加強隱私保護,Chrome 將變更儲存空間和通訊 API 在日後版本中的行為。如要進一步瞭解近期異動,請參閱儲存空間分區。
自 2022 年 7 月起,初始實作項目已可在 Chrome 105 後方使用標記。自 Chrome Beta 版 106 起,自 2022 年 9 月起,您可以測試新的實作方式 (包含快取儲存空間分區)。最新功能和錯誤修正會優先顯示在 Chrome Canary 中,因此請考慮使用 Canary 繼續測試。
這項變更不會影響應用程式僅在第一方情境下使用儲存空間的最常見用途,但我們還是建議您進行測試,確保應用程式能照常運作。萬一您進行互動,或是使用 iframe 中的儲存空間,該變更很有可能對您造成影響。
如何測試儲存空間分區
如要試用儲存空間分區,請按照下列步驟操作:
- 確認您使用的是 Chrome Beta 版 106 以上版本。
- 前往
chrome://flags/#third-party-storage-partitioning
。
- 啟用「實驗性第三方儲存空間分區」旗標。
參與早期測試並回報錯誤,協助 Chrome 團隊在穩定版之前識別並修正任何非預期的行為。
什麼是儲存空間分區
為了避免特定類型的側邊管道跨網站追蹤,Chrome 正在第三方環境下將儲存空間和通訊 API 分區 (詳情請參閱相關說明)。
以往,儲存空間僅受來源金鑰保護。也就是說,如果來自 example.com
的 iframe 嵌入 a.com
和 b.com
,example.com
可以儲存並成功從儲存空間中擷取 ID,藉此瞭解這兩個頂層網站的瀏覽習慣。啟用第三方儲存空間分區後,example.com
的儲存空間就會位於兩個不同的分區,一個用於 a.com
,另一個用於 b.com
。儲存空間分區可避免您的嵌入彙整您在任一網站的造訪。
啟用「實驗性第三方儲存空間分區」標記時,系統會分區下列儲存空間和通訊 API:
下列 API 仍在開發階段,系統會在運送至穩定版本前完成分區:
這項功能預設將於何時啟動
我們希望能根據穩定性和相容性,於 2023 年初開始推出這項功能。立即測試第三方儲存空間分區,並回報錯誤,將有助於 Chrome 從生態系統收集意見回饋,確保開發人員和網站擁有者擁有所需的支援。
回報錯誤
提供意見的最佳方式就是提出新問題,例如提供可公開存取的網址連結或減少測試案例。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-09-01 (世界標準時間)。
[null,null,["上次更新時間:2022-09-01 (世界標準時間)。"],[[["Chrome is changing how websites store and access data to enhance user privacy by partitioning storage in third-party contexts."],["This change primarily impacts websites that utilize storage within iframes or interact with storage across different top-level sites."],["Developers can test this change in Chrome Beta 106 or higher by enabling the \"Experimental Third-party Storage Partitioning\" flag."],["Storage APIs such as Cache Storage, IndexedDB, and Web Storage will be partitioned, impacting cross-site data sharing."],["The feature is expected to launch in early 2023, and developers are encouraged to test and report any issues to ensure a smooth transition."]]],["Chrome is implementing Storage Partitioning to enhance privacy by isolating storage and communication APIs in third-party contexts. To test, use Chrome Beta 106+ and enable the \"Experimental Third-party Storage Partitioning\" flag. This impacts APIs like Cache Storage, IndexedDB, and Web Storage. Developers should test, especially if their apps rely on storage in iframes. Report any bugs found during testing to aid the Chrome team in identifying and fixing issues. The intended launch is planned for early 2023.\n"]]