AdguardTeam / AdguardTeam/Scriptlets

Improve cookie scriptlets — support 'CookieStore' API

未关闭
#521 0 条评论 3 个 reaction 已指派 1 人 已被 @maximtop 认领 在 GitHub 查看
enhancement Priority: P4
主要语言
JavaScript
星标
195
派生
33
PR 合并指标
30 天内没有已合并 PR

描述

Current description is just a bare MDN link. Needs full expansion:

The following cookie-related scriptlets currently access cookies only via `document.cookie` (synchronous string manipulation):
`set-cookie`, `set-cookie-reload`, `trusted-set-cookie`, `trusted-set-cookie-reload`.

The [CookieStore API](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore) is a newer async alternative that provides cleaner access to cookies without string parsing, and properly handles `SameSite`/`Secure` attributes.

When `CookieStore` is available (currently Chrome/Edge), scriptlets should use it instead of `document.cookie` to set cookies.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。